-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
Given a call that expects a closure that accepts arguments being passed a closure that takes no arguments:
fn main() {
Some(()).into_iter().filter(|| false).collect();
}
we might want to suggest modifying the closure to take the argument and ignore it:
fn main() {
Some(()).into_iter().filter(|_| false).collect();
}
How often would this suggestion be inappropriate?
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints