From b9c780c8c80d1c9bcef7c8e651ed84857f2b9e0d Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 13 May 2018 09:57:11 +0200 Subject: [PATCH] Ignore errors when clearing cache, closes #91 --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index bcac470c..c62aa0cc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -209,11 +209,11 @@ fn run() -> Result<()> { assets.save()?; } else if cache_matches.is_present("clear") { print!("Clearing theme set cache ... "); - fs::remove_file(theme_set_path())?; + fs::remove_file(theme_set_path()).ok(); println!("okay"); print!("Clearing syntax set cache ... "); - fs::remove_file(syntax_set_path())?; + fs::remove_file(syntax_set_path()).ok(); println!("okay"); } else if cache_matches.is_present("config-dir") { println!("{}", config_dir());