Push on main #52
codeql
on: dynamic
Matrix: analyze
Annotations
5 errors
|
[clippy] src/hex/dehexify.rs#L178:
src/hex/dehexify.rs#L178
error: manual implementation of `.is_multiple_of()`
--> src/hex/dehexify.rs:178:5
|
178 | if hex.len() % 2 != 0 {
| ^^^^^^^^^^^^^^^^^^ help: replace with: `!hex.len().is_multiple_of(2)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of
note: the lint level is defined here
--> src/lib.rs:1:9
|
1 | #![deny(clippy::all, missing_docs, unused_crate_dependencies)]
| ^^^^^^^^^^^
= note: `#[deny(clippy::manual_is_multiple_of)]` implied by `#[deny(clippy::all)]`
|
|
[clippy] src/hex/hexify.rs#L243:
src/hex/hexify.rs#L243
error: this expression borrows a value the compiler would automatically borrow
--> src/hex/hexify.rs:243:3
|
243 | (&b"Love Jane Forever".to_vec()).hexify(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `b"Love Jane Forever".to_vec()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
note: the lint level is defined here
--> src/lib.rs:1:9
|
1 | #![deny(clippy::all, missing_docs, unused_crate_dependencies)]
| ^^^^^^^^^^^
= note: `#[deny(clippy::needless_borrow)]` implied by `#[deny(clippy::all)]`
|
|
[clippy] src/hex/dehexify.rs#L347:
src/hex/dehexify.rs#L347
error: manual implementation of `.is_multiple_of()`
--> src/hex/dehexify.rs:347:5
|
347 | if hex.len() % 2 != 0 {
| ^^^^^^^^^^^^^^^^^^ help: replace with: `!hex.len().is_multiple_of(2)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of
|
|
[clippy] src/hex/dehexify.rs#L178:
src/hex/dehexify.rs#L178
error: manual implementation of `.is_multiple_of()`
--> src/hex/dehexify.rs:178:5
|
178 | if hex.len() % 2 != 0 {
| ^^^^^^^^^^^^^^^^^^ help: replace with: `!hex.len().is_multiple_of(2)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of
= note: `#[deny(clippy::manual_is_multiple_of)]` implied by `#[deny(clippy::all)]`
|
|
[clippy] src/hex/dehexify.rs#L347:
src/hex/dehexify.rs#L347
error: manual implementation of `.is_multiple_of()`
--> src/hex/dehexify.rs:347:5
|
347 | if hex.len() % 2 != 0 {
| ^^^^^^^^^^^^^^^^^^ help: replace with: `!hex.len().is_multiple_of(2)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of
|