diff options
author | Christian Poveda <christian.poveda@ferrous-systems.com> | 2022-09-06 15:02:52 -0500 |
---|---|---|
committer | Darren Kulp <darren@kulp.ch> | 2022-09-08 22:14:58 -0400 |
commit | 9677e412c49e303e078e37ee30105cc635bb0ff8 (patch) | |
tree | 37ba27543f741061afca48eee3cb9823194a747e /tests | |
parent | 3842b11b8a42dc99219a012cb71105ee84b889ec (diff) |
fix clippy lints
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.rs b/tests/tests.rs index 71fc54be..8dcc5437 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -139,7 +139,7 @@ fn error_diff_mismatch( println!("+++ generated from: {:?}", header); } - for diff in diff::lines(&expected, &actual) { + for diff in diff::lines(expected, actual) { match diff { diff::Result::Left(l) => println!("-{}", l), diff::Result::Both(l, _) => println!(" {}", l), @@ -168,7 +168,7 @@ fn error_diff_mismatch( .output()?; } - return Err(Error::new(ErrorKind::Other, "Header and binding differ! Run with BINDGEN_OVERWRITE_EXPECTED=1 in the environment to automatically overwrite the expectation or with BINDGEN_TESTS_DIFFTOOL=meld to do this manually.")); + Err(Error::new(ErrorKind::Other, "Header and binding differ! Run with BINDGEN_OVERWRITE_EXPECTED=1 in the environment to automatically overwrite the expectation or with BINDGEN_TESTS_DIFFTOOL=meld to do this manually.")) } fn compare_generated_header( |