We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f8057c + dc04aea commit 3a0d3d5Copy full SHA for 3a0d3d5
crates/proc-macro-api/src/legacy_protocol/msg.rs
@@ -152,7 +152,7 @@ pub trait Message: serde::Serialize + DeserializeOwned {
152
fn read<R: BufRead, C: Codec>(inp: &mut R, buf: &mut C::Buf) -> io::Result<Option<Self>> {
153
Ok(match C::read(inp, buf)? {
154
None => None,
155
- Some(buf) => C::decode(buf)?,
+ Some(buf) => Some(C::decode(buf)?),
156
})
157
}
158
fn write<W: Write, C: Codec>(self, out: &mut W) -> io::Result<()> {
0 commit comments