File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ impl Process {
48
48
fn run (
49
49
process_path : PathBuf ,
50
50
args : impl IntoIterator < Item = impl AsRef < OsStr > > ,
51
- ) -> Result < Process , io:: Error > {
51
+ ) -> io:: Result < Process > {
52
52
let child = Command :: new ( & process_path)
53
53
. args ( args)
54
54
. stdin ( Stdio :: piped ( ) )
@@ -59,7 +59,7 @@ impl Process {
59
59
Ok ( Process { path : process_path, child } )
60
60
}
61
61
62
- fn restart ( & mut self ) -> Result < ( ) , io :: Error > {
62
+ fn restart ( & mut self ) -> io :: Result < ( ) > {
63
63
let _ = self . child . kill ( ) ;
64
64
self . child = Command :: new ( & self . path )
65
65
. stdin ( Stdio :: piped ( ) )
@@ -196,7 +196,7 @@ fn send_request(
196
196
mut writer : & mut impl Write ,
197
197
mut reader : & mut impl BufRead ,
198
198
req : Request ,
199
- ) -> Result < Option < Response > , io :: Error > {
199
+ ) -> io :: Result < Option < Response > > {
200
200
req. write ( & mut writer) ?;
201
201
Ok ( Response :: read ( & mut reader) ?)
202
202
}
You can’t perform that action at this time.
0 commit comments