Browse Source

Fix types

Laurent Louf 4 years ago
parent
commit
09bebe5dd7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main.rs

+ 2 - 2
src/main.rs

@@ -250,8 +250,8 @@ fn setup(args: &[String]) -> Setup {
     let use_audio_cache = !matches.opt_present("disable-audio-cache");
 
     let cache_directory = matches.opt_str("c").unwrap_or(String::from(""));
-    let system_cache_directory = matches.opt_str("system-cache").unwrap_or(String::from(cache_directory))
-    let cache = Cache::new(
+    let system_cache_directory = matches.opt_str("system-cache").unwrap_or(String::from(cache_directory.clone()));
+    let cache = Some(Cache::new(
         PathBuf::from(cache_directory),
         PathBuf::from(system_cache_directory),
         use_audio_cache));