From 08e296b8b37bf5b4b54cfd4abc0bd9887c10f915 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Thu, 6 Oct 2016 13:16:49 +0200 Subject: [PATCH] Improved internal source code quality by refactoring --- src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9645fc96..622f0cfb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -517,9 +517,7 @@ impl GitJournal { None } else { if self.config.sort_by == "name" { - parsed_tag.commits.sort_by(|l, r| { - l.summary.category.cmp(&r.summary.category) - }); + parsed_tag.commits.sort_by(|l, r| l.summary.category.cmp(&r.summary.category)); } Some(parsed_tag) }