forked from jmug/stoatchat
Run cargo fmt.
This commit is contained in:
@@ -8,10 +8,7 @@ pub async fn req(user: User, target: Ref) -> Result<JsonValue> {
|
||||
let target = target.fetch_invite().await?;
|
||||
|
||||
match target {
|
||||
Invite::Server {
|
||||
channel,
|
||||
..
|
||||
} => {
|
||||
Invite::Server { channel, .. } => {
|
||||
let channel = Ref::from_unchecked(channel).fetch_channel().await?;
|
||||
let server = if let Channel::TextChannel { server, .. } = &channel {
|
||||
Ref::from_unchecked(server.clone()).fetch_server().await?
|
||||
|
||||
Reference in New Issue
Block a user