style: Remove unneeded statements (clippy)

This commit is contained in:
nexy7574 2025-06-28 21:24:20 +01:00 committed by Ellis Git
parent cc864dc8bb
commit 1ff8af8e9e

View file

@ -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);
}