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));