diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-04-26 17:11:18 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-04-26 17:11:19 +0200 |
commit | e7389c88dd41d76aad9266a164885b6a624c953b (patch) | |
tree | df09188a868ffc0862183c9eafc887ec90dbfd34 | |
parent | 56a59b360a4a842222e95fe4fc466883810fe75c (diff) |
Clippy Fix: let_underscore_lock
Use _variable instead of _ as a variable name for lock.
Expl.: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | lib/core/libimagrt/src/logger.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/libimagrt/src/logger.rs b/lib/core/libimagrt/src/logger.rs index 73c23351..329f9f09 100644 --- a/lib/core/libimagrt/src/logger.rs +++ b/lib/core/libimagrt/src/logger.rs @@ -123,7 +123,7 @@ impl Log for ImagLogger { }, LogDestination::File(ref arc_mutex_logdest) => { // if there is an error in the lock, we cannot do anything. So we ignore it here. - let _ = arc_mutex_logdest + let _lock = arc_mutex_logdest .deref() .lock() .map(|mut logdest| { |