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.
1 parent b5b4aba commit dc04aeaCopy full SHA for dc04aea
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