run rustfmt
This commit is contained in:
@@ -102,8 +102,8 @@ fn update_lints(update_mode: &UpdateMode) {
|
|||||||
|
|
||||||
pub mod lint;
|
pub mod lint;
|
||||||
pub use lint::Lint;
|
pub use lint::Lint;
|
||||||
pub use lint::LINT_LEVELS;
|
|
||||||
pub use lint::LintLevel;
|
pub use lint::LintLevel;
|
||||||
|
pub use lint::LINT_LEVELS;
|
||||||
|
|
||||||
pub const ALL_LINTS: [Lint; {}] = {:#?};\n",
|
pub const ALL_LINTS: [Lint; {}] = {:#?};\n",
|
||||||
sorted_usable_lints.len(),
|
sorted_usable_lints.len(),
|
||||||
|
|||||||
@@ -166,7 +166,12 @@ Available lint options:
|
|||||||
let print_lints = |lints: &[&Lint]| {
|
let print_lints = |lints: &[&Lint]| {
|
||||||
for lint in lints {
|
for lint in lints {
|
||||||
let name = lint.name.replace("_", "-");
|
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");
|
println!("\n");
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
pub mod lint;
|
pub mod lint;
|
||||||
pub use lint::Lint;
|
pub use lint::Lint;
|
||||||
pub use lint::LINT_LEVELS;
|
|
||||||
pub use lint::LintLevel;
|
pub use lint::LintLevel;
|
||||||
|
pub use lint::LINT_LEVELS;
|
||||||
|
|
||||||
pub const ALL_LINTS: [Lint; 304] = [
|
pub const ALL_LINTS: [Lint; 304] = [
|
||||||
Lint {
|
Lint {
|
||||||
|
|||||||
Reference in New Issue
Block a user