clippy 0.0.113

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
#![feature(plugin)]
#![plugin(clippy)]
#![deny(stutter)]
#![allow(dead_code)]

mod foo {
    pub fn foo() {}
    pub fn foo_bar() {} //~ ERROR: item name starts with its containing module's name
    pub fn bar_foo() {} //~ ERROR: item name ends with its containing module's name
    pub struct FooCake {} //~ ERROR: item name starts with its containing module's name
    pub enum CakeFoo {} //~ ERROR: item name ends with its containing module's name
}

fn main() {}