remove single-use lifetimes

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-03-02 17:26:37 -05:00 committed by June
parent 56f36fe7a7
commit a9f714ae8d
5 changed files with 6 additions and 7 deletions

View file

@ -281,7 +281,7 @@ impl service::rooms::state_cache::Data for KeyValueDatabase {
}
#[tracing::instrument(skip(self))]
fn server_in_room<'a>(&'a self, server: &ServerName, room_id: &RoomId) -> Result<bool> {
fn server_in_room(&self, server: &ServerName, room_id: &RoomId) -> Result<bool> {
let mut key = server.as_bytes().to_vec();
key.push(0xff);
key.extend_from_slice(room_id.as_bytes());

View file

@ -1066,6 +1066,7 @@ impl KeyValueDatabase {
res
}
#[allow(clippy::infinite_loop)]
#[tracing::instrument]
pub fn start_check_for_updates_task() {
tokio::spawn(async move {