Update to Rust 2016-03-05

This commit is contained in:
Anthony Ramine 2016-03-06 02:37:48 +01:00
parent 64fb09ca2d
commit 7c1dd54895
13 changed files with 108 additions and 113 deletions

View file

@ -29,7 +29,7 @@ pub enum HeaderOrMethod {
impl HeaderOrMethod {
fn match_header(&self, header_name: &str) -> bool {
match *self {
HeaderOrMethod::HeaderData(ref s) => s.eq_ignore_ascii_case(header_name),
HeaderOrMethod::HeaderData(ref s) => (&**s).eq_ignore_ascii_case(header_name),
_ => false
}
}