From aeafce157b7ba9d11fffe748130fee47c8999af3 Mon Sep 17 00:00:00 2001 From: vikingowl Date: Wed, 13 May 2026 14:04:58 +0200 Subject: [PATCH] style(migrate): fix '1 file(s)' stutter in scripts/ artifact report Trivial: pluralise 'file' based on entries.len() rather than the lazy '(s)' suffix. The current output says '1 file(s)' which reads awkwardly. --- crates/owlry/src/commands.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/owlry/src/commands.rs b/crates/owlry/src/commands.rs index 3413d59..19b40b4 100644 --- a/crates/owlry/src/commands.rs +++ b/crates/owlry/src/commands.rs @@ -420,8 +420,9 @@ fn report_legacy_artifacts(artifacts: &[crate::lua::migrate::LegacyArtifact]) { println!(" ── legacy `scripts/` directory ─────────────────"); println!(" path: {}", artifact.path.display()); println!( - " {} file(s): {}", + " {} {}: {}", entries.len(), + if entries.len() == 1 { "file" } else { "files" }, if entries.is_empty() { "(empty)".to_string() } else {