From a1c7e6908a26e10f6e1f23a51721664b5e2d838d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 17 May 2026 02:53:53 +0900 Subject: chore(style): cargo fmt --- crates/shirabe-semver/src/compiling_matcher.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'crates/shirabe-semver/src/compiling_matcher.rs') diff --git a/crates/shirabe-semver/src/compiling_matcher.rs b/crates/shirabe-semver/src/compiling_matcher.rs index 7fb17ec..f6a3689 100644 --- a/crates/shirabe-semver/src/compiling_matcher.rs +++ b/crates/shirabe-semver/src/compiling_matcher.rs @@ -27,8 +27,8 @@ static TRANS_OP_INT: &[(i64, &str)] = &[ pub struct CompilingMatcher; impl CompilingMatcher { - fn compiled_checker_cache( - ) -> &'static Mutex bool + Send + Sync>>> { + fn compiled_checker_cache() + -> &'static Mutex bool + Send + Sync>>> { COMPILED_CHECKER_CACHE.get_or_init(|| Mutex::new(IndexMap::new())) } @@ -42,8 +42,7 @@ impl CompilingMatcher { } pub fn r#match(constraint: &dyn ConstraintInterface, operator: i64, version: String) -> bool { - let result_cache_key = - format!("{}{};{}", operator, constraint.__to_string(), version); + let result_cache_key = format!("{}{};{}", operator, constraint.__to_string(), version); { let cache = Self::result_cache().lock().unwrap(); @@ -59,7 +58,10 @@ impl CompilingMatcher { .expect("unknown operator"); let result = constraint.matches(&Constraint::new(trans_op.to_string(), version)); - Self::result_cache().lock().unwrap().insert(result_cache_key, result); + Self::result_cache() + .lock() + .unwrap() + .insert(result_cache_key, result); result } } -- cgit v1.3.1