simple refact

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-07-16 09:52:32 +08:00
parent fa0b1436c2
commit 77231f6538

View File

@ -402,7 +402,7 @@ pub fn load_path<T: serde::Serialize + serde::de::DeserializeOwned + Default + s
let cfg = match confy::load_path(&file) {
Ok(config) => config,
Err(err) => {
log::error!("Failed to load config '{}': {}", file.as_os_str().to_str().unwrap_or(""), err);
log::error!("Failed to load config '{}': {}", file.display(), err);
T::default()
}
};