path2: Update for loop -> continue
This commit is contained in:
parent
b8af653984
commit
e65d33e9ed
@ -131,7 +131,7 @@ impl Iterator<Path> for GlobIterator {
|
|||||||
None => {
|
None => {
|
||||||
// FIXME (#9639): How do we handle non-utf8 filenames? Ignore them for now
|
// FIXME (#9639): How do we handle non-utf8 filenames? Ignore them for now
|
||||||
// Ideally we'd still match them against a *
|
// Ideally we'd still match them against a *
|
||||||
loop;
|
continue;
|
||||||
}
|
}
|
||||||
Some(x) => x
|
Some(x) => x
|
||||||
}, self.options) {
|
}, self.options) {
|
||||||
|
@ -253,7 +253,7 @@ impl GenericPath for Path {
|
|||||||
loop {
|
loop {
|
||||||
match (ita.next(), itb.next()) {
|
match (ita.next(), itb.next()) {
|
||||||
(None, _) => break,
|
(None, _) => break,
|
||||||
(Some(a), Some(b)) if a == b => { loop },
|
(Some(a), Some(b)) if a == b => { continue },
|
||||||
(Some(a), _) if a == bytes!("..") => {
|
(Some(a), _) if a == bytes!("..") => {
|
||||||
// if ita contains only .. components, it's an ancestor
|
// if ita contains only .. components, it's an ancestor
|
||||||
return ita.all(|x| x == bytes!(".."));
|
return ita.all(|x| x == bytes!(".."));
|
||||||
|
@ -548,7 +548,7 @@ impl GenericPath for Path {
|
|||||||
loop {
|
loop {
|
||||||
match (ita.next(), itb.next()) {
|
match (ita.next(), itb.next()) {
|
||||||
(None, _) => break,
|
(None, _) => break,
|
||||||
(Some(a), Some(b)) if a == b => { loop },
|
(Some(a), Some(b)) if a == b => { continue },
|
||||||
(Some(a), _) if a == ".." => {
|
(Some(a), _) if a == ".." => {
|
||||||
// if ita contains only .. components, it's an ancestor
|
// if ita contains only .. components, it's an ancestor
|
||||||
return ita.all(|x| x == "..");
|
return ita.all(|x| x == "..");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user