mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-30 03:14:35 +02:00
style: Remove unneeded statements (clippy)
This commit is contained in:
parent
cc864dc8bb
commit
1ff8af8e9e
1 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,6 @@ use ruma::{
|
||||||
AnyToDeviceEvent, GlobalAccountDataEventType, ignored_user_list::IgnoredUserListEvent,
|
AnyToDeviceEvent, GlobalAccountDataEventType, ignored_user_list::IgnoredUserListEvent,
|
||||||
},
|
},
|
||||||
serde::Raw,
|
serde::Raw,
|
||||||
uint,
|
|
||||||
};
|
};
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
|
@ -147,12 +146,12 @@ impl Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Suspend account, placing it in a read-only state
|
/// Suspend account, placing it in a read-only state
|
||||||
pub async fn suspend_account(&self, user_id: &UserId) -> () {
|
pub async fn suspend_account(&self, user_id: &UserId) {
|
||||||
self.db.userid_suspended.insert(user_id, "1");
|
self.db.userid_suspended.insert(user_id, "1");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Unsuspend account, placing it in a read-write state
|
/// Unsuspend account, placing it in a read-write state
|
||||||
pub async fn unsuspend_account(&self, user_id: &UserId) -> () {
|
pub async fn unsuspend_account(&self, user_id: &UserId) {
|
||||||
self.db.userid_suspended.remove(user_id);
|
self.db.userid_suspended.remove(user_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue