Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
  • Loading branch information
jszwedko committed Jul 25, 2023
1 parent ac24a6c commit 361ca2a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/vector-config/src/schema/visitors/human_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ mod tests {
}
}));

let mut visitor = GenerateHumanFriendlyNameVisitor::default();
let mut visitor = GenerateHumanFriendlyNameVisitor;
visitor.visit_root_schema(&mut actual_schema);

assert_schemas_eq(expected_schema, actual_schema);
Expand All @@ -150,7 +150,7 @@ mod tests {
}
}));

let mut visitor = GenerateHumanFriendlyNameVisitor::default();
let mut visitor = GenerateHumanFriendlyNameVisitor;
visitor.visit_root_schema(&mut actual_schema);

assert_schemas_eq(expected_schema, actual_schema);
Expand All @@ -177,7 +177,7 @@ mod tests {
}
}));

let mut visitor = GenerateHumanFriendlyNameVisitor::default();
let mut visitor = GenerateHumanFriendlyNameVisitor;
visitor.visit_root_schema(&mut actual_schema);

assert_schemas_eq(expected_schema, actual_schema);
Expand All @@ -204,7 +204,7 @@ mod tests {
}
}));

let mut visitor = GenerateHumanFriendlyNameVisitor::default();
let mut visitor = GenerateHumanFriendlyNameVisitor;
visitor.visit_root_schema(&mut actual_schema);

assert_schemas_eq(expected_schema, actual_schema);
Expand All @@ -222,7 +222,7 @@ mod tests {

let expected_schema = actual_schema.clone();

let mut visitor = GenerateHumanFriendlyNameVisitor::default();
let mut visitor = GenerateHumanFriendlyNameVisitor;
visitor.visit_root_schema(&mut actual_schema);

assert_schemas_eq(expected_schema, actual_schema);
Expand All @@ -244,7 +244,7 @@ mod tests {

let expected_schema = actual_schema.clone();

let mut visitor = GenerateHumanFriendlyNameVisitor::default();
let mut visitor = GenerateHumanFriendlyNameVisitor;
visitor.visit_root_schema(&mut actual_schema);

assert_schemas_eq(expected_schema, actual_schema);
Expand Down Expand Up @@ -278,7 +278,7 @@ mod tests {
}
}));

let mut visitor = GenerateHumanFriendlyNameVisitor::default();
let mut visitor = GenerateHumanFriendlyNameVisitor;
visitor.visit_root_schema(&mut actual_schema);

assert_schemas_eq(expected_schema, actual_schema);
Expand Down

0 comments on commit 361ca2a

Please sign in to comment.