From aeeb623a70b2bf4ae78f1629a5171406ba51ec4d Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Sat, 15 Apr 2023 15:32:33 +0200 Subject: [PATCH] Don't print no cargo args here either --- xtask/src/command.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xtask/src/command.rs b/xtask/src/command.rs index 38550fe43b..b62724ab73 100644 --- a/xtask/src/command.rs +++ b/xtask/src/command.rs @@ -234,7 +234,11 @@ impl core::fmt::Display for CargoCommand<'_> { let package = p(package); let features = feat(features); let carg = carg(cargoarg); - write!(f, "Clippy {package} ({target}, {features}, {carg})") + if cargoarg.is_some() { + write!(f, "Clippy {package} ({target}, {features}, {carg})") + } else { + write!(f, "Clippy {package} ({target}, {features})") + } } CargoCommand::Format { cargoarg,