clippy 0.0.14

A bunch of helpful lints to avoid common pitfalls in Rust
1
2
3
4
5
6
7
8
9
10
11
12
#![plugin(clippy)]
#![feature(plugin)]
#![allow(unused)]
#![warn(clippy)]
fn main() {
    let my_option: Option<()> = None;
    let my_option = my_option.map(|_unit| 42i32);
    match my_option {
      Some(an_int) => {1+1;},
      None => {}
    }
}