diff options
author | Bert Belder <bertbelder@gmail.com> | 2019-07-08 23:04:07 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2019-07-08 23:04:07 +0200 |
commit | f4c9b314056b002a01ac0bd5fc33f6503aba5ab2 (patch) | |
tree | fe766a63210f83aa4aa8e38cb982630e36fc3420 /cli/import_map.rs | |
parent | 72d9045528ad69ec32d7de9707cea65fab9f405e (diff) |
core: replace ModuleSpecifier::to_url() by as_url()
Diffstat (limited to 'cli/import_map.rs')
-rw-r--r-- | cli/import_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/import_map.rs b/cli/import_map.rs index 44525f7a2..1f136a3e9 100644 --- a/cli/import_map.rs +++ b/cli/import_map.rs @@ -384,7 +384,7 @@ impl ImportMap { let address = address_vec.first().unwrap(); let after_prefix = &normalized_specifier[specifier_key.len()..]; - let base_url = address.to_url(); + let base_url = address.as_url(); if let Ok(url) = base_url.join(after_prefix) { debug!("Specifier {:?} was mapped to {:?} (via prefix specifier key {:?}).", normalized_specifier, url, address); return Ok(Some(ModuleSpecifier::from(url))); |