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 {
48
48
PList ( #[ from] plist:: Error ) ,
49
49
#[ error( "Permission denied: {}" , . path. display( ) ) ]
50
50
PermissionDenied { path : PathBuf , inner : io:: Error } ,
51
- #[ cfg( all ( not( windows) ) ) ]
51
+ #[ cfg( not( windows) ) ]
52
52
#[ error( "nix: {}" , . 0 ) ]
53
53
Nix ( #[ from] nix:: Error ) ,
54
54
#[ cfg( target_os = "linux" ) ]
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use std::fs::{
3
3
File ,
4
4
} ;
5
5
use std:: io:: Write ;
6
- #[ cfg( all ( not( windows) ) ) ]
6
+ #[ cfg( not( windows) ) ]
7
7
use std:: os:: unix:: fs:: DirBuilderExt ;
8
8
use std:: path:: PathBuf ;
9
9
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ impl Client<StdioTransport> {
175
175
command. args ( args) . spawn ( ) ?
176
176
} ;
177
177
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 ( ) ) ;
179
179
let server_process_id = Some ( server_process_id) ;
180
180
let transport = Arc :: new ( transport:: stdio:: JsonRpcStdioTransport :: client ( child) ?) ;
181
181
Ok ( Self {
You can’t perform that action at this time.
0 commit comments