From f6767e4fd477cf0a66017f5ff2783aa919beac86 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 2 Aug 2026 05:33:48 +0900 Subject: refactor(auditor): build the summary line with format! instead of sprintf The two summary templates are compile-time constants, so the runtime sprintf shim is unnecessary; carry the tag and the "ignored " prefix through the passes list instead of pre-built template strings. Co-Authored-By: Claude Fable 5 --- crates/shirabe/src/util/process_executor.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'crates/shirabe/src/util/process_executor.rs') diff --git a/crates/shirabe/src/util/process_executor.rs b/crates/shirabe/src/util/process_executor.rs index 738da143..7e6011cd 100644 --- a/crates/shirabe/src/util/process_executor.rs +++ b/crates/shirabe/src/util/process_executor.rs @@ -15,9 +15,8 @@ use shirabe_external_packages::symfony::process::exception::ProcessSignaledExcep use shirabe_external_packages::symfony::process::exception::RuntimeException as SymfonyProcessRuntimeException; use shirabe_php_shim::{ LogicException, PHP_EOL, PhpMixed, RuntimeException, array_intersect, array_map, - call_user_func, escapeshellarg, explode, implode, in_array, is_array, is_dir, is_numeric, - is_string, php_regex, rtrim, sprintf, str_replace, strcspn, strlen, strpbrk, strtolower, - strtr_array, substr_replace, trim, + escapeshellarg, explode, implode, in_array, is_array, is_dir, is_numeric, is_string, php_regex, + rtrim, str_replace, strcspn, strlen, strpbrk, strtolower, strtr_array, substr_replace, trim, }; use std::sync::{LazyLock, Mutex}; @@ -1204,10 +1203,3 @@ impl ToTimeoutSeconds for PhpMixed { self.as_int().unwrap_or(0) } } - -// Suppress unused-import warnings. -#[allow(dead_code)] -const _USE_PARITY: () = { - let _ = call_user_func::; - let _ = sprintf; -}; -- cgit v1.3.1