aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorrustdesk <[email protected]>2023-06-08 13:42:34 +0800
committerrustdesk <[email protected]>2023-06-08 13:42:34 +0800
commit3a7904fa8e325636a85b4cc941b3d598c9651a7f (patch)
tree6ce9c49300ee1080e9175f8b908de658293cb09b /libs
parent482d7fb8ccaf671170f5a8fa93af2d91b27d583f (diff)
downloadrustdesk-server-3a7904fa8e325636a85b4cc941b3d598c9651a7f.tar.gz
rustdesk-server-3a7904fa8e325636a85b4cc941b3d598c9651a7f.zip
fix test_hbb and bump version 1.1.8
Diffstat (limited to 'libs')
-rw-r--r--libs/hbb_common/src/config.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs
index 3bfc885..099a454 100644
--- a/libs/hbb_common/src/config.rs
+++ b/libs/hbb_common/src/config.rs
@@ -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]