File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ pub enum SourceSubgraph {
9898}
9999
100100impl SourceSubgraph {
101- pub fn from_str ( s : & str ) -> Self {
101+ fn new ( s : & str ) -> Self {
102102 if let Some ( ( alias, subgraph) ) = s. split_once ( ':' ) {
103103 Self :: WithAlias ( ( alias. to_string ( ) , subgraph. to_string ( ) ) )
104104 } else {
@@ -144,7 +144,7 @@ impl TestCase {
144144 T : Future < Output = Result < ( ) , anyhow:: Error > > + Send + ' static ,
145145 {
146146 let mut test_case = Self :: new ( name, test) ;
147- test_case. source_subgraph = Some ( vec ! [ SourceSubgraph :: from_str ( base_subgraph) ] ) ;
147+ test_case. source_subgraph = Some ( vec ! [ SourceSubgraph :: new ( base_subgraph) ] ) ;
148148 test_case
149149 }
150150
@@ -160,7 +160,7 @@ impl TestCase {
160160 test_case. source_subgraph = Some (
161161 source_subgraphs
162162 . into_iter ( )
163- . map ( SourceSubgraph :: from_str )
163+ . map ( SourceSubgraph :: new )
164164 . collect ( ) ,
165165 ) ;
166166 test_case
You can’t perform that action at this time.
0 commit comments