From ffe3faeca75d7716993cbfa9e5c269d529159ffc Mon Sep 17 00:00:00 2001 From: hdt3213 Date: Fri, 4 Apr 2025 18:40:28 +0800 Subject: [PATCH] cargo fmt --- crates/milli/src/search/new/tests/geo_sort.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/milli/src/search/new/tests/geo_sort.rs b/crates/milli/src/search/new/tests/geo_sort.rs index 3d89f5d2f..ff946d226 100644 --- a/crates/milli/src/search/new/tests/geo_sort.rs +++ b/crates/milli/src/search/new/tests/geo_sort.rs @@ -119,12 +119,18 @@ fn test_geo_sort_with_following_ranking_rules() { let mut s = Search::new(&rtxn, &index); s.scoring_strategy(crate::score_details::ScoringStrategy::Detailed); - s.sort_criteria(vec![AscDesc::Asc(Member::Geo([0., 0.])), AscDesc::Desc(Member::Field("score".to_string()))]); + s.sort_criteria(vec![ + AscDesc::Asc(Member::Geo([0., 0.])), + AscDesc::Desc(Member::Field("score".to_string())), + ]); let (ids, scores) = execute_iterative_and_rtree_returns_the_same(&rtxn, &index, &mut s); insta::assert_snapshot!(format!("{ids:?}"), @"[6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1, 4, 3, 2, 5]"); insta::assert_snapshot!(format!("{scores:#?}")); - s.sort_criteria(vec![AscDesc::Desc(Member::Geo([0., 0.])), AscDesc::Desc(Member::Field("score".to_string()))]); + s.sort_criteria(vec![ + AscDesc::Desc(Member::Geo([0., 0.])), + AscDesc::Desc(Member::Field("score".to_string())), + ]); let (ids, scores) = execute_iterative_and_rtree_returns_the_same(&rtxn, &index, &mut s); insta::assert_snapshot!(format!("{ids:?}"), @"[12, 13, 14, 15, 6, 7, 8, 9, 10, 11, 1, 4, 3, 2, 5]"); insta::assert_snapshot!(format!("{scores:#?}"));