[INFO] cloning repository https://github.com/dschlesinger/ds210-project
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dschlesinger/ds210-project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdschlesinger%2Fds210-project", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdschlesinger%2Fds210-project'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 656b31ee69074e867b4c69c0b757a85d8ae025ad
[INFO] checking dschlesinger/ds210-project against 36e0a7eac2392bdd51fab6e7ff1d8c0e42d33bf6 for pr-160581
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdschlesinger%2Fds210-project" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/dschlesinger/ds210-project
[INFO] finished tweaking git repo https://github.com/dschlesinger/ds210-project
[INFO] tweaked toml for git repo https://github.com/dschlesinger/ds210-project written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dschlesinger/ds210-project on toolchain 36e0a7eac2392bdd51fab6e7ff1d8c0e42d33bf6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36e0a7eac2392bdd51fab6e7ff1d8c0e42d33bf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/dschlesinger/ds210-project 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" "+36e0a7eac2392bdd51fab6e7ff1d8c0e42d33bf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded cblas-sys v0.1.4
[INFO] [stderr]   Downloaded katexit v0.1.4
[INFO] [stderr]   Downloaded cauchy v0.4.0
[INFO] [stderr]   Downloaded thiserror v2.0.12
[INFO] [stderr]   Downloaded thiserror-impl v2.0.12
[INFO] [stderr]   Downloaded lax v0.17.0
[INFO] [stderr]   Downloaded matrixmultiply v0.3.9
[INFO] [stderr]   Downloaded zerocopy-derive v0.8.25
[INFO] [stderr]   Downloaded ndarray-linalg v0.17.0
[INFO] [stderr]   Downloaded zerocopy v0.8.25
[INFO] [stderr]   Downloaded portable-atomic v1.11.0
[INFO] [stderr]   Downloaded ndarray v0.15.6
[INFO] [stderr]   Downloaded ndarray v0.16.1
[INFO] [stderr]   Downloaded libc v0.2.172
[INFO] [stderr]   Downloaded lapack-sys v0.14.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 101d5e4124eff1f82d9054d9c69001ddbb93f6d2b6896b713f0648a3d2641db0
[INFO] running `Command { std: "docker" "start" "101d5e4124eff1f82d9054d9c69001ddbb93f6d2b6896b713f0648a3d2641db0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "101d5e4124eff1f82d9054d9c69001ddbb93f6d2b6896b713f0648a3d2641db0", 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" "101d5e4124eff1f82d9054d9c69001ddbb93f6d2b6896b713f0648a3d2641db0" "/opt/rustwide/cargo-home/bin/cargo" "+36e0a7eac2392bdd51fab6e7ff1d8c0e42d33bf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "101d5e4124eff1f82d9054d9c69001ddbb93f6d2b6896b713f0648a3d2641db0", 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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "101d5e4124eff1f82d9054d9c69001ddbb93f6d2b6896b713f0648a3d2641db0" "/opt/rustwide/cargo-home/bin/cargo" "+36e0a7eac2392bdd51fab6e7ff1d8c0e42d33bf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]    Compiling zerocopy v0.8.25
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling unicode-ident v1.0.18
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling matrixmultiply v0.3.9
[INFO] [stderr]     Checking rawpointer v0.2.1
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]     Checking memchr v2.7.4
[INFO] [stderr]     Checking itoa v1.0.15
[INFO] [stderr]     Checking ryu v1.0.20
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]     Checking csv-core v0.1.12
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking approx v0.5.1
[INFO] [stderr]     Checking getrandom v0.2.16
[INFO] [stderr]     Checking lapack-sys v0.14.0
[INFO] [stderr]     Checking cblas-sys v0.1.4
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]     Checking num-complex v0.4.6
[INFO] [stderr]     Checking csv v1.3.1
[INFO] [stderr]     Checking cauchy v0.4.0
[INFO] [stderr]     Checking ndarray v0.16.1
[INFO] [stderr]     Checking ndarray v0.15.6
[INFO] [stderr]    Compiling katexit v0.1.4
[INFO] [stderr]     Checking lax v0.17.0
[INFO] [stderr]     Checking ndarray-linalg v0.17.0
[INFO] [stderr]     Checking project v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Array1`
[INFO] [stdout]  --> src/utils/knn.rs:3:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ndarray::{Array1, ArrayView1, Array2, Axis};
[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 doc comment
[INFO] [stdout]   --> src/utils/knn.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |         /// Initiates and finds counts from labels from knn
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 18 |
[INFO] [stdout] 19 |         let mut IrisSetosa = 0;
[INFO] [stdout]    |         ----------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/knn.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |           /// Gets most predicted and returns string label
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 40 |
[INFO] [stdout] 41 | /         if self.IrisSetosa > self.IrisVersicolor && self.IrisSetosa > self.IrisVirginica {
[INFO] [stdout] 42 | |             return "Iris-setosa".to_string();
[INFO] [stdout] ...  |
[INFO] [stdout] 50 | |             return "Iris-virginica".to_string();
[INFO] [stdout] 51 | |         }
[INFO] [stdout]    | |_________- rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/knn.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |         /// For debugging, prints probability distribution
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/knn.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |           /// Initializes
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 81 | /         if (data.len() as i32) < n_neighbors {
[INFO] [stdout] 82 | |             panic!("Data is larger then n_neighbors");
[INFO] [stdout] 83 | |         }
[INFO] [stdout]    | |_________- rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/knn.rs:89:9
[INFO] [stdout]    |
[INFO] [stdout] 89 |           /// Mutator function for n_neighbors
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 92 | /         if (self.data.len() as i32) < n_neighbors {
[INFO] [stdout] 93 | |             panic!("Data is larger then n_neighbors");
[INFO] [stdout] 94 | |         }
[INFO] [stdout]    | |_________- rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> src/utils/knn.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |         /// Finds most probable string label
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 101 |
[INFO] [stdout] 102 |         let mut euc_min: Vec<f32> = vec![1000.0; self.n_neighbors as usize];
[INFO] [stdout]     |         -------------------------------------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/utils/knn.rs:113:20
[INFO] [stdout]     |
[INFO] [stdout] 113 |                 if (*min_val > euc_val) {
[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] 113 -                 if (*min_val > euc_val) {
[INFO] [stdout] 113 +                 if *min_val > euc_val {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Array1`
[INFO] [stdout]  --> src/utils/dataloader.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use ndarray::{Array1, Array2, s};
[INFO] [stdout]   |               ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/dataloader.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 |         /// Gets train split
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 22 |         self.load_data(path, 0, 100)
[INFO] [stdout]    |         ---------------------------- rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/dataloader.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |         /// Gets test split
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 27 |         self.load_data(path, 100, 150)
[INFO] [stdout]    |         ------------------------------ rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/dataloader.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         /// Loads csv and gets slice
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 32 |
[INFO] [stdout] 33 |         let mut features: Vec<f32> = Vec::new();
[INFO] [stdout]    |         ---------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> src/utils/dataloader.rs:105:9
[INFO] [stdout]     |
[INFO] [stdout] 105 |           /// Init function loads data
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 108 | /         let (x_train, y_train) = Self {
[INFO] [stdout] 109 | |             x_train: Array2::zeros((0, 0)),
[INFO] [stdout] 110 | |             x_test: Array2::zeros((0, 0)),
[INFO] [stdout] 111 | |             y_train: Vec::new(),
[INFO] [stdout] 112 | |             y_test: Vec::new(),
[INFO] [stdout] 113 | |         }.load_train(path)?;
[INFO] [stdout]     | |____________________________- rustdoc does not generate documentation for statements
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Array1` and `Array2`
[INFO] [stdout]  --> src/utils/math.rs:3:27
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ndarray::{ArrayView1, Array1, Array2};
[INFO] [stdout]   |                           ^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/math.rs:6:5
[INFO] [stdout]    |
[INFO] [stdout]  6 | /     /// Finds euclidian distance
[INFO] [stdout]  7 | |     /// [vec1, vec2] -> ((vec1 - vec2) ** 2) ** 1/2
[INFO] [stdout]    | |___________________________________________________^
[INFO] [stdout]  8 |
[INFO] [stdout]  9 | /     a.iter()
[INFO] [stdout] 10 | |      .zip(b.iter())
[INFO] [stdout] 11 | |      .map(|(&x, &y)| (x - y).powi(2))
[INFO] [stdout] 12 | |      .sum::<f32>()
[INFO] [stdout] 13 | |      .sqrt()
[INFO] [stdout]    | |____________- rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Array1`, `Array2`, and `s`
[INFO] [stdout]  --> src/main.rs:3:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ndarray::{Array1, Array2, Axis, s};
[INFO] [stdout]   |               ^^^^^^  ^^^^^^        ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Prediction`
[INFO] [stdout]  --> src/main.rs:4:23
[INFO] [stdout]   |
[INFO] [stdout] 4 | use utils::knn::{KNN, Prediction};
[INFO] [stdout]   |                       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Array1`
[INFO] [stdout]  --> src/utils/knn.rs:3:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ndarray::{Array1, ArrayView1, Array2, Axis};
[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 doc comment
[INFO] [stdout]   --> src/utils/knn.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |         /// Initiates and finds counts from labels from knn
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 18 |
[INFO] [stdout] 19 |         let mut IrisSetosa = 0;
[INFO] [stdout]    |         ----------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/knn.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |           /// Gets most predicted and returns string label
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 40 |
[INFO] [stdout] 41 | /         if self.IrisSetosa > self.IrisVersicolor && self.IrisSetosa > self.IrisVirginica {
[INFO] [stdout] 42 | |             return "Iris-setosa".to_string();
[INFO] [stdout] ...  |
[INFO] [stdout] 50 | |             return "Iris-virginica".to_string();
[INFO] [stdout] 51 | |         }
[INFO] [stdout]    | |_________- rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/knn.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |         /// For debugging, prints probability distribution
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/knn.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |           /// Initializes
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 81 | /         if (data.len() as i32) < n_neighbors {
[INFO] [stdout] 82 | |             panic!("Data is larger then n_neighbors");
[INFO] [stdout] 83 | |         }
[INFO] [stdout]    | |_________- rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/knn.rs:89:9
[INFO] [stdout]    |
[INFO] [stdout] 89 |           /// Mutator function for n_neighbors
[INFO] [stdout]    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 92 | /         if (self.data.len() as i32) < n_neighbors {
[INFO] [stdout] 93 | |             panic!("Data is larger then n_neighbors");
[INFO] [stdout] 94 | |         }
[INFO] [stdout]    | |_________- rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> src/utils/knn.rs:100:9
[INFO] [stdout]     |
[INFO] [stdout] 100 |         /// Finds most probable string label
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 101 |
[INFO] [stdout] 102 |         let mut euc_min: Vec<f32> = vec![1000.0; self.n_neighbors as usize];
[INFO] [stdout]     |         -------------------------------------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/utils/knn.rs:113:20
[INFO] [stdout]     |
[INFO] [stdout] 113 |                 if (*min_val > euc_val) {
[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] 113 -                 if (*min_val > euc_val) {
[INFO] [stdout] 113 +                 if *min_val > euc_val {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Array1`
[INFO] [stdout]  --> src/utils/dataloader.rs:4:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | use ndarray::{Array1, Array2, s};
[INFO] [stdout]   |               ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/dataloader.rs:21:9
[INFO] [stdout]    |
[INFO] [stdout] 21 |         /// Gets train split
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 22 |         self.load_data(path, 0, 100)
[INFO] [stdout]    |         ---------------------------- rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/dataloader.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |         /// Gets test split
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 27 |         self.load_data(path, 100, 150)
[INFO] [stdout]    |         ------------------------------ rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/dataloader.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |         /// Loads csv and gets slice
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 32 |
[INFO] [stdout] 33 |         let mut features: Vec<f32> = Vec::new();
[INFO] [stdout]    |         ---------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> src/utils/dataloader.rs:105:9
[INFO] [stdout]     |
[INFO] [stdout] 105 |           /// Init function loads data
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 108 | /         let (x_train, y_train) = Self {
[INFO] [stdout] 109 | |             x_train: Array2::zeros((0, 0)),
[INFO] [stdout] 110 | |             x_test: Array2::zeros((0, 0)),
[INFO] [stdout] 111 | |             y_train: Vec::new(),
[INFO] [stdout] 112 | |             y_test: Vec::new(),
[INFO] [stdout] 113 | |         }.load_train(path)?;
[INFO] [stdout]     | |____________________________- rustdoc does not generate documentation for statements
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Array1` and `Array2`
[INFO] [stdout]  --> src/utils/math.rs:3:27
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ndarray::{ArrayView1, Array1, Array2};
[INFO] [stdout]   |                           ^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/utils/math.rs:6:5
[INFO] [stdout]    |
[INFO] [stdout]  6 | /     /// Finds euclidian distance
[INFO] [stdout]  7 | |     /// [vec1, vec2] -> ((vec1 - vec2) ** 2) ** 1/2
[INFO] [stdout]    | |___________________________________________________^
[INFO] [stdout]  8 |
[INFO] [stdout]  9 | /     a.iter()
[INFO] [stdout] 10 | |      .zip(b.iter())
[INFO] [stdout] 11 | |      .map(|(&x, &y)| (x - y).powi(2))
[INFO] [stdout] 12 | |      .sum::<f32>()
[INFO] [stdout] 13 | |      .sqrt()
[INFO] [stdout]    | |____________- rustdoc does not generate documentation for expressions
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/main.rs:41:9
[INFO] [stdout]    |
[INFO] [stdout] 41 | ...   /// Checks that prediction function works
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 42 | ...
[INFO] [stdout] 43 | ...   let p = Prediction::new(vec!["Iris-setosa".to_string(), "Iris-setosa".to_string(), "Iris-versicolor".to_string(), "Iris-virginica".to_string()]);
[INFO] [stdout]    |       ------------------------------------------------------------------------------------------------------------------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/main.rs:50:9
[INFO] [stdout]    |
[INFO] [stdout] 50 |         /// Test knns logic works properly
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 51 |
[INFO] [stdout] 52 |         let mut d: Array2<f32> = Array2::from_shape_vec((5, 5), vec![0.0; 25]).unwrap();
[INFO] [stdout]    |         -------------------------------------------------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]    |
[INFO] [stdout]    = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `total` is never read
[INFO] [stdout]   --> src/utils/knn.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout]  6 | pub struct Prediction {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 12 |     total: i32,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `print_dist` is never used
[INFO] [stdout]   --> src/utils/knn.rs:55:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Prediction {
[INFO] [stdout]    | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 55 |     pub fn print_dist(self: &Self) -> () {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `set_n_neighbors` is never used
[INFO] [stdout]   --> src/utils/knn.rs:88:8
[INFO] [stdout]    |
[INFO] [stdout] 75 | impl KNN {
[INFO] [stdout]    | -------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 88 |     fn set_n_neighbors(self: &mut Self, n_neighbors: i32) -> () {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `IrisSetosa` should have a snake case name
[INFO] [stdout]  --> src/utils/knn.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     IrisSetosa: i32,
[INFO] [stdout]   |     ^^^^^^^^^^ help: convert the identifier to snake case: `iris_setosa`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `IrisVersicolor` should have a snake case name
[INFO] [stdout]   --> src/utils/knn.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     IrisVersicolor: i32,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `iris_versicolor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `IrisVirginica` should have a snake case name
[INFO] [stdout]   --> src/utils/knn.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     IrisVirginica: i32,
[INFO] [stdout]    |     ^^^^^^^^^^^^^ help: convert the identifier to snake case: `iris_virginica`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `IrisSetosa` should have a snake case name
[INFO] [stdout]   --> src/utils/knn.rs:19:17
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let mut IrisSetosa = 0;
[INFO] [stdout]    |                 ^^^^^^^^^^ help: convert the identifier to snake case: `iris_setosa`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `IrisVersicolor` should have a snake case name
[INFO] [stdout]   --> src/utils/knn.rs:20:17
[INFO] [stdout]    |
[INFO] [stdout] 20 |         let mut IrisVersicolor = 0;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `iris_versicolor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `IrisVirginica` should have a snake case name
[INFO] [stdout]   --> src/utils/knn.rs:21:17
[INFO] [stdout]    |
[INFO] [stdout] 21 |         let mut IrisVirginica = 0; 
[INFO] [stdout]    |                 ^^^^^^^^^^^^^ help: convert the identifier to snake case: `iris_virginica`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `P` should have a snake case name
[INFO] [stdout]    --> src/utils/knn.rs:141:13
[INFO] [stdout]     |
[INFO] [stdout] 141 |         let P = Prediction::new(labels);
[INFO] [stdout]     |             ^ help: convert the identifier to snake case: `p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:61:13
[INFO] [stdout]    |
[INFO] [stdout] 61 |         let mut q = Array1::from(vec![1.0; 5]);
[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: field `total` is never read
[INFO] [stdout]   --> src/utils/knn.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout]  6 | pub struct Prediction {
[INFO] [stdout]    |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 12 |     total: i32,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `print_dist` is never used
[INFO] [stdout]   --> src/utils/knn.rs:55:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl Prediction {
[INFO] [stdout]    | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 55 |     pub fn print_dist(self: &Self) -> () {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `set_n_neighbors` is never used
[INFO] [stdout]   --> src/utils/knn.rs:88:8
[INFO] [stdout]    |
[INFO] [stdout] 75 | impl KNN {
[INFO] [stdout]    | -------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 88 |     fn set_n_neighbors(self: &mut Self, n_neighbors: i32) -> () {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `IrisSetosa` should have a snake case name
[INFO] [stdout]  --> src/utils/knn.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     IrisSetosa: i32,
[INFO] [stdout]   |     ^^^^^^^^^^ help: convert the identifier to snake case: `iris_setosa`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `IrisVersicolor` should have a snake case name
[INFO] [stdout]   --> src/utils/knn.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     IrisVersicolor: i32,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `iris_versicolor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: structure field `IrisVirginica` should have a snake case name
[INFO] [stdout]   --> src/utils/knn.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 |     IrisVirginica: i32,
[INFO] [stdout]    |     ^^^^^^^^^^^^^ help: convert the identifier to snake case: `iris_virginica`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `IrisSetosa` should have a snake case name
[INFO] [stdout]   --> src/utils/knn.rs:19:17
[INFO] [stdout]    |
[INFO] [stdout] 19 |         let mut IrisSetosa = 0;
[INFO] [stdout]    |                 ^^^^^^^^^^ help: convert the identifier to snake case: `iris_setosa`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `IrisVersicolor` should have a snake case name
[INFO] [stdout]   --> src/utils/knn.rs:20:17
[INFO] [stdout]    |
[INFO] [stdout] 20 |         let mut IrisVersicolor = 0;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `iris_versicolor`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `IrisVirginica` should have a snake case name
[INFO] [stdout]   --> src/utils/knn.rs:21:17
[INFO] [stdout]    |
[INFO] [stdout] 21 |         let mut IrisVirginica = 0; 
[INFO] [stdout]    |                 ^^^^^^^^^^^^^ help: convert the identifier to snake case: `iris_virginica`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `P` should have a snake case name
[INFO] [stdout]    --> src/utils/knn.rs:141:13
[INFO] [stdout]     |
[INFO] [stdout] 141 |         let P = Prediction::new(labels);
[INFO] [stdout]     |             ^ help: convert the identifier to snake case: `p`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.37s
[INFO] running `Command { std: "docker" "inspect" "101d5e4124eff1f82d9054d9c69001ddbb93f6d2b6896b713f0648a3d2641db0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "101d5e4124eff1f82d9054d9c69001ddbb93f6d2b6896b713f0648a3d2641db0", kill_on_drop: false }`
[INFO] [stdout] 101d5e4124eff1f82d9054d9c69001ddbb93f6d2b6896b713f0648a3d2641db0
