@@ -6,7 +6,7 @@ use crate::{
6
6
use either:: Either ;
7
7
use futures_core:: future:: BoxFuture ;
8
8
use futures_core:: stream:: BoxStream ;
9
- use futures_util:: { stream, StreamExt , TryFutureExt , TryStreamExt } ;
9
+ use futures_util:: { stream, FutureExt , StreamExt , TryFutureExt , TryStreamExt } ;
10
10
use sqlx_core:: any:: {
11
11
Any , AnyArguments , AnyColumn , AnyConnectOptions , AnyConnectionBackend , AnyQueryResult , AnyRow ,
12
12
AnyStatement , AnyTypeInfo , AnyTypeInfoKind ,
@@ -26,27 +26,27 @@ impl AnyConnectionBackend for MySqlConnection {
26
26
}
27
27
28
28
fn close ( self : Box < Self > ) -> BoxFuture < ' static , sqlx_core:: Result < ( ) > > {
29
- Connection :: close ( * self )
29
+ Connection :: close ( * self ) . boxed ( )
30
30
}
31
31
32
32
fn close_hard ( self : Box < Self > ) -> BoxFuture < ' static , sqlx_core:: Result < ( ) > > {
33
- Connection :: close_hard ( * self )
33
+ Connection :: close_hard ( * self ) . boxed ( )
34
34
}
35
35
36
36
fn ping ( & mut self ) -> BoxFuture < ' _ , sqlx_core:: Result < ( ) > > {
37
- Connection :: ping ( self )
37
+ Connection :: ping ( self ) . boxed ( )
38
38
}
39
39
40
40
fn begin ( & mut self ) -> BoxFuture < ' _ , sqlx_core:: Result < ( ) > > {
41
- MySqlTransactionManager :: begin ( self )
41
+ MySqlTransactionManager :: begin ( self ) . boxed ( )
42
42
}
43
43
44
44
fn commit ( & mut self ) -> BoxFuture < ' _ , sqlx_core:: Result < ( ) > > {
45
- MySqlTransactionManager :: commit ( self )
45
+ MySqlTransactionManager :: commit ( self ) . boxed ( )
46
46
}
47
47
48
48
fn rollback ( & mut self ) -> BoxFuture < ' _ , sqlx_core:: Result < ( ) > > {
49
- MySqlTransactionManager :: rollback ( self )
49
+ MySqlTransactionManager :: rollback ( self ) . boxed ( )
50
50
}
51
51
52
52
fn start_rollback ( & mut self ) {
@@ -58,7 +58,7 @@ impl AnyConnectionBackend for MySqlConnection {
58
58
}
59
59
60
60
fn flush ( & mut self ) -> BoxFuture < ' _ , sqlx_core:: Result < ( ) > > {
61
- Connection :: flush ( self )
61
+ Connection :: flush ( self ) . boxed ( )
62
62
}
63
63
64
64
fn should_flush ( & self ) -> bool {
0 commit comments