File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,10 @@ pub trait GenericClient: private::Sealed {
66
66
parameter_types : & [ Type ] ,
67
67
) -> Result < Statement , Error > ;
68
68
69
- /// Like `Client::transaction`.
70
- async fn transaction ( & mut self ) -> Result < Transaction < ' _ > , Error > ;
69
+ /// Like [ `Client::transaction`] .
70
+ async fn transaction < ' a > ( & ' a mut self ) -> Result < Transaction < ' a > , Error > ;
71
71
72
- /// Like `Client::batch_execute`.
72
+ /// Like [ `Client::batch_execute`] .
73
73
async fn batch_execute ( & self , query : & str ) -> Result < ( ) , Error > ;
74
74
75
75
/// Returns a reference to the underlying `Client`.
@@ -148,7 +148,7 @@ impl GenericClient for Client {
148
148
self . prepare_typed ( query, parameter_types) . await
149
149
}
150
150
151
- async fn transaction ( & mut self ) -> Result < Transaction < ' _ > , Error > {
151
+ async fn transaction < ' a > ( & ' a mut self ) -> Result < Transaction < ' a > , Error > {
152
152
self . transaction ( ) . await
153
153
}
154
154
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ impl<'a> TransactionBuilder<'a> {
113
113
done : bool ,
114
114
}
115
115
116
- impl < ' a > Drop for RollbackIfNotDone < ' a > {
116
+ impl Drop for RollbackIfNotDone < ' _ > {
117
117
fn drop ( & mut self ) {
118
118
if self . done {
119
119
return ;
You can’t perform that action at this time.
0 commit comments