Skip to content

Commit

Permalink
remove unnecessary let in ReadReader
Browse files Browse the repository at this point in the history
  • Loading branch information
joonazan authored and jdm committed Jan 21, 2020
1 parent 7201be3 commit 3a7b018
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/de/read.rs
Expand Up @@ -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>> {
Expand All @@ -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[..])
}
}

0 comments on commit 3a7b018

Please sign in to comment.