From 262f8e9da5549cc0e364a11f623af4aa7695b803 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 18 Nov 2022 12:54:01 -0500 Subject: [PATCH] chore: fix windows-only clippy errors (#16703) --- cli/fs_util.rs | 2 +- runtime/ops/fs.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/fs_util.rs b/cli/fs_util.rs index dbebc75c08..552f4c9393 100644 --- a/cli/fs_util.rs +++ b/cli/fs_util.rs @@ -456,7 +456,7 @@ pub fn symlink_dir(oldpath: &Path, newpath: &Path) -> Result<(), AnyError> { #[cfg(not(unix))] { use std::os::windows::fs::symlink_dir; - symlink_dir(&oldpath, &newpath).map_err(err_mapper)?; + symlink_dir(oldpath, newpath).map_err(err_mapper)?; } Ok(()) } diff --git a/runtime/ops/fs.rs b/runtime/ops/fs.rs index e48e365bef..ebd24ebe05 100644 --- a/runtime/ops/fs.rs +++ b/runtime/ops/fs.rs @@ -653,7 +653,7 @@ fn raw_chmod(path: &Path, _raw_mode: u32) -> Result<(), AnyError> { #[cfg(not(unix))] { // Still check file/dir exists on Windows - let _metadata = std::fs::metadata(&path).map_err(err_mapper)?; + let _metadata = std::fs::metadata(path).map_err(err_mapper)?; Err(not_supported()) } }