diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-05-07 15:57:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-07 15:57:10 +0200 |
commit | 0ba90c8c11089500b23761f126a8d08afd38a73e (patch) | |
tree | 593af7487ba351c16869b3e6eef0141be1d43adf /cli/file_fetcher.rs | |
parent | dabe88f854b7cc04518c5ff75c55fa437360a91f (diff) |
fix(imports): fix panic on unsupported scheme (#5131)
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r-- | cli/file_fetcher.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs index 1a95fd547..c4e0e4fec 100644 --- a/cli/file_fetcher.rs +++ b/cli/file_fetcher.rs @@ -93,7 +93,7 @@ impl SourceFileFetcher { Ok(file_fetcher) } - fn check_if_supported_scheme(url: &Url) -> Result<(), ErrBox> { + pub fn check_if_supported_scheme(url: &Url) -> Result<(), ErrBox> { if !SUPPORTED_URL_SCHEMES.contains(&url.scheme()) { return Err( OpError::other( |