Unnamed repository; edit this file 'description' to name the repository.
adapt ByteRange to new roundtrip
bit-aloo 3 months ago
parent b9e6c16 · commit c37366e
-rw-r--r--crates/proc-macro-srv-cli/src/main_loop.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/proc-macro-srv-cli/src/main_loop.rs b/crates/proc-macro-srv-cli/src/main_loop.rs
index bb94d33ac1..af8c3cb39b 100644
--- a/crates/proc-macro-srv-cli/src/main_loop.rs
+++ b/crates/proc-macro-srv-cli/src/main_loop.rs
@@ -265,10 +265,8 @@ impl<C: Codec> proc_macro_srv::ProcMacroClientInterface for ProcMacroClientHandl
start: range.start().into(),
end: range.end().into(),
}) {
- Some(bidirectional::BidirectionalMessage::SubResponse(
- bidirectional::SubResponse::ByteRangeResult { range },
- )) => range,
- _ => Range { start: range.start().into(), end: range.end().into() },
+ Ok(bidirectional::SubResponse::ByteRangeResult { range }) => range,
+ other => handle_failure(other),
}
}
}