Skip to content

Commit

Permalink
chore: explicitly type state.put for permissions (#22881)
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Mar 13, 2024
1 parent 485b4c6 commit f50678b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/web_worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
},
Expand Down
2 changes: 1 addition & 1 deletion runtime/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 316,7 @@ impl MainWorker {
},
state = |state, options| {
// Save the permissions container and the wrapper.
state.put(options.permissions.0.clone());
state.put::<deno_permissions::PermissionsContainer>(options.permissions.0.clone());
// This is temporary until we migrate all exts/ to the deno_permissions crate.
state.put::<PermissionsContainer>(options.permissions);
state.put(ops::TestingFeaturesEnabled(options.enable_testing_features));
Expand Down

0 comments on commit f50678b

Please sign in to comment.