Skip to content

Commit c91e764

Browse files
committed
Once again, x.py tidy
1 parent d2d8bcb commit c91e764

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

library/std/src/io/buffered.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1408,11 +1408,7 @@ mod tests {
14081408
// rustfmt-on-save.
14091409
impl Read for ShortReader {
14101410
fn read(&mut self, _: &mut [u8]) -> io::Result<usize> {
1411-
if self.lengths.is_empty() {
1412-
Ok(0)
1413-
} else {
1414-
Ok(self.lengths.remove(0))
1415-
}
1411+
if self.lengths.is_empty() { Ok(0) } else { Ok(self.lengths.remove(0)) }
14161412
}
14171413
}
14181414

0 commit comments

Comments
 (0)