mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update to Rust 2016-03-05
This commit is contained in:
parent
64fb09ca2d
commit
7c1dd54895
13 changed files with 108 additions and 113 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue