From e7eaed6220e79986ba1ed6edcfa585e1e46e135f Mon Sep 17 00:00:00 2001 From: up9cloud <8325632+up9cloud@users.noreply.github.com> Date: Fri, 1 Jan 2021 22:10:52 -0800 Subject: [PATCH] remove unnecessary Fut --- sqlx-core/src/pool/options.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sqlx-core/src/pool/options.rs b/sqlx-core/src/pool/options.rs index fb89d99b..c16d694f 100644 --- a/sqlx-core/src/pool/options.rs +++ b/sqlx-core/src/pool/options.rs @@ -171,7 +171,7 @@ impl PoolOptions { self } - pub fn before_acquire(mut self, callback: F) -> Self + pub fn before_acquire(mut self, callback: F) -> Self where for<'c> F: Fn(&'c mut DB::Connection) -> BoxFuture<'c, Result> + 'static @@ -182,7 +182,7 @@ impl PoolOptions { self } - pub fn after_release(mut self, callback: F) -> Self + pub fn after_release(mut self, callback: F) -> Self where F: Fn(&mut DB::Connection) -> bool + 'static + Send + Sync, {