Skip to content

Commit 1c681b6

Browse files
author
Michael Wright
committed
fix-2927: Update formatting
1 parent bbd67c9 commit 1c681b6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

clippy_lints/src/lib.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ mod reexport {
179179
crate use syntax::ast::{Name, NodeId};
180180
}
181181

182+
pub fn register_pre_expansion_lints(session: &rustc::session::Session, store: &mut rustc::lint::LintStore, conf: &Conf) {
183+
store.register_pre_expansion_pass(Some(session), box write::Pass);
184+
store.register_pre_expansion_pass(Some(session), box redundant_field_names::RedundantFieldNames);
185+
store.register_pre_expansion_pass(Some(session), box non_expressive_names::NonExpressiveNames {
186+
single_char_binding_names_threshold: conf.single_char_binding_names_threshold,
187+
});
188+
}
189+
182190
pub fn read_conf(reg: &rustc_plugin::Registry<'_>) -> Conf {
183191
match utils::conf::file_from_args(reg.args()) {
184192
Ok(file_name) => {
@@ -225,14 +233,6 @@ pub fn read_conf(reg: &rustc_plugin::Registry<'_>) -> Conf {
225233
}
226234
}
227235

228-
pub fn register_pre_expansion_lints(session: &rustc::session::Session, store: &mut rustc::lint::LintStore, conf: &Conf) {
229-
store.register_pre_expansion_pass(Some(session), box write::Pass);
230-
store.register_pre_expansion_pass(Some(session), box redundant_field_names::RedundantFieldNames);
231-
store.register_pre_expansion_pass(Some(session), box non_expressive_names::NonExpressiveNames {
232-
single_char_binding_names_threshold: conf.single_char_binding_names_threshold,
233-
});
234-
}
235-
236236
#[rustfmt::skip]
237237
pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
238238
let mut store = reg.sess.lint_store.borrow_mut();

0 commit comments

Comments
 (0)