remove unnecessary let in ReadReader

This commit is contained in:
Joonatan Saarhelo 2020-01-18 17:28:01 +02:00 committed by Josh Matthews
parent 858cee9a22
commit 237e6852e9
1 changed files with 2 additions and 4 deletions

View File

@ -179,8 +179,7 @@ where
Err(e) => return Err(::ErrorKind::InvalidUtf8Encoding(e).into()),
};
let r = visitor.visit_str(string);
r
visitor.visit_str(string)
}
fn get_byte_buffer(&mut self, length: usize) -> Result<Vec<u8>> {
@ -193,7 +192,6 @@ where
V: serde::de::Visitor<'a>,
{
self.fill_buffer(length)?;
let r = visitor.visit_bytes(&self.temp_buffer[..]);
r
visitor.visit_bytes(&self.temp_buffer[..])
}
}