[INFO] cloning repository https://github.com/ucsb-coast-lab/image_clustering [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ucsb-coast-lab/image_clustering" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fucsb-coast-lab%2Fimage_clustering", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fucsb-coast-lab%2Fimage_clustering'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f35a2c6fd92fc1de1c2032461f897d416a6684b6 [INFO] checking ucsb-coast-lab/image_clustering against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fucsb-coast-lab%2Fimage_clustering" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ucsb-coast-lab/image_clustering on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ucsb-coast-lab/image_clustering [INFO] finished tweaking git repo https://github.com/ucsb-coast-lab/image_clustering [INFO] tweaked toml for git repo https://github.com/ucsb-coast-lab/image_clustering written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/ucsb-coast-lab/image_clustering already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/quietlychris/plotlib` [INFO] [stderr] error: the lock file /workspace/builds/worker-3/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/quietlychris/plotlib` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded svg v0.6.0 [INFO] [stderr] Downloaded imageproc v0.19.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a0ddbdfb778a8076c8c1ebacaacb404e9bbd200b5a4f9ee354999df8740bbe41 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a0ddbdfb778a8076c8c1ebacaacb404e9bbd200b5a4f9ee354999df8740bbe41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a0ddbdfb778a8076c8c1ebacaacb404e9bbd200b5a4f9ee354999df8740bbe41", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0ddbdfb778a8076c8c1ebacaacb404e9bbd200b5a4f9ee354999df8740bbe41", kill_on_drop: false }` [INFO] [stdout] a0ddbdfb778a8076c8c1ebacaacb404e9bbd200b5a4f9ee354999df8740bbe41 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 947bb3666b4aea3e06f07d9f89db2653a1142342a89ad09d8d6f320cd4f3a616 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "947bb3666b4aea3e06f07d9f89db2653a1142342a89ad09d8d6f320cd4f3a616", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.89 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Compiling matrixmultiply v0.1.15 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking custom_derive v0.1.7 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking svg v0.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking conv v0.3.3 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Checking crossbeam-utils v0.8.3 [INFO] [stderr] Compiling syn v1.0.64 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking png v0.15.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.3 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking backtrace v0.3.56 [INFO] [stderr] Checking ordered-float v1.1.1 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rayon-core v1.9.0 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking num-bigint v0.2.6 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rayon v1.5.0 [INFO] [stderr] Checking rulinalg v0.4.2 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking plotlib v0.4.0 (https://github.com/quietlychris/plotlib?branch=master#1f213b51) [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking image v0.22.5 [INFO] [stderr] Checking imageproc v0.19.2 [INFO] [stderr] Checking image_clustering v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `draw_cross_mut`, `draw_hollow_circle_mut` [INFO] [stdout] --> src/algorithm_lib.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use imageproc::drawing::{draw_cross_mut, draw_hollow_circle_mut}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/algorithm_lib.rs:363:54 [INFO] [stdout] | [INFO] [stdout] 363 | cluster_centers[pixel.assigned_cluster].0 += (pixel.x as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/algorithm_lib.rs:364:54 [INFO] [stdout] | [INFO] [stdout] 364 | cluster_centers[pixel.assigned_cluster].1 += (pixel.y as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/algorithm_lib.rs:446:22 [INFO] [stdout] | [INFO] [stdout] 446 | a_sum += (a[i].r as isize + a[i].g as isize + a[i].b as isize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/algorithm_lib.rs:448:22 [INFO] [stdout] | [INFO] [stdout] 448 | b_sum += (b[i].r as isize + b[i].g as isize + b[i].b as isize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `visualization_lib::*` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use visualization_lib::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithm_lib::*` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use algorithm_lib::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `draw_cross_mut`, `draw_hollow_circle_mut` [INFO] [stdout] --> src/algorithm_lib.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use imageproc::drawing::{draw_cross_mut, draw_hollow_circle_mut}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/algorithm_lib.rs:363:54 [INFO] [stdout] | [INFO] [stdout] 363 | cluster_centers[pixel.assigned_cluster].0 += (pixel.x as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/algorithm_lib.rs:364:54 [INFO] [stdout] | [INFO] [stdout] 364 | cluster_centers[pixel.assigned_cluster].1 += (pixel.y as u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/algorithm_lib.rs:446:22 [INFO] [stdout] | [INFO] [stdout] 446 | a_sum += (a[i].r as isize + a[i].g as isize + a[i].b as isize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/algorithm_lib.rs:448:22 [INFO] [stdout] | [INFO] [stdout] 448 | b_sum += (b[i].r as isize + b[i].g as isize + b[i].b as isize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `visualization_lib::*` [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use visualization_lib::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithm_lib::*` [INFO] [stdout] --> src/lib.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use algorithm_lib::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `rayon::iter::IndexedParallelIterator::position`: parallel `position` does not search in order -- use `position_any`, \ [INFO] [stdout] `position_first`, or `position_last` [INFO] [stdout] --> src/algorithm_lib.rs:528:43 [INFO] [stdout] | [INFO] [stdout] 528 | let index = match list.par_iter().position(|&x| x.assigned_cluster == 0) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/visualization_lib.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | for i in 0..num_clusters { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/visualization_lib.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let (pixel_vec, w, h) = build_kmeans_pixel_list_from_image(img, clusters); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/visualization_lib.rs:114:24 [INFO] [stdout] | [INFO] [stdout] 114 | let (pixel_vec, w, h) = build_kmeans_pixel_list_from_image(img, clusters); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_x` [INFO] [stdout] --> src/visualization_lib.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_x` [INFO] [stdout] --> src/visualization_lib.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_y` [INFO] [stdout] --> src/visualization_lib.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_y` [INFO] [stdout] --> src/visualization_lib.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel` [INFO] [stdout] --> src/algorithm_lib.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | for pixel in &data { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pixel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/algorithm_lib.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let c = a.assigned_cluster; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/algorithm_lib.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | let position = (x, y); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `prev_clusters` is never read [INFO] [stdout] --> src/algorithm_lib.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let mut prev_clusters: Vec = Vec::with_capacity(num_clusters); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/algorithm_lib.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | for n in 0..num_clusters { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `diff` is never read [INFO] [stdout] --> src/algorithm_lib.rs:439:9 [INFO] [stdout] | [INFO] [stdout] 439 | let mut diff = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_zeros` is never read [INFO] [stdout] --> src/algorithm_lib.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let mut remaining_zeros = list.clone().into_iter().filter(|x| x.assigned_cluster == 0).collect::>().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let mut img = image::open(img_path).expect("Couldn't open the image"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithm_lib.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | mut img: DynamicImage, [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `rayon::iter::IndexedParallelIterator::position`: parallel `position` does not search in order -- use `position_any`, \ [INFO] [stdout] `position_first`, or `position_last` [INFO] [stdout] --> src/algorithm_lib.rs:528:43 [INFO] [stdout] | [INFO] [stdout] 528 | let index = match list.par_iter().position(|&x| x.assigned_cluster == 0) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithm_lib.rs:486:9 [INFO] [stdout] | [INFO] [stdout] 486 | let mut img = image::open(img_path).expect("Couldn't open the image").resize(size,size,Triangle); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/algorithm_lib.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/visualization_lib.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | for i in 0..num_clusters { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/visualization_lib.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let (pixel_vec, w, h) = build_kmeans_pixel_list_from_image(img, clusters); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/visualization_lib.rs:114:24 [INFO] [stdout] | [INFO] [stdout] 114 | let (pixel_vec, w, h) = build_kmeans_pixel_list_from_image(img, clusters); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_x` [INFO] [stdout] --> src/visualization_lib.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_x` [INFO] [stdout] --> src/visualization_lib.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_y` [INFO] [stdout] --> src/visualization_lib.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_y` [INFO] [stdout] --> src/visualization_lib.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel` [INFO] [stdout] --> src/algorithm_lib.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | for pixel in &data { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pixel` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/algorithm_lib.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let c = a.assigned_cluster; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/algorithm_lib.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | let position = (x, y); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `prev_clusters` is never read [INFO] [stdout] --> src/algorithm_lib.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let mut prev_clusters: Vec = Vec::with_capacity(num_clusters); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/algorithm_lib.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | for n in 0..num_clusters { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `diff` is never read [INFO] [stdout] --> src/algorithm_lib.rs:439:9 [INFO] [stdout] | [INFO] [stdout] 439 | let mut diff = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_zeros` is never read [INFO] [stdout] --> src/algorithm_lib.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let mut remaining_zeros = list.clone().into_iter().filter(|x| x.assigned_cluster == 0).collect::>().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let mut img = image::open(img_path).expect("Couldn't open the image"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithm_lib.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | mut img: DynamicImage, [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithm_lib.rs:486:9 [INFO] [stdout] | [INFO] [stdout] 486 | let mut img = image::open(img_path).expect("Couldn't open the image").resize(size,size,Triangle); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/algorithm_lib.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `rayon::iter::IndexedParallelIterator::position`: parallel `position` does not search in order -- use `position_any`, \ [INFO] [stdout] `position_first`, or `position_last` [INFO] [stdout] --> src/algorithm_lib.rs:528:43 [INFO] [stdout] | [INFO] [stdout] 528 | let index = match list.par_iter().position(|&x| x.assigned_cluster == 0) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `rayon::iter::IndexedParallelIterator::position`: parallel `position` does not search in order -- use `position_any`, \ [INFO] [stdout] `position_first`, or `position_last` [INFO] [stdout] --> src/algorithm_lib.rs:528:43 [INFO] [stdout] | [INFO] [stdout] 528 | let index = match list.par_iter().position(|&x| x.assigned_cluster == 0) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel` [INFO] [stdout] --> src/algorithm_lib.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | for pixel in &data { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pixel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/algorithm_lib.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let c = a.assigned_cluster; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/algorithm_lib.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | let position = (x, y); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `prev_clusters` is never read [INFO] [stdout] --> src/algorithm_lib.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let mut prev_clusters: Vec = Vec::with_capacity(num_clusters); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/algorithm_lib.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | for n in 0..num_clusters { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `diff` is never read [INFO] [stdout] --> src/algorithm_lib.rs:439:9 [INFO] [stdout] | [INFO] [stdout] 439 | let mut diff = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_zeros` is never read [INFO] [stdout] --> src/algorithm_lib.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let mut remaining_zeros = list.clone().into_iter().filter(|x| x.assigned_cluster == 0).collect::>().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/visualization_lib.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | for i in 0..num_clusters { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/visualization_lib.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let (pixel_vec, w, h) = build_kmeans_pixel_list_from_image(img, clusters); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/visualization_lib.rs:114:24 [INFO] [stdout] | [INFO] [stdout] 114 | let (pixel_vec, w, h) = build_kmeans_pixel_list_from_image(img, clusters); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_x` [INFO] [stdout] --> src/visualization_lib.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_x` [INFO] [stdout] --> src/visualization_lib.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_y` [INFO] [stdout] --> src/visualization_lib.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_y` [INFO] [stdout] --> src/visualization_lib.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut img = image::open(&path).expect("Couldn't open the image"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixel` [INFO] [stdout] --> src/algorithm_lib.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | for pixel in &data { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pixel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/algorithm_lib.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let c = a.assigned_cluster; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/algorithm_lib.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | let position = (x, y); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `prev_clusters` is never read [INFO] [stdout] --> src/algorithm_lib.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | let mut prev_clusters: Vec = Vec::with_capacity(num_clusters); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/algorithm_lib.rs:358:9 [INFO] [stdout] | [INFO] [stdout] 358 | for n in 0..num_clusters { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `diff` is never read [INFO] [stdout] --> src/algorithm_lib.rs:439:9 [INFO] [stdout] | [INFO] [stdout] 439 | let mut diff = 0; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `remaining_zeros` is never read [INFO] [stdout] --> src/algorithm_lib.rs:505:13 [INFO] [stdout] | [INFO] [stdout] 505 | let mut remaining_zeros = list.clone().into_iter().filter(|x| x.assigned_cluster == 0).collect::>().len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/visualization_lib.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | for i in 0..num_clusters { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `w` [INFO] [stdout] --> src/visualization_lib.rs:114:21 [INFO] [stdout] | [INFO] [stdout] 114 | let (pixel_vec, w, h) = build_kmeans_pixel_list_from_image(img, clusters); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_w` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `h` [INFO] [stdout] --> src/visualization_lib.rs:114:24 [INFO] [stdout] | [INFO] [stdout] 114 | let (pixel_vec, w, h) = build_kmeans_pixel_list_from_image(img, clusters); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_h` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_x` [INFO] [stdout] --> src/visualization_lib.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_x` [INFO] [stdout] --> src/visualization_lib.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_y` [INFO] [stdout] --> src/visualization_lib.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_y` [INFO] [stdout] --> src/visualization_lib.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let mut img = image::open(&path).expect("Couldn't open the image"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithm_lib.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | mut img: DynamicImage, [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithm_lib.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | mut img: DynamicImage, [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithm_lib.rs:486:9 [INFO] [stdout] | [INFO] [stdout] 486 | let mut img = image::open(img_path).expect("Couldn't open the image").resize(size,size,Triangle); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let mut img = image::open(img_path).expect("Couldn't open the image"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithm_lib.rs:486:9 [INFO] [stdout] | [INFO] [stdout] 486 | let mut img = image::open(img_path).expect("Couldn't open the image").resize(size,size,Triangle); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let mut img = image::open(img_path).expect("Couldn't open the image"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:32 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/visualization_lib.rs:116:43 [INFO] [stdout] | [INFO] [stdout] 116 | let (mut min_x, mut max_x, mut min_y, mut max_y) = (0f64, 0f64, 0f64, 0f64); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "947bb3666b4aea3e06f07d9f89db2653a1142342a89ad09d8d6f320cd4f3a616", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "947bb3666b4aea3e06f07d9f89db2653a1142342a89ad09d8d6f320cd4f3a616", kill_on_drop: false }` [INFO] [stdout] 947bb3666b4aea3e06f07d9f89db2653a1142342a89ad09d8d6f320cd4f3a616