Skip to content

Commit cc242bc

Browse files
author
Jorge Aparicio
committed
libstd: fix fallout
1 parent 50ef207 commit cc242bc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libstd/path/windows.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,9 +1038,8 @@ fn parse_prefix<'a>(mut path: &'a str) -> Option<PathPrefix> {
10381038
}
10391039
return None;
10401040

1041-
fn parse_two_comps<'a>(mut path: &'a str, f: |char| -> bool)
1042-
-> Option<(uint, uint)> {
1043-
let idx_a = match path.find(|x| f(x)) {
1041+
fn parse_two_comps(mut path: &str, f: fn(char) -> bool) -> Option<(uint, uint)> {
1042+
let idx_a = match path.find(f) {
10441043
None => return None,
10451044
Some(x) => x
10461045
};

0 commit comments

Comments
 (0)