Skip to content

Commit

Permalink
chore: fix windows clippy errors (denoland#18670)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Apr 12, 2023
1 parent 05c393b commit 66a22d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/fs/std_fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -812,24 +812,24 @@ impl File for StdFileResource {
.await
}

fn chmod_sync(self: Rc<Self>, mode: u32) -> FsResult<()> {
fn chmod_sync(self: Rc<Self>, _mode: u32) -> FsResult<()> {
#[cfg(unix)]
{
sync(self, |file| {
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))]
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)]
{
nonblocking(self, move |file| {
use std::os::unix::prelude::PermissionsExt;
file.set_permissions(fs::Permissions::from_mode(mode))
file.set_permissions(fs::Permissions::from_mode(_mode))
})
.await
}
Expand Down

0 comments on commit 66a22d2

Please sign in to comment.