about summary refs log tree commit diff
path: root/src/libstd/path
diff options
context:
space:
mode:
authorKevin Ballard <kevin@sb.org>2013-10-02 20:26:28 -0700
committerKevin Ballard <kevin@sb.org>2013-10-15 21:56:54 -0700
commite65d33e9ed3057a6afeaea9bf68519eb758f51ab (patch)
treee72632b1e11d3f06ad71d234dc4b478bf96ceefd /src/libstd/path
parentb8af6539844a7edead3220f088248f8020793a0d (diff)
downloadrust-e65d33e9ed3057a6afeaea9bf68519eb758f51ab.tar.gz
rust-e65d33e9ed3057a6afeaea9bf68519eb758f51ab.zip
path2: Update for loop -> continue
Diffstat (limited to 'src/libstd/path')
-rw-r--r--src/libstd/path/posix.rs2
-rw-r--r--src/libstd/path/windows.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs
index fb0069bbe01..b0b6d1ceea0 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 6dd7954de80..620b7c375ff 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 == "..");