mirror of https://git.sr.ht/~stygianentity/bincode
remove unnecessary let in ReadReader
This commit is contained in:
parent
858cee9a22
commit
237e6852e9
|
|
@ -179,8 +179,7 @@ where
|
||||||
Err(e) => return Err(::ErrorKind::InvalidUtf8Encoding(e).into()),
|
Err(e) => return Err(::ErrorKind::InvalidUtf8Encoding(e).into()),
|
||||||
};
|
};
|
||||||
|
|
||||||
let r = visitor.visit_str(string);
|
visitor.visit_str(string)
|
||||||
r
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_byte_buffer(&mut self, length: usize) -> Result<Vec<u8>> {
|
fn get_byte_buffer(&mut self, length: usize) -> Result<Vec<u8>> {
|
||||||
|
|
@ -193,7 +192,6 @@ where
|
||||||
V: serde::de::Visitor<'a>,
|
V: serde::de::Visitor<'a>,
|
||||||
{
|
{
|
||||||
self.fill_buffer(length)?;
|
self.fill_buffer(length)?;
|
||||||
let r = visitor.visit_bytes(&self.temp_buffer[..]);
|
visitor.visit_bytes(&self.temp_buffer[..])
|
||||||
r
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue