len_without_is_empty
requires allow
in the wrong place.
#1532
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
When a struct fails the
len_without_is_empty
lint, the error span shows the definition of thelen
method. However, adding#[allow(len_without_is_empty)]
on the method does nothing. Clippy wants it on the struct itself. I'd expect that the place to add#[allow]
is always on the span shown in the error.The text was updated successfully, but these errors were encountered: