mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
chore: explicitly type state.put
for permissions (#22881)
This commit is contained in:
parent
485b4c6301
commit
f50678b4f3
2 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
},
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue