clippy 0.0.43

A bunch of helpful lints to avoid common pitfalls in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(plugin, collections)]

#![plugin(clippy)]
#![deny(clippy)]

extern crate collections;
use collections::linked_list::LinkedList;

pub fn test(foo: LinkedList<u8>) {  //~ ERROR I see you're using a LinkedList!
    println!("{:?}", foo)
}

fn main(){
    test(LinkedList::new());
}