File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ impl AuthorsInfo {
84
84
}
85
85
86
86
fn top_contribution ( & self ) -> usize {
87
- if let Some ( top_contributor) = self . authors . get ( 0 ) {
87
+ if let Some ( top_contributor) = self . authors . first ( ) {
88
88
return top_contributor. contribution ;
89
89
}
90
90
0
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ impl TextColors {
25
25
if !colors. is_empty ( ) {
26
26
let custom_color = colors. iter ( ) . map ( num_to_color) . collect :: < Vec < DynColors > > ( ) ;
27
27
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) ;
29
29
text_colors. tilde = * custom_color
30
30
. get ( 1 )
31
31
. unwrap_or ( & DynColors :: Ansi ( AnsiColors :: Default ) ) ;
You can’t perform that action at this time.
0 commit comments