mirror of
https://github.com/orhun/git-cliff.git
synced 2024-12-16 13:05:09 +03:00
style: fix formatting
This commit is contained in:
parent
fbb605e4f6
commit
14725e547b
@ -196,10 +196,10 @@ fn process_repository<'a>(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if release_index > 1 {
|
if release_index > 1 {
|
||||||
previous_release.previous = None;
|
previous_release.previous = None;
|
||||||
releases[release_index].previous = Some(Box::new(previous_release));
|
releases[release_index].previous = Some(Box::new(previous_release));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add custom commit messages to the latest release.
|
// Add custom commit messages to the latest release.
|
||||||
if let Some(custom_commits) = &args.with_commit {
|
if let Some(custom_commits) = &args.with_commit {
|
||||||
@ -214,7 +214,7 @@ fn process_repository<'a>(
|
|||||||
|
|
||||||
// Set the previous release if needed.
|
// Set the previous release if needed.
|
||||||
if args.latest || args.unreleased {
|
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)) =
|
if let Some((commit_id, version)) =
|
||||||
tags.len().checked_sub(sub).and_then(|v| tags.get_index(v))
|
tags.len().checked_sub(sub).and_then(|v| tags.get_index(v))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user