Skip to content

Commit

Permalink
Tidy fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucretiel committed Aug 29, 2020
1 parent 9621658 commit 1aae49c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions library/std/src/io/buffered/bufreader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,7 @@ mod tests {
// rustfmt-on-save.
impl Read for ShortReader {
fn read(&mut self, _: &mut [u8]) -> io::Result<usize> {
if self.lengths.is_empty() {
Ok(0)
} else {
Ok(self.lengths.remove(0))
}
if self.lengths.is_empty() { Ok(0) } else { Ok(self.lengths.remove(0)) }
}
}

Expand Down

0 comments on commit 1aae49c

Please sign in to comment.