diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-03-12 21:34:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-13 10:04:48 +0530 |
commit | f50678b4f3ace22cbc770cbda183e9cb374bbabb (patch) | |
tree | 07b6f071233b0e46d3735831adffe7279a265240 /runtime/web_worker.rs | |
parent | 485b4c6301d246f413aa9de91c883c97cd4d1235 (diff) |
chore: explicitly type `state.put` for permissions (#22881)
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r-- | runtime/web_worker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index eefb49023..07a8b374f 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::<deno_permissions::PermissionsContainer>(options.permissions.0.clone()); state.put::<PermissionsContainer>(options.permissions); state.put(ops::TestingFeaturesEnabled(options.enable_testing_features)); }, |