File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -495,7 +495,9 @@ impl Info {
495
495
let author_email = line. split ( '\t' ) . collect :: < Vec < _ > > ( ) [ 1 ] . to_string ( ) ;
496
496
let author_name = line. split ( '\t' ) . collect :: < Vec < _ > > ( ) [ 2 ] . to_string ( ) ;
497
497
let commit_count = authors. entry ( author_email. to_string ( ) ) . or_insert ( 0 ) ;
498
- author_name_by_email. entry ( author_email. to_string ( ) ) . or_insert ( author_name) ;
498
+ author_name_by_email
499
+ . entry ( author_email. to_string ( ) )
500
+ . or_insert ( author_name) ;
499
501
* commit_count += 1 ;
500
502
total_commits += 1 ;
501
503
}
@@ -509,7 +511,11 @@ impl Info {
509
511
. into_iter ( )
510
512
. map ( |( author, count) | {
511
513
(
512
- author_name_by_email. get ( & author) . unwrap ( ) . trim_matches ( '\'' ) . to_string ( ) ,
514
+ author_name_by_email
515
+ . get ( & author)
516
+ . unwrap ( )
517
+ . trim_matches ( '\'' )
518
+ . to_string ( ) ,
513
519
count,
514
520
count * 100 / total_commits,
515
521
)
You can’t perform that action at this time.
0 commit comments