min_ident_chars
triggers on imported identifiers, even from the standard library
#12232
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
Uh oh!
There was an error while loading. Please reload this page.
Summary
min_ident_chars
triggers on imported identifiers, even from the standard library, even though the user may be unable to do anything about it, especially in the case of the standard library.The lint's documentation says:
If the reason for the lint is for an individual codebase to improve its readability, I don't think it makes enough sense for it to complain about identifiers from outside the codebase.
(Also, "comprise of" should be either "comprise" or "consist of".)
Lint Name
min_ident_chars
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warning about an identifier in the standard library, which I don't control
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: