@@ -156,7 +156,7 @@ where
156
156
{
157
157
ApiPageSelector {
158
158
scan : scan_params. clone ( ) ,
159
- last_seen : scan_params. marker_for_item ( item) . clone ( ) ,
159
+ last_seen : scan_params. marker_for_item ( item) ,
160
160
}
161
161
}
162
162
@@ -184,10 +184,10 @@ where
184
184
* test the bulk of the logic without needing to cons up a Dropshot
185
185
* `RequestContext` just to get the limit.
186
186
*/
187
- fn data_page_params_with_limit < ' a , S > (
187
+ fn data_page_params_with_limit < S > (
188
188
limit : NonZeroUsize ,
189
- pag_params : & ' a PaginationParams < S , ApiPageSelector < S , S :: MarkerValue > > ,
190
- ) -> Result < DataPageParams < ' a , S :: MarkerValue > , HttpError >
189
+ pag_params : & PaginationParams < S , ApiPageSelector < S , S :: MarkerValue > > ,
190
+ ) -> Result < DataPageParams < S :: MarkerValue > , HttpError >
191
191
where
192
192
S : ScanParams ,
193
193
{
@@ -287,7 +287,7 @@ impl ScanParams for ApiScanById {
287
287
PaginationOrder :: Ascending
288
288
}
289
289
fn marker_for_item < T : ApiObjectIdentity > ( & self , item : & T ) -> Uuid {
290
- item. identity ( ) . id . clone ( )
290
+ item. identity ( ) . id
291
291
}
292
292
fn from_query ( p : & ApiPaginatedById ) -> Result < & Self , HttpError > {
293
293
Ok ( match p. page {
@@ -384,7 +384,7 @@ impl ScanParams for ApiScanByNameOrId {
384
384
let identity = item. identity ( ) ;
385
385
match pagination_field_for_scan_params ( self ) {
386
386
ApiPagField :: Name => ApiNameOrIdMarker :: Name ( identity. name . clone ( ) ) ,
387
- ApiPagField :: Id => ApiNameOrIdMarker :: Id ( identity. id . clone ( ) ) ,
387
+ ApiPagField :: Id => ApiNameOrIdMarker :: Id ( identity. id ) ,
388
388
}
389
389
}
390
390
@@ -437,10 +437,10 @@ pub fn data_page_params_nameid_name<'a>(
437
437
data_page_params_nameid_name_limit ( limit, pag_params)
438
438
}
439
439
440
- fn data_page_params_nameid_name_limit < ' a > (
440
+ fn data_page_params_nameid_name_limit (
441
441
limit : NonZeroUsize ,
442
- pag_params : & ' a ApiPaginatedByNameOrId ,
443
- ) -> Result < DataPageParams < ' a , ApiName > , HttpError > {
442
+ pag_params : & ApiPaginatedByNameOrId ,
443
+ ) -> Result < DataPageParams < ApiName > , HttpError > {
444
444
let data_page = data_page_params_with_limit ( limit, pag_params) ?;
445
445
let direction = data_page. direction ;
446
446
let marker = match data_page. marker {
@@ -467,10 +467,10 @@ pub fn data_page_params_nameid_id<'a>(
467
467
data_page_params_nameid_id_limit ( limit, pag_params)
468
468
}
469
469
470
- fn data_page_params_nameid_id_limit < ' a > (
470
+ fn data_page_params_nameid_id_limit (
471
471
limit : NonZeroUsize ,
472
- pag_params : & ' a ApiPaginatedByNameOrId ,
473
- ) -> Result < DataPageParams < ' a , Uuid > , HttpError > {
472
+ pag_params : & ApiPaginatedByNameOrId ,
473
+ ) -> Result < DataPageParams < Uuid > , HttpError > {
474
474
let data_page = data_page_params_with_limit ( limit, pag_params) ?;
475
475
let direction = data_page. direction ;
476
476
let marker = match data_page. marker {
0 commit comments