[INFO] cloning repository https://github.com/Isan-Rivkin/image-toolbox-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Isan-Rivkin/image-toolbox-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIsan-Rivkin%2Fimage-toolbox-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FIsan-Rivkin%2Fimage-toolbox-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c305a5b6a43fad8b449780df210f5e383c4d6d56
[INFO] testing Isan-Rivkin/image-toolbox-rs 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%2FIsan-Rivkin%2Fimage-toolbox-rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Isan-Rivkin/image-toolbox-rs
[INFO] finished tweaking git repo https://github.com/Isan-Rivkin/image-toolbox-rs
[INFO] tweaked toml for git repo https://github.com/Isan-Rivkin/image-toolbox-rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Isan-Rivkin/image-toolbox-rs 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/Isan-Rivkin/image-toolbox-rs 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 math v0.0.2
[INFO] [stderr]   Downloaded image v0.21.0
[INFO] [stderr]   Downloaded num-derive v0.2.4
[INFO] [stderr]   Downloaded adler32 v1.0.3
[INFO] [stderr]   Downloaded crossbeam-utils v0.2.2
[INFO] [stderr]   Downloaded color_quant v1.0.1
[INFO] [stderr]   Downloaded either v1.5.1
[INFO] [stderr]   Downloaded safe-transmute v0.10.1
[INFO] [stderr]   Downloaded lzw v0.10.0
[INFO] [stderr]   Downloaded png v0.14.0
[INFO] [stderr]   Downloaded jpeg-decoder v0.1.15
[INFO] [stderr]   Downloaded quote v0.6.11
[INFO] [stderr]   Downloaded crossbeam-deque v0.2.0
[INFO] [stderr]   Downloaded crossbeam-epoch v0.3.1
[INFO] [stderr]   Downloaded gif v0.10.1
[INFO] [stderr]   Downloaded proc-macro2 v0.4.27
[INFO] [stderr]   Downloaded rayon-core v1.4.1
[INFO] [stderr]   Downloaded syn v0.15.26
[INFO] [stderr]   Downloaded deflate v0.7.19
[INFO] [stderr]   Downloaded rayon v1.0.3
[INFO] [stderr]   Downloaded libc v0.2.48
[INFO] [stderr]   Downloaded tiff v0.2.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425
[INFO] running `Command { std: "docker" "start" "d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425", 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" "d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425" "/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" "d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425", 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" "d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling arrayvec v0.4.10
[INFO] [stderr]    Compiling num-traits v0.2.6
[INFO] [stderr]    Compiling nodrop v0.1.13
[INFO] [stderr]    Compiling proc-macro2 v0.4.27
[INFO] [stderr]    Compiling cfg-if v0.1.6
[INFO] [stderr]    Compiling byteorder v1.3.1
[INFO] [stderr]    Compiling libc v0.2.48
[INFO] [stderr]    Compiling rayon-core v1.4.1
[INFO] [stderr]    Compiling lazy_static v1.2.0
[INFO] [stderr]    Compiling memoffset v0.2.1
[INFO] [stderr]    Compiling scopeguard v0.3.3
[INFO] [stderr]    Compiling num-integer v0.1.39
[INFO] [stderr]    Compiling num-derive v0.2.4
[INFO] [stderr]    Compiling rayon v1.0.3
[INFO] [stderr]    Compiling num-iter v0.1.37
[INFO] [stderr]    Compiling adler32 v1.0.3
[INFO] [stderr]    Compiling either v1.5.1
[INFO] [stderr]    Compiling lzw v0.10.0
[INFO] [stderr]    Compiling num-rational v0.2.1
[INFO] [stderr]    Compiling crossbeam-utils v0.2.2
[INFO] [stderr]    Compiling inflate v0.4.5
[INFO] [stderr]    Compiling bitflags v1.0.4
[INFO] [stderr]    Compiling color_quant v1.0.1
[INFO] [stderr]    Compiling safe-transmute v0.10.1
[INFO] [stderr]    Compiling math v0.0.2
[INFO] [stderr]    Compiling gif v0.10.1
[INFO] [stderr]    Compiling crossbeam-epoch v0.3.1
[INFO] [stderr]    Compiling quote v0.6.11
[INFO] [stderr]    Compiling crossbeam-deque v0.2.0
[INFO] [stderr]    Compiling syn v0.15.26
[INFO] [stderr]    Compiling deflate v0.7.19
[INFO] [stderr]    Compiling num_cpus v1.10.0
[INFO] [stderr]    Compiling png v0.14.0
[INFO] [stderr]    Compiling jpeg-decoder v0.1.15
[INFO] [stderr]    Compiling tiff v0.2.2
[INFO] [stderr]    Compiling image v0.21.0
[INFO] [stderr]    Compiling image-toolbox v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `ImageBuffer` and `RGB`
[INFO] [stdout]   --> src/lib.rs:33:27
[INFO] [stdout]    |
[INFO] [stdout] 33 | use image::{GenericImage, ImageBuffer,RGB,GenericImageView, DynamicImage};
[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: `image::imageops`
[INFO] [stdout]   --> src/lib.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 | use image::imageops;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `max` and `min`
[INFO] [stdout]   --> src/lib.rs:35:16
[INFO] [stdout]    |
[INFO] [stdout] 35 | use std::cmp::{min, max};
[INFO] [stdout]    |                ^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0170]: pattern binding `R` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::R`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(bindings_with_variant_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0170]: pattern binding `G` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::G`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0170]: pattern binding `B` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::B`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             - matches any value
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             - matches any value
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `R`
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `R`
[INFO] [stdout]    |
[INFO] [stdout] 81 |             Pix::R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             +++++
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 81 |             _R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `G`
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `G`
[INFO] [stdout]    |
[INFO] [stdout] 82 |             Pix::G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             +++++
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 82 |             _G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `B`
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `B`
[INFO] [stdout]    |
[INFO] [stdout] 83 |             Pix::B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             +++++
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 83 |             _B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sum_distros` is assigned to, but never used
[INFO] [stdout]    --> src/lib.rs:103:13
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let mut sum_distros = 0.0;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_sum_distros` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sum_distros` is never read
[INFO] [stdout]    --> src/lib.rs:107:17
[INFO] [stdout]     |
[INFO] [stdout] 107 |                 sum_distros += r_dist[i];
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:128:9
[INFO] [stdout]     |
[INFO] [stdout] 128 |     let mut up_to = original_pixel as u32 +1;
[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: `new_pixel`
[INFO] [stdout]    --> src/lib.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 |     let new_pixel = 0; 
[INFO] [stdout]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_pixel`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `L` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:52:13
[INFO] [stdout]    |
[INFO] [stdout] 52 |         let L = 256;
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `l`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:53:9
[INFO] [stdout]    |
[INFO] [stdout] 53 |         write!(f,"\n----------------- RED -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let _ = write!(f,"\n----------------- RED -----------------\n");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:56:17
[INFO] [stdout]    |
[INFO] [stdout] 56 |                 write!(f,"{} => {}\n", i, self.r_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 56 |                 let _ = write!(f,"{} => {}\n", i, self.r_dist[i]);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |         write!(f,"\n----------------- GREEN -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let _ = write!(f,"\n----------------- GREEN -----------------\n");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:62:17
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 write!(f,"{} => {}\n", i, self.g_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 let _ = write!(f,"{} => {}\n", i, self.g_dist[i]);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 65 |         write!(f,"\n----------------- BLUE -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 65 |         let _ = write!(f,"\n----------------- BLUE -----------------\n");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 write!(f,"{} => {}\n", i, self.b_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 let _ = write!(f,"{} => {}\n", i, self.b_dist[i]);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `R` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `G` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `B` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `L` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:88:13
[INFO] [stdout]    |
[INFO] [stdout] 88 |         let L = 256;
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `l`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `colorType` should have a snake case name
[INFO] [stdout]    --> src/lib.rs:124:45
[INFO] [stdout]     |
[INFO] [stdout] 124 | pub fn transform_pixel(original_pixel : u8, colorType : Pix ,histogram :& Histogram)-> u8{
[INFO] [stdout]     |                                             ^^^^^^^^^ help: convert the identifier to snake case: `color_type`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `L` should have a snake case name
[INFO] [stdout]    --> src/lib.rs:125:9
[INFO] [stdout]     |
[INFO] [stdout] 125 |     let L = 256.0; 
[INFO] [stdout]     |         ^ help: convert the identifier to snake case: `l`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0170`.
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.76s
[INFO] running `Command { std: "docker" "inspect" "d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425", 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" "d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] warning: unused imports: `ImageBuffer` and `RGB`
[INFO] [stdout]   --> src/lib.rs:33:27
[INFO] [stdout]    |
[INFO] [stdout] 33 | use image::{GenericImage, ImageBuffer,RGB,GenericImageView, DynamicImage};
[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: `image::imageops`
[INFO] [stdout]   --> src/lib.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 | use image::imageops;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `max` and `min`
[INFO] [stdout]   --> src/lib.rs:35:16
[INFO] [stdout]    |
[INFO] [stdout] 35 | use std::cmp::{min, max};
[INFO] [stdout]    |                ^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0170]: pattern binding `R` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::R`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(bindings_with_variant_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0170]: pattern binding `G` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::G`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0170]: pattern binding `B` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::B`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             - matches any value
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             - matches any value
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `R`
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `R`
[INFO] [stdout]    |
[INFO] [stdout] 81 |             Pix::R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             +++++
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 81 |             _R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `G`
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `G`
[INFO] [stdout]    |
[INFO] [stdout] 82 |             Pix::G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             +++++
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 82 |             _G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `B`
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `B`
[INFO] [stdout]    |
[INFO] [stdout] 83 |             Pix::B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             +++++
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 83 |             _B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sum_distros` is assigned to, but never used
[INFO] [stdout]    --> src/lib.rs:103:13
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let mut sum_distros = 0.0;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_sum_distros` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sum_distros` is never read
[INFO] [stdout]    --> src/lib.rs:107:17
[INFO] [stdout]     |
[INFO] [stdout] 107 |                 sum_distros += r_dist[i];
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:128:9
[INFO] [stdout]     |
[INFO] [stdout] 128 |     let mut up_to = original_pixel as u32 +1;
[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: `new_pixel`
[INFO] [stdout]    --> src/lib.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 |     let new_pixel = 0; 
[INFO] [stdout]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_pixel`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `L` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:52:13
[INFO] [stdout]    |
[INFO] [stdout] 52 |         let L = 256;
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `l`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:53:9
[INFO] [stdout]    |
[INFO] [stdout] 53 |         write!(f,"\n----------------- RED -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let _ = write!(f,"\n----------------- RED -----------------\n");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:56:17
[INFO] [stdout]    |
[INFO] [stdout] 56 |                 write!(f,"{} => {}\n", i, self.r_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 56 |                 let _ = write!(f,"{} => {}\n", i, self.r_dist[i]);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |         write!(f,"\n----------------- GREEN -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let _ = write!(f,"\n----------------- GREEN -----------------\n");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:62:17
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 write!(f,"{} => {}\n", i, self.g_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 let _ = write!(f,"{} => {}\n", i, self.g_dist[i]);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 65 |         write!(f,"\n----------------- BLUE -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 65 |         let _ = write!(f,"\n----------------- BLUE -----------------\n");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 write!(f,"{} => {}\n", i, self.b_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 let _ = write!(f,"{} => {}\n", i, self.b_dist[i]);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `R` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `G` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `B` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `L` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:88:13
[INFO] [stdout]    |
[INFO] [stdout] 88 |         let L = 256;
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `l`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `colorType` should have a snake case name
[INFO] [stdout]    --> src/lib.rs:124:45
[INFO] [stdout]     |
[INFO] [stdout] 124 | pub fn transform_pixel(original_pixel : u8, colorType : Pix ,histogram :& Histogram)-> u8{
[INFO] [stdout]     |                                             ^^^^^^^^^ help: convert the identifier to snake case: `color_type`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `L` should have a snake case name
[INFO] [stdout]    --> src/lib.rs:125:9
[INFO] [stdout]     |
[INFO] [stdout] 125 |     let L = 256.0; 
[INFO] [stdout]     |         ^ help: convert the identifier to snake case: `l`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0170`.
[INFO] [stdout] 
[INFO] [stderr]    Compiling image-toolbox v0.1.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `ImageBuffer` and `RGB`
[INFO] [stdout]   --> src/lib.rs:33:27
[INFO] [stdout]    |
[INFO] [stdout] 33 | use image::{GenericImage, ImageBuffer,RGB,GenericImageView, DynamicImage};
[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: `image::imageops`
[INFO] [stdout]   --> src/lib.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 | use image::imageops;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `max` and `min`
[INFO] [stdout]   --> src/lib.rs:35:16
[INFO] [stdout]    |
[INFO] [stdout] 35 | use std::cmp::{min, max};
[INFO] [stdout]    |                ^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0170]: pattern binding `R` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::R`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(bindings_with_variant_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0170]: pattern binding `G` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::G`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0170]: pattern binding `B` is named the same as one of the variants of the type `Pix`
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: to match on the variant, qualify the path: `Pix::B`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             - matches any value
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             - matches any value
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `R`
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `R`
[INFO] [stdout]    |
[INFO] [stdout] 81 |             Pix::R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             +++++
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 81 |             _R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `G`
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `G`
[INFO] [stdout]    |
[INFO] [stdout] 82 |             Pix::G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             +++++
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 82 |             _G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `B`
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `B`
[INFO] [stdout]    |
[INFO] [stdout] 83 |             Pix::B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             +++++
[INFO] [stdout] help: if this is intentional, prefix it with an underscore
[INFO] [stdout]    |
[INFO] [stdout] 83 |             _B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sum_distros` is assigned to, but never used
[INFO] [stdout]    --> src/lib.rs:103:13
[INFO] [stdout]     |
[INFO] [stdout] 103 |         let mut sum_distros = 0.0;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_sum_distros` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sum_distros` is never read
[INFO] [stdout]    --> src/lib.rs:107:17
[INFO] [stdout]     |
[INFO] [stdout] 107 |                 sum_distros += r_dist[i];
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:128:9
[INFO] [stdout]     |
[INFO] [stdout] 128 |     let mut up_to = original_pixel as u32 +1;
[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: `new_pixel`
[INFO] [stdout]    --> src/lib.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 |     let new_pixel = 0; 
[INFO] [stdout]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_pixel`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `p2`
[INFO] [stdout]    --> src/lib.rs:218:21
[INFO] [stdout]     |
[INFO] [stdout] 218 |                 let p2 = img2.get_pixel(i, j);
[INFO] [stdout]     |                     ^^ help: if this is intentional, prefix it with an underscore: `_p2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `L` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:52:13
[INFO] [stdout]    |
[INFO] [stdout] 52 |         let L = 256;
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `l`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:53:9
[INFO] [stdout]    |
[INFO] [stdout] 53 |         write!(f,"\n----------------- RED -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 53 |         let _ = write!(f,"\n----------------- RED -----------------\n");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:56:17
[INFO] [stdout]    |
[INFO] [stdout] 56 |                 write!(f,"{} => {}\n", i, self.r_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 56 |                 let _ = write!(f,"{} => {}\n", i, self.r_dist[i]);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:59:9
[INFO] [stdout]    |
[INFO] [stdout] 59 |         write!(f,"\n----------------- GREEN -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 59 |         let _ = write!(f,"\n----------------- GREEN -----------------\n");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:62:17
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 write!(f,"{} => {}\n", i, self.g_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 62 |                 let _ = write!(f,"{} => {}\n", i, self.g_dist[i]);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:65:9
[INFO] [stdout]    |
[INFO] [stdout] 65 |         write!(f,"\n----------------- BLUE -----------------\n");
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 65 |         let _ = write!(f,"\n----------------- BLUE -----------------\n");
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/lib.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 write!(f,"{} => {}\n", i, self.b_dist[i]);
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 68 |                 let _ = write!(f,"{} => {}\n", i, self.b_dist[i]);
[INFO] [stdout]    |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `R` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:81:13
[INFO] [stdout]    |
[INFO] [stdout] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `r`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `G` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:82:13
[INFO] [stdout]    |
[INFO] [stdout] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `g`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `B` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:83:13
[INFO] [stdout]    |
[INFO] [stdout] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `b`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `L` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:88:13
[INFO] [stdout]    |
[INFO] [stdout] 88 |         let L = 256;
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `l`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `colorType` should have a snake case name
[INFO] [stdout]    --> src/lib.rs:124:45
[INFO] [stdout]     |
[INFO] [stdout] 124 | pub fn transform_pixel(original_pixel : u8, colorType : Pix ,histogram :& Histogram)-> u8{
[INFO] [stdout]     |                                             ^^^^^^^^^ help: convert the identifier to snake case: `color_type`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `L` should have a snake case name
[INFO] [stdout]    --> src/lib.rs:125:9
[INFO] [stdout]     |
[INFO] [stdout] 125 |     let L = 256.0; 
[INFO] [stdout]     |         ^ help: convert the identifier to snake case: `l`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0170`.
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.48s
[INFO] running `Command { std: "docker" "inspect" "d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425", 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" "d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `ImageBuffer` and `RGB`
[INFO] [stderr]   --> src/lib.rs:33:27
[INFO] [stderr]    |
[INFO] [stderr] 33 | use image::{GenericImage, ImageBuffer,RGB,GenericImageView, DynamicImage};
[INFO] [stderr]    |                           ^^^^^^^^^^^ ^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `image::imageops`
[INFO] [stderr]   --> src/lib.rs:34:5
[INFO] [stderr]    |
[INFO] [stderr] 34 | use image::imageops;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `max` and `min`
[INFO] [stderr]   --> src/lib.rs:35:16
[INFO] [stderr]    |
[INFO] [stderr] 35 | use std::cmp::{min, max};
[INFO] [stderr]    |                ^^^  ^^^
[INFO] [stderr] 
[INFO] [stderr] warning[E0170]: pattern binding `R` is named the same as one of the variants of the type `Pix`
[INFO] [stderr]   --> src/lib.rs:81:13
[INFO] [stderr]    |
[INFO] [stderr] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stderr]    |             ^ help: to match on the variant, qualify the path: `Pix::R`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(bindings_with_variant_name)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning[E0170]: pattern binding `G` is named the same as one of the variants of the type `Pix`
[INFO] [stderr]   --> src/lib.rs:82:13
[INFO] [stderr]    |
[INFO] [stderr] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stderr]    |             ^ help: to match on the variant, qualify the path: `Pix::G`
[INFO] [stderr] 
[INFO] [stderr] warning[E0170]: pattern binding `B` is named the same as one of the variants of the type `Pix`
[INFO] [stderr]   --> src/lib.rs:83:13
[INFO] [stderr]    |
[INFO] [stderr] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stderr]    |             ^ help: to match on the variant, qualify the path: `Pix::B`
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable pattern
[INFO] [stderr]   --> src/lib.rs:82:13
[INFO] [stderr]    |
[INFO] [stderr] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stderr]    |             - matches any value
[INFO] [stderr] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stderr]    |             ^ no value can reach this
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unreachable pattern
[INFO] [stderr]   --> src/lib.rs:83:13
[INFO] [stderr]    |
[INFO] [stderr] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stderr]    |             - matches any value
[INFO] [stderr] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stderr] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stderr]    |             ^ no value can reach this
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `R`
[INFO] [stderr]   --> src/lib.rs:81:13
[INFO] [stderr]    |
[INFO] [stderr] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stderr]    |             ^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: you might have meant to pattern match on the similarly named variant `R`
[INFO] [stderr]    |
[INFO] [stderr] 81 |             Pix::R => self.r_dist[pix_val as usize], 
[INFO] [stderr]    |             +++++
[INFO] [stderr] help: if this is intentional, prefix it with an underscore
[INFO] [stderr]    |
[INFO] [stderr] 81 |             _R => self.r_dist[pix_val as usize], 
[INFO] [stderr]    |             +
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `G`
[INFO] [stderr]   --> src/lib.rs:82:13
[INFO] [stderr]    |
[INFO] [stderr] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stderr]    |             ^
[INFO] [stderr]    |
[INFO] [stderr] help: you might have meant to pattern match on the similarly named variant `G`
[INFO] [stderr]    |
[INFO] [stderr] 82 |             Pix::G => self.g_dist[pix_val as usize], 
[INFO] [stderr]    |             +++++
[INFO] [stderr] help: if this is intentional, prefix it with an underscore
[INFO] [stderr]    |
[INFO] [stderr] 82 |             _G => self.g_dist[pix_val as usize], 
[INFO] [stderr]    |             +
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `B`
[INFO] [stderr]   --> src/lib.rs:83:13
[INFO] [stderr]    |
[INFO] [stderr] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stderr]    |             ^
[INFO] [stderr]    |
[INFO] [stderr] help: you might have meant to pattern match on the similarly named variant `B`
[INFO] [stderr]    |
[INFO] [stderr] 83 |             Pix::B => self.b_dist[pix_val as usize], 
[INFO] [stderr]    |             +++++
[INFO] [stderr] help: if this is intentional, prefix it with an underscore
[INFO] [stderr]    |
[INFO] [stderr] 83 |             _B => self.b_dist[pix_val as usize], 
[INFO] [stderr]    |             +
[INFO] [stderr] 
[INFO] [stderr] warning: variable `sum_distros` is assigned to, but never used
[INFO] [stderr]    --> src/lib.rs:103:13
[INFO] [stderr]     |
[INFO] [stderr] 103 |         let mut sum_distros = 0.0;
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: consider using `_sum_distros` instead
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `sum_distros` is never read
[INFO] [stderr]    --> src/lib.rs:107:17
[INFO] [stderr]     |
[INFO] [stderr] 107 |                 sum_distros += r_dist[i];
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/lib.rs:128:9
[INFO] [stderr]     |
[INFO] [stderr] 128 |     let mut up_to = original_pixel as u32 +1;
[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: `new_pixel`
[INFO] [stderr]    --> src/lib.rs:126:9
[INFO] [stderr]     |
[INFO] [stderr] 126 |     let new_pixel = 0; 
[INFO] [stderr]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_pixel`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `L` should have a snake case name
[INFO] [stderr]   --> src/lib.rs:52:13
[INFO] [stderr]    |
[INFO] [stderr] 52 |         let L = 256;
[INFO] [stderr]    |             ^ help: convert the identifier to snake case: `l`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]   --> src/lib.rs:53:9
[INFO] [stderr]    |
[INFO] [stderr] 53 |         write!(f,"\n----------------- RED -----------------\n");
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 53 |         let _ = write!(f,"\n----------------- RED -----------------\n");
[INFO] [stderr]    |         +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]   --> src/lib.rs:56:17
[INFO] [stderr]    |
[INFO] [stderr] 56 |                 write!(f,"{} => {}\n", i, self.r_dist[i]);
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 56 |                 let _ = write!(f,"{} => {}\n", i, self.r_dist[i]);
[INFO] [stderr]    |                 +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]   --> src/lib.rs:59:9
[INFO] [stderr]    |
[INFO] [stderr] 59 |         write!(f,"\n----------------- GREEN -----------------\n");
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 59 |         let _ = write!(f,"\n----------------- GREEN -----------------\n");
[INFO] [stderr]    |         +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]   --> src/lib.rs:62:17
[INFO] [stderr]    |
[INFO] [stderr] 62 |                 write!(f,"{} => {}\n", i, self.g_dist[i]);
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 62 |                 let _ = write!(f,"{} => {}\n", i, self.g_dist[i]);
[INFO] [stderr]    |                 +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]   --> src/lib.rs:65:9
[INFO] [stderr]    |
[INFO] [stderr] 65 |         write!(f,"\n----------------- BLUE -----------------\n");
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 65 |         let _ = write!(f,"\n----------------- BLUE -----------------\n");
[INFO] [stderr]    |         +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: unused `Result` that must be used
[INFO] [stderr]   --> src/lib.rs:68:17
[INFO] [stderr]    |
[INFO] [stderr] 68 |                 write!(f,"{} => {}\n", i, self.b_dist[i]);
[INFO] [stderr]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] help: use `let _ = ...` to ignore the resulting value
[INFO] [stderr]    |
[INFO] [stderr] 68 |                 let _ = write!(f,"{} => {}\n", i, self.b_dist[i]);
[INFO] [stderr]    |                 +++++++
[INFO] [stderr] 
[INFO] [stderr] warning: variable `R` should have a snake case name
[INFO] [stderr]   --> src/lib.rs:81:13
[INFO] [stderr]    |
[INFO] [stderr] 81 |             R => self.r_dist[pix_val as usize], 
[INFO] [stderr]    |             ^ help: convert the identifier to snake case: `r`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `G` should have a snake case name
[INFO] [stderr]   --> src/lib.rs:82:13
[INFO] [stderr]    |
[INFO] [stderr] 82 |             G => self.g_dist[pix_val as usize], 
[INFO] [stderr]    |             ^ help: convert the identifier to snake case: `g`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `B` should have a snake case name
[INFO] [stderr]   --> src/lib.rs:83:13
[INFO] [stderr]    |
[INFO] [stderr] 83 |             B => self.b_dist[pix_val as usize], 
[INFO] [stderr]    |             ^ help: convert the identifier to snake case: `b`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `L` should have a snake case name
[INFO] [stderr]   --> src/lib.rs:88:13
[INFO] [stderr]    |
[INFO] [stderr] 88 |         let L = 256;
[INFO] [stderr]    |             ^ help: convert the identifier to snake case: `l`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `colorType` should have a snake case name
[INFO] [stderr]    --> src/lib.rs:124:45
[INFO] [stderr]     |
[INFO] [stderr] 124 | pub fn transform_pixel(original_pixel : u8, colorType : Pix ,histogram :& Histogram)-> u8{
[INFO] [stderr]     |                                             ^^^^^^^^^ help: convert the identifier to snake case: `color_type`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `L` should have a snake case name
[INFO] [stderr]    --> src/lib.rs:125:9
[INFO] [stderr]     |
[INFO] [stderr] 125 |     let L = 256.0; 
[INFO] [stderr]     |         ^ help: convert the identifier to snake case: `l`
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0170`.
[INFO] [stderr] warning: unused variable: `p2`
[INFO] [stderr]    --> src/lib.rs:218:21
[INFO] [stderr]     |
[INFO] [stderr] 218 |                 let p2 = img2.get_pixel(i, j);
[INFO] [stderr]     |                     ^^ help: if this is intentional, prefix it with an underscore: `_p2`
[INFO] [stderr] 
[INFO] [stderr] warning: `image-toolbox` (lib) generated 28 warnings (run `cargo fix --lib -p image-toolbox` to apply 11 suggestions)
[INFO] [stderr] warning: `image-toolbox` (lib test) generated 29 warnings (28 duplicates) (run `cargo fix --lib -p image-toolbox --tests` to apply 1 suggestion)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/image_toolbox-b49ae432404a5c26)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test tests::perform_histogram_equalization ... ok
[INFO] [stderr]    Doc-tests image_toolbox
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.77s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 7 tests
[INFO] [stdout] test src/lib.rs - (line 22) ... ignored
[INFO] [stdout] test src/lib.rs - (line 5) ... ignored
[INFO] [stdout] test src/lib.rs - load_img (line 163) ... ok
[INFO] [stdout] test src/lib.rs - save_img (line 173) ... FAILED
[INFO] [stdout] test src/lib.rs - transform_from_histogram (line 135) ... ok
[INFO] [stdout] test src/lib.rs - (line 10) ... ok
[INFO] [stdout] test src/lib.rs - normalize_brightness (line 188) ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - save_img (line 173) stdout ----
[INFO] [stdout] Test executable failed (exit status: 101).
[INFO] [stdout] 
[INFO] [stdout] stderr:
[INFO] [stdout] 
[INFO] [stdout] thread 'main' (1043) panicked at src/lib.rs:11:39:
[INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x64a356768078 - std[10d71ac2c42b111e]::backtrace_rs::backtrace::libunwind::trace
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x64a356768078 - std[10d71ac2c42b111e]::backtrace_rs::backtrace::trace_unsynchronized::<std[10d71ac2c42b111e]::sys::backtrace::_print_fmt::{closure#1}>
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x64a356768078 - std[10d71ac2c42b111e]::sys::backtrace::_print_fmt
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/sys/backtrace.rs:74:9
[INFO] [stdout]    3:     0x64a356768078 - <<std[10d71ac2c42b111e]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[8fb95b77d25ab6c8]::fmt::Display>::fmt
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/sys/backtrace.rs:44:26
[INFO] [stdout]    4:     0x64a356778dfa - <core[8fb95b77d25ab6c8]::fmt::rt::Argument>::fmt
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/core/src/fmt/rt.rs:152:76
[INFO] [stdout]    5:     0x64a356778dfa - core[8fb95b77d25ab6c8]::fmt::write
[INFO] [stdout]    6:     0x64a35676b8c2 - std[10d71ac2c42b111e]::io::default_write_fmt::<std[10d71ac2c42b111e]::sys::stdio::unix::Stderr>
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/io/mod.rs:622:11
[INFO] [stdout]    7:     0x64a35676b8c2 - <std[10d71ac2c42b111e]::sys::stdio::unix::Stderr as std[10d71ac2c42b111e]::io::Write>::write_fmt
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/io/mod.rs:1977:13
[INFO] [stdout]    8:     0x64a356753c96 - <std[10d71ac2c42b111e]::sys::backtrace::BacktraceLock>::print
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/sys/backtrace.rs:47:9
[INFO] [stdout]    9:     0x64a356753c96 - std[10d71ac2c42b111e]::panicking::default_hook::{closure#0}
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/panicking.rs:292:27
[INFO] [stdout]   10:     0x64a356764651 - std[10d71ac2c42b111e]::panicking::default_hook
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/panicking.rs:319:9
[INFO] [stdout]   11:     0x64a35676480b - std[10d71ac2c42b111e]::panicking::panic_with_hook
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/panicking.rs:825:13
[INFO] [stdout]   12:     0x64a356753d52 - std[10d71ac2c42b111e]::panicking::panic_handler::{closure#0}
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/panicking.rs:698:13
[INFO] [stdout]   13:     0x64a356749309 - std[10d71ac2c42b111e]::sys::backtrace::__rust_end_short_backtrace::<std[10d71ac2c42b111e]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/sys/backtrace.rs:182:18
[INFO] [stdout]   14:     0x64a35675453d - __rustc[3be9ba60078d4c86]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/panicking.rs:689:5
[INFO] [stdout]   15:     0x64a35677954c - core[8fb95b77d25ab6c8]::panicking::panic_fmt
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/core/src/panicking.rs:80:14
[INFO] [stdout]   16:     0x64a3567792c2 - core[8fb95b77d25ab6c8]::result::unwrap_failed
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/core/src/result.rs:1867:5
[INFO] [stdout]   17:     0x64a3566f569c - rust_out[45392ab902eb6021]::main::_doctest_main_src_lib_rs_173_0
[INFO] [stdout]   18:     0x64a3566f55c6 - rust_out[45392ab902eb6021]::main
[INFO] [stdout]   19:     0x64a3566f5713 - <fn() as core[8fb95b77d25ab6c8]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]   20:     0x64a3566f5586 - std[10d71ac2c42b111e]::sys::backtrace::__rust_begin_short_backtrace::<fn(), ()>
[INFO] [stdout]   21:     0x64a3566f5599 - std[10d71ac2c42b111e]::rt::lang_start::<()>::{closure#0}
[INFO] [stdout]   22:     0x64a356763df7 - <&dyn core[8fb95b77d25ab6c8]::ops::function::Fn<(), Output = i32> + core[8fb95b77d25ab6c8]::panic::unwind_safe::RefUnwindSafe + core[8fb95b77d25ab6c8]::marker::Sync as core[8fb95b77d25ab6c8]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/core/src/ops/function.rs:287:21
[INFO] [stdout]   23:     0x64a356763df7 - std[10d71ac2c42b111e]::panicking::catch_unwind::do_call::<&dyn core[8fb95b77d25ab6c8]::ops::function::Fn<(), Output = i32> + core[8fb95b77d25ab6c8]::panic::unwind_safe::RefUnwindSafe + core[8fb95b77d25ab6c8]::marker::Sync, i32>
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/panicking.rs:581:40
[INFO] [stdout]   24:     0x64a356763df7 - std[10d71ac2c42b111e]::panicking::catch_unwind::<i32, &dyn core[8fb95b77d25ab6c8]::ops::function::Fn<(), Output = i32> + core[8fb95b77d25ab6c8]::panic::unwind_safe::RefUnwindSafe + core[8fb95b77d25ab6c8]::marker::Sync>
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/panicking.rs:544:19
[INFO] [stdout]   25:     0x64a356763df7 - std[10d71ac2c42b111e]::panic::catch_unwind::<&dyn core[8fb95b77d25ab6c8]::ops::function::Fn<(), Output = i32> + core[8fb95b77d25ab6c8]::panic::unwind_safe::RefUnwindSafe + core[8fb95b77d25ab6c8]::marker::Sync, i32>
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/panic.rs:359:14
[INFO] [stdout]   26:     0x64a356763df7 - std[10d71ac2c42b111e]::rt::lang_start_internal::{closure#0}
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/rt.rs:175:24
[INFO] [stdout]   27:     0x64a356763df7 - std[10d71ac2c42b111e]::panicking::catch_unwind::do_call::<std[10d71ac2c42b111e]::rt::lang_start_internal::{closure#0}, isize>
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/panicking.rs:581:40
[INFO] [stdout]   28:     0x64a356763df7 - std[10d71ac2c42b111e]::panicking::catch_unwind::<isize, std[10d71ac2c42b111e]::rt::lang_start_internal::{closure#0}>
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/panicking.rs:544:19
[INFO] [stdout]   29:     0x64a356763df7 - std[10d71ac2c42b111e]::panic::catch_unwind::<std[10d71ac2c42b111e]::rt::lang_start_internal::{closure#0}, isize>
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/panic.rs:359:14
[INFO] [stdout]   30:     0x64a356763df7 - std[10d71ac2c42b111e]::rt::lang_start_internal
[INFO] [stdout]                                at /rustc/b2282dd5646a57d570fc86fbe8df0e8826665ef6/library/std/src/rt.rs:171:5
[INFO] [stdout]   31:     0x64a3566f5571 - std[10d71ac2c42b111e]::rt::lang_start::<()>
[INFO] [stdout]   32:     0x64a3566f5775 - main
[INFO] [stdout]   33:     0x7812f06071ca - <unknown>
[INFO] [stdout]   34:     0x7812f060728b - __libc_start_main
[INFO] [stdout]   35:     0x64a3566f5485 - _start
[INFO] [stdout]   36:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - save_img (line 173)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 4 passed; 1 failed; 2 ignored; 0 measured; 0 filtered out; finished in 3.49s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425", kill_on_drop: false }`
[INFO] [stdout] d261bd9db2cb216fe8ca4ca3dc97d13ecc153a2da4395133b002ae1578ffc425
