diff options
Diffstat (limited to 'ext/fs/std_fs.rs')
-rw-r--r-- | ext/fs/std_fs.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/fs/std_fs.rs b/ext/fs/std_fs.rs index 28c375ff1..49d113c01 100644 --- a/ext/fs/std_fs.rs +++ b/ext/fs/std_fs.rs @@ -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 } |