diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2020-11-30 20:35:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 20:35:12 +0100 |
commit | 6aa692fece232b83bdfd4ec56150fb5264020697 (patch) | |
tree | 9e9c10e9cc6482ca468d68ded39e6ec40187082f /cli/tools/installer.rs | |
parent | c7276e15e54b43aa6649ca149d92811059c6415f (diff) |
feat: deno compile (#8539)
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r-- | cli/tools/installer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs index e0a99873a..f2f5562c2 100644 --- a/cli/tools/installer.rs +++ b/cli/tools/installer.rs @@ -108,7 +108,7 @@ fn get_installer_root() -> Result<PathBuf, io::Error> { Ok(home_path) } -fn infer_name_from_url(url: &Url) -> Option<String> { +pub fn infer_name_from_url(url: &Url) -> Option<String> { let path = PathBuf::from(url.path()); let mut stem = match path.file_stem() { Some(stem) => stem.to_string_lossy().to_string(), |