Skip to content

Commit 1e3026c

Browse files
refactor: Simplify by removing ? operator
`out.flush()` already returns a `io::Result<()>`, so there is no need for `?` operator and `Ok(())`
1 parent 220d913 commit 1e3026c

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

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)