We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f481439 commit e6c7c45Copy full SHA for e6c7c45
src/info/authors.rs
@@ -84,7 +84,7 @@ impl AuthorsInfo {
84
}
85
86
fn top_contribution(&self) -> usize {
87
- if let Some(top_contributor) = self.authors.get(0) {
+ if let Some(top_contributor) = self.authors.first() {
88
return top_contributor.contribution;
89
90
0
src/ui/text_colors.rs
@@ -25,7 +25,7 @@ impl TextColors {
25
if !colors.is_empty() {
26
let custom_color = colors.iter().map(num_to_color).collect::<Vec<DynColors>>();
27
28
- text_colors.title = *custom_color.get(0).unwrap_or(&logo_primary_color);
+ text_colors.title = *custom_color.first().unwrap_or(&logo_primary_color);
29
text_colors.tilde = *custom_color
30
.get(1)
31
.unwrap_or(&DynColors::Ansi(AnsiColors::Default));
0 commit comments