mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Cleanup code that was warned by rust-clippy
This commit is contained in:
parent
9c1cb9f61e
commit
81e034885b
9 changed files with 273 additions and 284 deletions
|
@ -74,7 +74,7 @@ pub fn start_sending_sniffed_opt(start_chan: LoadConsumer, mut metadata: Metadat
|
|||
if let Some(ref headers) = metadata.headers {
|
||||
if let Some(ref raw_content_type) = headers.get_raw("content-type") {
|
||||
if raw_content_type.len() > 0 {
|
||||
let ref last_raw_content_type = raw_content_type[raw_content_type.len() - 1];
|
||||
let last_raw_content_type = &raw_content_type[raw_content_type.len() - 1];
|
||||
check_for_apache_bug = apache_bug_predicate(last_raw_content_type)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue