Skip to content

Commit 5881fc9

Browse files
committed
Fix formatting
1 parent af4be91 commit 5881fc9

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

library/std/src/io/mod.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,11 +2213,7 @@ impl<T: Read, U: Read> Read for Chain<T, U> {
22132213

22142214
unsafe fn initializer(&self) -> Initializer {
22152215
let initializer = self.first.initializer();
2216-
if initializer.should_initialize() {
2217-
initializer
2218-
} else {
2219-
self.second.initializer()
2220-
}
2216+
if initializer.should_initialize() { initializer } else { self.second.initializer() }
22212217
}
22222218
}
22232219

@@ -2236,11 +2232,7 @@ impl<T: BufRead, U: BufRead> BufRead for Chain<T, U> {
22362232
}
22372233

22382234
fn consume(&mut self, amt: usize) {
2239-
if !self.done_first {
2240-
self.first.consume(amt)
2241-
} else {
2242-
self.second.consume(amt)
2243-
}
2235+
if !self.done_first { self.first.consume(amt) } else { self.second.consume(amt) }
22442236
}
22452237
}
22462238

0 commit comments

Comments
 (0)