#[allow(clippy::fn_params_excessive_bools)]
doesn't work on methods
#9687
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Description
Lint:
clippy::fn_params_excessive_bools
#[allow(clippy::fn_params_excessive_bools)]
works on functions and impl blocks, but not on individual methods inside an impl blocks. The problem seams to be, that methods are checked from the impl block, which doesn't process the lint attributes on special functions. See:rust-clippy/clippy_lints/src/excessive_bools.rs
Lines 162 to 171 in 967f172
Example:
Playground
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: