Skip to content

Commit

Permalink
feat: add type alias ReleaseType
Browse files Browse the repository at this point in the history
  • Loading branch information
cijiugechu committed Oct 22, 2023
1 parent a476865 commit 10e0caa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ pub enum VersionDiff {
PreRelease,
}

/// difference between two versions
pub type ReleaseType = VersionDiff;

impl fmt::Display for VersionDiff {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Expand Down

0 comments on commit 10e0caa

Please sign in to comment.