aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/src/tests.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-03 13:09:10 +0100
committerGitHub <[email protected]>2021-06-03 13:09:10 +0100
commit48ea50bf04a1bd12999bd9e27558ac31988c7228 (patch)
tree64b223398a3b62b8cc4e86239495a5b3e446441a /crates/syntax/src/tests.rs
parentc7eb19ebf9d42cada8cb532c6b3cb0e11a531b93 (diff)
parenta1e650082b068919f9515330e6d0977c09af190f (diff)
Merge #9124
9124: Apply a few clippy suggestions r=lnicola a=clemenswasser Co-authored-by: Clemens Wasser <[email protected]>
Diffstat (limited to 'crates/syntax/src/tests.rs')
-rw-r--r--crates/syntax/src/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/tests.rs b/crates/syntax/src/tests.rs
index 45f3c800f..9f2426171 100644
--- a/crates/syntax/src/tests.rs
+++ b/crates/syntax/src/tests.rs
@@ -236,7 +236,7 @@ where
236 } 236 }
237 }); 237 });
238 dir_tests(&test_data_dir(), err_paths, "rast", |text, path| { 238 dir_tests(&test_data_dir(), err_paths, "rast", |text, path| {
239 if let Ok(_) = f(text) { 239 if f(text).is_ok() {
240 panic!("'{:?}' successfully parsed when it should have errored", path); 240 panic!("'{:?}' successfully parsed when it should have errored", path);
241 } else { 241 } else {
242 "ERROR\n".to_owned() 242 "ERROR\n".to_owned()