From b29cd22bce6325a60788ab84f989bd2e82fcaaf4 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Mon, 10 Jun 2013 00:34:23 +1000 Subject: std: replace str::all/any fns and methods with iterators --- src/libstd/path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/path.rs') 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) } -- cgit 1.4.1-3-g733a5