Fix some nightly Clippy lints #897
Annotations
9 errors
ci (aarch64-unknown-linux-gnu)
Process completed with exit code 2.
|
ci (x86_64-unknown-linux-musl)
Process completed with exit code 100.
|
ci (aarch64-unknown-linux-musl)
Process completed with exit code 2.
|
ci (aarch64-apple-darwin)
Process completed with exit code 1.
|
ci (x86_64-pc-windows-msvc)
Process completed with exit code 1.
|
ci (x86_64-apple-darwin)
Process completed with exit code 1.
|
[clippy] src/sanity_checks.rs#L26:
src/sanity_checks.rs#L26
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/sanity_checks.rs:26:34
|
26 | if !images_equal(&a, &b) {
| ^^ help: change this to: `a`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
|
[clippy] src/sanity_checks.rs#L26:
src/sanity_checks.rs#L26
error: this expression creates a reference which is immediately dereferenced by the compiler
--> src/sanity_checks.rs:26:34
|
26 | if !images_equal(&a, &b) {
| ^^ help: change this to: `a`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
|
ci (x86_64-unknown-linux-gnu)
reviewdog exited with status code: 1
|