-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
cargo clippy --package benchmark --all-targets --all-features -- -D warnings
error: manual implementation of `.is_multiple_of()`
--> src/neo4j_client.rs:132:16
|
132 | if count % 10000 == 0 {
| ^^^^^^^^^^^^^^^^^^ help: replace with: `count.is_multiple_of(10000)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#manual_is_multiple_of
= note: `-D clippy::manual-is-multiple-of` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::manual_is_multiple_of)]`
error: manual implementation of `.is_multiple_of()`
--> src/neo4j_client.rs:177:24
|
177 | if count % 1000 == 0 {
| ^^^^^^^^^^^^^^^^^ help: replace with: `count.is_multiple_of(1000)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#manual_is_multiple_of
error: this can be `std::io::Error::other(_)`
--> src/utils.rs:33:13
|
33 | io::Error::new(std::io::ErrorKind::Other, "Process failed"),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#io_other_error
= note: `-D clippy::io-other-error` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::io_other_error)]`
help: use `std::io::Error::other`
|
33 - io::Error::new(std::io::ErrorKind::Other, "Process failed"),
33 + io::Error::other("Process failed"),
|
error: could not compile `benchmark` (lib test) due to 3 previous errors
Copilot