Fix config formatting, less indenting, more spacing
This commit is contained in:
parent
2a4571d959
commit
3e8fea612d
@ -483,10 +483,10 @@ pub fn explain(name: &str) {
|
|||||||
.find_all(|cconf| cconf.lints.contains(&info.lint.name_lower()[8..].to_owned()))
|
.find_all(|cconf| cconf.lints.contains(&info.lint.name_lower()[8..].to_owned()))
|
||||||
{
|
{
|
||||||
// If it has, print it
|
// If it has, print it
|
||||||
println!("### Configuration for {}:", info.lint.name_lower());
|
println!("### Configuration for {}:\n", info.lint.name_lower());
|
||||||
for position in config_vec_positions {
|
for position in config_vec_positions {
|
||||||
let conf = &mdconf[position];
|
let conf = &mdconf[position];
|
||||||
println!(" - {}: {} (default: {})", conf.name, conf.doc, conf.default);
|
println!(" - {}: {} (default: {})", conf.name, conf.doc, conf.default);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user