cargo fmt

This commit is contained in:
Timo Kösters
2022-10-05 20:34:31 +02:00
committed by Nyaaori
parent 33a2b2b772
commit a4637e2ba1
119 changed files with 2787 additions and 1761 deletions

View File

@@ -1,5 +1,5 @@
use ruma::{UserId, RoomId};
use crate::Result;
use ruma::{RoomId, UserId};
pub trait Data: Send + Sync {
fn reset_notification_counts(&self, user_id: &UserId, room_id: &RoomId) -> Result<()>;

View File

@@ -29,7 +29,8 @@ impl Service {
token: u64,
shortstatehash: u64,
) -> Result<()> {
self.db.associate_token_shortstatehash(room_id, token, shortstatehash)
self.db
.associate_token_shortstatehash(room_id, token, shortstatehash)
}
pub fn get_token_shortstatehash(&self, room_id: &RoomId, token: u64) -> Result<Option<u64>> {