summaryrefslogtreecommitdiff
path: root/cli/tools/installer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r--cli/tools/installer.rs2
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(),