diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-06-25 22:14:36 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-07-08 13:07:32 +0200 |
commit | 72d9045528ad69ec32d7de9707cea65fab9f405e (patch) | |
tree | 7492b1109462be8512269a2a7041c02f4038e56e /cli/state.rs | |
parent | 9b1997b8b6f82e17e42c43aae3621e2b932f5843 (diff) |
cli: refactor deno_dir to use Url instead of String
Diffstat (limited to 'cli/state.rs')
-rw-r--r-- | cli/state.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/state.rs b/cli/state.rs index 056226511..9f6c59969 100644 --- a/cli/state.rs +++ b/cli/state.rs @@ -126,11 +126,8 @@ pub fn fetch_module_meta_data_and_maybe_compile_async( state_ .dir - .fetch_module_meta_data_async( - &module_specifier.to_string(), - use_cache, - no_fetch, - ).and_then(move |out| { + .fetch_module_meta_data_async(&module_specifier, use_cache, no_fetch) + .and_then(move |out| { if out.media_type == msg::MediaType::TypeScript && !out.has_output_code_and_source_map() { |