[INFO] cloning repository https://github.com/GoellnerDarius/AOC2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GoellnerDarius/AOC2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGoellnerDarius%2FAOC2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGoellnerDarius%2FAOC2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c9eb7d44f771802cb5c7814461bf7bc5136c7a43 [INFO] checking GoellnerDarius/AOC2023 against master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGoellnerDarius%2FAOC2023" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GoellnerDarius/AOC2023 on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GoellnerDarius/AOC2023 [INFO] finished tweaking git repo https://github.com/GoellnerDarius/AOC2023 [INFO] tweaked toml for git repo https://github.com/GoellnerDarius/AOC2023 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/GoellnerDarius/AOC2023 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" "+2e6fc425411280c658d852813de01c5157255088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9136b32cd1c4e2971fa8dec9527b841dce1ae6d6461de8d1a1fbab5f261892ba [INFO] running `Command { std: "docker" "start" "-a" "9136b32cd1c4e2971fa8dec9527b841dce1ae6d6461de8d1a1fbab5f261892ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9136b32cd1c4e2971fa8dec9527b841dce1ae6d6461de8d1a1fbab5f261892ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9136b32cd1c4e2971fa8dec9527b841dce1ae6d6461de8d1a1fbab5f261892ba", kill_on_drop: false }` [INFO] [stdout] 9136b32cd1c4e2971fa8dec9527b841dce1ae6d6461de8d1a1fbab5f261892ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 54e0337cbfe07ba41f21c62c66c3bc7322e2a7b2d1261e269363f2b5f0e9b8ac [INFO] running `Command { std: "docker" "start" "-a" "54e0337cbfe07ba41f21c62c66c3bc7322e2a7b2d1261e269363f2b5f0e9b8ac", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking AOC2023 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Split` [INFO] [stdout] --> src/Day2/day2.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Split; [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/Day3/day3.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | if(!current_line.get(x+1).unwrap().is_digit(10)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 42 - if(!current_line.get(x+1).unwrap().is_digit(10)) [INFO] [stdout] 42 + if !current_line.get(x+1).unwrap().is_digit(10) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day3/day3.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | if(start==-1||end==-1) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 90 - if(start==-1||end==-1) [INFO] [stdout] 90 + if start==-1||end==-1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day3/day3.rs:143:23 [INFO] [stdout] | [INFO] [stdout] 143 | if(pos_x src/Day5/day5.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Instant` [INFO] [stdout] --> src/Day5/day5.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> src/Day7/day7.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | if (self.card_rank != other.card_rank) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if (self.card_rank != other.card_rank) [INFO] [stdout] 65 + if self.card_rank != other.card_rank [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | if (self.cards[i] != other.cards[i]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - if (self.cards[i] != other.cards[i]) { [INFO] [stdout] 70 + if self.cards[i] != other.cards[i] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | if (jokers > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - if (jokers > 0) { [INFO] [stdout] 89 + if jokers > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | if (counts[i] != 5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - if (counts[i] != 5) { [INFO] [stdout] 92 + if counts[i] != 5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | if (*counts.last().unwrap() == 5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - if (*counts.last().unwrap() == 5) { [INFO] [stdout] 102 + if *counts.last().unwrap() == 5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | if (*counts.last().unwrap() == 4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if (*counts.last().unwrap() == 4) { [INFO] [stdout] 105 + if *counts.last().unwrap() == 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | if (*counts.last().unwrap() == 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 111 - if (*counts.last().unwrap() == 3) { [INFO] [stdout] 111 + if *counts.last().unwrap() == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | if (!hasjokers) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - if (!hasjokers) { [INFO] [stdout] 126 + if !hasjokers { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day8/day8.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | if (directions[count % directions.len()] == 'R') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - if (directions[count % directions.len()] == 'R') { [INFO] [stdout] 53 + if directions[count % directions.len()] == 'R' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> src/Day10/day10.rs:2:46 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `connected_components` [INFO] [stdout] --> src/Day10/day10.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use petgraph::algo::{connected_components, dijkstra}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `petgraph::algo::kosaraju_scc` [INFO] [stdout] --> src/Day10/day10.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use petgraph::algo::kosaraju_scc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DiGraph` and `node_index` [INFO] [stdout] --> src/Day10/day10.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use petgraph::graph::{DiGraph, node_index, NodeIndex}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Split` [INFO] [stdout] --> src/Day2/day2.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Split; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Walker` [INFO] [stdout] --> src/Day10/day10.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | use petgraph::visit::{Dfs, Walker}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/Day10/day10.rs:27:74 [INFO] [stdout] | [INFO] [stdout] 27 | coords_entry.insert((i as i32, j as i32), graph.add_node((lines[i].chars().nth(j).unwrap()))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - coords_entry.insert((i as i32, j as i32), graph.add_node((lines[i].chars().nth(j).unwrap()))); [INFO] [stdout] 27 + coords_entry.insert((i as i32, j as i32), graph.add_node(lines[i].chars().nth(j).unwrap())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day3/day3.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | if(!current_line.get(x+1).unwrap().is_digit(10)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 42 - if(!current_line.get(x+1).unwrap().is_digit(10)) [INFO] [stdout] 42 + if !current_line.get(x+1).unwrap().is_digit(10) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | if (i > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if (i > 0) { [INFO] [stdout] 38 + if i > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day3/day3.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | if(start==-1||end==-1) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 90 - if(start==-1||end==-1) [INFO] [stdout] 90 + if start==-1||end==-1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | if (i < lines.len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if (i < lines.len() - 1) { [INFO] [stdout] 45 + if i < lines.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:52:24 [INFO] [stdout] | [INFO] [stdout] 52 | if (j > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if (j > 0) { [INFO] [stdout] 52 + if j > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day3/day3.rs:143:23 [INFO] [stdout] | [INFO] [stdout] 143 | if(pos_x src/Day10/day10.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | if (j < lines[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - if (j < lines[i].len() - 1) { [INFO] [stdout] 58 + if j < lines[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/Day5/day5.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | if (c1 == 'S' && c2 != '.') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if (c1 == 'S' && c2 != '.') { [INFO] [stdout] 98 + if c1 == 'S' && c2 != '.' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `Instant` [INFO] [stdout] --> src/Day5/day5.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:161:24 [INFO] [stdout] | [INFO] [stdout] 161 | if (i > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - if (i > 0) { [INFO] [stdout] 161 + if i > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> src/Day7/day7.rs:2:28 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:168:24 [INFO] [stdout] | [INFO] [stdout] 168 | if (i < lines.len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - if (i < lines.len() - 1) { [INFO] [stdout] 168 + if i < lines.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 65 | if (self.card_rank != other.card_rank) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if (self.card_rank != other.card_rank) [INFO] [stdout] 65 + if self.card_rank != other.card_rank [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:175:24 [INFO] [stdout] | [INFO] [stdout] 175 | if (j > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 175 - if (j > 0) { [INFO] [stdout] 175 + if j > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:181:24 [INFO] [stdout] | [INFO] [stdout] 181 | if (j < lines[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 181 - if (j < lines[i].len() - 1) { [INFO] [stdout] 181 + if j < lines[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | if (self.cards[i] != other.cards[i]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 70 - if (self.cards[i] != other.cards[i]) { [INFO] [stdout] 70 + if self.cards[i] != other.cards[i] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | if (jokers > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 89 - if (jokers > 0) { [INFO] [stdout] 89 + if jokers > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:188:24 [INFO] [stdout] | [INFO] [stdout] 188 | if (i > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 188 - if (i > 0) { [INFO] [stdout] 188 + if i > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 92 | if (counts[i] != 5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 92 - if (counts[i] != 5) { [INFO] [stdout] 92 + if counts[i] != 5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:195:24 [INFO] [stdout] | [INFO] [stdout] 195 | if (i < lines.len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 195 - if (i < lines.len() - 1) { [INFO] [stdout] 195 + if i < lines.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | if (*counts.last().unwrap() == 5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 102 - if (*counts.last().unwrap() == 5) { [INFO] [stdout] 102 + if *counts.last().unwrap() == 5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:202:24 [INFO] [stdout] | [INFO] [stdout] 202 | if (j > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 202 - if (j > 0) { [INFO] [stdout] 202 + if j > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | if (*counts.last().unwrap() == 4) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if (*counts.last().unwrap() == 4) { [INFO] [stdout] 105 + if *counts.last().unwrap() == 4 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:208:24 [INFO] [stdout] | [INFO] [stdout] 208 | if (j < lines[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 208 - if (j < lines[i].len() - 1) { [INFO] [stdout] 208 + if j < lines[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | if (*counts.last().unwrap() == 3) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 111 - if (*counts.last().unwrap() == 3) { [INFO] [stdout] 111 + if *counts.last().unwrap() == 3 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:284:24 [INFO] [stdout] | [INFO] [stdout] 284 | if (i > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 284 - if (i > 0) { [INFO] [stdout] 284 + if i > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day7/day7.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 126 | if (!hasjokers) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 126 - if (!hasjokers) { [INFO] [stdout] 126 + if !hasjokers { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:291:24 [INFO] [stdout] | [INFO] [stdout] 291 | if (i < lines.len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 291 - if (i < lines.len() - 1) { [INFO] [stdout] 291 + if i < lines.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:298:24 [INFO] [stdout] | [INFO] [stdout] 298 | if (j > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 298 - if (j > 0) { [INFO] [stdout] 298 + if j > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day8/day8.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | if (directions[count % directions.len()] == 'R') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 53 - if (directions[count % directions.len()] == 'R') { [INFO] [stdout] 53 + if directions[count % directions.len()] == 'R' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:304:24 [INFO] [stdout] | [INFO] [stdout] 304 | if (j < lines[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 304 - if (j < lines[i].len() - 1) { [INFO] [stdout] 304 + if j < lines[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `VecDeque` [INFO] [stdout] --> src/Day10/day10.rs:2:46 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:369:24 [INFO] [stdout] | [INFO] [stdout] 369 | if (current_sum != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 369 - if (current_sum != 0) { [INFO] [stdout] 369 + if current_sum != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `connected_components` [INFO] [stdout] --> src/Day10/day10.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use petgraph::algo::{connected_components, dijkstra}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/Day11/day11.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `petgraph::algo::kosaraju_scc` [INFO] [stdout] --> src/Day10/day10.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use petgraph::algo::kosaraju_scc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::i8::MIN` [INFO] [stdout] --> src/Day11/day11.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use std::i8::MIN; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DiGraph` and `node_index` [INFO] [stdout] --> src/Day10/day10.rs:7:27 [INFO] [stdout] | [INFO] [stdout] 7 | use petgraph::graph::{DiGraph, node_index, NodeIndex}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::empty` [INFO] [stdout] --> src/Day11/day11.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use std::iter::empty; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Walker` [INFO] [stdout] --> src/Day10/day10.rs:8:32 [INFO] [stdout] | [INFO] [stdout] 8 | use petgraph::visit::{Dfs, Walker}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `petgraph::visit::DfsEvent::TreeEdge` [INFO] [stdout] --> src/Day11/day11.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | use petgraph::visit::DfsEvent::TreeEdge; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | if (!lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - if (!lines[i].contains("#")) { [INFO] [stdout] 22 + if !lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/Day10/day10.rs:27:74 [INFO] [stdout] | [INFO] [stdout] 27 | coords_entry.insert((i as i32, j as i32), graph.add_node((lines[i].chars().nth(j).unwrap()))); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - coords_entry.insert((i as i32, j as i32), graph.add_node((lines[i].chars().nth(j).unwrap()))); [INFO] [stdout] 27 + coords_entry.insert((i as i32, j as i32), graph.add_node(lines[i].chars().nth(j).unwrap())); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | if (i > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 38 - if (i > 0) { [INFO] [stdout] 38 + if i > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/Day11/day11.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | 'cols: for j in 0..lines.len() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | if (i < lines.len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 45 - if (i < lines.len() - 1) { [INFO] [stdout] 45 + if i < lines.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 35 - if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] 35 + if lines[j].chars().nth(i).unwrap() == '#' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:52:24 [INFO] [stdout] | [INFO] [stdout] 52 | if (j > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if (j > 0) { [INFO] [stdout] 52 + if j > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | if (lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if (lines[i].contains("#")) { [INFO] [stdout] 52 + if lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:58:24 [INFO] [stdout] | [INFO] [stdout] 58 | if (j < lines[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 58 - if (j < lines[i].len() - 1) { [INFO] [stdout] 58 + if j < lines[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | if (!lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - if (!lines[i].contains("#")) { [INFO] [stdout] 82 + if !lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | if (c1 == 'S' && c2 != '.') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if (c1 == 'S' && c2 != '.') { [INFO] [stdout] 98 + if c1 == 'S' && c2 != '.' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:161:24 [INFO] [stdout] | [INFO] [stdout] 161 | if (i > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - if (i > 0) { [INFO] [stdout] 161 + if i > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] 91 + if lines[j].chars().nth(i).unwrap() == '#' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | if (lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 103 - if (lines[i].contains("#")) { [INFO] [stdout] 103 + if lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | if (!lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - if (!lines[i].contains("#")) { [INFO] [stdout] 161 + if !lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:168:24 [INFO] [stdout] | [INFO] [stdout] 168 | if (i < lines.len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - if (i < lines.len() - 1) { [INFO] [stdout] 168 + if i < lines.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/Day11/day11.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | 'cols: for j in 0..lines.len() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:175:24 [INFO] [stdout] | [INFO] [stdout] 175 | if (j > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 175 - if (j > 0) { [INFO] [stdout] 175 + if j > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:171:20 [INFO] [stdout] | [INFO] [stdout] 171 | if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 171 - if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] 171 + if lines[j].chars().nth(i).unwrap() == '#' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:181:24 [INFO] [stdout] | [INFO] [stdout] 181 | if (j < lines[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 181 - if (j < lines[i].len() - 1) { [INFO] [stdout] 181 + if j < lines[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:190:16 [INFO] [stdout] | [INFO] [stdout] 190 | if (lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 190 - if (lines[i].contains("#")) { [INFO] [stdout] 190 + if lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:188:24 [INFO] [stdout] | [INFO] [stdout] 188 | if (i > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 188 - if (i > 0) { [INFO] [stdout] 188 + if i > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:210:19 [INFO] [stdout] | [INFO] [stdout] 210 | if(node=='#'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 210 - if(node=='#'){ [INFO] [stdout] 210 + if node=='#' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:195:24 [INFO] [stdout] | [INFO] [stdout] 195 | if (i < lines.len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 195 - if (i < lines.len() - 1) { [INFO] [stdout] 195 + if i < lines.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:225:19 [INFO] [stdout] | [INFO] [stdout] 225 | if(lines[i+1].chars().nth(j).unwrap()=='1') [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 225 - if(lines[i+1].chars().nth(j).unwrap()=='1') [INFO] [stdout] 225 + if lines[i+1].chars().nth(j).unwrap()=='1' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:202:24 [INFO] [stdout] | [INFO] [stdout] 202 | if (j > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 202 - if (j > 0) { [INFO] [stdout] 202 + if j > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:230:19 [INFO] [stdout] | [INFO] [stdout] 230 | if(lines[i].chars().nth(j+1).unwrap()=='1') [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 230 - if(lines[i].chars().nth(j+1).unwrap()=='1') [INFO] [stdout] 230 + if lines[i].chars().nth(j+1).unwrap()=='1' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:208:24 [INFO] [stdout] | [INFO] [stdout] 208 | if (j < lines[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 208 - if (j < lines[i].len() - 1) { [INFO] [stdout] 208 + if j < lines[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:284:24 [INFO] [stdout] | [INFO] [stdout] 284 | if (i > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 284 - if (i > 0) { [INFO] [stdout] 284 + if i > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:291:24 [INFO] [stdout] | [INFO] [stdout] 291 | if (i < lines.len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 291 - if (i < lines.len() - 1) { [INFO] [stdout] 291 + if i < lines.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:298:24 [INFO] [stdout] | [INFO] [stdout] 298 | if (j > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 298 - if (j > 0) { [INFO] [stdout] 298 + if j > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:304:24 [INFO] [stdout] | [INFO] [stdout] 304 | if (j < lines[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 304 - if (j < lines[i].len() - 1) { [INFO] [stdout] 304 + if j < lines[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day10/day10.rs:369:24 [INFO] [stdout] | [INFO] [stdout] 369 | if (current_sum != 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 369 - if (current_sum != 0) { [INFO] [stdout] 369 + if current_sum != 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/Day11/day11.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::i8::MIN` [INFO] [stdout] --> src/Day11/day11.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use std::i8::MIN; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::empty` [INFO] [stdout] --> src/Day11/day11.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | use std::iter::empty; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `petgraph::visit::DfsEvent::TreeEdge` [INFO] [stdout] --> src/Day11/day11.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | use petgraph::visit::DfsEvent::TreeEdge; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | if (!lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - if (!lines[i].contains("#")) { [INFO] [stdout] 22 + if !lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/Day11/day11.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | 'cols: for j in 0..lines.len() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 35 - if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] 35 + if lines[j].chars().nth(i).unwrap() == '#' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | if (lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if (lines[i].contains("#")) { [INFO] [stdout] 52 + if lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | if (!lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 82 - if (!lines[i].contains("#")) { [INFO] [stdout] 82 + if !lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] 91 + if lines[j].chars().nth(i).unwrap() == '#' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | if (lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 103 - if (lines[i].contains("#")) { [INFO] [stdout] 103 + if lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:161:16 [INFO] [stdout] | [INFO] [stdout] 161 | if (!lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 161 - if (!lines[i].contains("#")) { [INFO] [stdout] 161 + if !lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/Day11/day11.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | 'cols: for j in 0..lines.len() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:171:20 [INFO] [stdout] | [INFO] [stdout] 171 | if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 171 - if (lines[j].chars().nth(i).unwrap() == '#') { [INFO] [stdout] 171 + if lines[j].chars().nth(i).unwrap() == '#' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:190:16 [INFO] [stdout] | [INFO] [stdout] 190 | if (lines[i].contains("#")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 190 - if (lines[i].contains("#")) { [INFO] [stdout] 190 + if lines[i].contains("#") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:210:19 [INFO] [stdout] | [INFO] [stdout] 210 | if(node=='#'){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 210 - if(node=='#'){ [INFO] [stdout] 210 + if node=='#' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:225:19 [INFO] [stdout] | [INFO] [stdout] 225 | if(lines[i+1].chars().nth(j).unwrap()=='1') [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 225 - if(lines[i+1].chars().nth(j).unwrap()=='1') [INFO] [stdout] 225 + if lines[i+1].chars().nth(j).unwrap()=='1' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/Day11/day11.rs:230:19 [INFO] [stdout] | [INFO] [stdout] 230 | if(lines[i].chars().nth(j+1).unwrap()=='1') [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 230 - if(lines[i].chars().nth(j+1).unwrap()=='1') [INFO] [stdout] 230 + if lines[i].chars().nth(j+1).unwrap()=='1' [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day1/day1.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut input_line: Split<&str> = input.split("\n"); [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/Day2/day2.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | let mut colors = drawing.split(","); [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/Day2/day2.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | let mut amount_color_pair = color.split(' '); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `startindex` is never read [INFO] [stdout] --> src/Day3/day3.rs:73:33 [INFO] [stdout] | [INFO] [stdout] 73 | ... startindex=-1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `endindex` is never read [INFO] [stdout] --> src/Day3/day3.rs:74:33 [INFO] [stdout] | [INFO] [stdout] 74 | ... endindex=-1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day3/day3.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | let mut tmp = line.get(i as usize).expect("Parse overflow"); [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/Day4/day4.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | let mut winning_numbers_count: u32 = winning_numbers.intersection(&your_numbers).cloned().collect::>().len() as u32; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `translated_seeds` [INFO] [stdout] --> src/Day5/day5.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut translated_seeds: Vec<&str> = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_translated_seeds` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `seed_id` is assigned to, but never used [INFO] [stdout] --> src/Day5/day5.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut seed_id = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_seed_id` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mappingid` is assigned to, but never used [INFO] [stdout] --> src/Day5/day5.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | let mut mappingid=1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_mappingid` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day5/day5.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut translated_seeds: Vec<&str> = Vec::new(); [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/Day6/day6.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut input=fs::read_to_string("src/Day6/input.txt").unwrap().replace(" ",""); [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/Day1/day1.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut input_line: Split<&str> = input.split("\n"); [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/Day7/day7.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | let mut lines = input.split("\n"); [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/Day2/day2.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | let mut colors = drawing.split(","); [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/Day7/day7.rs:191:13 [INFO] [stdout] | [INFO] [stdout] 191 | let mut lines = input.split("\n"); [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/Day2/day2.rs:36:29 [INFO] [stdout] | [INFO] [stdout] 36 | let mut amount_color_pair = color.split(' '); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `startindex` is never read [INFO] [stdout] --> src/Day3/day3.rs:73:33 [INFO] [stdout] | [INFO] [stdout] 73 | ... startindex=-1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `endindex` is never read [INFO] [stdout] --> src/Day3/day3.rs:74:33 [INFO] [stdout] | [INFO] [stdout] 74 | ... endindex=-1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/Day8/day8.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | let mut end = start_point.clone(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day3/day3.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | let mut tmp = line.get(i as usize).expect("Parse overflow"); [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/Day4/day4.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | let mut winning_numbers_count: u32 = winning_numbers.intersection(&your_numbers).cloned().collect::>().len() as u32; [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/Day8/day8.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut end = start_point.clone(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `translated_seeds` [INFO] [stdout] --> src/Day5/day5.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 30 | let mut translated_seeds: Vec<&str> = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_translated_seeds` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `seed_id` is assigned to, but never used [INFO] [stdout] --> src/Day5/day5.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut seed_id = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_seed_id` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mappingid` is assigned to, but never used [INFO] [stdout] --> src/Day5/day5.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | let mut mappingid=1; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_mappingid` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day5/day5.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut translated_seeds: Vec<&str> = Vec::new(); [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/Day10/day10.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | fn is_connected(mut c1: char, mut c2: char, direction: Direction) -> bool { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_string` [INFO] [stdout] --> src/Day10/day10.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | let result_string = format!("{}{}{}", lines[i].chars().nth(j).unwrap(), i, j); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/Day10/day10.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let x = graph[coords_entry[&(0, 0)]].clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `startpoint` is never read [INFO] [stdout] --> src/Day10/day10.rs:266:21 [INFO] [stdout] | [INFO] [stdout] 266 | startpoint = (i as i32, j as i32); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_string` [INFO] [stdout] --> src/Day10/day10.rs:270:21 [INFO] [stdout] | [INFO] [stdout] 270 | let result_string = format!("{}{}{}", lines[i].chars().nth(j).unwrap(), i, j); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visited` [INFO] [stdout] --> src/Day10/day10.rs:327:17 [INFO] [stdout] | [INFO] [stdout] 327 | let mut visited: HashSet<(usize, usize)> = HashSet::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visited` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day6/day6.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut input=fs::read_to_string("src/Day6/input.txt").unwrap().replace(" ",""); [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/Day7/day7.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | let mut lines = input.split("\n"); [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/Day7/day7.rs:191:13 [INFO] [stdout] | [INFO] [stdout] 191 | let mut lines = input.split("\n"); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/Day8/day8.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | let mut end = start_point.clone(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day10/day10.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let mut lines: Vec<&str> = input.lines().map(|line| line.trim()).collect::>(); [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/Day10/day10.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let mut visited: HashSet<(usize, usize)> = HashSet::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/Day11/day11.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | for i in 0..empty_columns.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day11/day11.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | for mut i in 0..lines.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/Day8/day8.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut end = start_point.clone(); [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/Day11/day11.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | let mut lines: Vec = input.lines().map(|line| line.trim().to_string()).collect::>(); [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/Day11/day11.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | for mut i in 0..lines.len() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/Day11/day11.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | for i in 0..empty_columns.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/Day11/day11.rs:198:17 [INFO] [stdout] | [INFO] [stdout] 198 | let mut sum = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day11/day11.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | for mut i in 0..lines.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/Day11/day11.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | let mut sum = 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/Day10/day10.rs:90:35 [INFO] [stdout] | [INFO] [stdout] 90 | fn is_connected(mut c1: char, mut c2: char, direction: Direction) -> bool { [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day1/day1.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn solve(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day1/day1.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day1/day1.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day2/day2.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day2/day2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day3/day3.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day3/day3.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stringtoNumber` is never used [INFO] [stdout] --> src/Day3/day3.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn stringtoNumber(line: &Vec, start: i32, end: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day3/day3.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_number` is never used [INFO] [stdout] --> src/Day3/day3.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn search_number(pos_y: usize, pos_x:usize, data: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day4/day4.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day4/day4.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day4/day4.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_string` [INFO] [stdout] --> src/Day10/day10.rs:145:21 [INFO] [stdout] | [INFO] [stdout] 145 | let result_string = format!("{}{}{}", lines[i].chars().nth(j).unwrap(), i, j); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Indexes` is never used [INFO] [stdout] --> src/Day5/day5.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | enum Indexes { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day5/day5.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day5/day5.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/Day10/day10.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let x = graph[coords_entry[&(0, 0)]].clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day5/day5.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `startpoint` is never read [INFO] [stdout] --> src/Day10/day10.rs:266:21 [INFO] [stdout] | [INFO] [stdout] 266 | startpoint = (i as i32, j as i32); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day6/day6.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day6/day6.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_string` [INFO] [stdout] --> src/Day10/day10.rs:270:21 [INFO] [stdout] | [INFO] [stdout] 270 | let result_string = format!("{}{}{}", lines[i].chars().nth(j).unwrap(), i, j); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day6/day6.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visited` [INFO] [stdout] --> src/Day10/day10.rs:327:17 [INFO] [stdout] | [INFO] [stdout] 327 | let mut visited: HashSet<(usize, usize)> = HashSet::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visited` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HandTypes` is never used [INFO] [stdout] --> src/Day7/day7.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | enum HandTypes { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HandData` is never constructed [INFO] [stdout] --> src/Day7/day7.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | struct HandData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_cards` is never used [INFO] [stdout] --> src/Day7/day7.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl HandData { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 24 | fn cmp_cards(&self, other: &HandData) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_hand_type` is never used [INFO] [stdout] --> src/Day7/day7.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn get_hand_type(hand: String, has_jokers: bool) -> HandTypes { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `map_string_to_int_vec` is never used [INFO] [stdout] --> src/Day7/day7.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn map_string_to_int_vec(hand: &str, hasjokers: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day7/day7.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day7/day7.rs:162:8 [INFO] [stdout] | [INFO] [stdout] 162 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day7/day7.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day8/day8.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1_2` is never used [INFO] [stdout] --> src/Day8/day8.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn part1_2() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day9/day9.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day9/day9.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day10/day10.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day10/day10.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/Day10/day10.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_connected` is never used [INFO] [stdout] --> src/Day10/day10.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | fn is_connected(mut c1: char, mut c2: char, direction: Direction) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day10/day10.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day11/day11.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2_1` is never used [INFO] [stdout] --> src/Day11/day11.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | fn part2_1() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day1` should have a snake case name [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod Day1; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day2` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Day2; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day3` should have a snake case name [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod Day3; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day4` should have a snake case name [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | mod Day4; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day5` should have a snake case name [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | mod Day5; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day6` should have a snake case name [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod Day6; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day7` should have a snake case name [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod Day7; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day8` should have a snake case name [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | mod Day8; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day9` should have a snake case name [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | mod Day9; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day9` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day10` should have a snake case name [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | mod Day10; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `day10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day11` should have a snake case name [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod Day11; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `day11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stringtoNumber` should have a snake case name [INFO] [stdout] --> src/Day3/day3.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn stringtoNumber(line: &Vec, start: i32, end: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `stringto_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/Day10/day10.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | c2 == '|'; [INFO] [stdout] | ^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 95 | let _ = c2 == '|'; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 142 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day10/day10.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let mut lines: Vec<&str> = input.lines().map(|line| line.trim()).collect::>(); [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/Day10/day10.rs:327:13 [INFO] [stdout] | [INFO] [stdout] 327 | let mut visited: HashSet<(usize, usize)> = HashSet::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/Day11/day11.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | for i in 0..empty_columns.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day11/day11.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | for mut i in 0..lines.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/Day11/day11.rs:76:17 [INFO] [stdout] | [INFO] [stdout] 76 | let mut lines: Vec = input.lines().map(|line| line.trim().to_string()).collect::>(); [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/Day11/day11.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | for mut i in 0..lines.len() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/Day11/day11.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | for i in 0..empty_columns.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sum` [INFO] [stdout] --> src/Day11/day11.rs:198:17 [INFO] [stdout] | [INFO] [stdout] 198 | let mut sum = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/Day11/day11.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | for mut i in 0..lines.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/Day11/day11.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | let mut sum = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day1/day1.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn solve(){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day1/day1.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day1/day1.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day2/day2.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day2/day2.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day3/day3.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day3/day3.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stringtoNumber` is never used [INFO] [stdout] --> src/Day3/day3.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn stringtoNumber(line: &Vec, start: i32, end: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day3/day3.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `search_number` is never used [INFO] [stdout] --> src/Day3/day3.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn search_number(pos_y: usize, pos_x:usize, data: &Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day4/day4.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day4/day4.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day4/day4.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Indexes` is never used [INFO] [stdout] --> src/Day5/day5.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | enum Indexes { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day5/day5.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day5/day5.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day5/day5.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 84 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day6/day6.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day6/day6.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day6/day6.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HandTypes` is never used [INFO] [stdout] --> src/Day7/day7.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | enum HandTypes { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HandData` is never constructed [INFO] [stdout] --> src/Day7/day7.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | struct HandData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_cards` is never used [INFO] [stdout] --> src/Day7/day7.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl HandData { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 24 | fn cmp_cards(&self, other: &HandData) -> std::cmp::Ordering { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_hand_type` is never used [INFO] [stdout] --> src/Day7/day7.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn get_hand_type(hand: String, has_jokers: bool) -> HandTypes { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `map_string_to_int_vec` is never used [INFO] [stdout] --> src/Day7/day7.rs:123:8 [INFO] [stdout] | [INFO] [stdout] 123 | fn map_string_to_int_vec(hand: &str, hasjokers: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day7/day7.rs:157:12 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day7/day7.rs:162:8 [INFO] [stdout] | [INFO] [stdout] 162 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day7/day7.rs:189:8 [INFO] [stdout] | [INFO] [stdout] 189 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day8/day8.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1_2` is never used [INFO] [stdout] --> src/Day8/day8.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | fn part1_2() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day9/day9.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day9/day9.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solve` is never used [INFO] [stdout] --> src/Day10/day10.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn solve() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day10/day10.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/Day10/day10.rs:83:10 [INFO] [stdout] | [INFO] [stdout] 83 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_connected` is never used [INFO] [stdout] --> src/Day10/day10.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | fn is_connected(mut c1: char, mut c2: char, direction: Direction) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2` is never used [INFO] [stdout] --> src/Day10/day10.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | fn part2() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part1` is never used [INFO] [stdout] --> src/Day11/day11.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part2_1` is never used [INFO] [stdout] --> src/Day11/day11.rs:155:8 [INFO] [stdout] | [INFO] [stdout] 155 | fn part2_1() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day1` should have a snake case name [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod Day1; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day2` should have a snake case name [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | mod Day2; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day3` should have a snake case name [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | mod Day3; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day4` should have a snake case name [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | mod Day4; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day5` should have a snake case name [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | mod Day5; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day5` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day6` should have a snake case name [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | mod Day6; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day6` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day7` should have a snake case name [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | mod Day7; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day7` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day8` should have a snake case name [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | mod Day8; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day9` should have a snake case name [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | mod Day9; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `day9` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day10` should have a snake case name [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | mod Day10; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `day10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Day11` should have a snake case name [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | mod Day11; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `day11` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stringtoNumber` should have a snake case name [INFO] [stdout] --> src/Day3/day3.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | fn stringtoNumber(line: &Vec, start: i32, end: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `stringto_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/Day10/day10.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | c2 == '|'; [INFO] [stdout] | ^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 95 | let _ = c2 == '|'; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 142 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.22s [INFO] running `Command { std: "docker" "inspect" "54e0337cbfe07ba41f21c62c66c3bc7322e2a7b2d1261e269363f2b5f0e9b8ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54e0337cbfe07ba41f21c62c66c3bc7322e2a7b2d1261e269363f2b5f0e9b8ac", kill_on_drop: false }` [INFO] [stdout] 54e0337cbfe07ba41f21c62c66c3bc7322e2a7b2d1261e269363f2b5f0e9b8ac [INFO] checking GoellnerDarius/AOC2023 against try#d856f2da3433420b7077c0dc7ee9441455bc1302 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGoellnerDarius%2FAOC2023" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GoellnerDarius/AOC2023 on toolchain d856f2da3433420b7077c0dc7ee9441455bc1302 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GoellnerDarius/AOC2023 [INFO] finished tweaking git repo https://github.com/GoellnerDarius/AOC2023 [INFO] tweaked toml for git repo https://github.com/GoellnerDarius/AOC2023 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/GoellnerDarius/AOC2023 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" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 79b895baec252ef673d536db893d7fccdd0eb62931081fada20a2993d7b6722b [INFO] running `Command { std: "docker" "start" "-a" "79b895baec252ef673d536db893d7fccdd0eb62931081fada20a2993d7b6722b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79b895baec252ef673d536db893d7fccdd0eb62931081fada20a2993d7b6722b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79b895baec252ef673d536db893d7fccdd0eb62931081fada20a2993d7b6722b", kill_on_drop: false }` [INFO] [stdout] 79b895baec252ef673d536db893d7fccdd0eb62931081fada20a2993d7b6722b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2dbe0ea394ffd3cd7f455d6b73ce6356e63e844c96801be8b421dbb28997c8e [INFO] running `Command { std: "docker" "start" "-a" "c2dbe0ea394ffd3cd7f455d6b73ce6356e63e844c96801be8b421dbb28997c8e", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 825 | impl_integer_for_isize!(i8, test_integer_i8); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 826 | impl_integer_for_isize!(i16, test_integer_i16); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 827 | impl_integer_for_isize!(i32, test_integer_i32); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 828 | impl_integer_for_isize!(i64, test_integer_i64); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 829 | impl_integer_for_isize!(isize, test_integer_isize); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.45/src/lib.rs:479:41 [INFO] [stdout] | [INFO] [stdout] 479 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 831 | impl_integer_for_isize!(i128, test_integer_i128); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `num-integer` (lib) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "c2dbe0ea394ffd3cd7f455d6b73ce6356e63e844c96801be8b421dbb28997c8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2dbe0ea394ffd3cd7f455d6b73ce6356e63e844c96801be8b421dbb28997c8e", kill_on_drop: false }` [INFO] [stdout] c2dbe0ea394ffd3cd7f455d6b73ce6356e63e844c96801be8b421dbb28997c8e