File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -392,15 +392,19 @@ pub enum SignalValue {
392
392
#[ cfg( any( feature = "aio" , feature = "signal" ) ) ]
393
393
impl SignalValue {
394
394
#[ cfg( target_os = "linux" ) ]
395
+ #[ allow( dead_code) ]
395
396
unsafe fn convert_to_int_unchecked ( self ) -> libc:: c_int {
397
+ // Note: dead code is allowed, since this is a private method that can remain unused on some platforms
396
398
match self {
397
399
SignalValue :: Standard ( s) => s as libc:: c_int ,
398
400
SignalValue :: Realtime ( n) => libc:: SIGRTMIN ( ) + n,
399
401
}
400
402
}
401
403
402
404
#[ cfg( not( target_os = "linux" ) ) ]
405
+ #[ allow( dead_code) ]
403
406
unsafe fn convert_to_int_unchecked ( self ) -> libc:: c_int {
407
+ // Note: dead code is allowed, since this is a private method that can remain unused on some platforms
404
408
match self {
405
409
SignalValue :: Standard ( s) => s as libc:: c_int ,
406
410
}
@@ -999,6 +1003,12 @@ impl Hash for SigSet {
999
1003
///
1000
1004
/// Call [`SigSet::iter`] to create an iterator.
1001
1005
#[ derive( Clone , Debug ) ]
1006
+ #[ cfg( not( any(
1007
+ target_os = "haiku" ,
1008
+ target_os = "openbsd" ,
1009
+ target_os = "dragonfly" ,
1010
+ target_os = "redox"
1011
+ ) ) ) ]
1002
1012
pub struct SigSetIter <' a> {
1003
1013
sigset: & ' a SigSet ,
1004
1014
inner: SignalIterator ,
You can’t perform that action at this time.
0 commit comments