From fc460b1e423c2c510a10539f8289af548685676c Mon Sep 17 00:00:00 2001 From: veetaha Date: Mon, 20 Apr 2020 22:42:36 +0300 Subject: Migrate to Result -> io::Result --- crates/ra_proc_macro/src/process.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ra_proc_macro/src/process.rs b/crates/ra_proc_macro/src/process.rs index b1ebf46a1..e24944af4 100644 --- a/crates/ra_proc_macro/src/process.rs +++ b/crates/ra_proc_macro/src/process.rs @@ -48,7 +48,7 @@ impl Process { fn run( process_path: PathBuf, args: impl IntoIterator>, - ) -> Result { + ) -> io::Result { let child = Command::new(&process_path) .args(args) .stdin(Stdio::piped()) @@ -59,7 +59,7 @@ impl Process { Ok(Process { path: process_path, child }) } - fn restart(&mut self) -> Result<(), io::Error> { + fn restart(&mut self) -> io::Result<()> { let _ = self.child.kill(); self.child = Command::new(&self.path) .stdin(Stdio::piped()) @@ -196,7 +196,7 @@ fn send_request( mut writer: &mut impl Write, mut reader: &mut impl BufRead, req: Request, -) -> Result, io::Error> { +) -> io::Result> { req.write(&mut writer)?; Ok(Response::read(&mut reader)?) } -- cgit v1.2.3