[INFO] cloning repository https://github.com/Roja-Eswaran/Rust-WASM-Steganography [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Roja-Eswaran/Rust-WASM-Steganography" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRoja-Eswaran%2FRust-WASM-Steganography", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRoja-Eswaran%2FRust-WASM-Steganography'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 23d8f5100f9f43c73358ba442cda6034e47a8778 [INFO] checking Roja-Eswaran/Rust-WASM-Steganography against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRoja-Eswaran%2FRust-WASM-Steganography" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Roja-Eswaran/Rust-WASM-Steganography on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Roja-Eswaran/Rust-WASM-Steganography [INFO] finished tweaking git repo https://github.com/Roja-Eswaran/Rust-WASM-Steganography [INFO] tweaked toml for git repo https://github.com/Roja-Eswaran/Rust-WASM-Steganography written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Roja-Eswaran/Rust-WASM-Steganography 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-test v0.2.50 [INFO] [stderr] Downloaded wasm-bindgen-test-macro v0.2.50 [INFO] [stderr] Downloaded futures v0.1.29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a6a37cb0f7df455c1161d48a50ae2d013f59acdcf516c25eb630d177e2115a7a [INFO] running `Command { std: "docker" "start" "-a" "a6a37cb0f7df455c1161d48a50ae2d013f59acdcf516c25eb630d177e2115a7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a6a37cb0f7df455c1161d48a50ae2d013f59acdcf516c25eb630d177e2115a7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6a37cb0f7df455c1161d48a50ae2d013f59acdcf516c25eb630d177e2115a7a", kill_on_drop: false }` [INFO] [stdout] a6a37cb0f7df455c1161d48a50ae2d013f59acdcf516c25eb630d177e2115a7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41c6b80d593507cdc138ce62c8ed7b6d87807fc55fea001d9dbffd4c86c51c8a [INFO] running `Command { std: "docker" "start" "-a" "41c6b80d593507cdc138ce62c8ed7b6d87807fc55fea001d9dbffd4c86c51c8a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.60 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling bumpalo v3.2.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.60 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking futures v0.1.29 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.2.50 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.60 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.60 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.60 [INFO] [stderr] Checking js-sys v0.3.37 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking wasm-ppm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | if (header_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - if (header_error == 1) { [INFO] [stdout] 127 + if header_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | if (header_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 261 - if (header_error == 1) { [INFO] [stdout] 261 + if header_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:291:12 [INFO] [stdout] | [INFO] [stdout] 291 | if (content_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 291 - if (content_error == 1) { [INFO] [stdout] 291 + if content_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:309:34 [INFO] [stdout] | [INFO] [stdout] 309 | let mut possible_character = (&ppm.pixels.len() / 8) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 309 - let mut possible_character = (&ppm.pixels.len() / 8) ; [INFO] [stdout] 309 + let mut possible_character = &ppm.pixels.len() / 8 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:314:8 [INFO] [stdout] | [INFO] [stdout] 314 | if (message.chars().count() > possible_character - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - if (message.chars().count() > possible_character - 1) { [INFO] [stdout] 314 + if message.chars().count() > possible_character - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | if (start_index < *ppm_length) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 337 - if (start_index < *ppm_length) { [INFO] [stdout] 337 + if start_index < *ppm_length { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/lib.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut error = vec![0, 0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut error = vec![0, 0]; [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: `error` [INFO] [stdout] --> src/lib.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | let mut error = vec![0, 0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | let mut error = vec![0, 0]; [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/lib.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | let mut return_encode: Result, String>; [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/lib.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | let mut possible_character = (&ppm.pixels.len() / 8) ; [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/lib.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | let mut ppm_length = &ppm.pixels.len(); [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/lib.rs:370:9 [INFO] [stdout] | [INFO] [stdout] 370 | let mut final_decode: Result; [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/lib.rs:430:30 [INFO] [stdout] | [INFO] [stdout] 430 | fn parse_maximum_color_value(mut f: &mut impl Read) -> Result, PPMError> { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | reader_bytes.read_to_end(&mut pixels); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 139 | let _ = reader_bytes.read_to_end(&mut pixels); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 250 | reader_bytes.read_to_end(&mut pixels); [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] 250 | let _ = reader_bytes.read_to_end(&mut pixels); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking wasm-bindgen-futures v0.3.27 [INFO] [stderr] Checking wasm-bindgen-test v0.2.50 [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | if (header_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - if (header_error == 1) { [INFO] [stdout] 127 + if header_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | if (header_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 261 - if (header_error == 1) { [INFO] [stdout] 261 + if header_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:291:12 [INFO] [stdout] | [INFO] [stdout] 291 | if (content_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 291 - if (content_error == 1) { [INFO] [stdout] 291 + if content_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:309:34 [INFO] [stdout] | [INFO] [stdout] 309 | let mut possible_character = (&ppm.pixels.len() / 8) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 309 - let mut possible_character = (&ppm.pixels.len() / 8) ; [INFO] [stdout] 309 + let mut possible_character = &ppm.pixels.len() / 8 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:314:8 [INFO] [stdout] | [INFO] [stdout] 314 | if (message.chars().count() > possible_character - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - if (message.chars().count() > possible_character - 1) { [INFO] [stdout] 314 + if message.chars().count() > possible_character - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | if (start_index < *ppm_length) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 337 - if (start_index < *ppm_length) { [INFO] [stdout] 337 + if start_index < *ppm_length { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/lib.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut error = vec![0, 0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut error = vec![0, 0]; [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: `error` [INFO] [stdout] --> src/lib.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | let mut error = vec![0, 0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | let mut error = vec![0, 0]; [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/lib.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | let mut return_encode: Result, String>; [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/lib.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | let mut possible_character = (&ppm.pixels.len() / 8) ; [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/lib.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | let mut ppm_length = &ppm.pixels.len(); [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/lib.rs:370:9 [INFO] [stdout] | [INFO] [stdout] 370 | let mut final_decode: Result; [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/lib.rs:430:30 [INFO] [stdout] | [INFO] [stdout] 430 | fn parse_maximum_color_value(mut f: &mut impl Read) -> Result, PPMError> { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | reader_bytes.read_to_end(&mut pixels); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 139 | let _ = reader_bytes.read_to_end(&mut pixels); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 250 | reader_bytes.read_to_end(&mut pixels); [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] 250 | let _ = reader_bytes.read_to_end(&mut pixels); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.47s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.60 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "41c6b80d593507cdc138ce62c8ed7b6d87807fc55fea001d9dbffd4c86c51c8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41c6b80d593507cdc138ce62c8ed7b6d87807fc55fea001d9dbffd4c86c51c8a", kill_on_drop: false }` [INFO] [stdout] 41c6b80d593507cdc138ce62c8ed7b6d87807fc55fea001d9dbffd4c86c51c8a [INFO] checking Roja-Eswaran/Rust-WASM-Steganography against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRoja-Eswaran%2FRust-WASM-Steganography" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Roja-Eswaran/Rust-WASM-Steganography on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Roja-Eswaran/Rust-WASM-Steganography [INFO] finished tweaking git repo https://github.com/Roja-Eswaran/Rust-WASM-Steganography [INFO] tweaked toml for git repo https://github.com/Roja-Eswaran/Rust-WASM-Steganography written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Roja-Eswaran/Rust-WASM-Steganography 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 509d62214559d6952191dfc02a5964adc76cdd0f2dedea17f5f838e648544919 [INFO] running `Command { std: "docker" "start" "-a" "509d62214559d6952191dfc02a5964adc76cdd0f2dedea17f5f838e648544919", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "509d62214559d6952191dfc02a5964adc76cdd0f2dedea17f5f838e648544919", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "509d62214559d6952191dfc02a5964adc76cdd0f2dedea17f5f838e648544919", kill_on_drop: false }` [INFO] [stdout] 509d62214559d6952191dfc02a5964adc76cdd0f2dedea17f5f838e648544919 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08e75520149cc54e02ea0b89943948aeaa16cd0ce9a294132cd62d5a0151a9b7 [INFO] running `Command { std: "docker" "start" "-a" "08e75520149cc54e02ea0b89943948aeaa16cd0ce9a294132cd62d5a0151a9b7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.10 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.60 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling bumpalo v3.2.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.60 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking futures v0.1.29 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.2.50 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.60 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.60 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.60 [INFO] [stderr] Checking js-sys v0.3.37 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking wasm-ppm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | if (header_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - if (header_error == 1) { [INFO] [stdout] 127 + if header_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | if (header_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 261 - if (header_error == 1) { [INFO] [stdout] 261 + if header_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:291:12 [INFO] [stdout] | [INFO] [stdout] 291 | if (content_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 291 - if (content_error == 1) { [INFO] [stdout] 291 + if content_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:309:34 [INFO] [stdout] | [INFO] [stdout] 309 | let mut possible_character = (&ppm.pixels.len() / 8) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 309 - let mut possible_character = (&ppm.pixels.len() / 8) ; [INFO] [stdout] 309 + let mut possible_character = &ppm.pixels.len() / 8 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:314:8 [INFO] [stdout] | [INFO] [stdout] 314 | if (message.chars().count() > possible_character - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - if (message.chars().count() > possible_character - 1) { [INFO] [stdout] 314 + if message.chars().count() > possible_character - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | if (start_index < *ppm_length) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 337 - if (start_index < *ppm_length) { [INFO] [stdout] 337 + if start_index < *ppm_length { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/lib.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut error = vec![0, 0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut error = vec![0, 0]; [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: `error` [INFO] [stdout] --> src/lib.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | let mut error = vec![0, 0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | let mut error = vec![0, 0]; [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/lib.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | let mut return_encode: Result, String>; [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/lib.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | let mut possible_character = (&ppm.pixels.len() / 8) ; [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/lib.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | let mut ppm_length = &ppm.pixels.len(); [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/lib.rs:370:9 [INFO] [stdout] | [INFO] [stdout] 370 | let mut final_decode: Result; [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/lib.rs:430:30 [INFO] [stdout] | [INFO] [stdout] 430 | fn parse_maximum_color_value(mut f: &mut impl Read) -> Result, PPMError> { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | reader_bytes.read_to_end(&mut pixels); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 139 | let _ = reader_bytes.read_to_end(&mut pixels); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 250 | reader_bytes.read_to_end(&mut pixels); [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] 250 | let _ = reader_bytes.read_to_end(&mut pixels); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking wasm-bindgen-futures v0.3.27 [INFO] [stderr] Checking wasm-bindgen-test v0.2.50 [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:127:8 [INFO] [stdout] | [INFO] [stdout] 127 | if (header_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - if (header_error == 1) { [INFO] [stdout] 127 + if header_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:261:8 [INFO] [stdout] | [INFO] [stdout] 261 | if (header_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 261 - if (header_error == 1) { [INFO] [stdout] 261 + if header_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:291:12 [INFO] [stdout] | [INFO] [stdout] 291 | if (content_error == 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 291 - if (content_error == 1) { [INFO] [stdout] 291 + if content_error == 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/lib.rs:309:34 [INFO] [stdout] | [INFO] [stdout] 309 | let mut possible_character = (&ppm.pixels.len() / 8) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 309 - let mut possible_character = (&ppm.pixels.len() / 8) ; [INFO] [stdout] 309 + let mut possible_character = &ppm.pixels.len() / 8 ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:314:8 [INFO] [stdout] | [INFO] [stdout] 314 | if (message.chars().count() > possible_character - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - if (message.chars().count() > possible_character - 1) { [INFO] [stdout] 314 + if message.chars().count() > possible_character - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | if (start_index < *ppm_length) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 337 - if (start_index < *ppm_length) { [INFO] [stdout] 337 + if start_index < *ppm_length { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error` [INFO] [stdout] --> src/lib.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut error = vec![0, 0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut error = vec![0, 0]; [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: `error` [INFO] [stdout] --> src/lib.rs:177:13 [INFO] [stdout] | [INFO] [stdout] 177 | let mut error = vec![0, 0]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | let mut error = vec![0, 0]; [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/lib.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | let mut return_encode: Result, String>; [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/lib.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | let mut possible_character = (&ppm.pixels.len() / 8) ; [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/lib.rs:312:9 [INFO] [stdout] | [INFO] [stdout] 312 | let mut ppm_length = &ppm.pixels.len(); [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/lib.rs:370:9 [INFO] [stdout] | [INFO] [stdout] 370 | let mut final_decode: Result; [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/lib.rs:430:30 [INFO] [stdout] | [INFO] [stdout] 430 | fn parse_maximum_color_value(mut f: &mut impl Read) -> Result, PPMError> { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_panic_hook` is never used [INFO] [stdout] --> src/utils.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn set_panic_hook() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:139:5 [INFO] [stdout] | [INFO] [stdout] 139 | reader_bytes.read_to_end(&mut pixels); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 139 | let _ = reader_bytes.read_to_end(&mut pixels); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 250 | reader_bytes.read_to_end(&mut pixels); [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] 250 | let _ = reader_bytes.read_to_end(&mut pixels); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.82s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wasm-bindgen v0.2.60 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "08e75520149cc54e02ea0b89943948aeaa16cd0ce9a294132cd62d5a0151a9b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08e75520149cc54e02ea0b89943948aeaa16cd0ce9a294132cd62d5a0151a9b7", kill_on_drop: false }` [INFO] [stdout] 08e75520149cc54e02ea0b89943948aeaa16cd0ce9a294132cd62d5a0151a9b7