len_without_is_empty
fires on setters/builders
#7191
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
Lint name:
len_without_is_empty
I tried this code:
I expected to see this happen: no warning, because
len
is a setter.Instead, this happened:
Actual code in the wild:
https://github.com/tensorflow/tensorboard/blob/66e05f7cace53fec4a53f70144419a28f36633c5/tensorboard/data/server/commit.rs#L358
This is buggy in 0.1.52 (88f19c6), but fixed in 0.1.53 beta (4bac69d),
presumably due to #6980. Just filing for posterity.
Meta
The text was updated successfully, but these errors were encountered: