From fd85f840cd707c31d08fa836562127e249c9ff62 Mon Sep 17 00:00:00 2001 From: Yiyu Lin Date: Sun, 15 Jan 2023 12:06:46 +0800 Subject: refactor: clean up `unwrap` and `clone` (#17282) Co-authored-by: Divy Srivastava --- runtime/ops/web_worker/sync_fetch.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runtime/ops/web_worker') diff --git a/runtime/ops/web_worker/sync_fetch.rs b/runtime/ops/web_worker/sync_fetch.rs index 9d356f5ee..69adec051 100644 --- a/runtime/ops/web_worker/sync_fetch.rs +++ b/runtime/ops/web_worker/sync_fetch.rs @@ -57,8 +57,7 @@ pub fn op_worker_sync_fetch( let runtime = tokio::runtime::Builder::new_current_thread() .enable_io() .enable_time() - .build() - .unwrap(); + .build()?; let handles: Vec<_> = scripts .into_iter() -- cgit v1.2.3