aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/plugins/Cargo.toml6
-rw-r--r--components/plugins/lib.rs4
2 files changed, 5 insertions, 5 deletions
diff --git a/components/plugins/Cargo.toml b/components/plugins/Cargo.toml
index 331adbe5845..c60cc48b779 100644
--- a/components/plugins/Cargo.toml
+++ b/components/plugins/Cargo.toml
@@ -12,10 +12,10 @@ plugin = true
[dependencies]
tenacious = "0.2.0"
-[dependencies.clippy]
-git = "https://github.com/Manishearth/rust-clippy"
-rev = "9dca15de3e8ea266d3e7e868c0f358ed4fa5f195"
+[dependencies.clippy_lints]
+version = "0.0.77"
optional = true
[features]
default = []
+clippy = ["clippy_lints"]
diff --git a/components/plugins/lib.rs b/components/plugins/lib.rs
index 9ee553145a5..a35cd3c71d6 100644
--- a/components/plugins/lib.rs
+++ b/components/plugins/lib.rs
@@ -18,7 +18,7 @@
#![deny(unsafe_code)]
#[cfg(feature = "clippy")]
-extern crate clippy;
+extern crate clippy_lints;
#[macro_use]
extern crate rustc;
extern crate rustc_plugin;
@@ -60,7 +60,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
#[cfg(feature = "clippy")]
fn register_clippy(reg: &mut Registry) {
- ::clippy::plugin_registrar(reg);
+ ::clippy_lints::register_plugins(reg);
}
#[cfg(not(feature = "clippy"))]
fn register_clippy(_reg: &mut Registry) {