From caf9e241a6d50c55f266c07e818499066b0818a4 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Fri, 30 May 2025 12:13:30 +0200 Subject: [PATCH] cli: fix outputs - `format!` was missing for the `"No seeds found"` message, so the `{rid}` was not being formatted. - Missing a space between the seed and the timing. --- radicle-cli/src/commands/sync.rs | 2 +- radicle-cli/src/node.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radicle-cli/src/commands/sync.rs b/radicle-cli/src/commands/sync.rs index 7b617443..f0738cfc 100644 --- a/radicle-cli/src/commands/sync.rs +++ b/radicle-cli/src/commands/sync.rs @@ -882,7 +882,7 @@ fn print_synced(synced: &BTreeMap) { sync::announce::SyncStatus::Synced { duration } => { message.push_str(&format!( "{}", - term::format::dim(format!("in {}s", duration.as_secs())) + term::format::dim(format!(" in {}s", duration.as_secs())) )); } } diff --git a/radicle-cli/src/node.rs b/radicle-cli/src/node.rs index e5f34fb1..571bb361 100644 --- a/radicle-cli/src/node.rs +++ b/radicle-cli/src/node.rs @@ -224,7 +224,7 @@ where term::info!( &mut reporting.completion; "{}", - term::format::yellow("No seeds found for {rid}.") + term::format::yellow(format!("No seeds found for {rid}.")) ); return Ok(None); }