@@ -487,7 +487,7 @@ mod test_get_supergraph_config {
487
487
let supergraph_config_path = third_level_folder. path ( ) . join ( "supergraph.yaml" ) ;
488
488
fs:: write (
489
489
supergraph_config_path. clone ( ) ,
490
- & supergraph_config. into_bytes ( ) ,
490
+ supergraph_config. into_bytes ( ) ,
491
491
)
492
492
. expect ( "Could not write supergraph.yaml" ) ;
493
493
@@ -568,9 +568,10 @@ fn merge_supergraph_configs(
568
568
569
569
#[ cfg( test) ]
570
570
mod test_merge_supergraph_configs {
571
- use super :: * ;
572
571
use rstest:: { fixture, rstest} ;
573
572
573
+ use super :: * ;
574
+
574
575
#[ fixture]
575
576
#[ once]
576
577
fn local_supergraph_config_with_latest_fed_one_version ( ) -> SupergraphConfig {
@@ -1048,6 +1049,7 @@ mod test_resolve_supergraph_yaml {
1048
1049
use apollo_federation_types:: config:: { FederationVersion , SchemaSource , SubgraphConfig } ;
1049
1050
use assert_fs:: TempDir ;
1050
1051
use camino:: Utf8PathBuf ;
1052
+ use houston:: Config ;
1051
1053
use httpmock:: MockServer ;
1052
1054
use indoc:: indoc;
1053
1055
use rstest:: { fixture, rstest} ;
@@ -1056,14 +1058,11 @@ mod test_resolve_supergraph_yaml {
1056
1058
use speculoos:: assert_that;
1057
1059
use speculoos:: prelude:: { ResultAssertions , VecAssertions } ;
1058
1060
1059
- use houston:: Config ;
1060
-
1061
+ use super :: * ;
1061
1062
use crate :: options:: ProfileOpt ;
1062
1063
use crate :: utils:: client:: { ClientBuilder , StudioClientConfig } ;
1063
1064
use crate :: utils:: parsers:: FileDescriptorType ;
1064
1065
1065
- use super :: * ;
1066
-
1067
1066
#[ fixture]
1068
1067
fn profile_opt ( ) -> ProfileOpt {
1069
1068
ProfileOpt {
@@ -1185,7 +1184,7 @@ subgraphs:
1185
1184
routing_url: https://people.example.com
1186
1185
schema:
1187
1186
file: ./people.graphql"# ,
1188
- latest_fed2_version. to_string ( )
1187
+ latest_fed2_version
1189
1188
) ;
1190
1189
let tmp_home = TempDir :: new ( ) . unwrap ( ) ;
1191
1190
let mut config_path = Utf8PathBuf :: try_from ( tmp_home. path ( ) . to_path_buf ( ) ) . unwrap ( ) ;
@@ -1225,7 +1224,7 @@ subgraphs:
1225
1224
routing_url: https://people.example.com
1226
1225
schema:
1227
1226
file: ../../people.graphql"# ,
1228
- latest_fed2_version. to_string ( )
1227
+ latest_fed2_version
1229
1228
) ;
1230
1229
let tmp_home = TempDir :: new ( ) . unwrap ( ) ;
1231
1230
let tmp_dir = Utf8PathBuf :: try_from ( tmp_home. path ( ) . to_path_buf ( ) ) . unwrap ( ) ;
@@ -1279,7 +1278,7 @@ subgraphs:
1279
1278
routing_url: https://people.example.com
1280
1279
schema:
1281
1280
file: ../../people.graphql"# ,
1282
- latest_fed2_version. to_string ( )
1281
+ latest_fed2_version
1283
1282
) ;
1284
1283
let tmp_home = TempDir :: new ( ) . unwrap ( ) ;
1285
1284
let tmp_dir = Utf8PathBuf :: try_from ( tmp_home. path ( ) . to_path_buf ( ) ) . unwrap ( ) ;
0 commit comments