From cc242bcf47f59e847436682def1e64ff481097e2 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 4 Dec 2014 17:29:41 -0500 Subject: libstd: fix fallout --- src/libstd/path/windows.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/libstd/path') diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index c3242c9cead..e1b0d9b1395 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -1038,9 +1038,8 @@ fn parse_prefix<'a>(mut path: &'a str) -> Option { } return None; - fn parse_two_comps<'a>(mut path: &'a str, f: |char| -> bool) - -> Option<(uint, uint)> { - let idx_a = match path.find(|x| f(x)) { + fn parse_two_comps(mut path: &str, f: fn(char) -> bool) -> Option<(uint, uint)> { + let idx_a = match path.find(f) { None => return None, Some(x) => x }; -- cgit 1.4.1-3-g733a5