diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2020-09-16 14:28:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-16 14:28:07 -0400 |
| commit | 104aebdfb5d01f7482bacef6d58c2ce16da44334 (patch) | |
| tree | b5f815e9d8cf8fb19eda5d965ef072a5836ae887 /cli/permissions.rs | |
| parent | c3ef358c01956bfa44a7427a2548943c3f045138 (diff) | |
Re-export deno_core::url (#7525)
Also re-exports deno_core::futures and deno_core::serde_json but these are not yet used in the CLI.
Diffstat (limited to 'cli/permissions.rs')
| -rw-r--r-- | cli/permissions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/permissions.rs b/cli/permissions.rs index f25b301cb..1864e4f37 100644 --- a/cli/permissions.rs +++ b/cli/permissions.rs @@ -6,6 +6,7 @@ use crate::fs::resolve_from_cwd; use deno_core::error::custom_error; use deno_core::error::uri_error; use deno_core::error::AnyError; +use deno_core::url; use serde::Deserialize; use std::collections::HashSet; use std::env::current_dir; @@ -20,7 +21,6 @@ use std::sync::atomic::AtomicBool; use std::sync::atomic::Ordering; #[cfg(test)] use std::sync::Mutex; -use url::Url; const PERMISSION_EMOJI: &str = "⚠️"; @@ -259,7 +259,7 @@ impl Permissions { } let url: &str = url.unwrap(); // If url is invalid, then throw a TypeError. - let parsed = Url::parse(url)?; + let parsed = url::Url::parse(url)?; // The url may be parsed correctly but still lack a host, i.e. "localhost:235" or "mailto:someone@somewhere.com" or "file:/1.txt" // Note that host:port combos are parsed as scheme:path if parsed.host().is_none() { |
