Skip to content

Commit a482a33

Browse files
committed
tests: Fix warnings from clippy::should_implement_trait
1 parent ecf6bd9 commit a482a33

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/tests/integration_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub enum SourceSubgraph {
9898
}
9999

100100
impl 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

0 commit comments

Comments
 (0)