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).
This commit is contained in:
loki5512344 2026-09-15 19:51:43 +02:00
parent 98e1f4a3d3
commit 47395069cb
Signed by: boba
GPG key ID: 253067914055423B

View file

@ -167,13 +167,9 @@ pub fn report_refs(refs: &[crate::core::refs::NonImportRef]) {
return; return;
} }
eprintln!( eprintln!(
"warning: {} non-import reference {} may need manual fixing:", "warning: {} non-import reference{} to moved files may need manual fixing:",
refs.len(), refs.len(),
if refs.len() == 1 { if refs.len() == 1 { "" } else { "s" }
"to the moved file"
} else {
"s to moved files"
}
); );
for r in refs.iter().take(10) { for r in refs.iter().take(10) {
eprintln!(" {}:{}", r.file, r.line); eprintln!(" {}:{}", r.file, r.line);