mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
chore: fix windows-only clippy errors (#16703)
This commit is contained in:
parent
1e512d10b3
commit
6962808f4b
2 changed files with 2 additions and 2 deletions
|
@ -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