@@ -33,7 +33,7 @@ pub trait Datastore {
3333 . ok_or_else ( || anyhow ! ( "TableId `{table_id}` does not exist" ) )
3434 }
3535
36- fn table_scan ( & self , table_id : TableId ) -> Result < TableScanIter > {
36+ fn table_scan ( & self , table_id : TableId ) -> Result < TableScanIter < ' _ > > {
3737 self . table ( table_id)
3838 . map ( |table| table. scan_rows ( self . blob_store ( ) ) )
3939 . ok_or_else ( || anyhow ! ( "TableId `{table_id}` does not exist" ) )
@@ -44,7 +44,7 @@ pub trait Datastore {
4444 table_id : TableId ,
4545 index_id : IndexId ,
4646 key : & AlgebraicValue ,
47- ) -> Result < IndexScanPointIter > {
47+ ) -> Result < IndexScanPointIter < ' _ > > {
4848 self . table ( table_id)
4949 . ok_or_else ( || anyhow ! ( "TableId `{table_id}` does not exist" ) )
5050 . and_then ( |table| {
@@ -60,7 +60,7 @@ pub trait Datastore {
6060 table_id : TableId ,
6161 index_id : IndexId ,
6262 range : & impl RangeBounds < AlgebraicValue > ,
63- ) -> Result < IndexScanRangeIter > {
63+ ) -> Result < IndexScanRangeIter < ' _ > > {
6464 self . table ( table_id)
6565 . ok_or_else ( || anyhow ! ( "TableId `{table_id}` does not exist" ) )
6666 . and_then ( |table| {
@@ -93,17 +93,17 @@ pub trait DeltaStore {
9393 index_id : IndexId ,
9494 delta : Delta ,
9595 range : impl RangeBounds < AlgebraicValue > ,
96- ) -> impl Iterator < Item = Row > ;
96+ ) -> impl Iterator < Item = Row < ' _ > > ;
9797
9898 fn index_scan_point_for_delta (
9999 & self ,
100100 table_id : TableId ,
101101 index_id : IndexId ,
102102 delta : Delta ,
103103 point : & AlgebraicValue ,
104- ) -> impl Iterator < Item = Row > ;
104+ ) -> impl Iterator < Item = Row < ' _ > > ;
105105
106- fn delta_scan ( & self , table_id : TableId , inserts : bool ) -> DeltaScanIter {
106+ fn delta_scan ( & self , table_id : TableId , inserts : bool ) -> DeltaScanIter < ' _ > {
107107 match inserts {
108108 true => DeltaScanIter {
109109 iter : self . inserts_for_table ( table_id) ,
0 commit comments