mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
style: Remove unneeded statements (clippy)
This commit is contained in:
@@ -15,7 +15,6 @@ use ruma::{
|
||||
AnyToDeviceEvent, GlobalAccountDataEventType, ignored_user_list::IgnoredUserListEvent,
|
||||
},
|
||||
serde::Raw,
|
||||
uint,
|
||||
};
|
||||
use serde_json::json;
|
||||
|
||||
@@ -147,12 +146,12 @@ impl Service {
|
||||
}
|
||||
|
||||
/// 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");
|
||||
}
|
||||
|
||||
/// 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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user