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 {
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
Original file line number Diff line number Diff 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 ) ) ;
You can’t perform that action at this time.
0 commit comments