From 47395069cb15c84b95c622625cddbae254e82b2d Mon Sep 17 00:00:00 2001 From: loki5512344 Date: Tue, 15 Sep 2026 19:51:43 +0200 Subject: [PATCH] fix: actually apply the warning pluralization fix The previous commit shipped a no-op: cargo fmt had reflowed the match into multiline form, so the scripted replacement never matched and the failing e2e it introduced caught exactly that. Verified with a full cargo test this time (not a grep-masked pipeline). --- src/cli/output/mod.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/cli/output/mod.rs b/src/cli/output/mod.rs index 2c22443..01ccf7f 100644 --- a/src/cli/output/mod.rs +++ b/src/cli/output/mod.rs @@ -167,13 +167,9 @@ pub fn report_refs(refs: &[crate::core::refs::NonImportRef]) { return; } eprintln!( - "warning: {} non-import reference {} may need manual fixing:", + "warning: {} non-import reference{} to moved files may need manual fixing:", refs.len(), - if refs.len() == 1 { - "to the moved file" - } else { - "s to moved files" - } + if refs.len() == 1 { "" } else { "s" } ); for r in refs.iter().take(10) { eprintln!(" {}:{}", r.file, r.line);