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
12
13
14
15
16
#![feature(plugin)]
#![plugin(clippy)]
#![allow(unused)]
#![warn(clippy)]

fn main() {
    let v = Some(true);
    match v {
        Some(x) => (),
        y @ _   => (),
    }
    match v {
        Some(x)  => (),
        y @ None => (),  // no error
    }
}