diff options
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cli/main.rs b/cli/main.rs index 0cbf61c61..578ea6846 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -70,7 +70,6 @@ use deno_doc as doc; use deno_doc::parser::DocFileLoader; use deno_runtime::ops::worker_host::CreateWebWorkerCb; use deno_runtime::permissions::Permissions; -use deno_runtime::permissions::PermissionsOptions; use deno_runtime::web_worker::WebWorker; use deno_runtime::web_worker::WebWorkerOptions; use deno_runtime::worker::MainWorker; @@ -87,23 +86,6 @@ use std::pin::Pin; use std::rc::Rc; use std::sync::Arc; -impl From<Flags> for PermissionsOptions { - fn from(flags: Flags) -> Self { - Self { - allow_env: flags.allow_env, - allow_hrtime: flags.allow_hrtime, - allow_net: flags.allow_net, - allow_plugin: flags.allow_plugin, - allow_read: flags.allow_read, - allow_run: flags.allow_run, - allow_write: flags.allow_write, - net_allowlist: flags.net_allowlist, - read_allowlist: flags.read_allowlist, - write_allowlist: flags.write_allowlist, - } - } -} - fn create_web_worker_callback( program_state: Arc<ProgramState>, ) -> Arc<CreateWebWorkerCb> { |