diff --git a/src/main.rs b/src/main.rs index 623c1f89b5eb3fbd458f19ff4170d42bcce6b1e7..c4519fc483e34610299093589f7b7c46785fa9bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1017,7 +1017,7 @@ fn shortlog(commits: &mut [Commit]) -> String { let mut s = String::new(); let mut author_map = std::collections::HashMap::new(); - for mut commit in commits { + for commit in commits { let author = commit.author().name().unwrap().to_string(); author_map.entry(author).or_insert(Vec::new()).push(commit.summary().unwrap().to_string()); }