File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 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 {
6666 parameter_types : & [ Type ] ,
6767 ) -> Result < Statement , Error > ;
6868
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 > ;
7171
72- /// Like `Client::batch_execute`.
72+ /// Like [ `Client::batch_execute`] .
7373 async fn batch_execute ( & self , query : & str ) -> Result < ( ) , Error > ;
7474
7575 /// Returns a reference to the underlying `Client`.
@@ -148,7 +148,7 @@ impl GenericClient for Client {
148148 self . prepare_typed ( query, parameter_types) . await
149149 }
150150
151- async fn transaction ( & mut self ) -> Result < Transaction < ' _ > , Error > {
151+ async fn transaction < ' a > ( & ' a mut self ) -> Result < Transaction < ' a > , Error > {
152152 self . transaction ( ) . await
153153 }
154154
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ impl<'a> TransactionBuilder<'a> {
113113 done : bool ,
114114 }
115115
116- impl < ' a > Drop for RollbackIfNotDone < ' a > {
116+ impl Drop for RollbackIfNotDone < ' _ > {
117117 fn drop ( & mut self ) {
118118 if self . done {
119119 return ;
You can’t perform that action at this time.
0 commit comments