diff options
author | linbingquan <695601626@qq.com> | 2022-12-18 06:20:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-17 23:20:15 +0100 |
commit | f46df3e35940fc78163945eed33e58fafed0b06b (patch) | |
tree | c22233bf2019a254045ad0af533225d3f02a402f /cli/args/mod.rs | |
parent | f2c9cc500c84a3c6051823cd3ae33d6b4c1f6266 (diff) |
chore: update to Rust 1.66.0 (#17078)
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r-- | cli/args/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs index f936f9c25..09690412d 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -150,7 +150,7 @@ pub fn get_root_cert_store( } else { PathBuf::from(ca_file) }; - let certfile = std::fs::File::open(&ca_file)?; + let certfile = std::fs::File::open(ca_file)?; let mut reader = BufReader::new(certfile); match rustls_pemfile::certs(&mut reader) { @@ -720,7 +720,7 @@ mod test { let import_map_path = std::env::current_dir().unwrap().join("import-map.json"); let expected_specifier = - ModuleSpecifier::from_file_path(&import_map_path).unwrap(); + ModuleSpecifier::from_file_path(import_map_path).unwrap(); assert!(actual.is_ok()); let actual = actual.unwrap(); assert_eq!(actual, Some(expected_specifier)); |