chore(cli): apply clippy fixes

This commit is contained in:
Amaan Qureshi 2024-02-04 01:30:33 -05:00
parent 1fb16a72ac
commit 04ff704bca
No known key found for this signature in database
GPG key ID: E67890ADC4227273
49 changed files with 1094 additions and 1277 deletions

View file

@ -166,7 +166,7 @@ fn test_language_corpus(
let tree = parser.parse(&test.input, None).unwrap();
let mut actual_output = tree.root_node().to_sexp();
if !test.has_fields {
actual_output = strip_sexp_fields(actual_output);
actual_output = strip_sexp_fields(&actual_output);
}
if actual_output != test.output {
@ -253,7 +253,7 @@ fn test_language_corpus(
// Verify that the final tree matches the expectation from the corpus.
let mut actual_output = tree3.root_node().to_sexp();
if !test.has_fields {
actual_output = strip_sexp_fields(actual_output);
actual_output = strip_sexp_fields(&actual_output);
}
if actual_output != test.output {
@ -382,7 +382,7 @@ fn test_feature_corpus_files() {
let tree = parser.parse(&test.input, None).unwrap();
let mut actual_output = tree.root_node().to_sexp();
if !test.has_fields {
actual_output = strip_sexp_fields(actual_output);
actual_output = strip_sexp_fields(&actual_output);
}
if actual_output == test.output {
true