From 9d93636f240c4a73de432993224ac66126577835 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 24 Jul 2022 09:05:38 +0200 Subject: [PATCH] Remove unused lifetime definition --- postgres/examples/custom_state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/examples/custom_state.rs b/postgres/examples/custom_state.rs index 0a7bb86..ec27f41 100644 --- a/postgres/examples/custom_state.rs +++ b/postgres/examples/custom_state.rs @@ -44,7 +44,7 @@ async fn main() { struct Customizer; #[async_trait] -impl<'a> CustomizeConnection for Customizer { +impl CustomizeConnection for Customizer { async fn on_acquire(&self, conn: &mut CustomPostgresConnection) -> Result<(), Error> { conn.custom_state .insert(QueryName::BasicSelect, conn.prepare("SELECT 1").await?);