summaryrefslogtreecommitdiff
path: root/cli/args/import_map.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-04-18 21:43:28 -0400
committerGitHub <noreply@github.com>2024-04-19 01:43:28 +0000
commitc497e766f1a136c674d8be2467eb103c85fe1d44 (patch)
treea6b84f9950f2bdca734d8d402b60d44f99605965 /cli/args/import_map.rs
parent8e77f091ad9b1f8b3dc2eaf8b4a2be2560a67354 (diff)
refactor: move redirect handling into deno_graph (#23444)
Diffstat (limited to 'cli/args/import_map.rs')
-rw-r--r--cli/args/import_map.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/args/import_map.rs b/cli/args/import_map.rs
index 517c3bff6..d06c4d385 100644
--- a/cli/args/import_map.rs
+++ b/cli/args/import_map.rs
@@ -28,7 +28,7 @@ pub async fn resolve_import_map(
let specifier = specifier.clone();
async move {
let file = file_fetcher
- .fetch(&specifier, PermissionsContainer::allow_all())
+ .fetch(&specifier, &PermissionsContainer::allow_all())
.await?
.into_text_decoded()?;
Ok(file.source.to_string())
@@ -62,7 +62,7 @@ async fn resolve_import_map_from_specifier(
serde_json::from_str(&data_url_text)?
} else {
let file = file_fetcher
- .fetch(&specifier, PermissionsContainer::allow_all())
+ .fetch(&specifier, &PermissionsContainer::allow_all())
.await?
.into_text_decoded()?;
serde_json::from_str(&file.source)?