diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-02 05:33:48 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-02 05:34:48 +0900 |
| commit | f6767e4fd477cf0a66017f5ff2783aa919beac86 (patch) | |
| tree | 317eb04175149203ced69b3af13ad0a3612a52a1 /crates/shirabe/src/util | |
| parent | 3b22fd4ede833b19c4113f88363021d00090d927 (diff) | |
| download | php-shirabe-f6767e4fd477cf0a66017f5ff2783aa919beac86.tar.gz php-shirabe-f6767e4fd477cf0a66017f5ff2783aa919beac86.tar.zst php-shirabe-f6767e4fd477cf0a66017f5ff2783aa919beac86.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/util')
| -rw-r--r-- | crates/shirabe/src/util/process_executor.rs | 12 |
1 files changed, 2 insertions, 10 deletions
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::<PhpMixed>; - let _ = sprintf; -}; |
