From 09bebe5dd7ad1f637f9767a2e12d838949afc3d7 Mon Sep 17 00:00:00 2001 From: Laurent Louf Date: Sat, 25 Jul 2020 13:51:45 +0200 Subject: [PATCH] Fix types --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4dc88b96..af41f961 100644 --- a/src/main.rs +++ b/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));