mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Update clippy
This commit is contained in:
parent
f0c3543f53
commit
ed894777a1
2 changed files with 5 additions and 5 deletions
|
@ -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"]
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue