From 3752cbcd02d26b082eb91fd90186fee7de6e5428 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Thu, 17 Oct 2024 20:52:24 +0200 Subject: [PATCH] Drop unnecessary call to `.acquire()` --- sqlx-postgres/src/listener.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx-postgres/src/listener.rs b/sqlx-postgres/src/listener.rs index ac8458554f..cac4add991 100644 --- a/sqlx-postgres/src/listener.rs +++ b/sqlx-postgres/src/listener.rs @@ -335,7 +335,7 @@ impl<'c> Acquire<'c> for &'c mut PgListener { type Connection = &'c mut PgConnection; fn acquire(self) -> BoxFuture<'c, Result> { - self.connection().and_then(|c| c.acquire()).boxed() + self.connection().boxed() } fn begin(self) -> BoxFuture<'c, Result, Error>> {