Skip to content

Commit

Permalink
ci(formatting): Apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
the-wondersmith authored and oknozor committed Jun 23, 2023
1 parent 88f8742 commit 2710183
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/conventional/changelog/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl<'a> From<CommitRange<'a>> for Release<'a> {
if !commit.should_omit() {
commits.push(ChangelogCommit::from(commit))
}
},
}
Err(err) => {
let err = err.to_string().red();
warn!("{}", err);
Expand Down
5 changes: 4 additions & 1 deletion src/conventional/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ impl Commit {
}

pub(crate) fn should_omit(&self) -> bool {
SETTINGS.commit_types().get(&self.message.commit_type).map_or(false, |config| config.omit_from_changelog)
SETTINGS
.commit_types()
.get(&self.message.commit_type)
.map_or(false, |config| config.omit_from_changelog)
}

pub fn get_log(&self) -> String {
Expand Down

0 comments on commit 2710183

Please sign in to comment.