summaryrefslogtreecommitdiff
path: root/src/cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache.rs')
-rw-r--r--src/cache.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cache.rs b/src/cache.rs
index 1e22091..8df4d2f 100644
--- a/src/cache.rs
+++ b/src/cache.rs
@@ -31,6 +31,7 @@ pub fn get_cached_versions(path: &str) -> HashMap<String, String> {
31/// Panics if . 31/// Panics if .
32pub fn copy_cached_version(version_path: &str, download_path: &str) { 32pub fn copy_cached_version(version_path: &str, download_path: &str) {
33 let versplit: Vec<&str> = version_path.split('/').collect(); 33 let versplit: Vec<&str> = version_path.split('/').collect();
34 let download = format!("{}/{}", download_path, versplit[versplit.len() - 1]); 34 let download =
35 format!("{}/{}", download_path, versplit[versplit.len() - 1]);
35 copy(version_path, download).unwrap(); 36 copy(version_path, download).unwrap();
36} 37}