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/info.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/info.rs')
| -rw-r--r-- | cli/info.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/info.rs b/cli/info.rs index 7b5c0151b..62ec5c16e 100644 --- a/cli/info.rs +++ b/cli/info.rs @@ -408,6 +408,7 @@ mod test { use crate::ast::Location; use crate::media_type::MediaType; use crate::module_graph::ImportDescriptor; + use deno_core::url::Url; #[test] fn human_size_test() { @@ -441,9 +442,8 @@ mod test { imports: Vec<ModuleSpecifier>, redirect: Option<ModuleSpecifier>, ) -> (ModuleGraphFile, ModuleSpecifier) { - let spec = ModuleSpecifier::from( - url::Url::parse(&format!("http://{}", name)).unwrap(), - ); + let spec = + ModuleSpecifier::from(Url::parse(&format!("http://{}", name)).unwrap()); let file = ModuleGraphFile { filename: "name".to_string(), imports: imports |
