Don't print no cargo args here either

This commit is contained in:
datdenkikniet 2023-04-15 15:32:33 +02:00
parent 51284efd0e
commit aeeb623a70

View file

@ -234,7 +234,11 @@ impl core::fmt::Display for CargoCommand<'_> {
let package = p(package); let package = p(package);
let features = feat(features); let features = feat(features);
let carg = carg(cargoarg); let carg = carg(cargoarg);
if cargoarg.is_some() {
write!(f, "Clippy {package} ({target}, {features}, {carg})") write!(f, "Clippy {package} ({target}, {features}, {carg})")
} else {
write!(f, "Clippy {package} ({target}, {features})")
}
} }
CargoCommand::Format { CargoCommand::Format {
cargoarg, cargoarg,