Skip to content

Commit bdab40a

Browse files
committed
refactor: Fix clippy lint str_to_string in sliding sync tests
1 parent 87de9c7 commit bdab40a

File tree

1 file changed

+12
-12
lines changed
  • testing/sliding-sync-integration-test/src

1 file changed

+12
-12
lines changed

testing/sliding-sync-integration-test/src/lib.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ mod tests {
108108
SlidingSyncViewBuilder::default()
109109
.sync_mode(SlidingSyncMode::Selective)
110110
.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()])
112112
.name(name)
113113
.build()
114114
};
@@ -201,7 +201,7 @@ mod tests {
201201
SlidingSyncViewBuilder::default()
202202
.sync_mode(SlidingSyncMode::Selective)
203203
.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()])
205205
.name(name)
206206
.build()
207207
};
@@ -324,14 +324,14 @@ mod tests {
324324
let sliding_window_view = SlidingSyncViewBuilder::default()
325325
.sync_mode(SlidingSyncMode::Selective)
326326
.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()])
328328
.name("sliding")
329329
.build()?;
330330

331331
let full = SlidingSyncViewBuilder::default()
332332
.sync_mode(SlidingSyncMode::GrowingFullSync)
333333
.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()])
335335
.name("full")
336336
.build()?;
337337
let sync_proxy =
@@ -381,7 +381,7 @@ mod tests {
381381
let sliding_window_view = SlidingSyncViewBuilder::default()
382382
.sync_mode(SlidingSyncMode::Selective)
383383
.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()])
385385
.name("sliding")
386386
.build()?;
387387
let sync_proxy = sync_proxy_builder.add_view(sliding_window_view).build().await?;
@@ -500,7 +500,7 @@ mod tests {
500500
let sliding_window_view = SlidingSyncViewBuilder::default()
501501
.sync_mode(SlidingSyncMode::Selective)
502502
.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()])
504504
.name("sliding")
505505
.build()?;
506506
let sync_proxy = sync_proxy_builder.add_view(sliding_window_view).build().await?;
@@ -676,13 +676,13 @@ mod tests {
676676
let sliding_window_view = SlidingSyncViewBuilder::default()
677677
.sync_mode(SlidingSyncMode::Selective)
678678
.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()])
680680
.name("sliding")
681681
.build()?;
682682
let growing_sync = SlidingSyncViewBuilder::default()
683683
.sync_mode(SlidingSyncMode::GrowingFullSync)
684684
.limit(100)
685-
.sort(vec!["by_recency".to_string(), "by_name".to_string()])
685+
.sort(vec!["by_recency".to_owned(), "by_name".to_owned()])
686686
.name("growing")
687687
.build()?;
688688
anyhow::Ok((sliding_window_view, growing_sync))
@@ -740,7 +740,7 @@ mod tests {
740740
let growing_sync = SlidingSyncViewBuilder::default()
741741
.sync_mode(SlidingSyncMode::GrowingFullSync)
742742
.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()])
744744
.name("growing")
745745
.build()?;
746746

@@ -800,7 +800,7 @@ mod tests {
800800
let growing_sync = SlidingSyncViewBuilder::default()
801801
.sync_mode(SlidingSyncMode::GrowingFullSync)
802802
.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()])
804804
.name("growing")
805805
.build()?;
806806

@@ -868,7 +868,7 @@ mod tests {
868868
let growing_sync = SlidingSyncViewBuilder::default()
869869
.sync_mode(SlidingSyncMode::GrowingFullSync)
870870
.limit(100)
871-
.sort(vec!["by_recency".to_string(), "by_name".to_string()])
871+
.sort(vec!["by_recency".to_owned(), "by_name".to_owned()])
872872
.name("growing")
873873
.build()?;
874874

@@ -958,7 +958,7 @@ mod tests {
958958
let growing_sync = SlidingSyncViewBuilder::default()
959959
.sync_mode(SlidingSyncMode::GrowingFullSync)
960960
.limit(100)
961-
.sort(vec!["by_recency".to_string(), "by_name".to_string()])
961+
.sort(vec!["by_recency".to_owned(), "by_name".to_owned()])
962962
.name("growing")
963963
.build()?;
964964

0 commit comments

Comments
 (0)