@@ -859,7 +859,7 @@ mod tests {
859
859
check_search (
860
860
ra_fixture,
861
861
"main" ,
862
- Query :: new ( "fmt" . to_string ( ) ) . fuzzy ( ) ,
862
+ Query :: new ( "fmt" . to_owned ( ) ) . fuzzy ( ) ,
863
863
expect ! [ [ r#"
864
864
dep::fmt (t)
865
865
dep::fmt::Display::FMT_CONST (a)
@@ -888,9 +888,7 @@ mod tests {
888
888
check_search (
889
889
ra_fixture,
890
890
"main" ,
891
- Query :: new ( "fmt" . to_string ( ) )
892
- . fuzzy ( )
893
- . assoc_search_mode ( AssocSearchMode :: AssocItemsOnly ) ,
891
+ Query :: new ( "fmt" . to_owned ( ) ) . fuzzy ( ) . assoc_search_mode ( AssocSearchMode :: AssocItemsOnly ) ,
894
892
expect ! [ [ r#"
895
893
dep::fmt::Display::FMT_CONST (a)
896
894
dep::fmt::Display::format_function (a)
@@ -901,7 +899,7 @@ mod tests {
901
899
check_search (
902
900
ra_fixture,
903
901
"main" ,
904
- Query :: new ( "fmt" . to_string ( ) ) . fuzzy ( ) . assoc_search_mode ( AssocSearchMode :: Exclude ) ,
902
+ Query :: new ( "fmt" . to_owned ( ) ) . fuzzy ( ) . assoc_search_mode ( AssocSearchMode :: Exclude ) ,
905
903
expect ! [ [ r#"
906
904
dep::fmt (t)
907
905
"# ] ] ,
@@ -937,7 +935,7 @@ pub mod fmt {
937
935
check_search (
938
936
ra_fixture,
939
937
"main" ,
940
- Query :: new ( "fmt" . to_string ( ) ) . fuzzy ( ) ,
938
+ Query :: new ( "fmt" . to_owned ( ) ) . fuzzy ( ) ,
941
939
expect ! [ [ r#"
942
940
dep::Fmt (m)
943
941
dep::Fmt (t)
@@ -951,7 +949,7 @@ pub mod fmt {
951
949
check_search (
952
950
ra_fixture,
953
951
"main" ,
954
- Query :: new ( "fmt" . to_string ( ) ) ,
952
+ Query :: new ( "fmt" . to_owned ( ) ) ,
955
953
expect ! [ [ r#"
956
954
dep::Fmt (m)
957
955
dep::Fmt (t)
@@ -991,7 +989,7 @@ pub mod fmt {
991
989
check_search (
992
990
ra_fixture,
993
991
"main" ,
994
- Query :: new ( "fmt" . to_string ( ) ) ,
992
+ Query :: new ( "fmt" . to_owned ( ) ) ,
995
993
expect ! [ [ r#"
996
994
dep::Fmt (m)
997
995
dep::Fmt (t)
@@ -1015,7 +1013,7 @@ pub mod fmt {
1015
1013
check_search (
1016
1014
ra_fixture,
1017
1015
"main" ,
1018
- Query :: new ( "FMT" . to_string ( ) ) ,
1016
+ Query :: new ( "FMT" . to_owned ( ) ) ,
1019
1017
expect ! [ [ r#"
1020
1018
dep::FMT (t)
1021
1019
dep::FMT (v)
@@ -1027,7 +1025,7 @@ pub mod fmt {
1027
1025
check_search (
1028
1026
ra_fixture,
1029
1027
"main" ,
1030
- Query :: new ( "FMT" . to_string ( ) ) . case_sensitive ( ) ,
1028
+ Query :: new ( "FMT" . to_owned ( ) ) . case_sensitive ( ) ,
1031
1029
expect ! [ [ r#"
1032
1030
dep::FMT (t)
1033
1031
dep::FMT (v)
0 commit comments