rust-lang/rust-clippy
Auf GitHub ansehen`bool_comparison` should not fire when testing for false
Open
#1.043 geöffnet am 26. Juni 2016
A-lintL-styleS-needs-discussiongood first issue
Repository-Metriken
- Stars
- (10.406 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 19T 22h) (113 gemergte PRs in 30 T)
Beschreibung
I think that the bool_comparison lint should not fire when the comparison is var == false because, at least I, find that version much easier to see when quickly scrolling through the code than the !var as it is too simple to miss that single !.
However, I'm just putting this here for discussion I'll go turn the lint off in that specific place.
Enjoy your rusty endeavors.