File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ bigdecimal = { workspace = true }
2424binary-heap-plus = { workspace = true }
2525clap = { workspace = true }
2626compare = { workspace = true }
27- ctrlc = { workspace = true }
2827fnv = { workspace = true }
2928itertools = { workspace = true }
3029memchr = { workspace = true }
@@ -37,6 +36,9 @@ unicode-width = { workspace = true }
3736uucore = { workspace = true , features = [" fs" , " parser-size" , " version-cmp" ] }
3837fluent = { workspace = true }
3938
39+ [target .'cfg(not(target_os = "redox"))' .dependencies ]
40+ ctrlc = { workspace = true }
41+
4042[target .'cfg(unix)' .dependencies ]
4143nix = { workspace = true , features = [" resource" ] }
4244
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ fn should_install_signal_handler() -> bool {
5555 open_fds. saturating_add ( CTRL_C_FDS + RESERVED_FOR_MERGE ) <= limit
5656}
5757
58+ #[ cfg( not( target_os = "redox" ) ) ]
5859fn ensure_signal_handler_installed ( state : Arc < Mutex < HandlerRegistration > > ) -> UResult < ( ) > {
5960 // This shared state must originate from `handler_state()` so the handler always sees
6061 // the current lock/path pair and can clean up the active temp directory on SIGINT.
@@ -104,6 +105,11 @@ fn ensure_signal_handler_installed(state: Arc<Mutex<HandlerRegistration>>) -> UR
104105 Ok ( ( ) )
105106}
106107
108+ #[ cfg( target_os = "redox" ) ]
109+ fn ensure_signal_handler_installed ( _state : Arc < Mutex < HandlerRegistration > > ) -> UResult < ( ) > {
110+ Ok ( ( ) )
111+ }
112+
107113impl TmpDirWrapper {
108114 pub fn new ( path : PathBuf ) -> Self {
109115 Self {
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ impl FileInformation {
149149 not( target_pointer_width = "64" )
150150 )
151151 ) ) ]
152+ #[ cfg_attr( target_os = "freebsd" , allow( clippy:: useless_conversion) ) ]
152153 return self . 0 . st_nlink . into ( ) ;
153154 #[ cfg( target_os = "aix" ) ]
154155 return self . 0 . st_nlink . try_into ( ) . unwrap ( ) ;
@@ -168,6 +169,7 @@ impl FileInformation {
168169 target_os = "netbsd" ,
169170 not( target_pointer_width = "64" )
170171 ) ) ]
172+ #[ cfg_attr( target_os = "freebsd" , allow( clippy:: useless_conversion) ) ]
171173 return self . 0 . st_ino . into ( ) ;
172174 }
173175}
You can’t perform that action at this time.
0 commit comments