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/worker_host.rs | |
| parent | 483c10c94b8a5de49cee4c4b9a3ce74726501c8a (diff) | |
chore: use Rust 1.65.0 (#16688)
Diffstat (limited to 'runtime/ops/worker_host.rs')
| -rw-r--r-- | runtime/ops/worker_host.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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>, |
