Skip to content

Commit

Permalink
chore: clean lints
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Sep 8, 2020
1 parent 7b7e474 commit 6290168
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
17 changes: 0 additions & 17 deletions src/git/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,6 @@ pub(crate) enum CommitType<'a> {
}

impl CommitType<'_> {
pub(crate) fn get_key(&self) -> &str {
match self {
Feature => "feat",
BugFix => "fix",
Chore => "chore",
Revert => "revert",
Performances => "perf",
Documentation => "docs",
Style => "style",
Refactoring => "refactor",
Test => "test",
Build => "build",
Ci => "ci",
Custom(key, _) => key
}
}

pub(crate) fn get_markdown_title(&self) -> &str {
match self {
Feature => "Feature",
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ mod git;
use crate::git::changelog::Changelog;
use git2::{Oid, Repository};
use git::commit::Commit;
use chrono::{NaiveDate, Utc};
use chrono::Utc;

pub fn get_changelog(from: &str, to: &str) -> anyhow::Result<String> {
let from_oid = Oid::from_str(from)?;
Expand Down

0 comments on commit 6290168

Please sign in to comment.