Allow numbers in module_name_repetitions #12714
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
Summary
Suppose I have a module
vector
, containing aVector2
type. This seems fine to me – I can't name the type2
, after all. Howevermodule_name_repetitions
disagrees.Maybe this should apply to all short affixes more generally (one or perhaps two letters). I'm not sure.
Lint Name
module_name_repetitions
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen: [no error]
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: