Run cargo fmt.
This commit is contained in:
@@ -11,7 +11,7 @@ pub async fn req(user: User, target: Ref) -> Result<()> {
|
||||
.with_channel(&target)
|
||||
.for_channel()
|
||||
.await?;
|
||||
|
||||
|
||||
if !perm.get_view() {
|
||||
Err(Error::MissingPermission)?
|
||||
}
|
||||
|
||||
@@ -45,8 +45,7 @@ pub async fn req(user: User, target: Ref, data: Json<Data>) -> Result<()> {
|
||||
}
|
||||
|
||||
match &target {
|
||||
Channel::Group { id, icon, .. } |
|
||||
Channel::TextChannel { id, icon, .. } => {
|
||||
Channel::Group { id, icon, .. } | Channel::TextChannel { id, icon, .. } => {
|
||||
let mut set = doc! {};
|
||||
let mut unset = doc! {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user