sort_by -> sort_by_key

This commit is contained in:
Philipp Hansch 2018-10-15 21:02:38 +02:00
parent fb830c53db
commit b61ca63c5e
No known key found for this signature in database
GPG Key ID: B6FA06A6E0E2665B

View File

@ -44,7 +44,7 @@ fn print_lints() {
if lint_group == "Deprecated" { continue; }
println!("\n## {}", lint_group);
lints.sort_by(|a, b| a.name.cmp(&b.name));
lints.sort_by_key(|l| l.name.clone());
for lint in lints {
println!("* [{}]({}#{}) ({})", lint.name, clippy_dev::DOCS_LINK.clone(), lint.name, lint.desc);