mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
Rollup merge of #28029 - tshepang:unusual, r=steveklabnik
This commit is contained in:
+5
-2
@@ -598,8 +598,11 @@ fn prefix_verbatim(&self) -> bool {
|
||||
/// 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?
|
||||
|
||||
Reference in New Issue
Block a user