diff --git a/sqlx-core/src/connection.rs b/sqlx-core/src/connection.rs index 5313c6c7..402a198c 100644 --- a/sqlx-core/src/connection.rs +++ b/sqlx-core/src/connection.rs @@ -50,10 +50,10 @@ pub trait Connection: Send { /// })).await /// # } /// ``` - fn transaction(&mut self, callback: F) -> BoxFuture<'_, Result> + fn transaction<'a, F, R, E>(&'a mut self, callback: F) -> BoxFuture<'a, Result> where for<'c> F: FnOnce(&'c mut Transaction<'_, Self::Database>) -> BoxFuture<'c, Result> - + 'static + + 'a + Send + Sync, Self: Sized,