File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub mod sqlite;
1212#[ async_trait:: async_trait]  
1313pub  trait  Connection :  Send  + Sync  { 
1414    async  fn  maybe_create_indices ( & mut  self ) ; 
15-     async  fn  transaction ( & mut  self )  -> Box < dyn  Transaction  + ' _ > ; 
15+     async  fn  transaction < ' a > ( & ' a   mut  self )  -> Box < dyn  Transaction  + ' a > ; 
1616
1717    async  fn  load_index ( & mut  self )  -> Index ; 
1818
Original file line number Diff line number Diff line change @@ -553,7 +553,7 @@ where
553553    P :  Send  + Sync  + PClient , 
554554{ 
555555    async  fn  maybe_create_indices ( & mut  self )  { } 
556-     async  fn  transaction ( & mut  self )  -> Box < dyn  Transaction  + ' _ >  { 
556+     async  fn  transaction < ' a > ( & ' a   mut  self )  -> Box < dyn  Transaction  + ' a >  { 
557557        let  statements = self . statements ( ) . clone ( ) ; 
558558        let  tx = self . conn_mut ( ) . transaction ( ) . await . unwrap ( ) ; 
559559        Box :: new ( PostgresTransaction  { 
Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ impl Connection for SqliteConnection {
451451            . unwrap ( ) ; 
452452    } 
453453
454-     async  fn  transaction ( & mut  self )  -> Box < dyn  Transaction  + ' _ >  { 
454+     async  fn  transaction < ' a > ( & ' a   mut  self )  -> Box < dyn  Transaction  + ' a >  { 
455455        self . raw ( ) . execute_batch ( "BEGIN DEFERRED" ) . unwrap ( ) ; 
456456        Box :: new ( SqliteTransaction  { 
457457            conn :  self , 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments