@@ -859,7 +859,7 @@ mod tests {
859859 check_search (
860860 ra_fixture,
861861 "main" ,
862- Query :: new ( "fmt" . to_string ( ) ) . fuzzy ( ) ,
862+ Query :: new ( "fmt" . to_owned ( ) ) . fuzzy ( ) ,
863863 expect ! [ [ r#"
864864 dep::fmt (t)
865865 dep::fmt::Display::FMT_CONST (a)
@@ -888,9 +888,7 @@ mod tests {
888888 check_search (
889889 ra_fixture,
890890 "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 ) ,
894892 expect ! [ [ r#"
895893 dep::fmt::Display::FMT_CONST (a)
896894 dep::fmt::Display::format_function (a)
@@ -901,7 +899,7 @@ mod tests {
901899 check_search (
902900 ra_fixture,
903901 "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 ) ,
905903 expect ! [ [ r#"
906904 dep::fmt (t)
907905 "# ] ] ,
@@ -937,7 +935,7 @@ pub mod fmt {
937935 check_search (
938936 ra_fixture,
939937 "main" ,
940- Query :: new ( "fmt" . to_string ( ) ) . fuzzy ( ) ,
938+ Query :: new ( "fmt" . to_owned ( ) ) . fuzzy ( ) ,
941939 expect ! [ [ r#"
942940 dep::Fmt (m)
943941 dep::Fmt (t)
@@ -951,7 +949,7 @@ pub mod fmt {
951949 check_search (
952950 ra_fixture,
953951 "main" ,
954- Query :: new ( "fmt" . to_string ( ) ) ,
952+ Query :: new ( "fmt" . to_owned ( ) ) ,
955953 expect ! [ [ r#"
956954 dep::Fmt (m)
957955 dep::Fmt (t)
@@ -991,7 +989,7 @@ pub mod fmt {
991989 check_search (
992990 ra_fixture,
993991 "main" ,
994- Query :: new ( "fmt" . to_string ( ) ) ,
992+ Query :: new ( "fmt" . to_owned ( ) ) ,
995993 expect ! [ [ r#"
996994 dep::Fmt (m)
997995 dep::Fmt (t)
@@ -1015,7 +1013,7 @@ pub mod fmt {
10151013 check_search (
10161014 ra_fixture,
10171015 "main" ,
1018- Query :: new ( "FMT" . to_string ( ) ) ,
1016+ Query :: new ( "FMT" . to_owned ( ) ) ,
10191017 expect ! [ [ r#"
10201018 dep::FMT (t)
10211019 dep::FMT (v)
@@ -1027,7 +1025,7 @@ pub mod fmt {
10271025 check_search (
10281026 ra_fixture,
10291027 "main" ,
1030- Query :: new ( "FMT" . to_string ( ) ) . case_sensitive ( ) ,
1028+ Query :: new ( "FMT" . to_owned ( ) ) . case_sensitive ( ) ,
10311029 expect ! [ [ r#"
10321030 dep::FMT (t)
10331031 dep::FMT (v)
0 commit comments