Fix a minor issue with how lint groups are printed by rustc
This commit is contained in:
parent
a0ee7c9f55
commit
2a7be1b209
1 changed files with 2 additions and 1 deletions
|
@ -255,7 +255,8 @@ Available lint options:
|
|||
for (name, to) in lints.into_iter() {
|
||||
let name = name.chars().map(|x| x.to_lowercase())
|
||||
.collect::<String>().replace("_", "-");
|
||||
let desc = to.into_iter().map(|x| x.as_str()).collect::<Vec<String>>().connect(", ");
|
||||
let desc = to.into_iter().map(|x| x.as_str().replace("_", "-"))
|
||||
.collect::<Vec<String>>().connect(", ");
|
||||
println!(" {} {}",
|
||||
padded(name.as_slice()), desc);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue