aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJivin <[email protected]>2022-11-20 09:55:17 -0500
committerJivin <[email protected]>2022-11-20 09:55:17 -0500
commit24620c0a07b6f1a2b76154ce50905db837326aef (patch)
tree60923964701e9984bdfa92347c2ec7860c29c52f /libs
parentfa2b42db7643a779398bdffe605e313c8e1085e3 (diff)
downloadrustdesk-server-24620c0a07b6f1a2b76154ce50905db837326aef.tar.gz
rustdesk-server-24620c0a07b6f1a2b76154ce50905db837326aef.zip
fix build issue 'error: non-binding let on a synchronization lock'
Diffstat (limited to 'libs')
-rw-r--r--libs/hbb_common/src/config.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs
index ea7dd6d..c3a502b 100644
--- a/libs/hbb_common/src/config.rs
+++ b/libs/hbb_common/src/config.rs
@@ -693,7 +693,7 @@ const PEERS: &str = "peers";
impl PeerConfig {
pub fn load(id: &str) -> PeerConfig {
- let _ = CONFIG.read().unwrap(); // for lock
+ let _unused = CONFIG.read().unwrap(); // for lock
match confy::load_path(&Self::path(id)) {
Ok(config) => config,
Err(err) => {
@@ -704,7 +704,7 @@ impl PeerConfig {
}
pub fn store(&self, id: &str) {
- let _ = CONFIG.read().unwrap(); // for lock
+ let _unused = CONFIG.read().unwrap(); // for lock
if let Err(err) = confy::store_path(Self::path(id), self) {
log::error!("Failed to store config: {}", err);
}
@@ -845,7 +845,7 @@ pub struct LanPeers {
impl LanPeers {
pub fn load() -> LanPeers {
- let _ = CONFIG.read().unwrap(); // for lock
+ let _unused = CONFIG.read().unwrap(); // for lock
match confy::load_path(&Config::file_("_lan_peers")) {
Ok(peers) => peers,
Err(err) => {