From 10e0caaa64b14d6a086a337c72c5a26ad5fa1328 Mon Sep 17 00:00:00 2001 From: cijiugechu Date: Sun, 22 Oct 2023 14:47:04 +0800 Subject: [PATCH] feat: add type alias `ReleaseType` --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 6773cb4..00a90b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 {