[INFO] cloning repository https://github.com/UserLeeIsTired/RustML [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/UserLeeIsTired/RustML" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUserLeeIsTired%2FRustML", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUserLeeIsTired%2FRustML'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 932505f0add096247e601e6923c212ccf52b0317 [INFO] linting UserLeeIsTired/RustML against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FUserLeeIsTired%2FRustML" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/UserLeeIsTired/RustML [INFO] finished tweaking git repo https://github.com/UserLeeIsTired/RustML [INFO] tweaked toml for git repo https://github.com/UserLeeIsTired/RustML written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/UserLeeIsTired/RustML on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/UserLeeIsTired/RustML already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e38734d663d25ba05e9fec3af9368fa1c534c2c777d3b0291295499eb55e1d14 [INFO] running `Command { std: "docker" "start" "-a" "e38734d663d25ba05e9fec3af9368fa1c534c2c777d3b0291295499eb55e1d14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e38734d663d25ba05e9fec3af9368fa1c534c2c777d3b0291295499eb55e1d14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e38734d663d25ba05e9fec3af9368fa1c534c2c777d3b0291295499eb55e1d14", kill_on_drop: false }` [INFO] [stdout] e38734d663d25ba05e9fec3af9368fa1c534c2c777d3b0291295499eb55e1d14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f5697b4a727eea5c078bf993a6ad249f7ea1696b071f54c511b333779c604d9e [INFO] running `Command { std: "docker" "start" "-a" "f5697b4a727eea5c078bf993a6ad249f7ea1696b071f54c511b333779c604d9e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking as-slice v0.2.1 [INFO] [stderr] Compiling av-scenechange v0.14.1 [INFO] [stderr] Compiling built v0.8.0 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Checking core2 v0.4.0 [INFO] [stderr] Compiling pastey v0.1.1 [INFO] [stderr] Checking y4m v0.8.0 [INFO] [stderr] Checking imgref v1.12.0 [INFO] [stderr] Checking zune-jpeg v0.4.21 [INFO] [stderr] Checking avif-serialize v0.8.6 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Checking rgb v0.8.52 [INFO] [stderr] Checking bitstream-io v4.9.0 [INFO] [stderr] Checking zune-core v0.5.1 [INFO] [stderr] Checking aligned v0.4.3 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking png v0.18.0 [INFO] [stderr] Checking image-webp v0.2.4 [INFO] [stderr] Checking gif v0.14.1 [INFO] [stderr] Checking zune-jpeg v0.5.12 [INFO] [stderr] Compiling rav1e v0.8.1 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking pxfm v0.1.27 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking moxcms v0.7.11 [INFO] [stderr] Compiling zerocopy-derive v0.8.33 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Checking fax v0.2.6 [INFO] [stderr] Checking equator v0.4.2 [INFO] [stderr] Checking aligned-vec v0.6.4 [INFO] [stderr] Checking v_frame v0.3.9 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking av1-grain v0.2.5 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking exr v1.74.0 [INFO] [stderr] Checking tiff v0.10.3 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking ravif v0.12.0 [INFO] [stderr] Checking image v0.25.9 [INFO] [stderr] Checking RustML v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/sequential.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | learning_rate: learning_rate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `learning_rate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/sequential.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | layers: layers, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `layers` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/dataset.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | batch_size: batch_size, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `batch_size` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/sequential.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | learning_rate: learning_rate, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `learning_rate` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/dataset.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | data: data, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `data` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/sequential.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | layers: layers, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `layers` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/train_set.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | batch_size: batch_size, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `batch_size` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/train_set.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | data: data, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `data` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/train_set.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | n: n [INFO] [stdout] | ^^^^ help: replace it with: `n` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/test_set.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | data: data, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `data` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/test_set.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | n: n, [INFO] [stdout] | ^^^^ help: replace it with: `n` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/dataset.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | batch_size: batch_size, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `batch_size` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/dataset.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | data: data, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `data` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/train_set.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | batch_size: batch_size, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `batch_size` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/train_set.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | data: data, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `data` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/train_set.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | n: n [INFO] [stdout] | ^^^^ help: replace it with: `n` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/test_set.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | data: data, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `data` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/nn/data/test_set.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | n: n, [INFO] [stdout] | ^^^^ help: replace it with: `n` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/nn/matrix.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 37 | / let idx = if self.transpose { [INFO] [stdout] 38 | | c * self.col + r [INFO] [stdout] 39 | | } else { [INFO] [stdout] 40 | | r * self.col + c [INFO] [stdout] 41 | | }; [INFO] [stdout] | |__________- unnecessary `let` binding [INFO] [stdout] 42 | [INFO] [stdout] 43 | idx [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 37 ~ [INFO] [stdout] 38 | [INFO] [stdout] 39 ~ if self.transpose { [INFO] [stdout] 40 + c * self.col + r [INFO] [stdout] 41 + } else { [INFO] [stdout] 42 + r * self.col + c [INFO] [stdout] 43 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/nn/matrix.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 37 | / let idx = if self.transpose { [INFO] [stdout] 38 | | c * self.col + r [INFO] [stdout] 39 | | } else { [INFO] [stdout] 40 | | r * self.col + c [INFO] [stdout] 41 | | }; [INFO] [stdout] | |__________- unnecessary `let` binding [INFO] [stdout] 42 | [INFO] [stdout] 43 | idx [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 37 ~ [INFO] [stdout] 38 | [INFO] [stdout] 39 ~ if self.transpose { [INFO] [stdout] 40 + c * self.col + r [INFO] [stdout] 41 + } else { [INFO] [stdout] 42 + r * self.col + c [INFO] [stdout] 43 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/nn/matrix.rs:130:6 [INFO] [stdout] | [INFO] [stdout] 130 | impl<'a, 'b> std::ops::Mul<&'b Matrix> for &'a Matrix { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 130 - impl<'a, 'b> std::ops::Mul<&'b Matrix> for &'a Matrix { [INFO] [stdout] 130 + impl<'b> std::ops::Mul<&'b Matrix> for &Matrix { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/nn/matrix.rs:130:6 [INFO] [stdout] | [INFO] [stdout] 130 | impl<'a, 'b> std::ops::Mul<&'b Matrix> for &'a Matrix { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 130 - impl<'a, 'b> std::ops::Mul<&'b Matrix> for &'a Matrix { [INFO] [stdout] 130 + impl<'b> std::ops::Mul<&'b Matrix> for &Matrix { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/nn/matrix.rs:135:6 [INFO] [stdout] | [INFO] [stdout] 135 | impl<'a, 'b> std::ops::Add<&'b Matrix> for &'a Matrix { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 135 - impl<'a, 'b> std::ops::Add<&'b Matrix> for &'a Matrix { [INFO] [stdout] 135 + impl<'b> std::ops::Add<&'b Matrix> for &Matrix { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> src/nn/matrix.rs:135:6 [INFO] [stdout] | [INFO] [stdout] 135 | impl<'a, 'b> std::ops::Add<&'b Matrix> for &'a Matrix { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 135 - impl<'a, 'b> std::ops::Add<&'b Matrix> for &'a Matrix { [INFO] [stdout] 135 + impl<'b> std::ops::Add<&'b Matrix> for &Matrix { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manually reimplementing `div_ceil` [INFO] [stdout] --> src/nn/data/train_set.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | let n = (data.len() + batch_size - 1) / batch_size; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `data.len().div_ceil(batch_size)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil [INFO] [stdout] = note: `#[warn(clippy::manual_div_ceil)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manually reimplementing `div_ceil` [INFO] [stdout] --> src/nn/data/train_set.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | let n = (data.len() + batch_size - 1) / batch_size; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.div_ceil()`: `data.len().div_ceil(batch_size)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil [INFO] [stdout] = note: `#[warn(clippy::manual_div_ceil)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/nn/data/train_set.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | if !(self.pointer * self.batch_size >= self.data.len()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(self.pointer * self.batch_size < self.data.len())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/nn/data/train_set.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | if !(self.pointer * self.batch_size >= self.data.len()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(self.pointer * self.batch_size < self.data.len())` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/nn/data/shuffle.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn shuffle(vector: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 3 - pub fn shuffle(vector: &mut Vec) { [INFO] [stdout] 3 + pub fn shuffle(vector: &mut [T]) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/nn/data/shuffle.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn shuffle(vector: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 3 - pub fn shuffle(vector: &mut Vec) { [INFO] [stdout] 3 + pub fn shuffle(vector: &mut [T]) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `RustML` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `rust_ml` [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.33s [INFO] running `Command { std: "docker" "inspect" "f5697b4a727eea5c078bf993a6ad249f7ea1696b071f54c511b333779c604d9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5697b4a727eea5c078bf993a6ad249f7ea1696b071f54c511b333779c604d9e", kill_on_drop: false }` [INFO] [stdout] f5697b4a727eea5c078bf993a6ad249f7ea1696b071f54c511b333779c604d9e