diff options
Diffstat (limited to 'components/net/hosts.rs')
-rw-r--r-- | components/net/hosts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/hosts.rs b/components/net/hosts.rs index 8261c91415c..6a59e04c76a 100644 --- a/components/net/hosts.rs +++ b/components/net/hosts.rs @@ -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(); |