clippy 0.0.49

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

#![allow(unused)]
#![deny(invalid_regex, trivial_regex, regex_macro)]

extern crate regex;

fn main() {
    let some_regex = regex!("for real!"); //~ERROR `regex!(_)`
    let other_regex = regex!("[a-z]_[A-Z]"); //~ERROR `regex!(_)`
}