rustdesk/libs/hbb_common/src
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
..
platform fix linux uid username mismatch 2022-10-17 08:06:34 -07:00
bytes_codec.rs source code 2021-03-29 15:59:14 +08:00
compress.rs source code 2021-03-29 15:59:14 +08:00
config.rs hbb_common: Fix CONFIG locks unintentionally not acquired 2022-11-01 15:08:21 +01:00
fs.rs Merge master 2022-08-04 17:24:02 +08:00
lib.rs video record 2022-09-22 09:57:52 +08:00
password_security.rs avoid changing id manually 2022-08-01 18:06:49 +08:00
quic.rs source code 2021-03-29 15:59:14 +08:00
socket_client.rs more error 2022-06-12 22:07:04 +08:00
tcp.rs fix tcp 2022-07-12 23:32:37 +08:00
udp.rs lan_discovery_WOL: fix udp set_nonblocking twice and lan refactor 2022-07-15 20:39:42 +08:00