diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2021-04-12 04:15:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 11:15:43 +0900 |
commit | fefe93c91b63e35bf88f5f432f0cca09948d0623 (patch) | |
tree | bf8f3e031cf558161277e01e4ca2e2c7817ef6ab /cli/lsp/registries.rs | |
parent | 8b49d948f58e0665e87e63f7e154ab53fa60a939 (diff) |
feat(runtime/permissions): prompt fallback (#9376)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/lsp/registries.rs')
-rw-r--r-- | cli/lsp/registries.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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!( |