merge duplicate arms and drop a needless clone

This commit is contained in:
2026-09-21 01:32:20 +03:00
parent 3f50fdd337
commit e6e07ca6a1
3 changed files with 26 additions and 23 deletions
+2 -2
View File
@@ -186,9 +186,9 @@ fn is_newer(latest: &str, current: &str) -> bool {
}
match (&l.pre, &c.pre) {
(None, Some(_)) => true,
(Some(_), None) => false,
(Some(a), Some(b)) => a > b,
(None, None) => false,
// A prerelease never outranks a stable tag of the same version.
(Some(_) | None, None) => false,
}
}