Skip to content

Commit

Permalink
make clippy happy maybe.
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Oct 28, 2022
1 parent 8ac9533 commit a9d3277
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions crates/apollo-parser/benches/supergraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ fn parse_schema(schema: &str) {
.selection_set()
.expect("the node SelectionSet is not optional in the spec; qed");
for selection in selection_set.selections() {
match selection {
ast::Selection::Field(field) => {
let _selection_set = field.selection_set();
}
_ => {}
if let ast::Selection::Field(field) = selection {
let _selection_set = field.selection_set();
}
}
}
Expand Down

0 comments on commit a9d3277

Please sign in to comment.