X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flib.rs;h=9e83a96fee689e085ef0f66519d4cea6197d22c5;hb=7b717d3152e9ad1b3e874d9b5dd957521640f40b;hp=5a02b514812c894c70b635242ac2549b23da3275;hpb=59c31d319ae376dcb1c6757e99eb059c27c7d00b;p=rust.git diff --git a/src/lib.rs b/src/lib.rs index 5a02b514812..9e83a96fee6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,20 +9,18 @@ extern crate clippy_lints; -pub use clippy_lints::*; - #[plugin_registrar] pub fn plugin_registrar(reg: &mut Registry) { if reg.sess.lint_store.borrow_state() == std::cell::BorrowState::Unused && reg.sess.lint_store.borrow().get_lint_groups().iter().any(|&(s, _, _)| s == "clippy") { reg.sess.struct_warn("running cargo clippy on a crate that also imports the clippy plugin").emit(); } else { - register_plugins(reg); + clippy_lints::register_plugins(reg); } } // only exists to let the dogfood integration test works. // Don't run clippy as an executable directly -#[allow(dead_code, print_stdout)] +#[allow(dead_code)] fn main() { panic!("Please use the cargo-clippy executable"); }