mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
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:
committed by
Charlie Marsh
parent
15f63494a7
commit
9dc788d089
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user