[INFO] cloning repository https://github.com/ConWolfMan/Rust-TCG [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ConWolfMan/Rust-TCG" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FConWolfMan%2FRust-TCG", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FConWolfMan%2FRust-TCG'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f1a99d3fba2b4006bf905d7754c8c8d775aad9e7 [INFO] building ConWolfMan/Rust-TCG against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FConWolfMan%2FRust-TCG" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 72% (521/718) Updating files: 73% (525/718) Updating files: 74% (532/718) Updating files: 75% (539/718) Updating files: 76% (546/718) Updating files: 77% (553/718) Updating files: 78% (561/718) Updating files: 79% (568/718) Updating files: 80% (575/718) Updating files: 81% (582/718) Updating files: 82% (589/718) Updating files: 83% (596/718) Updating files: 84% (604/718) Updating files: 85% (611/718) Updating files: 86% (618/718) Updating files: 87% (625/718) Updating files: 88% (632/718) Updating files: 89% (640/718) Updating files: 90% (647/718) Updating files: 91% (654/718) Updating files: 92% (661/718) Updating files: 93% (668/718) Updating files: 94% (675/718) Updating files: 95% (683/718) Updating files: 96% (690/718) Updating files: 97% (697/718) Updating files: 98% (704/718) Updating files: 99% (711/718) Updating files: 100% (718/718) Updating files: 100% (718/718), done. [INFO] started tweaking git repo https://github.com/ConWolfMan/Rust-TCG [INFO] finished tweaking git repo https://github.com/ConWolfMan/Rust-TCG [INFO] tweaked toml for git repo https://github.com/ConWolfMan/Rust-TCG written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ConWolfMan/Rust-TCG on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ConWolfMan/Rust-TCG 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" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded objc-rs v0.2.8 [INFO] [stderr] Downloaded macroquad_macro v0.1.8 [INFO] [stderr] Downloaded quad-rand v0.2.3 [INFO] [stderr] Downloaded miniz_oxide v0.8.7 [INFO] [stderr] Downloaded miniquad v0.4.8 [INFO] [stderr] Downloaded macroquad v0.4.14 [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ca76fe3aa259c45a825bff9763a5e1e63da138cfa6e74f74bad5ec77d4d00cd [INFO] running `Command { std: "docker" "start" "-a" "9ca76fe3aa259c45a825bff9763a5e1e63da138cfa6e74f74bad5ec77d4d00cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ca76fe3aa259c45a825bff9763a5e1e63da138cfa6e74f74bad5ec77d4d00cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ca76fe3aa259c45a825bff9763a5e1e63da138cfa6e74f74bad5ec77d4d00cd", kill_on_drop: false }` [INFO] [stdout] 9ca76fe3aa259c45a825bff9763a5e1e63da138cfa6e74f74bad5ec77d4d00cd [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 6b93f50ad06e15bbd931007cc32332eaba5dd3f34156f801e6ff541c6872e86f [INFO] running `Command { std: "docker" "start" "-a" "6b93f50ad06e15bbd931007cc32332eaba5dd3f34156f801e6ff541c6872e86f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling miniz_oxide v0.8.7 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling miniquad v0.4.8 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling bytemuck v1.22.0 [INFO] [stderr] Compiling ttf-parser v0.21.1 [INFO] [stderr] Compiling glam v0.27.0 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Compiling quad-rand v0.2.3 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling fontdue v0.9.3 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling macroquad v0.4.14 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling rust_tcg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::default::Default` [INFO] [stdout] --> src/utils/card_module.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::default::Default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `button` should have an upper camel case name [INFO] [stdout] --> src/utils/ui_module.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct button { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Button` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec` [INFO] [stdout] --> src/utils/game_module.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::prelude::*` [INFO] [stdout] --> src/utils/game_module.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use macroquad::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `game_field` should have an upper camel case name [INFO] [stdout] --> src/utils/game_module.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct game_field{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `GameField` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default::Default` [INFO] [stdout] --> src/utils/deck_module.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::default::Default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::mq_json_helpers::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use utils::mq_json_helpers::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fs::File; // for file io [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufReader` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw_at`, `draw`, `contains`, and `update` are never used [INFO] [stdout] --> src/utils/card_module.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Card { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 35 | pub fn new(new_name: &str, new_size: (f32, f32), new_color: (f32, f32, f32, f32)) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn draw_at(&mut self, new_pos: Vec2) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn draw(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn contains(&self, pos: Vec2) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `button` is never constructed [INFO] [stdout] --> src/utils/ui_module.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct button { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> src/utils/ui_module.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl button { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | fn contains(&self, pos: Vec2) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `game_field` is never constructed [INFO] [stdout] --> src/utils/game_module.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct game_field{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size`, `pos`, and `color` are never read [INFO] [stdout] --> src/utils/deck_module.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Deck { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | size: Vec2, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | pos: Vec2, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | color: Color, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `load_card`, `draw_card`, `draw`, and `draw_at` are never used [INFO] [stdout] --> src/utils/deck_module.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Deck { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn load_card(&mut self,new_card: Card) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn draw_card(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn draw(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn draw_at(&self, new_pos: Vec2) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `color_to_tuple` is never used [INFO] [stdout] --> src/utils/mq_json_helpers.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn color_to_tuple(my_color: Color) -> (f32, f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuple_to_color` is never used [INFO] [stdout] --> src/utils/mq_json_helpers.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn tuple_to_color(my_tuple: (f32, f32, f32, f32)) -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec2_to_tuple` is never used [INFO] [stdout] --> src/utils/mq_json_helpers.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn vec2_to_tuple(my_vec: Vec2) -> (f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuple_to_vec2` is never used [INFO] [stdout] --> src/utils/mq_json_helpers.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn tuple_to_vec2(my_tuple: (f32, f32)) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetName` should have a snake case name [INFO] [stdout] --> src/utils/card_module.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn GetName(&self) -> String { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 24.59s [INFO] running `Command { std: "docker" "inspect" "6b93f50ad06e15bbd931007cc32332eaba5dd3f34156f801e6ff541c6872e86f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b93f50ad06e15bbd931007cc32332eaba5dd3f34156f801e6ff541c6872e86f", kill_on_drop: false }` [INFO] [stdout] 6b93f50ad06e15bbd931007cc32332eaba5dd3f34156f801e6ff541c6872e86f [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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 814c30573aedb6460177afa5768a9bd951c195a74cacac00881baee670ddca35 [INFO] running `Command { std: "docker" "start" "-a" "814c30573aedb6460177afa5768a9bd951c195a74cacac00881baee670ddca35", kill_on_drop: false }` [INFO] [stderr] Compiling rust_tcg v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::default::Default` [INFO] [stdout] --> src/utils/card_module.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::default::Default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `button` should have an upper camel case name [INFO] [stdout] --> src/utils/ui_module.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct button { [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case: `Button` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec` [INFO] [stdout] --> src/utils/game_module.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::vec; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::prelude::*` [INFO] [stdout] --> src/utils/game_module.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use macroquad::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `game_field` should have an upper camel case name [INFO] [stdout] --> src/utils/game_module.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct game_field{ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `GameField` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default::Default` [INFO] [stdout] --> src/utils/deck_module.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::default::Default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::mq_json_helpers::*` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use utils::mq_json_helpers::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fs::File; // for file io [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::BufReader` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::BufReader; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `draw_at`, `draw`, `contains`, and `update` are never used [INFO] [stdout] --> src/utils/card_module.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 34 | impl Card { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 35 | pub fn new(new_name: &str, new_size: (f32, f32), new_color: (f32, f32, f32, f32)) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn draw_at(&mut self, new_pos: Vec2) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn draw(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | fn contains(&self, pos: Vec2) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn update(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `button` is never constructed [INFO] [stdout] --> src/utils/ui_module.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct button { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains` is never used [INFO] [stdout] --> src/utils/ui_module.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 9 | impl button { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | fn contains(&self, pos: Vec2) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `game_field` is never constructed [INFO] [stdout] --> src/utils/game_module.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct game_field{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size`, `pos`, and `color` are never read [INFO] [stdout] --> src/utils/deck_module.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Deck { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | size: Vec2, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | pos: Vec2, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | color: Color, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `load_card`, `draw_card`, `draw`, and `draw_at` are never used [INFO] [stdout] --> src/utils/deck_module.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Deck { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn load_card(&mut self,new_card: Card) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn draw_card(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn draw(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn draw_at(&self, new_pos: Vec2) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `color_to_tuple` is never used [INFO] [stdout] --> src/utils/mq_json_helpers.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn color_to_tuple(my_color: Color) -> (f32, f32, f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuple_to_color` is never used [INFO] [stdout] --> src/utils/mq_json_helpers.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn tuple_to_color(my_tuple: (f32, f32, f32, f32)) -> Color { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec2_to_tuple` is never used [INFO] [stdout] --> src/utils/mq_json_helpers.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn vec2_to_tuple(my_vec: Vec2) -> (f32, f32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuple_to_vec2` is never used [INFO] [stdout] --> src/utils/mq_json_helpers.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn tuple_to_vec2(my_tuple: (f32, f32)) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `GetName` should have a snake case name [INFO] [stdout] --> src/utils/card_module.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn GetName(&self) -> String { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.70s [INFO] running `Command { std: "docker" "inspect" "814c30573aedb6460177afa5768a9bd951c195a74cacac00881baee670ddca35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "814c30573aedb6460177afa5768a9bd951c195a74cacac00881baee670ddca35", kill_on_drop: false }` [INFO] [stdout] 814c30573aedb6460177afa5768a9bd951c195a74cacac00881baee670ddca35