From 14725e547bb40cd4c3c152515b7c5994eed4a49e Mon Sep 17 00:00:00 2001 From: Tiago Santos Date: Sun, 25 Jun 2023 23:39:39 +0100 Subject: [PATCH] style: fix formatting --- git-cliff/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/git-cliff/src/lib.rs b/git-cliff/src/lib.rs index 5f2e2cee..a92a333b 100644 --- a/git-cliff/src/lib.rs +++ b/git-cliff/src/lib.rs @@ -196,10 +196,10 @@ fn process_repository<'a>( } } - if release_index > 1 { - previous_release.previous = None; - releases[release_index].previous = Some(Box::new(previous_release)); - } + if release_index > 1 { + previous_release.previous = None; + releases[release_index].previous = Some(Box::new(previous_release)); + } // Add custom commit messages to the latest release. if let Some(custom_commits) = &args.with_commit { @@ -214,7 +214,7 @@ fn process_repository<'a>( // Set the previous release if needed. if args.latest || args.unreleased { - let sub = if args.latest { 2 } else { 1 }; + let sub = if args.latest { 2 } else { 1 }; if let Some((commit_id, version)) = tags.len().checked_sub(sub).and_then(|v| tags.get_index(v)) {