fix(clippy): make clippy optional

This commit is contained in:
Christopher Brickley 2016-02-06 14:17:02 -05:00
parent 718822449f
commit da7bb8e109
3 changed files with 5 additions and 4 deletions

View File

@ -13,7 +13,7 @@ name = "serde_macros"
plugin = true
[dependencies]
clippy = "^0.0.37"
clippy = { version = "^0.0.37", optional = true }
serde_codegen = { version = "^0.6.10", path = "../serde_codegen", default-features = false, features = ["nightly"] }
[dev-dependencies]

View File

@ -1,5 +1,5 @@
#![feature(custom_attribute, custom_derive, plugin, test)]
#![plugin(clippy)]
#![cfg_attr(feature = "clippy", plugin(clippy))]
#![plugin(serde_macros)]
extern crate num;

View File

@ -1,5 +1,6 @@
#![feature(plugin, plugin_registrar, rustc_private)]
#![plugin(clippy)]
#![feature(plugin_registrar, rustc_private)]
#![cfg_attr(feature = "clippy", feature(plugin))]
#![cfg_attr(feature = "clippy", plugin(clippy))]
extern crate serde_codegen;
extern crate rustc_plugin;