[INFO] cloning repository https://github.com/realRicFlair/rustnn
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/realRicFlair/rustnn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FrealRicFlair%2Frustnn", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FrealRicFlair%2Frustnn'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 8f276273ee7d2d7e4425647d324f3bdcff053fd1
[INFO] testing realRicFlair/rustnn against 1.97.0-beta.6 for beta-1.98-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FrealRicFlair%2Frustnn" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/realRicFlair/rustnn
[INFO] finished tweaking git repo https://github.com/realRicFlair/rustnn
[INFO] tweaked toml for git repo https://github.com/realRicFlair/rustnn written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/realRicFlair/rustnn on toolchain 1.97.0-beta.6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/realRicFlair/rustnn 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" "+1.97.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded ndarray-conv v0.6.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e
[INFO] running `Command { std: "docker" "start" "b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling rustix v1.1.4
[INFO] [stderr]    Compiling wayland-sys v0.31.10
[INFO] [stderr]    Compiling toml_parser v1.0.9+spec-1.1.0
[INFO] [stderr]    Compiling dlib v0.5.3
[INFO] [stderr]    Compiling toml_datetime v1.0.0+spec-1.1.0
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling quick-xml v0.39.2
[INFO] [stderr]    Compiling wayland-client v0.31.13
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling wayland-backend v0.3.14
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling zerocopy v0.8.40
[INFO] [stderr]    Compiling futures-lite v2.6.1
[INFO] [stderr]    Compiling piper v0.2.5
[INFO] [stderr]    Compiling uuid v1.22.0
[INFO] [stderr]    Compiling nom v8.0.0
[INFO] [stderr]    Compiling core2 v0.4.0
[INFO] [stderr]    Compiling winit v0.30.13
[INFO] [stderr]    Compiling bitstream-io v4.9.0
[INFO] [stderr]    Compiling simd_helpers v0.1.0
[INFO] [stderr]    Compiling xkbcommon-dl v0.4.2
[INFO] [stderr]    Compiling event-listener-strategy v0.5.4
[INFO] [stderr]    Compiling toml_edit v0.25.4+spec-1.1.0
[INFO] [stderr]    Compiling async-channel v2.5.0
[INFO] [stderr]    Compiling async-lock v3.4.2
[INFO] [stderr]    Compiling async-broadcast v0.7.2
[INFO] [stderr]    Compiling avif-serialize v0.8.8
[INFO] [stderr]    Compiling zune-core v0.5.1
[INFO] [stderr]    Compiling rgb v0.8.53
[INFO] [stderr]    Compiling pxfm v0.1.28
[INFO] [stderr]    Compiling png v0.18.1
[INFO] [stderr]    Compiling matrixmultiply v0.3.10
[INFO] [stderr]    Compiling getrandom v0.4.2
[INFO] [stderr]    Compiling zune-jpeg v0.5.12
[INFO] [stderr]    Compiling rand_core v0.10.0
[INFO] [stderr]    Compiling async-executor v1.14.0
[INFO] [stderr]    Compiling blocking v1.6.2
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling num-complex v0.4.6
[INFO] [stderr]    Compiling proc-macro-crate v3.5.0
[INFO] [stderr]    Compiling glutin_glx_sys v0.6.1
[INFO] [stderr]    Compiling chacha20 v0.10.0
[INFO] [stderr]    Compiling glutin v0.32.3
[INFO] [stderr]    Compiling wayland-scanner v0.31.9
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling primal-check v0.3.4
[INFO] [stderr]    Compiling transpose v0.2.3
[INFO] [stderr]    Compiling num-iter v0.1.45
[INFO] [stderr]    Compiling rustfft v6.4.1
[INFO] [stderr]    Compiling castaway v0.2.4
[INFO] [stderr]    Compiling rand v0.10.0
[INFO] [stderr]    Compiling ndarray v0.17.2
[INFO] [stderr]    Compiling rand_distr v0.6.0
[INFO] [stderr]    Compiling num-rational v0.4.2
[INFO] [stderr]    Compiling num v0.4.3
[INFO] [stderr]    Compiling moxcms v0.7.11
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling polling v3.11.0
[INFO] [stderr]    Compiling gethostname v1.1.0
[INFO] [stderr]    Compiling x11rb v0.13.2
[INFO] [stderr]    Compiling async-io v2.6.0
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling enumflags2_derive v0.7.12
[INFO] [stderr]    Compiling bytemuck_derive v1.10.2
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling zerocopy-derive v0.8.40
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling async-signal v0.2.13
[INFO] [stderr]    Compiling equator-macro v0.4.2
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling async-process v2.5.0
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling equator v0.4.2
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling profiling-procmacros v1.0.17
[INFO] [stderr]    Compiling bytemuck v1.25.0
[INFO] [stderr]    Compiling async-recursion v1.1.1
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling serde_repr v0.1.20
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling profiling v1.0.17
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling aligned-vec v0.6.4
[INFO] [stderr]    Compiling wayland-csd-frame v0.3.0
[INFO] [stderr]    Compiling calloop v0.13.0
[INFO] [stderr]    Compiling v_frame v0.3.9
[INFO] [stderr]    Compiling tiny-skia-path v0.11.4
[INFO] [stderr]    Compiling arg_enum_proc_macro v0.3.4
[INFO] [stderr]    Compiling emath v0.33.3
[INFO] [stderr]    Compiling num-derive v0.4.2
[INFO] [stderr]    Compiling av1-grain v0.2.5
[INFO] [stderr]    Compiling fax_derive v0.2.0
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling av-scenechange v0.14.1
[INFO] [stderr]    Compiling ecolor v0.33.3
[INFO] [stderr]    Compiling wayland-protocols v0.32.11
[INFO] [stderr]    Compiling wayland-cursor v0.31.13
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling calloop-wayland-source v0.3.0
[INFO] [stderr]    Compiling tiny-skia v0.11.4
[INFO] [stderr]    Compiling fax v0.2.6
[INFO] [stderr]    Compiling calloop v0.14.4
[INFO] [stderr]    Compiling futures-macro v0.3.32
[INFO] [stderr]    Compiling qoi v0.4.1
[INFO] [stderr]    Compiling realfft v3.5.0
[INFO] [stderr]    Compiling ndarray-conv v0.6.1
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling rav1e v0.8.1
[INFO] [stderr]    Compiling calloop-wayland-source v0.4.1
[INFO] [stderr]    Compiling futures-util v0.3.32
[INFO] [stderr]    Compiling zvariant_utils v3.3.0
[INFO] [stderr]    Compiling enumflags2 v0.7.12
[INFO] [stderr]    Compiling quick-xml v0.38.4
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.2
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling zvariant_derive v5.10.0
[INFO] [stderr]    Compiling zvariant v5.10.0
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]    Compiling ahash v0.8.12
[INFO] [stderr]    Compiling half v2.7.1
[INFO] [stderr]    Compiling epaint v0.33.3
[INFO] [stderr]    Compiling tiff v0.10.3
[INFO] [stderr]    Compiling exr v1.74.0
[INFO] [stderr]    Compiling webbrowser v1.1.0
[INFO] [stderr]    Compiling egui v0.33.3
[INFO] [stderr]    Compiling zbus_names v4.3.1
[INFO] [stderr]    Compiling zbus_xml v5.1.0
[INFO] [stderr]    Compiling zbus_macros v5.14.0
[INFO] [stderr]    Compiling zbus-lockstep v0.5.2
[INFO] [stderr]    Compiling ravif v0.12.0
[INFO] [stderr]    Compiling zbus-lockstep-macros v0.5.2
[INFO] [stderr]    Compiling wayland-protocols-wlr v0.3.11
[INFO] [stderr]    Compiling wayland-protocols-plasma v0.3.11
[INFO] [stderr]    Compiling wayland-protocols-experimental v20250721.0.1
[INFO] [stderr]    Compiling wayland-protocols-misc v0.3.11
[INFO] [stderr]    Compiling image v0.25.9
[INFO] [stderr]    Compiling smithay-client-toolkit v0.19.2
[INFO] [stderr]    Compiling smithay-client-toolkit v0.20.0
[INFO] [stderr]    Compiling zbus v5.14.0
[INFO] [stderr]    Compiling sctk-adwaita v0.10.1
[INFO] [stderr]    Compiling smithay-clipboard v0.7.3
[INFO] [stderr]    Compiling egui_glow v0.33.3
[INFO] [stderr]    Compiling arboard v3.6.1
[INFO] [stderr]    Compiling glutin-winit v0.5.0
[INFO] [stderr]    Compiling atspi-common v0.9.0
[INFO] [stderr]    Compiling atspi-proxies v0.9.0
[INFO] [stderr]    Compiling accesskit_atspi_common v0.14.2
[INFO] [stderr]    Compiling atspi-connection v0.9.0
[INFO] [stderr]    Compiling atspi v0.25.0
[INFO] [stderr]    Compiling accesskit_unix v0.17.2
[INFO] [stderr]    Compiling accesskit_winit v0.29.2
[INFO] [stderr]    Compiling egui-winit v0.33.3
[INFO] [stderr]    Compiling eframe v0.33.3
[INFO] [stderr]    Compiling rustnn v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::path::PathBuf`
[INFO] [stdout]  --> src/gui.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::path::PathBuf;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ArrayView3`
[INFO] [stdout]  --> src/Conv2d.rs:1:64
[INFO] [stdout]   |
[INFO] [stdout] 1 | use ndarray::{Array1, Array2, Array3, Array4, ArrayBase, Data, ArrayView3, Axis, Ix3};
[INFO] [stdout]   |                                                                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Rng` and `rngs::StdRng`
[INFO] [stdout]  --> src/Conv2d.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | use rand::{Rng, rngs::StdRng};
[INFO] [stdout]   |            ^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Array3`, `Array4`, `ArrayBase`, `ArrayView3`, `Axis`, `Data`, and `Ix3`
[INFO] [stdout]  --> src/Linear.rs:1:31
[INFO] [stdout]   |
[INFO] [stdout] 1 | use ndarray::{Array1, Array2, Array3, Array4, ArrayBase, Data, ArrayView3, Axis, Ix3};
[INFO] [stdout]   |                               ^^^^^^  ^^^^^^  ^^^^^^^^^  ^^^^  ^^^^^^^^^^  ^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/Linear.rs:18:49
[INFO] [stdout]    |
[INFO] [stdout] 18 |         let bias = Array1::<f32>::from_shape_fn((out_dims), |_| {rng.random_range(-0.1..0.1)});
[INFO] [stdout]    |                                                 ^        ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 18 -         let bias = Array1::<f32>::from_shape_fn((out_dims), |_| {rng.random_range(-0.1..0.1)});
[INFO] [stdout] 18 +         let bias = Array1::<f32>::from_shape_fn(out_dims , |_| {rng.random_range(-0.1..0.1)});
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Array2`
[INFO] [stdout]  --> src/main.rs:6:23
[INFO] [stdout]   |
[INFO] [stdout] 6 | use ndarray::{Array3, Array2, array};
[INFO] [stdout]   |                       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::empty`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::io::empty;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/main.rs:24:27
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let INFERENCE: bool = (args.get(1).unwrap() == "-predict");
[INFO] [stdout]    |                           ^                                  ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 24 -     let INFERENCE: bool = (args.get(1).unwrap() == "-predict");
[INFO] [stdout] 24 +     let INFERENCE: bool = args.get(1).unwrap() == "-predict" ;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/main.rs:25:26
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let TRAINING: bool = (args.get(1).unwrap() == "-train");
[INFO] [stdout]    |                          ^                                ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 25 -     let TRAINING: bool = (args.get(1).unwrap() == "-train");
[INFO] [stdout] 25 +     let TRAINING: bool = args.get(1).unwrap() == "-train" ;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/Linear.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let mut output = self.weights.dot(input) + &self.bias;
[INFO] [stdout]    |             ----^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `weight_rows`
[INFO] [stdout]   --> src/Linear.rs:28:14
[INFO] [stdout]    |
[INFO] [stdout] 28 |         let (weight_rows, weight_cols) = self.weights.dim();
[INFO] [stdout]    |              ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight_rows`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `predict` is never used
[INFO] [stdout]   --> src/main.rs:16:4
[INFO] [stdout]    |
[INFO] [stdout] 16 | fn predict() -> Result<(), Box<dyn Error>> {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_length` is never used
[INFO] [stdout]   --> src/main.rs:90:4
[INFO] [stdout]    |
[INFO] [stdout] 90 | fn add_length(s: &str) -> Vec<String> {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `float_to_u8` is never used
[INFO] [stdout]   --> src/gui.rs:63:4
[INFO] [stdout]    |
[INFO] [stdout] 63 | fn float_to_u8(v: f32) -> u8 {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Conv2d` is never constructed
[INFO] [stdout]  --> src/Conv2d.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Conv2d {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new_random` and `forward` are never used
[INFO] [stdout]   --> src/Conv2d.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Conv2d {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 17 |     pub fn new_random(
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn forward(&self, input: &Array3<f32>) -> Array3<f32>{
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `relu` is never used
[INFO] [stdout]    --> src/Conv2d.rs:122:8
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub fn relu(x: f32) -> f32 {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sigmoid` is never used
[INFO] [stdout]    --> src/Conv2d.rs:126:8
[INFO] [stdout]     |
[INFO] [stdout] 126 | pub fn sigmoid(x: f32) -> f32 {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `he_init_kernels` is never used
[INFO] [stdout]    --> src/Conv2d.rs:130:8
[INFO] [stdout]     |
[INFO] [stdout] 130 | pub fn he_init_kernels(
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `zero_bias` is never used
[INFO] [stdout]    --> src/Conv2d.rs:149:8
[INFO] [stdout]     |
[INFO] [stdout] 149 | pub fn zero_bias(out_channels: usize) -> Array1<f32> {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Linear` is never constructed
[INFO] [stdout]  --> src/Linear.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Linear {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `forward` are never used
[INFO] [stdout]   --> src/Linear.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Linear {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 12 |     pub fn new(
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn forward(&self, input: &Array1<f32>,) -> Array1<f32>{
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `relu` is never used
[INFO] [stdout]   --> src/Linear.rs:41:8
[INFO] [stdout]    |
[INFO] [stdout] 41 | pub fn relu(x: f32) -> f32 {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sigmoid` is never used
[INFO] [stdout]   --> src/Linear.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub fn sigmoid(x: f32) -> f32 {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Conv2d` should have a snake case name
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | mod Conv2d;
[INFO] [stdout]   |     ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `conv2d`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Linear` should have a snake case name
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | mod Linear;
[INFO] [stdout]   |     ^^^^^^ help: convert the identifier to snake case: `linear`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `INFERENCE` should have a snake case name
[INFO] [stdout]   --> src/main.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let INFERENCE: bool = (args.get(1).unwrap() == "-predict");
[INFO] [stdout]    |         ^^^^^^^^^ help: convert the identifier to snake case: `inference`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `TRAINING` should have a snake case name
[INFO] [stdout]   --> src/main.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let TRAINING: bool = (args.get(1).unwrap() == "-train");
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `training`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 19s
[INFO] running `Command { std: "docker" "inspect" "b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling rustnn v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::path::PathBuf`
[INFO] [stdout]  --> src/gui.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::path::PathBuf;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ArrayView3`
[INFO] [stdout]  --> src/Conv2d.rs:1:64
[INFO] [stdout]   |
[INFO] [stdout] 1 | use ndarray::{Array1, Array2, Array3, Array4, ArrayBase, Data, ArrayView3, Axis, Ix3};
[INFO] [stdout]   |                                                                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Rng` and `rngs::StdRng`
[INFO] [stdout]  --> src/Conv2d.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | use rand::{Rng, rngs::StdRng};
[INFO] [stdout]   |            ^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Array3`, `Array4`, `ArrayBase`, `ArrayView3`, `Axis`, `Data`, and `Ix3`
[INFO] [stdout]  --> src/Linear.rs:1:31
[INFO] [stdout]   |
[INFO] [stdout] 1 | use ndarray::{Array1, Array2, Array3, Array4, ArrayBase, Data, ArrayView3, Axis, Ix3};
[INFO] [stdout]   |                               ^^^^^^  ^^^^^^  ^^^^^^^^^  ^^^^  ^^^^^^^^^^  ^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]   --> src/Linear.rs:18:49
[INFO] [stdout]    |
[INFO] [stdout] 18 |         let bias = Array1::<f32>::from_shape_fn((out_dims), |_| {rng.random_range(-0.1..0.1)});
[INFO] [stdout]    |                                                 ^        ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 18 -         let bias = Array1::<f32>::from_shape_fn((out_dims), |_| {rng.random_range(-0.1..0.1)});
[INFO] [stdout] 18 +         let bias = Array1::<f32>::from_shape_fn(out_dims , |_| {rng.random_range(-0.1..0.1)});
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Array2`
[INFO] [stdout]  --> src/main.rs:6:23
[INFO] [stdout]   |
[INFO] [stdout] 6 | use ndarray::{Array3, Array2, array};
[INFO] [stdout]   |                       ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::empty`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::io::empty;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/main.rs:24:27
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let INFERENCE: bool = (args.get(1).unwrap() == "-predict");
[INFO] [stdout]    |                           ^                                  ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 24 -     let INFERENCE: bool = (args.get(1).unwrap() == "-predict");
[INFO] [stdout] 24 +     let INFERENCE: bool = args.get(1).unwrap() == "-predict" ;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/main.rs:25:26
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let TRAINING: bool = (args.get(1).unwrap() == "-train");
[INFO] [stdout]    |                          ^                                ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 25 -     let TRAINING: bool = (args.get(1).unwrap() == "-train");
[INFO] [stdout] 25 +     let TRAINING: bool = args.get(1).unwrap() == "-train" ;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/Linear.rs:33:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let mut output = self.weights.dot(input) + &self.bias;
[INFO] [stdout]    |             ----^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `weight_rows`
[INFO] [stdout]   --> src/Linear.rs:28:14
[INFO] [stdout]    |
[INFO] [stdout] 28 |         let (weight_rows, weight_cols) = self.weights.dim();
[INFO] [stdout]    |              ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight_rows`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `predict` is never used
[INFO] [stdout]   --> src/main.rs:16:4
[INFO] [stdout]    |
[INFO] [stdout] 16 | fn predict() -> Result<(), Box<dyn Error>> {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `add_length` is never used
[INFO] [stdout]   --> src/main.rs:90:4
[INFO] [stdout]    |
[INFO] [stdout] 90 | fn add_length(s: &str) -> Vec<String> {
[INFO] [stdout]    |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `float_to_u8` is never used
[INFO] [stdout]   --> src/gui.rs:63:4
[INFO] [stdout]    |
[INFO] [stdout] 63 | fn float_to_u8(v: f32) -> u8 {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Conv2d` is never constructed
[INFO] [stdout]  --> src/Conv2d.rs:6:12
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct Conv2d {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new_random` and `forward` are never used
[INFO] [stdout]   --> src/Conv2d.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Conv2d {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 17 |     pub fn new_random(
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub fn forward(&self, input: &Array3<f32>) -> Array3<f32>{
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `relu` is never used
[INFO] [stdout]    --> src/Conv2d.rs:122:8
[INFO] [stdout]     |
[INFO] [stdout] 122 | pub fn relu(x: f32) -> f32 {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sigmoid` is never used
[INFO] [stdout]    --> src/Conv2d.rs:126:8
[INFO] [stdout]     |
[INFO] [stdout] 126 | pub fn sigmoid(x: f32) -> f32 {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `he_init_kernels` is never used
[INFO] [stdout]    --> src/Conv2d.rs:130:8
[INFO] [stdout]     |
[INFO] [stdout] 130 | pub fn he_init_kernels(
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `zero_bias` is never used
[INFO] [stdout]    --> src/Conv2d.rs:149:8
[INFO] [stdout]     |
[INFO] [stdout] 149 | pub fn zero_bias(out_channels: usize) -> Array1<f32> {
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Linear` is never constructed
[INFO] [stdout]  --> src/Linear.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Linear {
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `forward` are never used
[INFO] [stdout]   --> src/Linear.rs:12:12
[INFO] [stdout]    |
[INFO] [stdout] 11 | impl Linear {
[INFO] [stdout]    | ----------- associated items in this implementation
[INFO] [stdout] 12 |     pub fn new(
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn forward(&self, input: &Array1<f32>,) -> Array1<f32>{
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `relu` is never used
[INFO] [stdout]   --> src/Linear.rs:41:8
[INFO] [stdout]    |
[INFO] [stdout] 41 | pub fn relu(x: f32) -> f32 {
[INFO] [stdout]    |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sigmoid` is never used
[INFO] [stdout]   --> src/Linear.rs:45:8
[INFO] [stdout]    |
[INFO] [stdout] 45 | pub fn sigmoid(x: f32) -> f32 {
[INFO] [stdout]    |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Conv2d` should have a snake case name
[INFO] [stdout]  --> src/main.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | mod Conv2d;
[INFO] [stdout]   |     ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `conv2d`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: module `Linear` should have a snake case name
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | mod Linear;
[INFO] [stdout]   |     ^^^^^^ help: convert the identifier to snake case: `linear`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `INFERENCE` should have a snake case name
[INFO] [stdout]   --> src/main.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let INFERENCE: bool = (args.get(1).unwrap() == "-predict");
[INFO] [stdout]    |         ^^^^^^^^^ help: convert the identifier to snake case: `inference`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `TRAINING` should have a snake case name
[INFO] [stdout]   --> src/main.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let TRAINING: bool = (args.get(1).unwrap() == "-train");
[INFO] [stdout]    |         ^^^^^^^^ help: convert the identifier to snake case: `training`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.62s
[INFO] running `Command { std: "docker" "inspect" "b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `std::path::PathBuf`
[INFO] [stderr]  --> src/gui.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::path::PathBuf;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `ArrayView3`
[INFO] [stderr]  --> src/Conv2d.rs:1:64
[INFO] [stderr]   |
[INFO] [stderr] 1 | use ndarray::{Array1, Array2, Array3, Array4, ArrayBase, Data, ArrayView3, Axis, Ix3};
[INFO] [stderr]   |                                                                ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Rng` and `rngs::StdRng`
[INFO] [stderr]  --> src/Conv2d.rs:2:12
[INFO] [stderr]   |
[INFO] [stderr] 2 | use rand::{Rng, rngs::StdRng};
[INFO] [stderr]   |            ^^^  ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `Array3`, `Array4`, `ArrayBase`, `ArrayView3`, `Axis`, `Data`, and `Ix3`
[INFO] [stderr]  --> src/Linear.rs:1:31
[INFO] [stderr]   |
[INFO] [stderr] 1 | use ndarray::{Array1, Array2, Array3, Array4, ArrayBase, Data, ArrayView3, Axis, Ix3};
[INFO] [stderr]   |                               ^^^^^^  ^^^^^^  ^^^^^^^^^  ^^^^  ^^^^^^^^^^  ^^^^  ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around function argument
[INFO] [stderr]   --> src/Linear.rs:18:49
[INFO] [stderr]    |
[INFO] [stderr] 18 |         let bias = Array1::<f32>::from_shape_fn((out_dims), |_| {rng.random_range(-0.1..0.1)});
[INFO] [stderr]    |                                                 ^        ^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 18 -         let bias = Array1::<f32>::from_shape_fn((out_dims), |_| {rng.random_range(-0.1..0.1)});
[INFO] [stderr] 18 +         let bias = Array1::<f32>::from_shape_fn(out_dims , |_| {rng.random_range(-0.1..0.1)});
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Array2`
[INFO] [stderr]  --> src/main.rs:6:23
[INFO] [stderr]   |
[INFO] [stderr] 6 | use ndarray::{Array3, Array2, array};
[INFO] [stderr]   |                       ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::io::empty`
[INFO] [stderr]  --> src/main.rs:7:5
[INFO] [stderr]   |
[INFO] [stderr] 7 | use std::io::empty;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around assigned value
[INFO] [stderr]   --> src/main.rs:24:27
[INFO] [stderr]    |
[INFO] [stderr] 24 |     let INFERENCE: bool = (args.get(1).unwrap() == "-predict");
[INFO] [stderr]    |                           ^                                  ^
[INFO] [stderr]    |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 24 -     let INFERENCE: bool = (args.get(1).unwrap() == "-predict");
[INFO] [stderr] 24 +     let INFERENCE: bool = args.get(1).unwrap() == "-predict" ;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around assigned value
[INFO] [stderr]   --> src/main.rs:25:26
[INFO] [stderr]    |
[INFO] [stderr] 25 |     let TRAINING: bool = (args.get(1).unwrap() == "-train");
[INFO] [stderr]    |                          ^                                ^
[INFO] [stderr]    |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]    |
[INFO] [stderr] 25 -     let TRAINING: bool = (args.get(1).unwrap() == "-train");
[INFO] [stderr] 25 +     let TRAINING: bool = args.get(1).unwrap() == "-train" ;
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/Linear.rs:33:13
[INFO] [stderr]    |
[INFO] [stderr] 33 |         let mut output = self.weights.dot(input) + &self.bias;
[INFO] [stderr]    |             ----^^^^^^
[INFO] [stderr]    |             |
[INFO] [stderr]    |             help: remove this `mut`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `weight_rows`
[INFO] [stderr]   --> src/Linear.rs:28:14
[INFO] [stderr]    |
[INFO] [stderr] 28 |         let (weight_rows, weight_cols) = self.weights.dim();
[INFO] [stderr]    |              ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weight_rows`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `predict` is never used
[INFO] [stderr]   --> src/main.rs:16:4
[INFO] [stderr]    |
[INFO] [stderr] 16 | fn predict() -> Result<(), Box<dyn Error>> {
[INFO] [stderr]    |    ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `add_length` is never used
[INFO] [stderr]   --> src/main.rs:90:4
[INFO] [stderr]    |
[INFO] [stderr] 90 | fn add_length(s: &str) -> Vec<String> {
[INFO] [stderr]    |    ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `float_to_u8` is never used
[INFO] [stderr]   --> src/gui.rs:63:4
[INFO] [stderr]    |
[INFO] [stderr] 63 | fn float_to_u8(v: f32) -> u8 {
[INFO] [stderr]    |    ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Conv2d` is never constructed
[INFO] [stderr]  --> src/Conv2d.rs:6:12
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub struct Conv2d {
[INFO] [stderr]   |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new_random` and `forward` are never used
[INFO] [stderr]   --> src/Conv2d.rs:17:12
[INFO] [stderr]    |
[INFO] [stderr] 16 | impl Conv2d {
[INFO] [stderr]    | ----------- associated items in this implementation
[INFO] [stderr] 17 |     pub fn new_random(
[INFO] [stderr]    |            ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 37 |     pub fn forward(&self, input: &Array3<f32>) -> Array3<f32>{
[INFO] [stderr]    |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `relu` is never used
[INFO] [stderr]    --> src/Conv2d.rs:122:8
[INFO] [stderr]     |
[INFO] [stderr] 122 | pub fn relu(x: f32) -> f32 {
[INFO] [stderr]     |        ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `sigmoid` is never used
[INFO] [stderr]    --> src/Conv2d.rs:126:8
[INFO] [stderr]     |
[INFO] [stderr] 126 | pub fn sigmoid(x: f32) -> f32 {
[INFO] [stderr]     |        ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `he_init_kernels` is never used
[INFO] [stderr]    --> src/Conv2d.rs:130:8
[INFO] [stderr]     |
[INFO] [stderr] 130 | pub fn he_init_kernels(
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `zero_bias` is never used
[INFO] [stderr]    --> src/Conv2d.rs:149:8
[INFO] [stderr]     |
[INFO] [stderr] 149 | pub fn zero_bias(out_channels: usize) -> Array1<f32> {
[INFO] [stderr]     |        ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Linear` is never constructed
[INFO] [stderr]  --> src/Linear.rs:4:12
[INFO] [stderr]   |
[INFO] [stderr] 4 | pub struct Linear {
[INFO] [stderr]   |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `forward` are never used
[INFO] [stderr]   --> src/Linear.rs:12:12
[INFO] [stderr]    |
[INFO] [stderr] 11 | impl Linear {
[INFO] [stderr]    | ----------- associated items in this implementation
[INFO] [stderr] 12 |     pub fn new(
[INFO] [stderr]    |            ^^^
[INFO] [stderr] ...
[INFO] [stderr] 26 |     pub fn forward(&self, input: &Array1<f32>,) -> Array1<f32>{
[INFO] [stderr]    |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `relu` is never used
[INFO] [stderr]   --> src/Linear.rs:41:8
[INFO] [stderr]    |
[INFO] [stderr] 41 | pub fn relu(x: f32) -> f32 {
[INFO] [stderr]    |        ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `sigmoid` is never used
[INFO] [stderr]   --> src/Linear.rs:45:8
[INFO] [stderr]    |
[INFO] [stderr] 45 | pub fn sigmoid(x: f32) -> f32 {
[INFO] [stderr]    |        ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: module `Conv2d` should have a snake case name
[INFO] [stderr]  --> src/main.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | mod Conv2d;
[INFO] [stderr]   |     ^^^^^^ help: convert the identifier to snake case (notice the capitalization): `conv2d`
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: module `Linear` should have a snake case name
[INFO] [stderr]  --> src/main.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | mod Linear;
[INFO] [stderr]   |     ^^^^^^ help: convert the identifier to snake case: `linear`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `INFERENCE` should have a snake case name
[INFO] [stderr]   --> src/main.rs:24:9
[INFO] [stderr]    |
[INFO] [stderr] 24 |     let INFERENCE: bool = (args.get(1).unwrap() == "-predict");
[INFO] [stderr]    |         ^^^^^^^^^ help: convert the identifier to snake case: `inference`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `TRAINING` should have a snake case name
[INFO] [stderr]   --> src/main.rs:25:9
[INFO] [stderr]    |
[INFO] [stderr] 25 |     let TRAINING: bool = (args.get(1).unwrap() == "-train");
[INFO] [stderr]    |         ^^^^^^^^ help: convert the identifier to snake case: `training`
[INFO] [stderr] 
[INFO] [stderr] warning: `rustnn` (bin "rustnn" test) generated 28 warnings (run `cargo fix --bin "rustnn" -p rustnn --tests` to apply 11 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.45s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rustnn-88b4514d4cbcbbcc)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e", kill_on_drop: false }`
[INFO] [stdout] b83a9539df84e9f80a16b6352db6e7b59a7a56043eb7b8681a57903685315f7e
