From 69d1600d820c5520fcf21da77902c05a05387a28 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Mon, 23 Sep 2024 21:56:39 +0200 Subject: [PATCH] Inline variables in format string --- cli/src/commands/describe.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/commands/describe.rs b/cli/src/commands/describe.rs index d4f3ba295..36fe34219 100644 --- a/cli/src/commands/describe.rs +++ b/cli/src/commands/describe.rs @@ -263,10 +263,10 @@ pub(crate) fn cmd_describe( }, )?; if num_described > 1 { - writeln!(ui.status(), "Updated {} commits", num_described)?; + writeln!(ui.status(), "Updated {num_described} commits")?; } if num_rebased > 0 { - writeln!(ui.status(), "Rebased {} descendant commits", num_rebased)?; + writeln!(ui.status(), "Rebased {num_rebased} descendant commits")?; } tx.finish(ui, tx_description)?; Ok(())