Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Sep 12, 2024
1 parent 5faceb1 commit cdf0701
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion repology-webapp/src/views/badges/latest_versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub async fn badge_latest_versions(
a.cmp(b)
.then_with(|| a.version().len().cmp(&b.version().len()))
.reverse()
.then_with(|| a.version().cmp(&b.version()))
.then_with(|| a.version().cmp(b.version()))
})
.dedup_by(|a, b| a.version() == b.version())
.collect::<Vec<_>>();
Expand Down
2 changes: 1 addition & 1 deletion repology-webapp/src/views/badges/vertical_allrepos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub async fn badge_vertical_allrepos(
if caption.is_empty() {
None
} else {
Some(&caption)
Some(caption)
}
},
);
Expand Down

0 comments on commit cdf0701

Please sign in to comment.