mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fix types
This commit is contained in:
parent
77cb66d9a3
commit
09bebe5dd7
1 changed files with 2 additions and 2 deletions
|
@ -250,8 +250,8 @@ fn setup(args: &[String]) -> Setup {
|
||||||
let use_audio_cache = !matches.opt_present("disable-audio-cache");
|
let use_audio_cache = !matches.opt_present("disable-audio-cache");
|
||||||
|
|
||||||
let cache_directory = matches.opt_str("c").unwrap_or(String::from(""));
|
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 system_cache_directory = matches.opt_str("system-cache").unwrap_or(String::from(cache_directory.clone()));
|
||||||
let cache = Cache::new(
|
let cache = Some(Cache::new(
|
||||||
PathBuf::from(cache_directory),
|
PathBuf::from(cache_directory),
|
||||||
PathBuf::from(system_cache_directory),
|
PathBuf::from(system_cache_directory),
|
||||||
use_audio_cache));
|
use_audio_cache));
|
||||||
|
|
Loading…
Reference in a new issue