clippy 0.0.32

A bunch of helpful lints to avoid common pitfalls in Rust
#![feature(plugin)]
#![plugin(clippy)]

#[allow(dead_code)]
enum Baz {
    Baz1,
    Baz2,
}

struct Test {
    t: Option<usize>,
    b: Baz,
}

fn main() {
    use Baz::*;
    let x = Test { t: Some(0), b: Baz1 };

    match x {
        Test { t: Some(a), b: Baz1 } => { 1+1; return },
        Test { t: None, .. } =>  { 1+1; return },
        Test { .. } =>  { 1+1; return },

    }
}