run rustfmt

This commit is contained in:
Jane Lusby 2019-06-10 11:14:54 -07:00
parent 73259d68db
commit 113ae891d9
3 changed files with 8 additions and 3 deletions

View file

@ -102,8 +102,8 @@ fn update_lints(update_mode: &UpdateMode) {
pub mod lint;
pub use lint::Lint;
pub use lint::LINT_LEVELS;
pub use lint::LintLevel;
pub use lint::LINT_LEVELS;
pub const ALL_LINTS: [Lint; {}] = {:#?};\n",
sorted_usable_lints.len(),

View file

@ -166,7 +166,12 @@ Available lint options:
let print_lints = |lints: &[&Lint]| {
for lint in lints {
let name = lint.name.replace("_", "-");
println!(" {} {:7.7} {}", padded(&scoped(&name)), lint_level(lint), lint.desc);
println!(
" {} {:7.7} {}",
padded(&scoped(&name)),
lint_level(lint),
lint.desc
);
}
println!("\n");
};

View file

@ -2,8 +2,8 @@
pub mod lint;
pub use lint::Lint;
pub use lint::LINT_LEVELS;
pub use lint::LintLevel;
pub use lint::LINT_LEVELS;
pub const ALL_LINTS: [Lint; 304] = [
Lint {