Fix clippy::let_underscore_drop (pedantic)

https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_drop

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2022-11-21 18:06:42 -08:00
committed by Charlie Marsh
parent 15f63494a7
commit 9dc788d089

View File

@@ -381,7 +381,7 @@ fn inner_main() -> Result<ExitCode> {
// Check for updates if we're in a non-silent log level.
#[cfg(feature = "update-informer")]
if !is_stdin && log_level >= LogLevel::Default && atty::is(atty::Stream::Stdout) {
let _ = updates::check_for_updates();
drop(updates::check_for_updates());
}
if messages.iter().any(|message| !message.fixed) && !cli.exit_zero {