[INFO] cloning repository https://github.com/lautaroh2394/pockie_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lautaroh2394/pockie_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flautaroh2394%2Fpockie_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flautaroh2394%2Fpockie_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fb7ffcb129534c236c1cee0b2d56d2529bc0edfb [INFO] building lautaroh2394/pockie_rust against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flautaroh2394%2Fpockie_rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lautaroh2394/pockie_rust [INFO] finished tweaking git repo https://github.com/lautaroh2394/pockie_rust [INFO] tweaked toml for git repo https://github.com/lautaroh2394/pockie_rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lautaroh2394/pockie_rust 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/lautaroh2394/pockie_rust 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] d0970c236855a9005ef2dadd133407b540c9fa86fc348c17833ee57eccc392b0 [INFO] running `Command { std: "docker" "start" "-a" "d0970c236855a9005ef2dadd133407b540c9fa86fc348c17833ee57eccc392b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0970c236855a9005ef2dadd133407b540c9fa86fc348c17833ee57eccc392b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0970c236855a9005ef2dadd133407b540c9fa86fc348c17833ee57eccc392b0", kill_on_drop: false }` [INFO] [stdout] d0970c236855a9005ef2dadd133407b540c9fa86fc348c17833ee57eccc392b0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 75b17965e0d9e7c9a72ba8ae2b529722d9de4a7800f30315ad5bf8125da8e944 [INFO] running `Command { std: "docker" "start" "-a" "75b17965e0d9e7c9a72ba8ae2b529722d9de4a7800f30315ad5bf8125da8e944", kill_on_drop: false }` [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling miniquad v0.4.6 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling bytemuck v1.21.0 [INFO] [stderr] Compiling glam v0.27.0 [INFO] [stderr] Compiling quad-rand v0.2.3 [INFO] [stderr] Compiling miniz_oxide v0.8.3 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling fontdue v0.7.3 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling macroquad v0.4.13 [INFO] [stderr] Compiling pockieninja v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `push_global_event` [INFO] [stdout] --> src/models/scene_manager.rs:1:55 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::global_events::{global_events_iterate_mut, push_global_event, remove_global_event_by_id, remove_global_events}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/models/scene_manager.rs:57:49 [INFO] [stdout] | [INFO] [stdout] 57 | if exec { remove_global_event_by_id((event.id()));} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 57 - if exec { remove_global_event_by_id((event.id()));} [INFO] [stdout] 57 + if exec { remove_global_event_by_id(event.id() );} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/models/scenes/character_menu.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | if (option_title == "Move") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 39 - if (option_title == "Move") { [INFO] [stdout] 39 + if option_title == "Move" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/models/scenes/character_menu.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | if (option_title == "Attack") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if (option_title == "Attack") { [INFO] [stdout] 52 + if option_title == "Attack" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enums::event::SceneEvent` [INFO] [stdout] --> src/models/space.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | enums::event::SceneEvent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enums::event::SceneEvent` [INFO] [stdout] --> src/models/buttons/button.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{enums::event::SceneEvent, models::position::Position, traits::game_object::GameObject}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `space::Space` [INFO] [stdout] --> src/enums/event.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{fighter::Fighter, space::Space}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `global_events::GLOBAL_EVENTS` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use global_events::GLOBAL_EVENTS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/global_events.rs:21:65 [INFO] [stdout] | [INFO] [stdout] 21 | let found = GLOBAL_EVENTS.iter().enumerate().find(|(index, event)|{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/models/scene_manager.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 50 | SceneEvent::PopLast(data) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/models/board.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | _ => { exec = false;} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/models/board.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 92 | BoardEvent::BoardSelectMove(fighter) => { [INFO] [stdout] | ------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 96 | BoardEvent::BoardIdle => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 99 | BoardEvent::DropFighter(fighter) => { [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 103 | BoardEvent::SetFighter(fighter) => { [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 126 | _ => { exec = false;} [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `events` is never read [INFO] [stdout] --> src/models/scenes/scene.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 13 | pub elements: Vec>, [INFO] [stdout] 14 | pub events: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_status` is never used [INFO] [stdout] --> src/models/board.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Board { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | fn get_status(&self) -> &BoardState { &self.state } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_def` and `get_movement` are never used [INFO] [stdout] --> src/models/fighter.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Fighter { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_def(&self) -> i32 { self.defense } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | pub fn get_movement(&self) -> i32 { self.movement } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/traits/game_object.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait GameObject { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 44 | fn get_name(&self) -> String { String::from("Nombre sin definir") } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/global_events.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | GLOBAL_EVENTS.push(ev); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/global_events.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | REMOVABLE_EVENTS.push(id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/global_events.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | for id in REMOVABLE_EVENTS.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/global_events.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | let found = GLOBAL_EVENTS.iter().enumerate().find(|(index, event)|{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/global_events.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | GLOBAL_EVENTS.remove(index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/global_events.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | REMOVABLE_EVENTS.clear(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/global_events.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 36 | for event in GLOBAL_EVENTS.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.34s [INFO] running `Command { std: "docker" "inspect" "75b17965e0d9e7c9a72ba8ae2b529722d9de4a7800f30315ad5bf8125da8e944", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75b17965e0d9e7c9a72ba8ae2b529722d9de4a7800f30315ad5bf8125da8e944", kill_on_drop: false }` [INFO] [stdout] 75b17965e0d9e7c9a72ba8ae2b529722d9de4a7800f30315ad5bf8125da8e944 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] a59fc0eecfdb53262b4c938e7407ba37185da565a37f8dfcc9bfed85f7523207 [INFO] running `Command { std: "docker" "start" "-a" "a59fc0eecfdb53262b4c938e7407ba37185da565a37f8dfcc9bfed85f7523207", kill_on_drop: false }` [INFO] [stderr] Compiling pockieninja v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `push_global_event` [INFO] [stdout] --> src/models/scene_manager.rs:1:55 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::global_events::{global_events_iterate_mut, push_global_event, remove_global_event_by_id, remove_global_events}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/models/scene_manager.rs:57:49 [INFO] [stdout] | [INFO] [stdout] 57 | if exec { remove_global_event_by_id((event.id()));} [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 57 - if exec { remove_global_event_by_id((event.id()));} [INFO] [stdout] 57 + if exec { remove_global_event_by_id(event.id() );} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/models/scenes/character_menu.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | if (option_title == "Move") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 39 - if (option_title == "Move") { [INFO] [stdout] 39 + if option_title == "Move" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/models/scenes/character_menu.rs:52:16 [INFO] [stdout] | [INFO] [stdout] 52 | if (option_title == "Attack") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if (option_title == "Attack") { [INFO] [stdout] 52 + if option_title == "Attack" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enums::event::SceneEvent` [INFO] [stdout] --> src/models/space.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | enums::event::SceneEvent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enums::event::SceneEvent` [INFO] [stdout] --> src/models/buttons/button.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{enums::event::SceneEvent, models::position::Position, traits::game_object::GameObject}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `space::Space` [INFO] [stdout] --> src/enums/event.rs:1:39 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::{fighter::Fighter, space::Space}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `global_events::GLOBAL_EVENTS` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use global_events::GLOBAL_EVENTS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/global_events.rs:21:65 [INFO] [stdout] | [INFO] [stdout] 21 | let found = GLOBAL_EVENTS.iter().enumerate().find(|(index, event)|{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/models/scene_manager.rs:50:37 [INFO] [stdout] | [INFO] [stdout] 50 | SceneEvent::PopLast(data) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/models/board.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 126 | _ => { exec = false;} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/models/board.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 92 | BoardEvent::BoardSelectMove(fighter) => { [INFO] [stdout] | ------------------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 96 | BoardEvent::BoardIdle => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 99 | BoardEvent::DropFighter(fighter) => { [INFO] [stdout] | -------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 103 | BoardEvent::SetFighter(fighter) => { [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 126 | _ => { exec = false;} [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `events` is never read [INFO] [stdout] --> src/models/scenes/scene.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Scene { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 13 | pub elements: Vec>, [INFO] [stdout] 14 | pub events: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_status` is never used [INFO] [stdout] --> src/models/board.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Board { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | fn get_status(&self) -> &BoardState { &self.state } [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_def` and `get_movement` are never used [INFO] [stdout] --> src/models/fighter.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Fighter { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn get_def(&self) -> i32 { self.defense } [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 52 | pub fn get_movement(&self) -> i32 { self.movement } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_name` is never used [INFO] [stdout] --> src/traits/game_object.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait GameObject { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 44 | fn get_name(&self) -> String { String::from("Nombre sin definir") } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/global_events.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | GLOBAL_EVENTS.push(ev); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/global_events.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | REMOVABLE_EVENTS.push(id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/global_events.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | for id in REMOVABLE_EVENTS.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/global_events.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | let found = GLOBAL_EVENTS.iter().enumerate().find(|(index, event)|{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/global_events.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | GLOBAL_EVENTS.remove(index); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/global_events.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | REMOVABLE_EVENTS.clear(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/global_events.rs:36:26 [INFO] [stdout] | [INFO] [stdout] 36 | for event in GLOBAL_EVENTS.iter() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.75s [INFO] running `Command { std: "docker" "inspect" "a59fc0eecfdb53262b4c938e7407ba37185da565a37f8dfcc9bfed85f7523207", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a59fc0eecfdb53262b4c938e7407ba37185da565a37f8dfcc9bfed85f7523207", kill_on_drop: false }` [INFO] [stdout] a59fc0eecfdb53262b4c938e7407ba37185da565a37f8dfcc9bfed85f7523207