Skip to content

Commit 845ca7b

Browse files
Merge pull request rust-lang#19370 from DriedYellowPeach/refactor/io-result
refactor: Simplify by removing ? operator
2 parents 2d6ab15 + c6033c8 commit 845ca7b

File tree

1 file changed

+1
-2
lines changed
  • src/tools/rust-analyzer/crates/proc-macro-api/src/legacy_protocol

1 file changed

+1
-2
lines changed

src/tools/rust-analyzer/crates/proc-macro-api/src/legacy_protocol/json.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ pub fn write_json(out: &mut impl Write, msg: &str) -> io::Result<()> {
3030
tracing::debug!("> {}", msg);
3131
out.write_all(msg.as_bytes())?;
3232
out.write_all(b"\n")?;
33-
out.flush()?;
34-
Ok(())
33+
out.flush()
3534
}

0 commit comments

Comments
 (0)