clippy 0.0.155

A bunch of helpful lints to avoid common pitfalls in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
#![feature(plugin)]
#![plugin(clippy)]

#[warn(bool_comparison)]
fn main() {
    let x = true;
    if x == true { "yes" } else { "no" };
    if x == false { "yes" } else { "no" };
    if true == x { "yes" } else { "no" };
    if false == x { "yes" } else { "no" };
}