summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-09-22 10:33:52 -0400
committerGitHub <noreply@github.com>2022-09-22 10:33:52 -0400
commita43e9bebebfc2fef0e4f035a4e6f78f5dd80219a (patch)
tree05b496d4551b7378f28ee201771d9fafef9c7bbd
parentb20431c5f995de47ccffba92c0c9f53f8eefa1fd (diff)
chore: fix recent windows only clippy issues (#15993)
-rw-r--r--runtime/ops/fs.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/ops/fs.rs b/runtime/ops/fs.rs
index 1fc453e2b..7c3bb3df6 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<u32>,
- gid: Option<u32>,
+ #[cfg_attr(windows, allow(unused_variables))] uid: Option<u32>,
+ #[cfg_attr(windows, allow(unused_variables))] gid: Option<u32>,
) -> Result<(), AnyError> {
let path = Path::new(&path).to_path_buf();
state.borrow_mut::<Permissions>().write.check(&path)?;
@@ -668,8 +668,8 @@ fn op_chown_sync(
async fn op_chown_async(
state: Rc<RefCell<OpState>>,
path: String,
- uid: Option<u32>,
- gid: Option<u32>,
+ #[cfg_attr(windows, allow(unused_variables))] uid: Option<u32>,
+ #[cfg_attr(windows, allow(unused_variables))] gid: Option<u32>,
) -> Result<(), AnyError> {
let path = Path::new(&path).to_path_buf();