clippy 0.0.78

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

#[deny(double_neg)]
fn main() {
    let x = 1;
    -x;
    -(-x);
    --x; //~ERROR: `--x` could be misinterpreted as pre-decrement by C programmers, is usually a no-op
}