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/src/repository/vcs/svn_driver.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/shirabe/src/repository/vcs') diff --git a/crates/shirabe/src/repository/vcs/svn_driver.rs b/crates/shirabe/src/repository/vcs/svn_driver.rs index 96a1b38..e68beb6 100644 --- a/crates/shirabe/src/repository/vcs/svn_driver.rs +++ b/crates/shirabe/src/repository/vcs/svn_driver.rs @@ -5,7 +5,7 @@ use chrono::{DateTime, FixedOffset, Utc}; use indexmap::IndexMap; use shirabe_external_packages::composer::pcre::{CaptureKey, Preg}; use shirabe_php_shim::{ - PhpMixed, RuntimeException, array_key_exists, is_array, max, sprintf, stripos, strrpos, strtr, + PhpMixed, RuntimeException, array_key_exists, is_array, sprintf, stripos, strrpos, strtr, substr, trim, }; @@ -362,7 +362,7 @@ impl SvnDriver { } else { let identifier = self.build_identifier( &format!("/{}/{}", self.tags_path, path), - max(last_rev, rev), + std::cmp::max(last_rev, rev), ); tags.insert(path.trim_end_matches('/').to_string(), identifier); } @@ -451,7 +451,7 @@ impl SvnDriver { } else { let identifier = self.build_identifier( &format!("/{}/{}", self.branches_path, path), - max(last_rev, rev), + std::cmp::max(last_rev, rev), ); branches .insert(path.trim_end_matches('/').to_string(), identifier); -- cgit v1.3.1