Skip to content

Commit 4fcd0a8

Browse files
committed
Address clippy lint for mem::drop
1 parent 486e65b commit 4fcd0a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/logger.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ impl<'boot> log::Log for Logger {
7171
// `ignore-logger-error` cargo feature. If you do so, logging errors
7272
// will be ignored by `uefi-rs` instead.
7373
//
74-
if cfg!(feature = "ignore-logger-errors") {
75-
core::mem::drop(result)
76-
} else {
74+
if !cfg!(feature = "ignore-logger-errors") {
7775
result.unwrap()
7876
}
7977
}

0 commit comments

Comments
 (0)