From 3aa9750c1e10c9e6a638ffccdc67045fcaa0064b Mon Sep 17 00:00:00 2001 From: Matthieu Pizenberg Date: Sun, 15 Nov 2020 17:56:44 +0100 Subject: [PATCH] fix(semver): bump_minor and bump_major (#61) --- src/version.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/version.rs b/src/version.rs index e33053b0..33ebf085 100644 --- a/src/version.rs +++ b/src/version.rs @@ -96,12 +96,12 @@ impl SemanticVersion { /// Bump the minor number of a version. pub fn bump_minor(self) -> Self { - Self::new(self.major, self.minor + 1, self.patch) + Self::new(self.major, self.minor + 1, 0) } /// Bump the major number of a version. pub fn bump_major(self) -> Self { - Self::new(self.major + 1, self.minor, self.patch) + Self::new(self.major + 1, 0, 0) } }