Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #19370 from DriedYellowPeach/refactor/io-result
refactor: Simplify by removing ? operator
| -rw-r--r-- | crates/proc-macro-api/src/legacy_protocol/json.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/proc-macro-api/src/legacy_protocol/json.rs b/crates/proc-macro-api/src/legacy_protocol/json.rs index ec89f6a9e6..30e35f8f14 100644 --- a/crates/proc-macro-api/src/legacy_protocol/json.rs +++ b/crates/proc-macro-api/src/legacy_protocol/json.rs @@ -30,6 +30,5 @@ pub fn write_json(out: &mut impl Write, msg: &str) -> io::Result<()> { tracing::debug!("> {}", msg); out.write_all(msg.as_bytes())?; out.write_all(b"\n")?; - out.flush()?; - Ok(()) + out.flush() } |