diff --git a/fuzon/src/cache.rs b/fuzon/src/cache.rs index b00241f..2ef0570 100644 --- a/fuzon/src/cache.rs +++ b/fuzon/src/cache.rs @@ -64,8 +64,8 @@ pub fn get_cache_key(sources: &Vec<&str>) -> Result { /// Get the full cross-platform cache path for a collection of source paths. pub fn get_cache_path(sources: &Vec<&str>) -> Result { let cache_dir = dirs::cache_dir().unwrap().join("fuzon"); - let cache_key = get_cache_key(&sources); - let cache_path = cache_dir.join(&cache_key?); + let cache_key = get_cache_key(&sources)?; + let cache_path = cache_dir.join(&cache_key); return Ok(cache_path); }