diff options
| author | Chayim Refael Friedman <chayimfr@gmail.com> | 2025-03-15 19:53:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-15 19:53:43 +0000 |
| commit | 845ca7b7acc596a15aeb2f373f62e9ec6a2718ec (patch) | |
| tree | 98c29a53f601326bec5154872d71e1ec5a3e9f0b | |
| parent | 2d6ab1580f2acbfecd19886c24ac0b31bee1cfd6 (diff) | |
| parent | c6033c831dfac958d2365501d164a390b511de8c (diff) | |
| download | rust-845ca7b7acc596a15aeb2f373f62e9ec6a2718ec.tar.gz rust-845ca7b7acc596a15aeb2f373f62e9ec6a2718ec.zip | |
Merge pull request #19370 from DriedYellowPeach/refactor/io-result
refactor: Simplify by removing ? operator
| -rw-r--r-- | src/tools/rust-analyzer/crates/proc-macro-api/src/legacy_protocol/json.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/crates/proc-macro-api/src/legacy_protocol/json.rs b/src/tools/rust-analyzer/crates/proc-macro-api/src/legacy_protocol/json.rs index ec89f6a9e65..30e35f8f143 100644 --- a/src/tools/rust-analyzer/crates/proc-macro-api/src/legacy_protocol/json.rs +++ b/src/tools/rust-analyzer/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() } |
