about summary refs log tree commit diff
path: root/src/libstd/path.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-06-10 00:34:23 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-06-10 23:02:54 +1000
commitb29cd22bce6325a60788ab84f989bd2e82fcaaf4 (patch)
treedfa42affe6369b9595b462b4ee15fdaf88ff8b3a /src/libstd/path.rs
parent1e8982bdb26208d9d9ed4cdcbcd21cc9ef35bd46 (diff)
downloadrust-b29cd22bce6325a60788ab84f989bd2e82fcaaf4.tar.gz
rust-b29cd22bce6325a60788ab84f989bd2e82fcaaf4.zip
std: replace str::all/any fns and methods with iterators
Diffstat (limited to 'src/libstd/path.rs')
-rw-r--r--src/libstd/path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index b2f25d41157..eb78120c6be 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -508,7 +508,7 @@ impl GenericPath for PosixPath {
     }
 
     fn with_filename(&self, f: &str) -> PosixPath {
-        assert!(! str::any(f, |c| windows::is_sep(c)));
+        assert!(! f.iter().all(windows::is_sep));
         self.dir_path().push(f)
     }
 
@@ -722,7 +722,7 @@ impl GenericPath for WindowsPath {
     }
 
     fn with_filename(&self, f: &str) -> WindowsPath {
-        assert!(! str::any(f, |c| windows::is_sep(c)));
+        assert!(! f.iter().all(windows::is_sep));
         self.dir_path().push(f)
     }