summaryrefslogtreecommitdiff
path: root/runtime/ops/worker_host.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-07 17:37:37 -0400
committerGitHub <noreply@github.com>2023-03-07 22:37:37 +0100
commitb32a6f8ad20e6e4b0cc24b8256c08192b4899844 (patch)
tree76201de6fe376b658b99228c8d2ca1618181ee57 /runtime/ops/worker_host.rs
parent0e3affcd5b932e1b1ecc37934a0625a0d4d0d62c (diff)
refactor(core): don't use Result in ExtensionBuilder::state (#18066)
There's no point for this API to expect result. If something fails it should result in a panic during build time to signal to embedder that setup is wrong.
Diffstat (limited to 'runtime/ops/worker_host.rs')
-rw-r--r--runtime/ops/worker_host.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/runtime/ops/worker_host.rs b/runtime/ops/worker_host.rs
index 71009be8f..6007a3260 100644
--- a/runtime/ops/worker_host.rs
+++ b/runtime/ops/worker_host.rs
@@ -111,8 +111,6 @@ pub fn init(
let format_js_error_fn_holder =
FormatJsErrorFnHolder(format_js_error_fn.clone());
state.put::<FormatJsErrorFnHolder>(format_js_error_fn_holder);
-
- Ok(())
})
.ops(vec![
op_create_worker::decl(),