mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +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]
|
[dependencies]
|
||||||
tenacious = "0.2.0"
|
tenacious = "0.2.0"
|
||||||
|
|
||||||
[dependencies.clippy]
|
[dependencies.clippy_lints]
|
||||||
git = "https://github.com/Manishearth/rust-clippy"
|
version = "0.0.77"
|
||||||
rev = "9dca15de3e8ea266d3e7e868c0f358ed4fa5f195"
|
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
clippy = ["clippy_lints"]
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#![deny(unsafe_code)]
|
#![deny(unsafe_code)]
|
||||||
|
|
||||||
#[cfg(feature = "clippy")]
|
#[cfg(feature = "clippy")]
|
||||||
extern crate clippy;
|
extern crate clippy_lints;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate rustc;
|
extern crate rustc;
|
||||||
extern crate rustc_plugin;
|
extern crate rustc_plugin;
|
||||||
|
@ -60,7 +60,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
|
||||||
|
|
||||||
#[cfg(feature = "clippy")]
|
#[cfg(feature = "clippy")]
|
||||||
fn register_clippy(reg: &mut Registry) {
|
fn register_clippy(reg: &mut Registry) {
|
||||||
::clippy::plugin_registrar(reg);
|
::clippy_lints::register_plugins(reg);
|
||||||
}
|
}
|
||||||
#[cfg(not(feature = "clippy"))]
|
#[cfg(not(feature = "clippy"))]
|
||||||
fn register_clippy(_reg: &mut Registry) {
|
fn register_clippy(_reg: &mut Registry) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue