Skip to content

Commit fc460b1

Browse files
committed
Migrate to Result<T, io::Error> -> io::Result<T>
1 parent d8ca817 commit fc460b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/ra_proc_macro/src/process.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl Process {
4848
fn run(
4949
process_path: PathBuf,
5050
args: impl IntoIterator<Item = impl AsRef<OsStr>>,
51-
) -> Result<Process, io::Error> {
51+
) -> io::Result<Process> {
5252
let child = Command::new(&process_path)
5353
.args(args)
5454
.stdin(Stdio::piped())
@@ -59,7 +59,7 @@ impl Process {
5959
Ok(Process { path: process_path, child })
6060
}
6161

62-
fn restart(&mut self) -> Result<(), io::Error> {
62+
fn restart(&mut self) -> io::Result<()> {
6363
let _ = self.child.kill();
6464
self.child = Command::new(&self.path)
6565
.stdin(Stdio::piped())
@@ -196,7 +196,7 @@ fn send_request(
196196
mut writer: &mut impl Write,
197197
mut reader: &mut impl BufRead,
198198
req: Request,
199-
) -> Result<Option<Response>, io::Error> {
199+
) -> io::Result<Option<Response>> {
200200
req.write(&mut writer)?;
201201
Ok(Response::read(&mut reader)?)
202202
}

0 commit comments

Comments
 (0)