From 7ade375ac3314095b32b6380b903bf088f4f0bcd Mon Sep 17 00:00:00 2001 From: O01eg Date: Sun, 1 Mar 2015 10:29:09 +0300 Subject: [PATCH] Upgrade to rustc 1.0.0-dev (890293655 2015-02-28) Fixed error: ``` src/parser.rs:308:39: 308:42 error: obsolete syntax: `:`, `&mut:`, or `&:` src/parser.rs:308 let first_non_slash = input.find(|&:c| !matches!(c, '/' | '\\')).unwrap_or(input.len()); ^~~ note: rely on inference instead ``` --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index 2f494a74..4c2c7518 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -305,7 +305,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| !matches!(c, '/' | '\\')).unwrap_or(input.len()); + let first_non_slash = input.find(|c| !matches!(c, '/' | '\\')).unwrap_or(input.len()); if &input[..first_non_slash] != "//" { try!(parser.parse_error(ParseError::ExpectedTwoSlashes)); }