Explicitly ignore results to remove warnings

This commit is contained in:
Alexander Bantyev 2020-09-16 21:55:18 +03:00
parent d56a024940
commit 56cd8f7741
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -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());