xtask: Fix cargo fmt logmsg

This commit is contained in:
Henrik Tjäder 2023-03-15 20:32:58 +01:00
parent 96aa385b55
commit 88b435c2f8

View file

@ -187,12 +187,12 @@ fn main() -> anyhow::Result<()> {
match cli.command { match cli.command {
Commands::FormatCheck(args) => { Commands::FormatCheck(args) => {
info!("Running cargo fmt: {args:?}"); info!("Running cargo fmt --check: {args:?}");
let check_only = true; let check_only = true;
cargo_format(&cargologlevel, &args, check_only)?; cargo_format(&cargologlevel, &args, check_only)?;
} }
Commands::Format(args) => { Commands::Format(args) => {
info!("Running cargo fmt --check: {args:?}"); info!("Running cargo fmt: {args:?}");
let check_only = false; let check_only = false;
cargo_format(&cargologlevel, &args, check_only)?; cargo_format(&cargologlevel, &args, check_only)?;
} }