diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-05-04 14:10:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 14:10:59 -0400 |
commit | 191c59a5912121fb9062aff6a08b1cc110674044 (patch) | |
tree | e8427ff7f06bcc00d3603f738e562acedd5b56e4 /cli/state.rs | |
parent | 796fc9bc3e8e4da7d53fb4617511ce4e2be22485 (diff) |
Rename DenoPermissions, add abs path asserts (#5076)
Diffstat (limited to 'cli/state.rs')
-rw-r--r-- | cli/state.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/state.rs b/cli/state.rs index 6cc915738..acf418189 100644 --- a/cli/state.rs +++ b/cli/state.rs @@ -7,7 +7,7 @@ use crate::metrics::Metrics; use crate::op_error::OpError; use crate::ops::JsonOp; use crate::ops::MinimalOp; -use crate::permissions::DenoPermissions; +use crate::permissions::Permissions; use crate::web_worker::WebWorkerHandle; use deno_core::Buf; use deno_core::ErrBox; @@ -53,7 +53,7 @@ impl Deref for State { #[cfg_attr(feature = "cargo-clippy", allow(stutter))] pub struct StateInner { pub global_state: GlobalState, - pub permissions: DenoPermissions, + pub permissions: Permissions, pub main_module: ModuleSpecifier, /// When flags contains a `.import_map_path` option, the content of the /// import map file will be resolved and set. @@ -355,7 +355,7 @@ impl State { /// If `shared_permission` is None then permissions from globa state are used. pub fn new( global_state: GlobalState, - shared_permissions: Option<DenoPermissions>, + shared_permissions: Option<Permissions>, main_module: ModuleSpecifier, debug_type: DebugType, ) -> Result<Self, ErrBox> { @@ -402,7 +402,7 @@ impl State { /// If `shared_permission` is None then permissions from globa state are used. pub fn new_for_worker( global_state: GlobalState, - shared_permissions: Option<DenoPermissions>, + shared_permissions: Option<Permissions>, main_module: ModuleSpecifier, ) -> Result<Self, ErrBox> { let seeded_rng = match global_state.flags.seed { |