mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-06 06:48:20 +00:00
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.
|
||
|---|---|---|
| .. | ||
| clipboard | ||
| enigo | ||
| hbb_common | ||
| portable | ||
| scrap | ||
| simple_rc | ||
| virtual_display | ||