From 8d14266d5f29595d32e50eb16127d75d8e14ea9a Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Wed, 9 Oct 2019 11:26:28 +0200 Subject: [PATCH] Remove unnecessary mutability --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }