diff --git a/git-cliff-core/src/changelog.rs b/git-cliff-core/src/changelog.rs index c781930d05..511088b72f 100644 --- a/git-cliff-core/src/changelog.rs +++ b/git-cliff-core/src/changelog.rs @@ -382,14 +382,16 @@ impl<'a> Changelog<'a> { serde_json::to_value(self.config.remote.clone())?, ); #[cfg(feature = "github")] - let (github_commits, github_pull_requests) = if self.config.remote.github.is_set() { + let (github_commits, github_pull_requests) = if self.config.remote.github.is_set() + { self.get_github_metadata() .expect("Could not get github metadata") } else { (vec![], vec![]) }; #[cfg(feature = "gitlab")] - let (gitlab_commits, gitlab_merge_request) = if self.config.remote.gitlab.is_set() { + let (gitlab_commits, gitlab_merge_request) = if self.config.remote.gitlab.is_set() + { self.get_gitlab_metadata() .expect("Could not get gitlab metadata") } else {