From 56cd8f774112a132d70e9e0f0d9e8471d00ba79b Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Wed, 16 Sep 2020 21:55:18 +0300 Subject: [PATCH] Explicitly ignore results to remove warnings --- common/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/lib.rs b/common/src/lib.rs index 5e6d642..71ec3de 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -33,10 +33,10 @@ pub mod config { if let Some(config_path_buf) = config_path_option.clone() { if metadata(config_path_buf.clone()).map(|m| m.is_file()).unwrap_or(false) { - config.load(config_path_buf.to_str().unwrap()); + let _ = config.load(config_path_buf.to_str().unwrap()); } else { - File::create(config_path_buf); - } + let _ = File::create(config_path_buf); + }; } let config_path = config_path_option.map(|p| p.to_str().unwrap().to_string());