remove unnecessary Fut

This commit is contained in:
up9cloud 2021-01-01 22:10:52 -08:00 committed by Ryan Leckey
parent 93ba3d59e7
commit e7eaed6220

View File

@ -171,7 +171,7 @@ impl<DB: Database> PoolOptions<DB> {
self
}
pub fn before_acquire<F, Fut>(mut self, callback: F) -> Self
pub fn before_acquire<F>(mut self, callback: F) -> Self
where
for<'c> F: Fn(&'c mut DB::Connection) -> BoxFuture<'c, Result<bool, Error>>
+ 'static
@ -182,7 +182,7 @@ impl<DB: Database> PoolOptions<DB> {
self
}
pub fn after_release<F, Fut>(mut self, callback: F) -> Self
pub fn after_release<F>(mut self, callback: F) -> Self
where
F: Fn(&mut DB::Connection) -> bool + 'static + Send + Sync,
{