We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3102c6 commit 5ff5420Copy full SHA for 5ff5420
Cargo.toml
@@ -7,7 +7,7 @@ authors = ["Pradeep Gowda <[email protected]>"]
7
[dependencies]
8
glob = "*"
9
clap = "*"
10
-clippy = "*"
+clippy = { version = "*", optional = true }
11
12
[dependencies.url]
13
version = "1.7.0"
src/lib.rs
@@ -1,5 +1,5 @@
1
-#![feature(plugin)]
2
-#![plugin(clippy)]
+#![cfg_attr(feature="clippy", feature(plugin))]
+#![cfg_attr(feature="clippy", plugin(clippy))]
3
4
extern crate url;
5
src/main.rs
extern crate clap;
extern crate glob;
0 commit comments