Skip to content

Commit e710018

Browse files
committed
fix rust fmt
1 parent ca58871 commit e710018

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/info.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,9 @@ impl Info {
495495
let author_email = line.split('\t').collect::<Vec<_>>()[1].to_string();
496496
let author_name = line.split('\t').collect::<Vec<_>>()[2].to_string();
497497
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);
499501
*commit_count += 1;
500502
total_commits += 1;
501503
}
@@ -509,7 +511,11 @@ impl Info {
509511
.into_iter()
510512
.map(|(author, count)| {
511513
(
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(),
513519
count,
514520
count * 100 / total_commits,
515521
)

0 commit comments

Comments
 (0)