Pārlūkot izejas kodu

Update to rust master

Alex Crichton 11 gadi atpakaļ
vecāks
revīzija
54ba511940
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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));
     }