From f50678b4f3ace22cbc770cbda183e9cb374bbabb Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Tue, 12 Mar 2024 21:34:48 -0700 Subject: [PATCH] chore: explicitly type `state.put` for permissions (#22881) --- runtime/web_worker.rs | 2 +- runtime/worker.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index eefb490231..07a8b374f0 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -390,7 +390,7 @@ impl WebWorker { enable_testing_features: bool, }, state = |state, options| { - state.put(options.permissions.0.clone()); + state.put::(options.permissions.0.clone()); state.put::(options.permissions); state.put(ops::TestingFeaturesEnabled(options.enable_testing_features)); }, diff --git a/runtime/worker.rs b/runtime/worker.rs index 20bd37afbf..1e3acd4e9e 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -316,7 +316,7 @@ impl MainWorker { }, state = |state, options| { // Save the permissions container and the wrapper. - state.put(options.permissions.0.clone()); + state.put::(options.permissions.0.clone()); // This is temporary until we migrate all exts/ to the deno_permissions crate. state.put::(options.permissions); state.put(ops::TestingFeaturesEnabled(options.enable_testing_features));