forked from jmug/stoatchat
Cargo fmt.
This commit is contained in:
@@ -66,7 +66,7 @@ pub async fn req(user: User, target: Ref) -> Result<()> {
|
||||
|
||||
target.publish_update(json!({ "owner": new_owner })).await?;
|
||||
} else {
|
||||
return target.delete().await
|
||||
return target.delete().await;
|
||||
}
|
||||
} else {
|
||||
get_collection("channels")
|
||||
|
||||
@@ -50,5 +50,7 @@ pub async fn req(user: User, target: Ref, msg: Ref, edit: Json<Data>) -> Result<
|
||||
with: "message",
|
||||
})?;
|
||||
|
||||
message.publish_update(json!({ "content": edit.content, "edited": DateTime(edited) })).await
|
||||
message
|
||||
.publish_update(json!({ "content": edit.content, "edited": DateTime(edited) }))
|
||||
.await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user