Use clippy

This commit is contained in:
Abhishek Chanda
2015-10-25 13:43:52 -07:00
parent 7b5a3c056b
commit a3d9aa3026
2 changed files with 10 additions and 0 deletions

View File

@ -5,3 +5,10 @@ authors = ["Abhishek Chanda <abhishe.becsk@gmail.com>"]
description = "A library to work with IP CIDRs in Rust, heavily WIP"
license = "Apache-2.0"
repository = "https://github.com/achanda/ipnetwork"
[dependencies]
clippy = {version = "0.0.21", optional = true}
[features]
default = []
dev = ["clippy"]

View File

@ -1,3 +1,6 @@
#![cfg_attr(feature = "dev", allow(unstable_features))]
#![cfg_attr(feature = "dev", feature(plugin))]
#![cfg_attr(feature = "dev", plugin(clippy))]
#![crate_type = "lib"]
#![feature(ip_addr)]
#[allow(dead_code)]