rustdesk/libs
Saverio Miroddi b2f7e7ece5 hbb_common: Fix CONFIG locks unintentionally not acquired
Variables defined as `_` only are released immediately; see compile error:

    error: non-binding let on a synchronization lock
      --> libs/hbb_common/src/config.rs:798:13
        |
    798 |         let _ = CONFIG.read().unwrap(); // for lock
        |             ^   ^^^^^^^^^^^^^^^^^^^^^^ this binding will immediately drop the value assigned to it
        |             |
        |             this lock is not assigned to a binding and is immediately dropped
        |
        = note: `#[deny(let_underscore_lock)]` on by default

By appending a phony suffix to the variable name, the lock stays in scope.
2022-11-01 15:08:21 +01:00
..
clipboard win clipboard remove debug msg 2022-10-30 10:20:15 +08:00
enigo remove another transmute_copy 2022-10-31 23:41:51 +08:00
hbb_common hbb_common: Fix CONFIG locks unintentionally not acquired 2022-11-01 15:08:21 +01:00
portable build windows install 2022-10-11 15:14:14 +08:00
scrap add global init and update wayland error map 2022-10-17 21:55:26 +08:00
simple_rc simple_rc: win init simple resource pack 2022-05-30 13:06:48 +08:00
virtual_display simple_rc: win init simple resource pack 2022-05-30 13:06:48 +08:00