1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

chore: fix recent windows only clippy issues (#15993)

This commit is contained in:
David Sherret 2022-09-22 10:33:52 -04:00 committed by GitHub
parent b20431c5f9
commit a43e9bebeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();