mirror of
https://github.com/denoland/deno.git
synced 2025-02-12 16:59:32 -05:00
chore: fix recent windows only clippy issues (#15993)
This commit is contained in:
parent
14ad75f0ae
commit
389894642d
1 changed files with 4 additions and 4 deletions
|
@ -638,8 +638,8 @@ fn raw_chmod(path: &Path, _raw_mode: u32) -> Result<(), AnyError> {
|
||||||
fn op_chown_sync(
|
fn op_chown_sync(
|
||||||
state: &mut OpState,
|
state: &mut OpState,
|
||||||
path: String,
|
path: String,
|
||||||
uid: Option<u32>,
|
#[cfg_attr(windows, allow(unused_variables))] uid: Option<u32>,
|
||||||
gid: Option<u32>,
|
#[cfg_attr(windows, allow(unused_variables))] gid: Option<u32>,
|
||||||
) -> Result<(), AnyError> {
|
) -> Result<(), AnyError> {
|
||||||
let path = Path::new(&path).to_path_buf();
|
let path = Path::new(&path).to_path_buf();
|
||||||
state.borrow_mut::<Permissions>().write.check(&path)?;
|
state.borrow_mut::<Permissions>().write.check(&path)?;
|
||||||
|
@ -668,8 +668,8 @@ fn op_chown_sync(
|
||||||
async fn op_chown_async(
|
async fn op_chown_async(
|
||||||
state: Rc<RefCell<OpState>>,
|
state: Rc<RefCell<OpState>>,
|
||||||
path: String,
|
path: String,
|
||||||
uid: Option<u32>,
|
#[cfg_attr(windows, allow(unused_variables))] uid: Option<u32>,
|
||||||
gid: Option<u32>,
|
#[cfg_attr(windows, allow(unused_variables))] gid: Option<u32>,
|
||||||
) -> Result<(), AnyError> {
|
) -> Result<(), AnyError> {
|
||||||
let path = Path::new(&path).to_path_buf();
|
let path = Path::new(&path).to_path_buf();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue