style: fix rustfmt formatting in channels.rs and messages.rs

This commit is contained in:
Will Pfleger
2026-05-21 11:49:12 -04:00
parent 058a498b57
commit 388877188b
2 changed files with 5 additions and 9 deletions

View File

@@ -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)
})

View File

@@ -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())