[INFO] cloning repository https://github.com/PeterMaltby/advent-of-code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PeterMaltby/advent-of-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeterMaltby%2Fadvent-of-code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeterMaltby%2Fadvent-of-code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8e44fb431e50d655f2ac2f9b7be5e53363cd387 [INFO] building PeterMaltby/advent-of-code against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeterMaltby%2Fadvent-of-code" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PeterMaltby/advent-of-code on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PeterMaltby/advent-of-code [INFO] finished tweaking git repo https://github.com/PeterMaltby/advent-of-code [INFO] tweaked toml for git repo https://github.com/PeterMaltby/advent-of-code written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/PeterMaltby/advent-of-code 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bc1cdaac98adcdcad4f2fec8c0d280cdd12dcc65a29bdea14078a120bf5040e8 [INFO] running `Command { std: "docker" "start" "-a" "bc1cdaac98adcdcad4f2fec8c0d280cdd12dcc65a29bdea14078a120bf5040e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bc1cdaac98adcdcad4f2fec8c0d280cdd12dcc65a29bdea14078a120bf5040e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc1cdaac98adcdcad4f2fec8c0d280cdd12dcc65a29bdea14078a120bf5040e8", kill_on_drop: false }` [INFO] [stdout] bc1cdaac98adcdcad4f2fec8c0d280cdd12dcc65a29bdea14078a120bf5040e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a89df2bc76ceb34d5cab524096f5e69fd60f0e16eb2036a3b63259043d856435 [INFO] running `Command { std: "docker" "start" "-a" "a89df2bc76ceb34d5cab524096f5e69fd60f0e16eb2036a3b63259043d856435", kill_on_drop: false }` [INFO] [stderr] Compiling advent-of-code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/bin/template.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | fn task2(file: &Path) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | (v[3].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - (v[3].parse::().unwrap() - 1), [INFO] [stdout] 101 + v[3].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | (v[5].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - (v[5].parse::().unwrap() - 1), [INFO] [stdout] 102 + v[5].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | (v[3].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - (v[3].parse::().unwrap() - 1), [INFO] [stdout] 127 + v[3].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | (v[5].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - (v[5].parse::().unwrap() - 1), [INFO] [stdout] 128 + v[5].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/bin/2022_day12.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{self, VecDeque}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::zip` [INFO] [stdout] --> src/bin/2022_day13.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter::zip; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/2023_day11.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/bin/2022_day16.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{self, Display}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::zip` [INFO] [stdout] --> src/bin/2023_day3.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::zip; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/2023_day3.rs:188:20 [INFO] [stdout] | [INFO] [stdout] 188 | if (item.1 == item_to_check.1 && item.0 != item_to_check.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 188 - if (item.1 == item_to_check.1 && item.0 != item_to_check.0) { [INFO] [stdout] 188 + if item.1 == item_to_check.1 && item.0 != item_to_check.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/2023_day3.rs:190:26 [INFO] [stdout] | [INFO] [stdout] 190 | n += (item.0 * item_to_check.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 190 - n += (item.0 * item_to_check.0); [INFO] [stdout] 190 + n += item.0 * item_to_check.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/bin/2022_day16.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{Instant, self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/2023_day1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/2022_day3.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | panic!("shouldnt reach here"); [INFO] [stdout] | ----------------------------- any code following this expression is unreachable [INFO] [stdout] 42 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/2022_day3.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | panic!("shouldnt get here!"); [INFO] [stdout] | ---------------------------- any code following this expression is unreachable [INFO] [stdout] 72 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2023_day6.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut times: Vec = times [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2023_day6.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut distance: Vec = distance [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/2023_day4.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct Card { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 27 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Card` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/2022_day15.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> src/bin/2023_day1.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | let test = &line[start_index..end_index]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task2_attempt1` is never used [INFO] [stdout] --> src/bin/2023_day1.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn task2_attempt1(file: &Path) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/2023_day3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `min_x_y` and `max_x_y` are never read [INFO] [stdout] --> src/bin/2022_day15.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 140 | struct Map { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 141 | beacons: Vec, [INFO] [stdout] 142 | min_x_y: Coords, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 143 | max_x_y: Coords, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/2023_day14.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | for i in 0..1000 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makeGame` should have a snake case name [INFO] [stdout] --> src/bin/2022_day2.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn makeGame(input: &str) -> (RPS, RPS) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `make_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2023_day3.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | for mut x in 0..self.map.len() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2023_day3.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | for mut x in 0..self.map.len() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makeGame2` should have a snake case name [INFO] [stdout] --> src/bin/2022_day2.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn makeGame2(input: &str) -> (RPS, RPS) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `make_game2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print`, `print_distance`, and `print_both` are never used [INFO] [stdout] --> src/bin/2022_day12.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn print_distance(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn print_both(&self) { [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/bin/2023_day3.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | write!(f, "{}", c); [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] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/2023_day3.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/2023_day10.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut n = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [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/bin/2023_day10.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let mut n = 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: `file` [INFO] [stdout] --> src/bin/2023_day10.rs:178:10 [INFO] [stdout] | [INFO] [stdout] 178 | fn task2(file: &Path) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/2022_day16.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut n = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [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/bin/2022_day16.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | let mut n = 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: `file` [INFO] [stdout] --> src/bin/2022_day16.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | fn task2(file: &Path) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_max_from` is never used [INFO] [stdout] --> src/bin/2022_day16.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl ValveMap { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 132 | fn find_max_from(&mut self, from: String, currentTime: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `visited` and `time` are never read [INFO] [stdout] --> src/bin/2022_day16.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 178 | struct Route { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 179 | visited: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 180 | score: i32, [INFO] [stdout] 181 | time: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Route` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/2022_day16.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | write!(f, "{} flow: {}, ",self.name, self.flow_rate); [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] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/2022_day16.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | write!(f, "{}:{}, ", l.1, l.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hashValues` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | hashValues: HashMap, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_values` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashValues` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut hashValues: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentTime` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:132:47 [INFO] [stdout] | [INFO] [stdout] 132 | fn find_max_from(&mut self, from: String, currentTime: i32) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `current_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `timeLimit` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:142:40 [INFO] [stdout] | [INFO] [stdout] 142 | fn cal_routes(&self, from: String, timeLimit: i32, mut no_visit: Vec,mut score: i32 ) -> Route { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `time_limit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec` [INFO] [stdout] --> src/bin/2022_day11.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{usize, vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/2022_day11.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | for x in 0..monkeys[i].items.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/2022_day11.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | for x in 0..monkeys[i].items.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `n` is assigned to, but never used [INFO] [stdout] --> src/bin/2022_day11.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | let mut n = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_n` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `n` is assigned to, but never used [INFO] [stdout] --> src/bin/2022_day11.rs:181:13 [INFO] [stdout] | [INFO] [stdout] 181 | let mut n = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_n` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `game_id` is assigned to, but never used [INFO] [stdout] --> src/bin/2023_day2.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | let mut game_id = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_game_id` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::DefaultHasher` [INFO] [stdout] --> src/bin/2023_day15.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::hash_map::DefaultHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hash` and `Hasher` [INFO] [stdout] --> src/bin/2023_day15.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::{Hasher, Hash}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::write` [INFO] [stdout] --> src/bin/2022_day14.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:74:40 [INFO] [stdout] | [INFO] [stdout] 74 | fn add_wall(&mut self, walls: &Vec<(Coords)>) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 - fn add_wall(&mut self, walls: &Vec<(Coords)>) { [INFO] [stdout] 74 + fn add_wall(&mut self, walls: &Vec) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] 75 + let walls: Vec<(&Coords, &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:75:37 [INFO] [stdout] | [INFO] [stdout] 75 | let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] 75 + let walls: Vec<(&(Coords), &Coords)> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:176:31 [INFO] [stdout] | [INFO] [stdout] 176 | let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 176 - let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] 176 + let mut wall: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:207:31 [INFO] [stdout] | [INFO] [stdout] 207 | let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 207 - let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] 207 + let mut wall: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:222:23 [INFO] [stdout] | [INFO] [stdout] 222 | let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 222 - let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] 222 + let mut wall: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::usize` [INFO] [stdout] --> src/bin/2023_day8.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/2023_day8.rs:59:26 [INFO] [stdout] | [INFO] [stdout] 59 | _ => !panic!("invalid char {}", c), [INFO] [stdout] | ^---------------------------- [INFO] [stdout] | || [INFO] [stdout] | |any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HASHMAP` should have a snake case name [INFO] [stdout] --> src/bin/2023_day15.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn HASHMAP(s: &str) -> u32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hashmap` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.03s [INFO] running `Command { std: "docker" "inspect" "a89df2bc76ceb34d5cab524096f5e69fd60f0e16eb2036a3b63259043d856435", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a89df2bc76ceb34d5cab524096f5e69fd60f0e16eb2036a3b63259043d856435", kill_on_drop: false }` [INFO] [stdout] a89df2bc76ceb34d5cab524096f5e69fd60f0e16eb2036a3b63259043d856435 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3be9b700776c545b61295d63421d9a48bfdea40a9d259963b0d23bd9765b3f98 [INFO] running `Command { std: "docker" "start" "-a" "3be9b700776c545b61295d63421d9a48bfdea40a9d259963b0d23bd9765b3f98", kill_on_drop: false }` [INFO] [stderr] Compiling advent-of-code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/bin/2022_day16.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{self, Display}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/bin/2022_day16.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{Instant, self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/2022_day15.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/2022_day3.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | panic!("shouldnt reach here"); [INFO] [stdout] | ----------------------------- any code following this expression is unreachable [INFO] [stdout] 42 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/2022_day3.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 71 | panic!("shouldnt get here!"); [INFO] [stdout] | ---------------------------- any code following this expression is unreachable [INFO] [stdout] 72 | return 0; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/bin/template.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 39 | fn task2(file: &Path) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec` [INFO] [stdout] --> src/bin/2022_day11.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{usize, vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::usize` [INFO] [stdout] --> src/bin/2023_day8.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::usize; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::zip` [INFO] [stdout] --> src/bin/2022_day13.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter::zip; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/bin/2023_day8.rs:59:26 [INFO] [stdout] | [INFO] [stdout] 59 | _ => !panic!("invalid char {}", c), [INFO] [stdout] | ^---------------------------- [INFO] [stdout] | || [INFO] [stdout] | |any code following this expression is unreachable [INFO] [stdout] | unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::DefaultHasher` [INFO] [stdout] --> src/bin/2023_day15.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::hash_map::DefaultHasher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Hash` and `Hasher` [INFO] [stdout] --> src/bin/2023_day15.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use std::hash::{Hasher, Hash}; [INFO] [stdout] | ^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/2022_day11.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | for x in 0..monkeys[i].items.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/2022_day11.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | for x in 0..monkeys[i].items.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/2022_day16.rs:185:13 [INFO] [stdout] | [INFO] [stdout] 185 | let mut n = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `n` is assigned to, but never used [INFO] [stdout] --> src/bin/2022_day11.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | let mut n = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_n` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2022_day16.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | let mut n = 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: `file` [INFO] [stdout] --> src/bin/2022_day16.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | fn task2(file: &Path) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `n` is assigned to, but never used [INFO] [stdout] --> src/bin/2022_day11.rs:181:13 [INFO] [stdout] | [INFO] [stdout] 181 | let mut n = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_n` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_max_from` is never used [INFO] [stdout] --> src/bin/2022_day16.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 48 | impl ValveMap { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 132 | fn find_max_from(&mut self, from: String, currentTime: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `visited` and `time` are never read [INFO] [stdout] --> src/bin/2022_day16.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 178 | struct Route { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 179 | visited: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 180 | score: i32, [INFO] [stdout] 181 | time: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Route` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/bin/2023_day1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/2022_day16.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | write!(f, "{} flow: {}, ",self.name, self.flow_rate); [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] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/2022_day16.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | write!(f, "{}:{}, ", l.1, l.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `hashValues` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | hashValues: HashMap, [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_values` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hashValues` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut hashValues: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `hash_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `currentTime` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:132:47 [INFO] [stdout] | [INFO] [stdout] 132 | fn find_max_from(&mut self, from: String, currentTime: i32) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `current_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `timeLimit` should have a snake case name [INFO] [stdout] --> src/bin/2022_day16.rs:142:40 [INFO] [stdout] | [INFO] [stdout] 142 | fn cal_routes(&self, from: String, timeLimit: i32, mut no_visit: Vec,mut score: i32 ) -> Route { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `time_limit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `min_x_y` and `max_x_y` are never read [INFO] [stdout] --> src/bin/2022_day15.rs:142:5 [INFO] [stdout] | [INFO] [stdout] 140 | struct Map { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 141 | beacons: Vec, [INFO] [stdout] 142 | min_x_y: Coords, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 143 | max_x_y: Coords, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makeGame` should have a snake case name [INFO] [stdout] --> src/bin/2022_day2.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn makeGame(input: &str) -> (RPS, RPS) { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `make_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makeGame2` should have a snake case name [INFO] [stdout] --> src/bin/2022_day2.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn makeGame2(input: &str) -> (RPS, RPS) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `make_game2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> src/bin/2023_day1.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 85 | let test = &line[start_index..end_index]; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_test` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `task2_attempt1` is never used [INFO] [stdout] --> src/bin/2023_day1.rs:130:4 [INFO] [stdout] | [INFO] [stdout] 130 | fn task2_attempt1(file: &Path) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `HASHMAP` should have a snake case name [INFO] [stdout] --> src/bin/2023_day15.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn HASHMAP(s: &str) -> u32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `hashmap` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2023_day6.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut times: Vec = times [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2023_day6.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut distance: Vec = distance [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::write` [INFO] [stdout] --> src/bin/2022_day14.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:74:40 [INFO] [stdout] | [INFO] [stdout] 74 | fn add_wall(&mut self, walls: &Vec<(Coords)>) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 - fn add_wall(&mut self, walls: &Vec<(Coords)>) { [INFO] [stdout] 74 + fn add_wall(&mut self, walls: &Vec) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:75:26 [INFO] [stdout] | [INFO] [stdout] 75 | let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] 75 + let walls: Vec<(&Coords, &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:75:37 [INFO] [stdout] | [INFO] [stdout] 75 | let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 75 - let walls: Vec<(&(Coords), &(Coords))> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] 75 + let walls: Vec<(&(Coords), &Coords)> = walls.iter().zip(walls.iter().skip(1)).collect(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:176:31 [INFO] [stdout] | [INFO] [stdout] 176 | let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 176 - let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] 176 + let mut wall: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:207:31 [INFO] [stdout] | [INFO] [stdout] 207 | let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 207 - let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] 207 + let mut wall: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/bin/2022_day14.rs:222:23 [INFO] [stdout] | [INFO] [stdout] 222 | let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 222 - let mut wall: Vec<(Coords)> = Vec::new(); [INFO] [stdout] 222 + let mut wall: Vec = Vec::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/bin/2023_day11.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::zip` [INFO] [stdout] --> src/bin/2023_day3.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::zip; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/2023_day3.rs:188:20 [INFO] [stdout] | [INFO] [stdout] 188 | if (item.1 == item_to_check.1 && item.0 != item_to_check.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 188 - if (item.1 == item_to_check.1 && item.0 != item_to_check.0) { [INFO] [stdout] 188 + if item.1 == item_to_check.1 && item.0 != item_to_check.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/2023_day3.rs:190:26 [INFO] [stdout] | [INFO] [stdout] 190 | n += (item.0 * item_to_check.0); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 190 - n += (item.0 * item_to_check.0); [INFO] [stdout] 190 + n += item.0 * item_to_check.0; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/bin/2023_day10.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | let mut n = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [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/bin/2023_day10.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let mut n = 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: `file` [INFO] [stdout] --> src/bin/2023_day10.rs:178:10 [INFO] [stdout] | [INFO] [stdout] 178 | fn task2(file: &Path) -> i32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/2023_day14.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | for i in 0..1000 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/2023_day3.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2023_day3.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | for mut x in 0..self.map.len() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/2023_day3.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | for mut x in 0..self.map.len() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `game_id` is assigned to, but never used [INFO] [stdout] --> src/bin/2023_day2.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | let mut game_id = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_game_id` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/2023_day3.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | write!(f, "{}", c); [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] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/2023_day3.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/bin/2022_day12.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{self, VecDeque}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | (v[3].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 101 - (v[3].parse::().unwrap() - 1), [INFO] [stdout] 101 + v[3].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/bin/2023_day4.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct Card { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 27 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Card` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print`, `print_distance`, and `print_both` are never used [INFO] [stdout] --> src/bin/2022_day12.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 35 | impl Map { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 78 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn print_distance(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn print_both(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | (v[5].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - (v[5].parse::().unwrap() - 1), [INFO] [stdout] 102 + v[5].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | (v[3].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 127 - (v[3].parse::().unwrap() - 1), [INFO] [stdout] 127 + v[3].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/bin/2022_day5.rs:128:17 [INFO] [stdout] | [INFO] [stdout] 128 | (v[5].parse::().unwrap() - 1), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 128 - (v[5].parse::().unwrap() - 1), [INFO] [stdout] 128 + v[5].parse::().unwrap() - 1, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.04s [INFO] running `Command { std: "docker" "inspect" "3be9b700776c545b61295d63421d9a48bfdea40a9d259963b0d23bd9765b3f98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3be9b700776c545b61295d63421d9a48bfdea40a9d259963b0d23bd9765b3f98", kill_on_drop: false }` [INFO] [stdout] 3be9b700776c545b61295d63421d9a48bfdea40a9d259963b0d23bd9765b3f98