enable single_use_lifetimes lint

This commit is contained in:
Charles Hall 2024-05-12 14:49:24 -07:00
parent bc2f7c6826
commit 5d5e28770b
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
4 changed files with 5 additions and 10 deletions

View file

@ -264,7 +264,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());