From 66a22d231af0681450b84d1bdbc0b585f0a728ee Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 12 Apr 2023 13:13:06 -0400 Subject: [PATCH] chore: fix windows clippy errors (#18670) --- ext/fs/std_fs.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/fs/std_fs.rs b/ext/fs/std_fs.rs index 28c375ff12..49d113c011 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, mode: u32) -> FsResult<()> { + fn chmod_sync(self: Rc, _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, mode: u32) -> FsResult<()> { + async fn chmod_async(self: Rc, _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 }