mirror of
https://github.com/block/buzz.git
synced 2026-11-04 00:12:02 +00:00
style: fix rustfmt formatting in channels.rs and messages.rs
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user