diff --git a/core/src/inmemory.rs b/core/src/inmemory.rs index 6dacdd1..9c7ac48 100644 --- a/core/src/inmemory.rs +++ b/core/src/inmemory.rs @@ -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> { 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"); diff --git a/server/src/api/get_child_version.rs b/server/src/api/get_child_version.rs index fef19c1..a845617 100644 --- a/server/src/api/get_child_version.rs +++ b/server/src/api/get_child_version.rs @@ -23,7 +23,7 @@ pub(crate) async fn service( let parent_version_id = path.into_inner(); let client_id = server_state.client_id_header(&req)?; - return match server_state + match server_state .server .get_child_version(client_id, parent_version_id) { @@ -43,7 +43,7 @@ pub(crate) async fn service( // to add a new version, which may create the new client at the same time. Err(ServerError::NoSuchClient) => Err(error::ErrorNotFound("no such client")), Err(e) => Err(server_error_to_actix(e)), - }; + } } #[cfg(test)]