Fix new clippy lints

This commit is contained in:
Dustin J. Mitchell 2024-11-30 02:54:38 +00:00
parent 1828a31a24
commit 8e6d901bf2
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -55,7 +55,7 @@ impl Storage for InMemoryStorage {
}
}
impl<'a> StorageTxn for InnerTxn<'a> {
impl StorageTxn for InnerTxn<'_> {
fn get_client(&mut self) -> anyhow::Result<Option<Client>> {
Ok(self.guard.clients.get(&self.client_id).cloned())
}
@ -163,7 +163,7 @@ impl<'a> StorageTxn for InnerTxn<'a> {
}
}
impl<'a> Drop for InnerTxn<'a> {
impl Drop for InnerTxn<'_> {
fn drop(&mut self) {
if self.written && !self.committed {
panic!("Uncommitted InMemoryStorage transaction dropped without commiting");