@@ -30,34 +30,34 @@ mod get_key;
3030pub trait QuerySource {
3131 /// Count the number of documents in the index/object store.
3232 #[ errdoc( QuerySource ( InvalidStateError , TransactionInactiveError , DataError ) ) ]
33- fn count ( & self ) -> Count < Self >
33+ fn count ( & self ) -> Count < ' _ , Self >
3434 where
3535 Self : Sized ;
3636
3737 /// Get one record from the object store or index. Returns the first match if a non-[only](KeyRange::Only) key is
3838 /// provided and multiple records match.
3939 #[ errdoc( QuerySource ( InvalidStateError , TransactionInactiveError , DataError ) ) ]
40- fn get < V , K , I > ( & self , key : I ) -> Get < Self , K , V >
40+ fn get < V , K , I > ( & self , key : I ) -> Get < ' _ , Self , K , V >
4141 where
4242 Self : Sized ,
4343 I : Into < KeyRange < K > > ;
4444
4545 /// Return the first matching key selected by the specified query.
4646 #[ errdoc( QuerySource ( TransactionInactiveError , InvalidStateError , DataError ) ) ]
47- fn get_key < K , I > ( & self , key_range : I ) -> GetKey < Self , K >
47+ fn get_key < K , I > ( & self , key_range : I ) -> GetKey < ' _ , Self , K >
4848 where
4949 Self : Sized ,
5050 I : Into < KeyRange < K > > ;
5151
5252 /// Get all records in the object store or index.
5353 #[ errdoc( QuerySource ( InvalidStateError , TransactionInactiveError , DataError ) ) ]
54- fn get_all < V > ( & self ) -> GetAllRecords < Self , V >
54+ fn get_all < V > ( & self ) -> GetAllRecords < ' _ , Self , V >
5555 where
5656 Self : Sized ;
5757
5858 /// Get all keys in the object store or index.
5959 #[ errdoc( QuerySource ( InvalidStateError , TransactionInactiveError , DataError ) ) ]
60- fn get_all_keys < K > ( & self ) -> GetAllKeys < Self , K >
60+ fn get_all_keys < K > ( & self ) -> GetAllKeys < ' _ , Self , K >
6161 where
6262 Self : Sized ;
6363
@@ -77,12 +77,12 @@ pub trait QuerySource {
7777 /// Open a cursor that iterates over the records in the index or object store.
7878 /// Resolves to `None` if the cursor is empty.
7979 #[ errdoc( Cursor ( TransactionInactiveError , DataErrorOpen , InvalidStateErrorOpen ) ) ]
80- fn open_cursor( & self ) -> CursorBuilder <Self > where Self : Sized ;
80+ fn open_cursor( & self ) -> CursorBuilder <' _ , Self > where Self : Sized ;
8181
8282 /// Open a cursor that iterates over the keys in the index or object store.
8383 /// Resolves to `None` if the cursor is empty.
8484 #[ errdoc( Cursor ( TransactionInactiveError , DataErrorOpen , InvalidStateErrorOpen ) ) ]
85- fn open_key_cursor( & self ) -> KeyCursorBuilder <Self > where Self : Sized ;
85+ fn open_key_cursor( & self ) -> KeyCursorBuilder <' _ , Self > where Self : Sized ;
8686 }
8787}
8888
@@ -99,7 +99,7 @@ impl<T: SystemRepr<Repr = R>, R: QuerySourceInternal> QuerySource for T {
9999 }
100100
101101 #[ inline]
102- fn count ( & self ) -> Count < Self > {
102+ fn count ( & self ) -> Count < ' _ , Self > {
103103 Count :: new ( self )
104104 }
105105
@@ -110,39 +110,39 @@ impl<T: SystemRepr<Repr = R>, R: QuerySourceInternal> QuerySource for T {
110110 }
111111 }
112112
113- fn get < V , K , I > ( & self , key : I ) -> Get < Self , K , V >
113+ fn get < V , K , I > ( & self , key : I ) -> Get < ' _ , Self , K , V >
114114 where
115115 I : Into < KeyRange < K > > ,
116116 {
117117 Get :: new ( self , key. into ( ) )
118118 }
119119
120- fn get_key < K , I > ( & self , key_range : I ) -> GetKey < Self , K >
120+ fn get_key < K , I > ( & self , key_range : I ) -> GetKey < ' _ , Self , K >
121121 where
122122 I : Into < KeyRange < K > > ,
123123 {
124124 GetKey :: new ( self , key_range. into ( ) )
125125 }
126126
127127 #[ inline]
128- fn get_all < V > ( & self ) -> GetAllRecords < Self , V > {
128+ fn get_all < V > ( & self ) -> GetAllRecords < ' _ , Self , V > {
129129 GetAllRecords :: new ( self )
130130 }
131131
132132 #[ inline]
133- fn get_all_keys < K > ( & self ) -> GetAllKeys < Self , K > {
133+ fn get_all_keys < K > ( & self ) -> GetAllKeys < ' _ , Self , K > {
134134 GetAllKeys :: new ( self )
135135 }
136136
137137 iffeat ! {
138138 #[ cfg( feature = "cursors" ) ]
139139 #[ inline]
140- fn open_cursor( & self ) -> CursorBuilder <Self > {
140+ fn open_cursor( & self ) -> CursorBuilder <' _ , Self > {
141141 CursorBuilder :: new( self )
142142 }
143143
144144 #[ inline]
145- fn open_key_cursor( & self ) -> KeyCursorBuilder <Self > {
145+ fn open_key_cursor( & self ) -> KeyCursorBuilder <' _ , Self > {
146146 KeyCursorBuilder :: new( self )
147147 }
148148 }
0 commit comments