rust-lang/rust-clippy

`bool_comparison` should not fire when testing for false

Open

#1.043 aberto em 26 de jun. de 2016

Ver no GitHub
 (4 comments) (2 reactions) (0 assignees)Rust (1.391 forks)batch import
A-lintL-styleS-needs-discussiongood first issue

Métricas do repositório

Stars
 (10.406 stars)
Métricas de merge de PR
 (Mesclagem média 19d 22h) (113 fundiu PRs em 30d)

Description

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.

Guia do colaborador