From 389894642d56fd24b914451b4eb3e78941124e95 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 22 Sep 2022 10:33:52 -0400 Subject: [PATCH] chore: fix recent windows only clippy issues (#15993) --- runtime/ops/fs.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/ops/fs.rs b/runtime/ops/fs.rs index 1fc453e2bd..7c3bb3df6a 100644 --- a/runtime/ops/fs.rs +++ b/runtime/ops/fs.rs @@ -638,8 +638,8 @@ fn raw_chmod(path: &Path, _raw_mode: u32) -> Result<(), AnyError> { fn op_chown_sync( state: &mut OpState, path: String, - uid: Option, - gid: Option, + #[cfg_attr(windows, allow(unused_variables))] uid: Option, + #[cfg_attr(windows, allow(unused_variables))] gid: Option, ) -> Result<(), AnyError> { let path = Path::new(&path).to_path_buf(); state.borrow_mut::().write.check(&path)?; @@ -668,8 +668,8 @@ fn op_chown_sync( async fn op_chown_async( state: Rc>, path: String, - uid: Option, - gid: Option, + #[cfg_attr(windows, allow(unused_variables))] uid: Option, + #[cfg_attr(windows, allow(unused_variables))] gid: Option, ) -> Result<(), AnyError> { let path = Path::new(&path).to_path_buf();