Просмотр исходного кода

Merge pull request #60 from alexcrichton/update

Update to rust master
Simon Sapin 11 лет назад
Родитель
Сommit
3576451552
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/parser.rs

+ 1 - 1
src/parser.rs

@@ -312,7 +312,7 @@ fn parse_relative_url<'a>(input: &'a str, scheme: String, scheme_type: SchemeTyp
 
 
 fn skip_slashes<'a>(input: &'a str, parser: &UrlParser) -> ParseResult<&'a str> {
-    let first_non_slash = input.find(|c| !is_match!(c, '/' | '\\')).unwrap_or(input.len());
+    let first_non_slash = input.find(|&:c| !is_match!(c, '/' | '\\')).unwrap_or(input.len());
     if input.slice_to(first_non_slash) != "//" {
         try!(parser.parse_error(ParseError::ExpectedTwoSlashes));
     }