[INFO] cloning repository https://github.com/broosa/RustCribbage [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/broosa/RustCribbage" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbroosa%2FRustCribbage", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbroosa%2FRustCribbage'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d77dffc975c04beccacc25b1e749b78975b7e04b [INFO] checking broosa/RustCribbage against master#a932eb36f8adf6c8cdfc450f063943da3112d621 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbroosa%2FRustCribbage" "/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/broosa/RustCribbage on toolchain a932eb36f8adf6c8cdfc450f063943da3112d621 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/broosa/RustCribbage [INFO] finished tweaking git repo https://github.com/broosa/RustCribbage [INFO] tweaked toml for git repo https://github.com/broosa/RustCribbage written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/broosa/RustCribbage 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" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1c98e8838c8e57506cfb02ae6a38ab4f387c32b2cb82a1670886b6fa33a67715 [INFO] running `Command { std: "docker" "start" "-a" "1c98e8838c8e57506cfb02ae6a38ab4f387c32b2cb82a1670886b6fa33a67715", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1c98e8838c8e57506cfb02ae6a38ab4f387c32b2cb82a1670886b6fa33a67715", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1c98e8838c8e57506cfb02ae6a38ab4f387c32b2cb82a1670886b6fa33a67715", kill_on_drop: false }` [INFO] [stdout] 1c98e8838c8e57506cfb02ae6a38ab4f387c32b2cb82a1670886b6fa33a67715 [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+a932eb36f8adf6c8cdfc450f063943da3112d621" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b94b3f276e9f2cde50abf9176e2a53db1c1a856aa7e4c6b3f7b47930cbfb8520 [INFO] running `Command { std: "docker" "start" "-a" "b94b3f276e9f2cde50abf9176e2a53db1c1a856aa7e4c6b3f7b47930cbfb8520", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking rust_cribbage v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `directly_precedes` and `directly_succeeds` are never used [INFO] [stdout] --> src/cribbage_cards.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CribbageCard { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 29 | pub fn directly_precedes(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn directly_succeeds(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `directly_precedes` and `directly_succeeds` are never used [INFO] [stdout] --> src/cribbage_cards.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CribbageCard { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 29 | pub fn directly_precedes(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn directly_succeeds(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> tests/cards_test.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let d = c.get_long_description(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/cribbage_scoring.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let score = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quadScore` [INFO] [stdout] --> src/cribbage_scoring.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quadScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quads` [INFO] [stdout] --> src/cribbage_scoring.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_quads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tripleScore` [INFO] [stdout] --> src/cribbage_scoring.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tripleScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triples` [INFO] [stdout] --> src/cribbage_scoring.rs:213:23 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_triples` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairScore` [INFO] [stdout] --> src/cribbage_scoring.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pairScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs` [INFO] [stdout] --> src/cribbage_scoring.rs:214:21 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs_remainder` [INFO] [stdout] --> src/cribbage_scoring.rs:214:28 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runScore` [INFO] [stdout] --> src/cribbage_scoring.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runs` [INFO] [stdout] --> src/cribbage_scoring.rs:215:20 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_runs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remainder` [INFO] [stdout] --> src/cribbage_scoring.rs:215:26 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_long_rank_desc` is never used [INFO] [stdout] --> src/cards.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_long_rank_desc(r: &str) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/cards.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub trait MutableCardCollection { [INFO] [stdout] | --------------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 89 | fn draw_bottom(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 90 | fn draw_at(&mut self, n: usize, loc: usize) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 91 | fn peek_top(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | fn peek_bottom(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 93 | fn peek_at(&mut self, n: usize, loc: usize) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 94 | fn insert_top(&mut self, c: T); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 95 | fn insert_bottom(&mut self, c: T); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 96 | fn insert_before(&mut self, c: T, loc: usize); [INFO] [stdout] 97 | fn insert_multiple_top(&mut self, c: Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | fn insert_multiple_bottom(&mut self, c: Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 99 | fn insert_multiple_at(&mut self, c: Vec, loc: usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_short_rank_name`, `get_long_rank_name`, `get_short_suit_name`, `get_long_suit_name`, and `get_long_description` are never used [INFO] [stdout] --> src/cards.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 240 | pub trait Card: Copy { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 245 | fn get_short_rank_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn get_long_rank_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn get_short_suit_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | fn get_long_suit_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn get_long_description(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `directly_succeeds` is never used [INFO] [stdout] --> src/cribbage_cards.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CribbageCard { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn directly_succeeds(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_flush` is never used [INFO] [stdout] --> src/cribbage_scoring.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn score_flush(hand: &Vec) -> (i8, Vec>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fifteensScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:211:10 [INFO] [stdout] | [INFO] [stdout] 211 | let (fifteensScore, fifteens) = score_fifteens(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `fifteens_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `quadScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `quad_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tripleScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `triple_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pairScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pair_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `runScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `run_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score` [INFO] [stdout] --> src/cribbage_scoring.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | let score = 0; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quadScore` [INFO] [stdout] --> src/cribbage_scoring.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quadScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quads` [INFO] [stdout] --> src/cribbage_scoring.rs:212:21 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_quads` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tripleScore` [INFO] [stdout] --> src/cribbage_scoring.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tripleScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `triples` [INFO] [stdout] --> src/cribbage_scoring.rs:213:23 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_triples` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairScore` [INFO] [stdout] --> src/cribbage_scoring.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pairScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs` [INFO] [stdout] --> src/cribbage_scoring.rs:214:21 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pairs_remainder` [INFO] [stdout] --> src/cribbage_scoring.rs:214:28 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pairs_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runScore` [INFO] [stdout] --> src/cribbage_scoring.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runScore` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runs` [INFO] [stdout] --> src/cribbage_scoring.rs:215:20 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_runs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `remainder` [INFO] [stdout] --> src/cribbage_scoring.rs:215:26 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remainder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_long_rank_desc` is never used [INFO] [stdout] --> src/cards.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_long_rank_desc(r: &str) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/cards.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub trait MutableCardCollection { [INFO] [stdout] | --------------------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 89 | fn draw_bottom(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 90 | fn draw_at(&mut self, n: usize, loc: usize) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 91 | fn peek_top(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 92 | fn peek_bottom(&mut self, n: usize) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 93 | fn peek_at(&mut self, n: usize, loc: usize) -> Vec; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 94 | fn insert_top(&mut self, c: T); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 95 | fn insert_bottom(&mut self, c: T); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 96 | fn insert_before(&mut self, c: T, loc: usize); [INFO] [stdout] 97 | fn insert_multiple_top(&mut self, c: Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | fn insert_multiple_bottom(&mut self, c: Vec); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 99 | fn insert_multiple_at(&mut self, c: Vec, loc: usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_short_rank_name`, `get_long_rank_name`, `get_short_suit_name`, `get_long_suit_name`, and `get_long_description` are never used [INFO] [stdout] --> src/cards.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 240 | pub trait Card: Copy { [INFO] [stdout] | ---- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 245 | fn get_short_rank_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | fn get_long_rank_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | fn get_short_suit_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | fn get_long_suit_name(&self) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | fn get_long_description(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `directly_succeeds` is never used [INFO] [stdout] --> src/cribbage_cards.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CribbageCard { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn directly_succeeds(&self, other: Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `score_flush` is never used [INFO] [stdout] --> src/cribbage_scoring.rs:195:8 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn score_flush(hand: &Vec) -> (i8, Vec>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `fifteensScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:211:10 [INFO] [stdout] | [INFO] [stdout] 211 | let (fifteensScore, fifteens) = score_fifteens(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `fifteens_score` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `quadScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:212:10 [INFO] [stdout] | [INFO] [stdout] 212 | let (quadScore, quads, quads_remainder) = score_quads(&sorted_hand); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `quad_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tripleScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:213:10 [INFO] [stdout] | [INFO] [stdout] 213 | let (tripleScore, triples, triples_remainder) = score_triples(&quads_remainder); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `triple_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pairScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:214:10 [INFO] [stdout] | [INFO] [stdout] 214 | let (pairScore, pairs, pairs_remainder) = score_pairs(&triples_remainder); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `pair_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `runScore` should have a snake case name [INFO] [stdout] --> src/cribbage_scoring.rs:215:10 [INFO] [stdout] | [INFO] [stdout] 215 | let (runScore, runs, remainder) = score_runs(&sorted_hand); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `run_score` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.27s [INFO] running `Command { std: "docker" "inspect" "b94b3f276e9f2cde50abf9176e2a53db1c1a856aa7e4c6b3f7b47930cbfb8520", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b94b3f276e9f2cde50abf9176e2a53db1c1a856aa7e4c6b3f7b47930cbfb8520", kill_on_drop: false }` [INFO] [stdout] b94b3f276e9f2cde50abf9176e2a53db1c1a856aa7e4c6b3f7b47930cbfb8520