Skip to content

Commit 4d975c9

Browse files
committed
Rollup merge of rust-lang#28029 - tshepang:unusual, r=steveklabnik
2 parents bf517fd + 933eb3e commit 4d975c9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/libstd/path.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,11 @@ impl<'a> Components<'a> {
598598
/// how much of the prefix is left from the point of view of iteration?
599599
#[inline]
600600
fn prefix_remaining(&self) -> usize {
601-
if self.front == State::Prefix { self.prefix_len() }
602-
else { 0 }
601+
if self.front == State::Prefix {
602+
self.prefix_len()
603+
} else {
604+
0
605+
}
603606
}
604607

605608
// Given the iteration so far, how much of the pre-State::Body path is left?

0 commit comments

Comments
 (0)