From 3e65975227baa511f570e8223fccda5607cf905e Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Sun, 23 Apr 2023 21:47:37 +0200 Subject: added config argument, remove devdir --- src/cache.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/cache.rs') diff --git a/src/cache.rs b/src/cache.rs index 30c9f09..44029e0 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -1,7 +1,5 @@ use std::{collections::HashMap, fs::{read_dir, copy}}; -use crate::devdir; - /// . /// /// # Panics @@ -9,7 +7,7 @@ use crate::devdir; /// Panics if . pub fn get_cached_versions(path: &str) -> HashMap { let mut versions: HashMap = HashMap::new(); - for file in read_dir(devdir(path)).unwrap() { + for file in read_dir(path).unwrap() { let path = file.unwrap().path(); if path.is_file() && path.extension().ok_or("BAH").unwrap() == "jar" { let pathstr = path.to_str().ok_or("BAH").unwrap(); -- cgit v1.2.3