diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-11-17 22:59:10 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 02:59:10 +0100 |
commit | 238590aa9fdfe2aac04bb96abad2f2d2feb3101a (patch) | |
tree | f8fa04e39baecb5460076c1329ca38ae31f440b6 /cli/npm/cache.rs | |
parent | 483c10c94b8a5de49cee4c4b9a3ce74726501c8a (diff) |
chore: use Rust 1.65.0 (#16688)
Diffstat (limited to 'cli/npm/cache.rs')
-rw-r--r-- | cli/npm/cache.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/npm/cache.rs b/cli/npm/cache.rs index b052f89cd..2ca597bd7 100644 --- a/cli/npm/cache.rs +++ b/cli/npm/cache.rs @@ -78,7 +78,7 @@ pub fn with_folder_sync_lock( match inner(output_folder, action) { Ok(()) => Ok(()), Err(err) => { - if let Err(remove_err) = fs::remove_dir_all(&output_folder) { + if let Err(remove_err) = fs::remove_dir_all(output_folder) { if remove_err.kind() != std::io::ErrorKind::NotFound { bail!( concat!( @@ -156,7 +156,7 @@ impl ReadonlyNpmCache { root_dir: &Path, ) -> Result<PathBuf, AnyError> { if !root_dir.exists() { - std::fs::create_dir_all(&root_dir) + std::fs::create_dir_all(root_dir) .with_context(|| format!("Error creating {}", root_dir.display()))?; } Ok(crate::fs_util::canonicalize_path(root_dir)?) |