mirror of
https://github.com/denoland/deno.git
synced 2025-01-09 07:39:15 -05:00
chore: fix windows clippy errors (#18670)
This commit is contained in:
parent
05c393b99b
commit
66a22d231a
1 changed files with 4 additions and 4 deletions
|
@ -812,24 +812,24 @@ impl File for StdFileResource {
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
fn chmod_sync(self: Rc<Self>, mode: u32) -> FsResult<()> {
|
fn chmod_sync(self: Rc<Self>, _mode: u32) -> FsResult<()> {
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
{
|
{
|
||||||
sync(self, |file| {
|
sync(self, |file| {
|
||||||
use std::os::unix::prelude::PermissionsExt;
|
use std::os::unix::prelude::PermissionsExt;
|
||||||
file.set_permissions(fs::Permissions::from_mode(mode))
|
file.set_permissions(fs::Permissions::from_mode(_mode))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
#[cfg(not(unix))]
|
#[cfg(not(unix))]
|
||||||
Err(FsError::NotSupported)
|
Err(FsError::NotSupported)
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn chmod_async(self: Rc<Self>, mode: u32) -> FsResult<()> {
|
async fn chmod_async(self: Rc<Self>, _mode: u32) -> FsResult<()> {
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
{
|
{
|
||||||
nonblocking(self, move |file| {
|
nonblocking(self, move |file| {
|
||||||
use std::os::unix::prelude::PermissionsExt;
|
use std::os::unix::prelude::PermissionsExt;
|
||||||
file.set_permissions(fs::Permissions::from_mode(mode))
|
file.set_permissions(fs::Permissions::from_mode(_mode))
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue