@@ -108,7 +108,7 @@ mod tests {
108
108
SlidingSyncViewBuilder :: default ( )
109
109
. sync_mode ( SlidingSyncMode :: Selective )
110
110
. set_range ( 0u32 , 10u32 )
111
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
111
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
112
112
. name ( name)
113
113
. build ( )
114
114
} ;
@@ -201,7 +201,7 @@ mod tests {
201
201
SlidingSyncViewBuilder :: default ( )
202
202
. sync_mode ( SlidingSyncMode :: Selective )
203
203
. set_range ( 0u32 , 10u32 )
204
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
204
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
205
205
. name ( name)
206
206
. build ( )
207
207
} ;
@@ -324,14 +324,14 @@ mod tests {
324
324
let sliding_window_view = SlidingSyncViewBuilder :: default ( )
325
325
. sync_mode ( SlidingSyncMode :: Selective )
326
326
. set_range ( 0u32 , 10u32 )
327
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
327
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
328
328
. name ( "sliding" )
329
329
. build ( ) ?;
330
330
331
331
let full = SlidingSyncViewBuilder :: default ( )
332
332
. sync_mode ( SlidingSyncMode :: GrowingFullSync )
333
333
. batch_size ( 10u32 )
334
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
334
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
335
335
. name ( "full" )
336
336
. build ( ) ?;
337
337
let sync_proxy =
@@ -381,7 +381,7 @@ mod tests {
381
381
let sliding_window_view = SlidingSyncViewBuilder :: default ( )
382
382
. sync_mode ( SlidingSyncMode :: Selective )
383
383
. set_range ( 0u32 , 10u32 )
384
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
384
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
385
385
. name ( "sliding" )
386
386
. build ( ) ?;
387
387
let sync_proxy = sync_proxy_builder. add_view ( sliding_window_view) . build ( ) . await ?;
@@ -500,7 +500,7 @@ mod tests {
500
500
let sliding_window_view = SlidingSyncViewBuilder :: default ( )
501
501
. sync_mode ( SlidingSyncMode :: Selective )
502
502
. set_range ( 1u32 , 10u32 )
503
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
503
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
504
504
. name ( "sliding" )
505
505
. build ( ) ?;
506
506
let sync_proxy = sync_proxy_builder. add_view ( sliding_window_view) . build ( ) . await ?;
@@ -676,13 +676,13 @@ mod tests {
676
676
let sliding_window_view = SlidingSyncViewBuilder :: default ( )
677
677
. sync_mode ( SlidingSyncMode :: Selective )
678
678
. set_range ( 1u32 , 10u32 )
679
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
679
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
680
680
. name ( "sliding" )
681
681
. build ( ) ?;
682
682
let growing_sync = SlidingSyncViewBuilder :: default ( )
683
683
. sync_mode ( SlidingSyncMode :: GrowingFullSync )
684
684
. limit ( 100 )
685
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
685
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
686
686
. name ( "growing" )
687
687
. build ( ) ?;
688
688
anyhow:: Ok ( ( sliding_window_view, growing_sync) )
@@ -740,7 +740,7 @@ mod tests {
740
740
let growing_sync = SlidingSyncViewBuilder :: default ( )
741
741
. sync_mode ( SlidingSyncMode :: GrowingFullSync )
742
742
. batch_size ( 10u32 )
743
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
743
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
744
744
. name ( "growing" )
745
745
. build ( ) ?;
746
746
@@ -800,7 +800,7 @@ mod tests {
800
800
let growing_sync = SlidingSyncViewBuilder :: default ( )
801
801
. sync_mode ( SlidingSyncMode :: GrowingFullSync )
802
802
. batch_size ( 10u32 )
803
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
803
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
804
804
. name ( "growing" )
805
805
. build ( ) ?;
806
806
@@ -868,7 +868,7 @@ mod tests {
868
868
let growing_sync = SlidingSyncViewBuilder :: default ( )
869
869
. sync_mode ( SlidingSyncMode :: GrowingFullSync )
870
870
. limit ( 100 )
871
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
871
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
872
872
. name ( "growing" )
873
873
. build ( ) ?;
874
874
@@ -958,7 +958,7 @@ mod tests {
958
958
let growing_sync = SlidingSyncViewBuilder :: default ( )
959
959
. sync_mode ( SlidingSyncMode :: GrowingFullSync )
960
960
. limit ( 100 )
961
- . sort ( vec ! [ "by_recency" . to_string ( ) , "by_name" . to_string ( ) ] )
961
+ . sort ( vec ! [ "by_recency" . to_owned ( ) , "by_name" . to_owned ( ) ] )
962
962
. name ( "growing" )
963
963
. build ( ) ?;
964
964
0 commit comments