Skip to content

Commit 71ff7fb

Browse files
Merge pull request #19370 from DriedYellowPeach/refactor/io-result
refactor: Simplify by removing ? operator
2 parents e0a293c + 1e3026c commit 71ff7fb

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

crates/proc-macro-api/src/legacy_protocol/json.rs

+1-2
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)