mirror of
https://github.com/denoland/deno
synced 2024-08-27 12:00:17 +00:00
chore: fix windows-only clippy errors (#16703)
This commit is contained in:
parent
1e512d10b3
commit
6962808f4b
|
@ -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(())
|
||||
}
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue