From 84fe6ac6977f15cbec85cbc9f773567742a7fb87 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 17:02:52 +0900 Subject: refactor(math): use method-style max/min/clamp over std::cmp Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe-semver/src/version_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/shirabe-semver') diff --git a/crates/shirabe-semver/src/version_parser.rs b/crates/shirabe-semver/src/version_parser.rs index 63abc00..ddde07e 100644 --- a/crates/shirabe-semver/src/version_parser.rs +++ b/crates/shirabe-semver/src/version_parser.rs @@ -446,7 +446,7 @@ impl VersionParser { // For upper bound, we increment the position of one more significance, // but highPosition = 0 would be illegal - let high_position = std::cmp::max(1, position - 1); + let high_position = (position - 1).max(1); let high_version = format!( "{}-dev", self.manipulate_version_string(&matches, high_position, 1, "0") -- cgit v1.3.1