Skip to content

Commit e6c7c45

Browse files
committed
cargo clippy
1 parent f481439 commit e6c7c45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/info/authors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl AuthorsInfo {
8484
}
8585

8686
fn top_contribution(&self) -> usize {
87-
if let Some(top_contributor) = self.authors.get(0) {
87+
if let Some(top_contributor) = self.authors.first() {
8888
return top_contributor.contribution;
8989
}
9090
0

src/ui/text_colors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl TextColors {
2525
if !colors.is_empty() {
2626
let custom_color = colors.iter().map(num_to_color).collect::<Vec<DynColors>>();
2727

28-
text_colors.title = *custom_color.get(0).unwrap_or(&logo_primary_color);
28+
text_colors.title = *custom_color.first().unwrap_or(&logo_primary_color);
2929
text_colors.tilde = *custom_color
3030
.get(1)
3131
.unwrap_or(&DynColors::Ansi(AnsiColors::Default));

0 commit comments

Comments
 (0)