mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
clippy: fix warnings in components/net (#31564)
* clippy: fix some warnings in components/net * fix: review comments * fix: tidy
This commit is contained in:
parent
099bb0fa19
commit
67b277c992
22 changed files with 325 additions and 379 deletions
|
@ -19,7 +19,7 @@ lazy_static! {
|
|||
fn create_host_table() -> Option<HashMap<String, IpAddr>> {
|
||||
let path = env::var_os("HOST_FILE")?;
|
||||
|
||||
let file = File::open(&path).ok()?;
|
||||
let file = File::open(path).ok()?;
|
||||
let mut reader = BufReader::new(file);
|
||||
|
||||
let mut lines = String::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue