1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

chore: fix windows-only clippy errors (#16703)

This commit is contained in:
David Sherret 2022-11-18 12:54:01 -05:00 committed by GitHub
parent 1e512d10b3
commit 6962808f4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -456,7 +456,7 @@ pub fn symlink_dir(oldpath: &Path, newpath: &Path) -> Result<(), AnyError> {
#[cfg(not(unix))] #[cfg(not(unix))]
{ {
use std::os::windows::fs::symlink_dir; use std::os::windows::fs::symlink_dir;
symlink_dir(&oldpath, &newpath).map_err(err_mapper)?; symlink_dir(oldpath, newpath).map_err(err_mapper)?;
} }
Ok(()) Ok(())
} }

View file

@ -653,7 +653,7 @@ fn raw_chmod(path: &Path, _raw_mode: u32) -> Result<(), AnyError> {
#[cfg(not(unix))] #[cfg(not(unix))]
{ {
// Still check file/dir exists on Windows // 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()) Err(not_supported())
} }
} }