From 388877188ba6d79401e26c3fa6d7f7db7df584e8 Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Thu, 21 May 2026 11:49:12 -0400 Subject: [PATCH] style: fix rustfmt formatting in channels.rs and messages.rs --- crates/sprout-cli/src/commands/channels.rs | 3 +-- crates/sprout-cli/src/commands/messages.rs | 11 ++++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/crates/sprout-cli/src/commands/channels.rs b/crates/sprout-cli/src/commands/channels.rs index fe4eac3b3d..b4eb6e51de 100644 --- a/crates/sprout-cli/src/commands/channels.rs +++ b/crates/sprout-cli/src/commands/channels.rs @@ -81,8 +81,7 @@ pub async fn cmd_list_channels( tag.as_array() .map(|a| { a.len() == 1 - && a.first().and_then(|v| v.as_str()) - == Some(nip29_tag) + && a.first().and_then(|v| v.as_str()) == Some(nip29_tag) }) .unwrap_or(false) }) diff --git a/crates/sprout-cli/src/commands/messages.rs b/crates/sprout-cli/src/commands/messages.rs index 5cdc4532a9..08aa5eefc7 100644 --- a/crates/sprout-cli/src/commands/messages.rs +++ b/crates/sprout-cli/src/commands/messages.rs @@ -382,13 +382,10 @@ pub async fn cmd_send_message( let mention_refs: Vec<&str> = merged.iter().map(|s| s.as_str()).collect(); let builder = match p.kind { - Some(45001) => sprout_sdk::build_forum_post( - channel_uuid, - &final_content, - &mention_refs, - &media_tags, - ) - .map_err(|e| CliError::Other(format!("build_forum_post failed: {e}")))?, + Some(45001) => { + sprout_sdk::build_forum_post(channel_uuid, &final_content, &mention_refs, &media_tags) + .map_err(|e| CliError::Other(format!("build_forum_post failed: {e}")))? + } Some(45003) => { let tr = thread_ref.as_ref().ok_or_else(|| { CliError::Usage("--reply-to is required for forum comments (kind 45003)".into())