diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-11-17 22:59:10 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 02:59:10 +0100 |
commit | 238590aa9fdfe2aac04bb96abad2f2d2feb3101a (patch) | |
tree | f8fa04e39baecb5460076c1329ca38ae31f440b6 /runtime/ops | |
parent | 483c10c94b8a5de49cee4c4b9a3ce74726501c8a (diff) |
chore: use Rust 1.65.0 (#16688)
Diffstat (limited to 'runtime/ops')
-rw-r--r-- | runtime/ops/fs.rs | 4 | ||||
-rw-r--r-- | runtime/ops/worker_host.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/ops/fs.rs b/runtime/ops/fs.rs index a7e515d7b..e48e365be 100644 --- a/runtime/ops/fs.rs +++ b/runtime/ops/fs.rs @@ -271,7 +271,7 @@ async fn op_write_file_async( None => None, }; let (path, open_options) = open_helper( - &mut *state.borrow_mut(), + &mut state.borrow_mut(), &path, mode, Some(&write_open_options(create, append)), @@ -646,7 +646,7 @@ fn raw_chmod(path: &Path, _raw_mode: u32) -> Result<(), AnyError> { { use std::os::unix::fs::PermissionsExt; let permissions = PermissionsExt::from_mode(_raw_mode); - std::fs::set_permissions(&path, permissions).map_err(err_mapper)?; + std::fs::set_permissions(path, permissions).map_err(err_mapper)?; Ok(()) } // TODO Implement chmod for Windows (#4357) diff --git a/runtime/ops/worker_host.rs b/runtime/ops/worker_host.rs index 2f07e48b2..72d466a94 100644 --- a/runtime/ops/worker_host.rs +++ b/runtime/ops/worker_host.rs @@ -184,7 +184,7 @@ fn op_create_worker( state.put::<WorkerId>(worker_id.next().unwrap()); let module_specifier = deno_core::resolve_url(&specifier)?; - let worker_name = args_name.unwrap_or_else(|| "".to_string()); + let worker_name = args_name.unwrap_or_default(); let (handle_sender, handle_receiver) = std::sync::mpsc::sync_channel::< Result<SendableWebWorkerHandle, AnyError>, |