Skip to content

Commit

Permalink
Once again, x.py tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucretiel committed Aug 28, 2020
1 parent d2d8bcb commit c91e764
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions library/std/src/io/buffered.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1408,11 +1408,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 c91e764

Please sign in to comment.