Skip to content

Commit e65d33e

Browse files
committed
path2: Update for loop -> continue
1 parent b8af653 commit e65d33e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/libextra/glob.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl Iterator<Path> for GlobIterator {
131131
None => {
132132
// FIXME (#9639): How do we handle non-utf8 filenames? Ignore them for now
133133
// Ideally we'd still match them against a *
134-
loop;
134+
continue;
135135
}
136136
Some(x) => x
137137
}, self.options) {

src/libstd/path/posix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ impl GenericPath for Path {
253253
loop {
254254
match (ita.next(), itb.next()) {
255255
(None, _) => break,
256-
(Some(a), Some(b)) if a == b => { loop },
256+
(Some(a), Some(b)) if a == b => { continue },
257257
(Some(a), _) if a == bytes!("..") => {
258258
// if ita contains only .. components, it's an ancestor
259259
return ita.all(|x| x == bytes!(".."));

src/libstd/path/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ impl GenericPath for Path {
548548
loop {
549549
match (ita.next(), itb.next()) {
550550
(None, _) => break,
551-
(Some(a), Some(b)) if a == b => { loop },
551+
(Some(a), Some(b)) if a == b => { continue },
552552
(Some(a), _) if a == ".." => {
553553
// if ita contains only .. components, it's an ancestor
554554
return ita.all(|x| x == "..");

0 commit comments

Comments
 (0)