File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub enum Error {
4848 PList ( #[ from] plist:: Error ) ,
4949 #[ error( "Permission denied: {}" , . path. display( ) ) ]
5050 PermissionDenied { path : PathBuf , inner : io:: Error } ,
51- #[ cfg( all ( not( windows) ) ) ]
51+ #[ cfg( not( windows) ) ]
5252 #[ error( "nix: {}" , . 0 ) ]
5353 Nix ( #[ from] nix:: Error ) ,
5454 #[ cfg( target_os = "linux" ) ]
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use std::fs::{
33 File ,
44} ;
55use std:: io:: Write ;
6- #[ cfg( all ( not( windows) ) ) ]
6+ #[ cfg( not( windows) ) ]
77use std:: os:: unix:: fs:: DirBuilderExt ;
88use std:: path:: PathBuf ;
99
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ impl Client<StdioTransport> {
175175 command. args ( args) . spawn ( ) ?
176176 } ;
177177 let server_process_id = child. id ( ) . ok_or ( ClientError :: MissingProcessId ) ?;
178- let server_process_id = Pid :: from_raw ( server_process_id) ;
178+ let server_process_id = Pid :: from_raw ( server_process_id. try_into ( ) . unwrap ( ) ) ;
179179 let server_process_id = Some ( server_process_id) ;
180180 let transport = Arc :: new ( transport:: stdio:: JsonRpcStdioTransport :: client ( child) ?) ;
181181 Ok ( Self {
You can’t perform that action at this time.
0 commit comments