Skip to content

Commit

Permalink
Rollup merge of rust-lang#28029 - tshepang:unusual, r=steveklabnik
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Aug 27, 2015
2 parents bf517fd + 933eb3e commit 4d975c9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/libstd/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,11 @@ impl<'a> Components<'a> {
/// how much of the prefix is left from the point of view of iteration?
#[inline]
fn prefix_remaining(&self) -> usize {
if self.front == State::Prefix { self.prefix_len() }
else { 0 }
if self.front == State::Prefix {
self.prefix_len()
} else {
0
}
}

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

0 comments on commit 4d975c9

Please sign in to comment.