From e65d33e9ed3057a6afeaea9bf68519eb758f51ab Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Wed, 2 Oct 2013 20:26:28 -0700 Subject: [PATCH] path2: Update for loop -> continue --- src/libextra/glob.rs | 2 +- src/libstd/path/posix.rs | 2 +- src/libstd/path/windows.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libextra/glob.rs b/src/libextra/glob.rs index e398f41c467b..51a4718394e3 100644 --- a/src/libextra/glob.rs +++ b/src/libextra/glob.rs @@ -131,7 +131,7 @@ impl Iterator for GlobIterator { None => { // FIXME (#9639): How do we handle non-utf8 filenames? Ignore them for now // Ideally we'd still match them against a * - loop; + continue; } Some(x) => x }, self.options) { diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index fb0069bbe01e..b0b6d1ceea0d 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -253,7 +253,7 @@ impl GenericPath for Path { loop { match (ita.next(), itb.next()) { (None, _) => break, - (Some(a), Some(b)) if a == b => { loop }, + (Some(a), Some(b)) if a == b => { continue }, (Some(a), _) if a == bytes!("..") => { // if ita contains only .. components, it's an ancestor return ita.all(|x| x == bytes!("..")); diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index 6dd7954de80d..620b7c375ff2 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -548,7 +548,7 @@ impl GenericPath for Path { loop { match (ita.next(), itb.next()) { (None, _) => break, - (Some(a), Some(b)) if a == b => { loop }, + (Some(a), Some(b)) if a == b => { continue }, (Some(a), _) if a == ".." => { // if ita contains only .. components, it's an ancestor return ita.all(|x| x == "..");