Skip to content

Commit

Permalink
chore: fix clippy default impl for TemplateKind
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasnabas authored and oknozor committed May 4, 2023
1 parent 5e02aef commit 808632a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/conventional/changelog/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ impl Template {
}
}

#[derive(Debug)]
#[derive(Debug, Default)]
pub enum TemplateKind {
#[default]
Default,
FullHash,
Remote,
Expand All @@ -59,12 +60,6 @@ pub enum TemplateKind {
Custom(PathBuf),
}

impl Default for TemplateKind {
fn default() -> Self {
TemplateKind::Default
}
}

impl TemplateKind {
/// Returns either a predefined template or a custom template
fn from_arg(value: &str) -> Result<Self, ChangelogError> {
Expand Down

0 comments on commit 808632a

Please sign in to comment.