Skip to content

Commit 5ff5420

Browse files
committed
Make clippy an optional dependency
1 parent f3102c6 commit 5ff5420

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = ["Pradeep Gowda <[email protected]>"]
77
[dependencies]
88
glob = "*"
99
clap = "*"
10-
clippy = "*"
10+
clippy = { version = "*", optional = true }
1111

1212
[dependencies.url]
1313
version = "1.7.0"

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#![feature(plugin)]
2-
#![plugin(clippy)]
1+
#![cfg_attr(feature="clippy", feature(plugin))]
2+
#![cfg_attr(feature="clippy", plugin(clippy))]
33

44
extern crate url;
55

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#![feature(plugin)]
2-
#![plugin(clippy)]
1+
#![cfg_attr(feature="clippy", feature(plugin))]
2+
#![cfg_attr(feature="clippy", plugin(clippy))]
33

44
extern crate clap;
55
extern crate glob;

0 commit comments

Comments
 (0)