From fefe93c91b63e35bf88f5f432f0cca09948d0623 Mon Sep 17 00:00:00 2001 From: crowlKats <13135287+crowlKats@users.noreply.github.com> Date: Mon, 12 Apr 2021 04:15:43 +0200 Subject: feat(runtime/permissions): prompt fallback (#9376) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Yoshiya Hinosawa Co-authored-by: Bartek IwaƄczuk --- cli/lsp/registries.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/lsp') diff --git a/cli/lsp/registries.rs b/cli/lsp/registries.rs index 614d7f6e4..8a9ac20c6 100644 --- a/cli/lsp/registries.rs +++ b/cli/lsp/registries.rs @@ -347,7 +347,7 @@ impl ModuleRegistry { let specifier = origin_url.join(CONFIG_PATH)?; let file = self .file_fetcher - .fetch(&specifier, &Permissions::allow_all()) + .fetch(&specifier, &mut Permissions::allow_all()) .await?; let config: RegistryConfigurationJson = serde_json::from_str(&file.source)?; validate_config(&config)?; @@ -609,7 +609,7 @@ impl ModuleRegistry { .ok()?; let file = self .file_fetcher - .fetch(&specifier, &Permissions::allow_all()) + .fetch(&specifier, &mut Permissions::allow_all()) .await .map_err(|err| { error!( -- cgit v1.2.3