From a61c191b68a31914b0aa462e877ca444180e88dc Mon Sep 17 00:00:00 2001 From: mattsu Date: Sat, 20 Dec 2025 21:39:51 +0900 Subject: [PATCH] refactor(wc): simplify SIMD feature collection in debug output - Changed multi-line SIMD feature vector creation to a single-line expression for improved readability and consistency with surrounding code. - No functional changes; only stylistic refactoring in the wc debug logic. --- src/uu/wc/src/wc.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/uu/wc/src/wc.rs b/src/uu/wc/src/wc.rs index b8b4d5134..b7d22dd3a 100644 --- a/src/uu/wc/src/wc.rs +++ b/src/uu/wc/src/wc.rs @@ -840,10 +840,8 @@ fn wc(inputs: &Inputs, settings: &Settings) -> UResult<()> { if settings.debug { let policy = SimdPolicy::detect(); if policy.allows_simd() { - let enabled: Vec<&'static str> = policy - .iter_features() - .map(hardware_feature_label) - .collect(); + let enabled: Vec<&'static str> = + policy.iter_features().map(hardware_feature_label).collect(); if enabled.is_empty() { eprintln!("{}", translate!("wc-debug-hw-unavailable")); } else {