fix test_hbb and bump version 1.1.8

This commit is contained in:
rustdesk
2023-06-08 13:42:34 +08:00
parent 482d7fb8cc
commit 3a7904fa8e
5 changed files with 106 additions and 55 deletions

View File

@@ -337,14 +337,13 @@ impl Config2 {
pub fn load_path<T: serde::Serialize + serde::de::DeserializeOwned + Default + std::fmt::Debug>(
file: PathBuf,
) -> T {
let cfg = match confy::load_path(file) {
match confy::load_path(file) {
Ok(config) => config,
Err(err) => {
log::error!("Failed to load config: {}", err);
T::default()
}
};
cfg
}
}
#[inline]