libstd: fix fallout

This commit is contained in:
Jorge Aparicio 2014-12-04 17:29:41 -05:00
parent 50ef207253
commit cc242bcf47
1 changed files with 2 additions and 3 deletions

View File

@ -1038,9 +1038,8 @@ fn parse_prefix<'a>(mut path: &'a str) -> Option<PathPrefix> {
}
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
};