mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Fix a bunch of clippy lints
This commit is contained in:
parent
b1ca3d1cdf
commit
6b215f38ee
58 changed files with 281 additions and 356 deletions
|
@ -61,9 +61,9 @@ pub fn parse_hostsfile(hostsfile_content: &str) -> Box<HashMap<String, String>>
|
|||
|
||||
pub fn replace_hosts(url: &Url) -> Url {
|
||||
unsafe {
|
||||
HOST_TABLE.map(|host_table| {
|
||||
HOST_TABLE.map_or_else(|| url.clone(), |host_table| {
|
||||
host_replacement(host_table, url)
|
||||
}).unwrap_or_else(|| url.clone())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue