[INFO] cloning repository https://github.com/eda3/ecs_wasm_game4 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eda3/ecs_wasm_game4" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feda3%2Fecs_wasm_game4", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feda3%2Fecs_wasm_game4'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 225e4a67b9751788225a063ef630e7626be70ad0 [INFO] building eda3/ecs_wasm_game4 against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feda3%2Fecs_wasm_game4" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eda3/ecs_wasm_game4 on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eda3/ecs_wasm_game4 [INFO] finished tweaking git repo https://github.com/eda3/ecs_wasm_game4 [INFO] tweaked toml for git repo https://github.com/eda3/ecs_wasm_game4 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/eda3/ecs_wasm_game4 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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2d12072ecbe2e741776661b8ca7a24fa3107c6534b1f63fd3444de05548c50e2 [INFO] running `Command { std: "docker" "start" "-a" "2d12072ecbe2e741776661b8ca7a24fa3107c6534b1f63fd3444de05548c50e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2d12072ecbe2e741776661b8ca7a24fa3107c6534b1f63fd3444de05548c50e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d12072ecbe2e741776661b8ca7a24fa3107c6534b1f63fd3444de05548c50e2", kill_on_drop: false }` [INFO] [stdout] 2d12072ecbe2e741776661b8ca7a24fa3107c6534b1f63fd3444de05548c50e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c6d97b4818d05ef0b94e3bb9b3c253f0edcf601738089b8a890d8e2578e48485 [INFO] running `Command { std: "docker" "start" "-a" "c6d97b4818d05ef0b94e3bb9b3c253f0edcf601738089b8a890d8e2578e48485", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling js-sys v0.3.77 [INFO] [stderr] Compiling console_error_panic_hook v0.1.7 [INFO] [stderr] Compiling web-sys v0.3.77 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.50 [INFO] [stderr] Compiling wasm-logger v0.2.0 [INFO] [stderr] Compiling ecs_wasm_game4 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/ecs/component.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SUIT_SYMBOLS` [INFO] [stdout] --> src/ecs/component.rs:304:32 [INFO] [stdout] | [INFO] [stdout] 304 | use crate::constants::{SUIT_SYMBOLS, RANK_SYMBOLS}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `System` [INFO] [stdout] --> src/ecs/world.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ecs::system::{System, SystemManager}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/ecs/resources.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::entity::*` [INFO] [stdout] --> src/ecs/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use self::entity::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::component::*` [INFO] [stdout] --> src/ecs/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::component::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::system::*` [INFO] [stdout] --> src/ecs/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::system::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::world::*` [INFO] [stdout] --> src/ecs/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use self::world::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::resources::*` [INFO] [stdout] --> src/ecs/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use self::resources::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CARD_BORDER_RADIUS` [INFO] [stdout] --> src/game/card.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::constants::{CARD_WIDTH, CARD_HEIGHT, CARD_BORDER_RADIUS}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/game/setup.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{info, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/render/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CARD_HEIGHT`, `CARD_TEXT_COLOR`, and `CARD_WIDTH` [INFO] [stdout] --> src/render/renderer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | CARD_WIDTH, CARD_HEIGHT, CARD_FRONT_COLOR, CARD_BACK_COLOR, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 8 | CARD_BORDER_COLOR, CARD_TEXT_COLOR, CARD_RED_COLOR, CARD_BLACK_COLOR, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::error` [INFO] [stdout] --> src/render/renderer.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use log::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_sys::CanvasRenderingContext2d` [INFO] [stdout] --> src/render/render_context.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use web_sys::CanvasRenderingContext2d; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DRAG_OPACITY` [INFO] [stdout] --> src/input/systems.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::constants::{DRAG_OPACITY}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | self.context.set_fill_style(&JsValue::from_str("#076324")); // 緑色の背景(ソリティア風) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:198:26 [INFO] [stdout] | [INFO] [stdout] 198 | self.context.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/renderer.rs:231:26 [INFO] [stdout] | [INFO] [stdout] 231 | self.context.set_stroke_style(&JsValue::from_str("#FFFFFF33")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:278:22 [INFO] [stdout] | [INFO] [stdout] 278 | self.context.set_fill_style(&JsValue::from_str(fill_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/renderer.rs:282:22 [INFO] [stdout] | [INFO] [stdout] 282 | self.context.set_stroke_style(&JsValue::from_str(stroke_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:301:22 [INFO] [stdout] | [INFO] [stdout] 301 | self.context.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:366:13 [INFO] [stdout] | [INFO] [stdout] 366 | ctx.set_fill_style(&JsValue::from_str("#076324")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | ctx.set_fill_style(&JsValue::from_str(&sprite.color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | ctx.set_fill_style(&JsValue::from_str(if card.is_red() { "#CC0000" } else { "#000000" })); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/renderer.rs:434:13 [INFO] [stdout] | [INFO] [stdout] 434 | ctx.set_stroke_style(&JsValue::from_str("#FFCC00")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | ctx.set_fill_style(&JsValue::from_str("#FFFFFF")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | ctx.set_fill_style(&JsValue::from_str("#FFFFFF")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/card_renderer.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | ctx.set_stroke_style(&JsValue::from_str("#000000")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | ctx.set_fill_style(&JsValue::from_str("#0055AA")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/card_renderer.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | ctx.set_stroke_style(&JsValue::from_str("#FFFFFF")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | ctx.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/card_renderer.rs:293:13 [INFO] [stdout] | [INFO] [stdout] 293 | ctx.set_stroke_style(&JsValue::from_str("#FFCC00")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | ctx.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/input/systems.rs:445:33 [INFO] [stdout] | [INFO] [stdout] 445 | if let Some(mut transform) = world.get_component_mut::(entity_id) { [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/input/systems.rs:456:25 [INFO] [stdout] | [INFO] [stdout] 456 | if let Some(mut renderable) = world.get_component_mut::(entity_id) { [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/input/systems.rs:532:25 [INFO] [stdout] | [INFO] [stdout] 532 | if let Some(mut droppable) = world.get_component_mut::(entity_id) { [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/input/systems.rs:548:33 [INFO] [stdout] | [INFO] [stdout] 548 | if let Some(mut droppable) = world.get_component_mut::(drop_target) { [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/input/systems.rs:966:25 [INFO] [stdout] | [INFO] [stdout] 966 | if let Some(mut renderable) = world.get_component_mut::(entity_id) { [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/input/systems.rs:974:25 [INFO] [stdout] | [INFO] [stdout] 974 | if let Some(mut transform) = world.get_component_mut::(entity_id) { [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/input/systems.rs:1078:25 [INFO] [stdout] | [INFO] [stdout] 1078 | if let Some(mut transform) = world.get_component_mut::(entity_id) { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mark_entity_for_removal` and `entity_count` are never used [INFO] [stdout] --> src/ecs/entity.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl EntityManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn mark_entity_for_removal(&mut self, entity_id: EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn entity_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/ecs/component.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Component: 'static { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | fn name(&self) -> &'static str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `iter_mut`, and `remove_entity` are never used [INFO] [stdout] --> src/ecs/component.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ComponentStorage { [INFO] [stdout] | -------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn remove(&mut self, entity_id: &EntityId) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn iter_mut(&mut self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn remove_entity(&mut self, entity_id: &EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_component` and `remove_entity` are never used [INFO] [stdout] --> src/ecs/component.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl ComponentManager { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn remove_component(&mut self, entity_id: &EntityId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn remove_entity(&mut self, entity_id: &EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_entity_from_storage` is never used [INFO] [stdout] --> src/ecs/component.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn remove_entity_from_storage(storage: &mut dyn Any, entity_id: &EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `face_up` and `is_black` are never used [INFO] [stdout] --> src/ecs/component.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 277 | impl CardInfo { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn face_up(mut self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | pub fn is_black(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Text`, `Rectangle`, and `Custom` are never constructed [INFO] [stdout] --> src/ecs/component.rs:340:5 [INFO] [stdout] | [INFO] [stdout] 336 | pub enum RenderType { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 340 | Text { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 355 | Custom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RenderType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `rectangle` and `text` are never used [INFO] [stdout] --> src/ecs/component.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 358 | impl Renderable { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 369 | pub fn rectangle( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 391 | pub fn text( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `drag_offset`, `original_position`, `original_z_index`, `width`, `height`, and `drag_children` are never read [INFO] [stdout] --> src/ecs/component.rs:427:9 [INFO] [stdout] | [INFO] [stdout] 425 | pub struct Draggable { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 426 | pub is_dragging: bool, [INFO] [stdout] 427 | pub drag_offset: Vec2, // ドラッグ開始位置からのオフセット [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 428 | pub original_position: Vec2, // ドラッグ開始前の位置 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 429 | pub original_z_index: i32, // ドラッグ開始前のZ-index [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 430 | pub width: f64, // ドラッグ可能な領域の幅 [INFO] [stdout] | ^^^^^ [INFO] [stdout] 431 | pub height: f64, // ドラッグ可能な領域の高さ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 432 | pub drag_children: bool, // 子要素も一緒にドラッグするか [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Draggable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_size` and `with_drag_children` are never used [INFO] [stdout] --> src/ecs/component.rs:448:12 [INFO] [stdout] | [INFO] [stdout] 435 | impl Draggable { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 448 | pub fn with_size(mut self, width: f64, height: f64) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 454 | pub fn with_drag_children(mut self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_hovering` is never read [INFO] [stdout] --> src/ecs/component.rs:470:9 [INFO] [stdout] | [INFO] [stdout] 469 | pub struct Clickable { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 470 | pub is_hovering: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Clickable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Custom` is never constructed [INFO] [stdout] --> src/ecs/component.rs:490:5 [INFO] [stdout] | [INFO] [stdout] 478 | pub enum ClickHandlerType { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 490 | Custom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClickHandlerType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_cards` is never read [INFO] [stdout] --> src/ecs/component.rs:515:9 [INFO] [stdout] | [INFO] [stdout] 512 | pub struct StackContainer { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 515 | pub max_cards: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StackContainer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Hand` is never constructed [INFO] [stdout] --> src/ecs/component.rs:531:5 [INFO] [stdout] | [INFO] [stdout] 521 | pub enum StackType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 531 | Hand, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StackType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cards_from_index` and `remove_cards_from_index` are never used [INFO] [stdout] --> src/ecs/component.rs:579:12 [INFO] [stdout] | [INFO] [stdout] 534 | impl StackContainer { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 579 | pub fn cards_from_index(&self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 587 | pub fn remove_cards_from_index(&mut self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/ecs/component.rs:606:9 [INFO] [stdout] | [INFO] [stdout] 605 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 606 | pub x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 607 | pub y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `zero` are never used [INFO] [stdout] --> src/ecs/component.rs:611:12 [INFO] [stdout] | [INFO] [stdout] 610 | impl Position { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 611 | pub fn new(x: f64, y: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 615 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, `color`, `image_key`, and `visible` are never read [INFO] [stdout] --> src/ecs/component.rs:629:9 [INFO] [stdout] | [INFO] [stdout] 628 | pub struct Sprite { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 629 | pub width: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 630 | pub height: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 631 | pub color: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 632 | pub image_key: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 633 | pub visible: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sprite` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_image` are never used [INFO] [stdout] --> src/ecs/component.rs:637:12 [INFO] [stdout] | [INFO] [stdout] 636 | impl Sprite { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 637 | pub fn new(width: f64, height: f64, color: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 647 | pub fn with_image(mut self, image_key: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `drop_types` is never read [INFO] [stdout] --> src/ecs/component.rs:665:9 [INFO] [stdout] | [INFO] [stdout] 662 | pub struct Droppable { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 665 | pub drop_types: Vec, // 受け入れ可能なドラッグタイプ(将来の拡張用) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Droppable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_drop_types`, and `with_active` are never used [INFO] [stdout] --> src/ecs/component.rs:670:12 [INFO] [stdout] | [INFO] [stdout] 669 | impl Droppable { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 670 | pub fn new(width: f64, height: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | pub fn with_drop_types(mut self, types: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 684 | pub fn with_active(mut self, active: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PreUpdate` and `PostUpdate` are never constructed [INFO] [stdout] --> src/ecs/system.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum SystemPhase { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 10 | Input, // 入力処理 [INFO] [stdout] 11 | PreUpdate, // メイン更新前 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | Update, // メイン更新 [INFO] [stdout] 13 | PostUpdate, // メイン更新後 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SystemPhase` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/ecs/system.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub trait System { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 46 | fn name(&self) -> &'static str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run_systems_for_phase` and `clear` are never used [INFO] [stdout] --> src/ecs/system.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl SystemManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn run_systems_for_phase( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_entity`, `entity_count`, and `remove_component` are never used [INFO] [stdout] --> src/ecs/world.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl World { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn remove_entity(&mut self, entity_id: EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn entity_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn remove_component(&mut self, entity_id: EntityId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `has`, and `get_or_insert_with` are never used [INFO] [stdout] --> src/ecs/resources.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ResourceManager { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn remove(&mut self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn has(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn get_or_insert_with(&mut self, f: F) -> &mut T [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `touch_position` and `is_touch_active` are never read [INFO] [stdout] --> src/ecs/resources.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct InputState { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 86 | pub touch_position: Vec2, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 87 | pub is_touch_active: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_touch`, `is_key_pressed`, and `is_mouse_in_rect` are never used [INFO] [stdout] --> src/ecs/resources.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl InputState { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn update_touch(&mut self, x: f64, y: f64, is_active: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn is_key_pressed(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn is_mouse_in_rect(&self, x: f64, y: f64, width: f64, height: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_fps` is never used [INFO] [stdout] --> src/ecs/resources.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl TimeInfo { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_fps(&self) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Playing`, `Paused`, and `GameOver` are never constructed [INFO] [stdout] --> src/ecs/resources.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 211 | pub enum GameState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 215 | Playing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 216 | /// 一時停止中 [INFO] [stdout] 217 | Paused, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 218 | /// ゲームオーバー [INFO] [stdout] 219 | GameOver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_connected`, `player_id`, `other_players`, `connection_error`, and `last_message_time` are never read [INFO] [stdout] --> src/ecs/resources.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 225 | pub struct NetworkState { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 226 | pub is_connected: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 227 | pub player_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 228 | pub other_players: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 229 | pub connection_error: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 230 | pub last_message_time: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_connected`, `set_player_id`, `add_player`, `remove_player`, `set_error`, and `clear_error` are never used [INFO] [stdout] --> src/ecs/resources.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 233 | impl NetworkState { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn set_connected(&mut self, connected: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 255 | pub fn set_player_id(&mut self, id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn add_player(&mut self, id: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn remove_player(&mut self, id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn set_error(&mut self, error: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn clear_error(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `canvas` and `context` are never read [INFO] [stdout] --> src/game/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 32 | // キャンバス要素 [INFO] [stdout] 33 | canvas: HtmlCanvasElement, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | context: CanvasRenderingContext2d, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_stack_card` is never used [INFO] [stdout] --> src/game/card.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn can_stack_card(world: &World, source_card_id: EntityId, target_card_id: EntityId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_stack_on_foundation` is never used [INFO] [stdout] --> src/game/card.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn can_stack_on_foundation(world: &World, card_id: EntityId, foundation_suit: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_stack_on_existing_foundation` is never used [INFO] [stdout] --> src/game/card.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn can_stack_on_existing_foundation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_card_draggable` is never used [INFO] [stdout] --> src/game/card.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn set_card_draggable(world: &mut World, card_id: EntityId, draggable: bool) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_move_to_foundation` is never used [INFO] [stdout] --> src/game/solitaire.rs:372:8 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn can_move_to_foundation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_game_state` is never used [INFO] [stdout] --> src/game/state.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn change_game_state(resources: &mut ResourceManager, new_state: GameState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_game` is never used [INFO] [stdout] --> src/game/state.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn start_game(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pause_game` is never used [INFO] [stdout] --> src/game/state.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn pause_game(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resume_game` is never used [INFO] [stdout] --> src/game/state.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn resume_game(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `game_over` is never used [INFO] [stdout] --> src/game/state.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn game_over(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_to_title` is never used [INFO] [stdout] --> src/game/state.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn return_to_title(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameRenderer` is never constructed [INFO] [stdout] --> src/render/renderer.rs:311:12 [INFO] [stdout] | [INFO] [stdout] 311 | pub struct GameRenderer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/render/renderer.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 315 | impl GameRenderer { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 316 | /// 新しいレンダラーを作成 [INFO] [stdout] 317 | pub fn new(canvas_id: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn render(&self, world: &World) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | fn render_background(&self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | fn render_sprite( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 390 | fn render_card_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 428 | fn render_drag_feedback( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | fn render_ui(&self, _world: &World) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 460 | pub fn context(&self) -> &RenderContext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleTextMetrics` is never constructed [INFO] [stdout] --> src/render/card_renderer.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct SimpleTextMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `width` are never used [INFO] [stdout] --> src/render/card_renderer.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl SimpleTextMetrics { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 14 | fn new(width: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn width(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CardRenderer` is never constructed [INFO] [stdout] --> src/render/card_renderer.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct CardRenderer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/render/card_renderer.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl CardRenderer { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 31 | /// 新しいカードレンダラーを作成 [INFO] [stdout] 32 | pub fn new(context: RenderContext) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn render_card(&self, ctx: &CanvasRenderingContext2d, transform: &Transform, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn draw_card_shape(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn draw_card_back(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn draw_card_face(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn draw_center_suit(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn draw_suit_pattern(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, value: u8, suit_char: &str) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn draw_face_card(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn highlight_card(&self, ctx: &CanvasRenderingContext2d, transform: &Transform) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | pub fn draw_moving_card(&self, ctx: &CanvasRenderingContext2d, transform: &Transform, card: &CardInfo, progress: f64) -> Result<(), J... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn context(&self) -> &RenderContext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | pub fn card_size(&self) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | fn draw_card_number(&self, card: &CardInfo, x: f64, y: f64) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `measure_text` is never used [INFO] [stdout] --> src/render/card_renderer.rs:347:4 [INFO] [stdout] | [INFO] [stdout] 347 | fn measure_text(_ctx: &CanvasRenderingContext2d, text: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RenderContext` is never constructed [INFO] [stdout] --> src/render/render_context.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RenderContext { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `clear`, `width`, `height`, and `context` are never used [INFO] [stdout] --> src/render/render_context.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl RenderContext { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | /// 新しいレンダリングコンテキストを作成 [INFO] [stdout] 15 | pub fn new(canvas_id: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn clear(&self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn width(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn height(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn context(&self) -> &web_sys::CanvasRenderingContext2d { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `drag_start_position` and `drag_started` are never read [INFO] [stdout] --> src/input/systems.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct DragSystem { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 165 | drag_start_position: Vec2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | drag_started: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/input/systems.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 179 | impl DragSystem { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 193 | fn find_draggable_entity(&self, world: &World, position: Vec2) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | fn start_drag(&mut self, world: &mut World, entity_id: EntityId, mouse_position: Vec2) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 381 | fn update_drag(&mut self, world: &mut World, entity_id: EntityId, mouse_position: Vec2) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 564 | fn process_drop(&mut self, world: &mut World, dragged_entity: EntityId, drop_target: EntityId) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 711 | fn process_multi_card_drop( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 835 | fn get_dragged_cards(&self, world: &World, main_card_id: EntityId) -> Result, JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 857 | fn reset_card_positions(&self, world: &mut World, cards: &[EntityId]) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetworkManager` is never constructed [INFO] [stdout] --> src/network.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct NetworkManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `connect`, `send_message`, `disconnect`, `is_connected`, and `set_message_handler` are never used [INFO] [stdout] --> src/network.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl NetworkManager { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 31 | /// 新しいネットワークマネージャーを作成 [INFO] [stdout] 32 | pub fn new(url: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn connect(&mut self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn send_message(&self, message: &str) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn disconnect(&mut self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn is_connected(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn set_message_handler(&mut self, handler: Box) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/network.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn init() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_time` is never used [INFO] [stdout] --> src/utils.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn get_current_time() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance` is never used [INFO] [stdout] --> src/utils.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn distance(x1: f64, y1: f64, x2: f64, y2: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clamp` is never used [INFO] [stdout] --> src/utils.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn clamp(value: T, min: T, max: T) -> T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/utils.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Vec2 { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn length(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn normalize(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn distance(&self, other: &Self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn dot(&self, other: &Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn scale(&self, scalar: f64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn add(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn subtract(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FRAME_TIME_MS` is never used [INFO] [stdout] --> src/constants.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const FRAME_TIME_MS: f64 = 1000.0 / TARGET_FPS as f64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CARD_SPACING_Y` is never used [INFO] [stdout] --> src/constants.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const CARD_SPACING_Y: f64 = 30.0; // カード間の縦方向の間隔 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CARD_TEXT_COLOR` is never used [INFO] [stdout] --> src/constants.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | pub const CARD_TEXT_COLOR: &str = "#2C3E50"; // カードの文字色 [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAG_OPACITY` is never used [INFO] [stdout] --> src/constants.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | pub const DRAG_OPACITY: f64 = 0.7; // ドラッグ中のカードの透明度 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ANIMATION_DURATION` is never used [INFO] [stdout] --> src/constants.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | pub const ANIMATION_DURATION: f64 = 300.0; // アニメーション時間(ミリ秒) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WS_SERVER_URL` is never used [INFO] [stdout] --> src/constants.rs:68:11 [INFO] [stdout] | [INFO] [stdout] 68 | pub const WS_SERVER_URL: &str = "ws://162.43.8.148:8101"; // WebSocketサーバーのURL(IPアドレス:ポート8101) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAG_THRESHOLD` is never used [INFO] [stdout] --> src/constants.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | pub const DRAG_THRESHOLD: f64 = 5.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_HEART` is never used [INFO] [stdout] --> src/constants.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | pub const SUIT_HEART: u8 = 0; // ハート [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_DIAMOND` is never used [INFO] [stdout] --> src/constants.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const SUIT_DIAMOND: u8 = 1; // ダイヤ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_CLUB` is never used [INFO] [stdout] --> src/constants.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 88 | pub const SUIT_CLUB: u8 = 2; // クラブ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_SPADE` is never used [INFO] [stdout] --> src/constants.rs:89:11 [INFO] [stdout] | [INFO] [stdout] 89 | pub const SUIT_SPADE: u8 = 3; // スペード [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 27.64s [INFO] running `Command { std: "docker" "inspect" "c6d97b4818d05ef0b94e3bb9b3c253f0edcf601738089b8a890d8e2578e48485", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c6d97b4818d05ef0b94e3bb9b3c253f0edcf601738089b8a890d8e2578e48485", kill_on_drop: false }` [INFO] [stdout] c6d97b4818d05ef0b94e3bb9b3c253f0edcf601738089b8a890d8e2578e48485 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a943287af7868761e7bfc97532091ec431a09cb0f3ddcd4cf1a4614cec059081 [INFO] running `Command { std: "docker" "start" "-a" "a943287af7868761e7bfc97532091ec431a09cb0f3ddcd4cf1a4614cec059081", kill_on_drop: false }` [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.50 [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/ecs/component.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SUIT_SYMBOLS` [INFO] [stdout] --> src/ecs/component.rs:304:32 [INFO] [stdout] | [INFO] [stdout] 304 | use crate::constants::{SUIT_SYMBOLS, RANK_SYMBOLS}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `System` [INFO] [stdout] --> src/ecs/world.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ecs::system::{System, SystemManager}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/ecs/resources.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::entity::*` [INFO] [stdout] --> src/ecs/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use self::entity::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::component::*` [INFO] [stdout] --> src/ecs/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::component::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::system::*` [INFO] [stdout] --> src/ecs/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::system::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::world::*` [INFO] [stdout] --> src/ecs/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use self::world::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::resources::*` [INFO] [stdout] --> src/ecs/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use self::resources::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CARD_BORDER_RADIUS` [INFO] [stdout] --> src/game/card.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::constants::{CARD_WIDTH, CARD_HEIGHT, CARD_BORDER_RADIUS}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/game/setup.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{info, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/render/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CARD_HEIGHT`, `CARD_TEXT_COLOR`, and `CARD_WIDTH` [INFO] [stdout] --> src/render/renderer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | CARD_WIDTH, CARD_HEIGHT, CARD_FRONT_COLOR, CARD_BACK_COLOR, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 8 | CARD_BORDER_COLOR, CARD_TEXT_COLOR, CARD_RED_COLOR, CARD_BLACK_COLOR, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::error` [INFO] [stdout] --> src/render/renderer.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use log::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_sys::CanvasRenderingContext2d` [INFO] [stdout] --> src/render/render_context.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use web_sys::CanvasRenderingContext2d; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DRAG_OPACITY` [INFO] [stdout] --> src/input/systems.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::constants::{DRAG_OPACITY}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | self.context.set_fill_style(&JsValue::from_str("#076324")); // 緑色の背景(ソリティア風) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:198:26 [INFO] [stdout] | [INFO] [stdout] 198 | self.context.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/renderer.rs:231:26 [INFO] [stdout] | [INFO] [stdout] 231 | self.context.set_stroke_style(&JsValue::from_str("#FFFFFF33")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:278:22 [INFO] [stdout] | [INFO] [stdout] 278 | self.context.set_fill_style(&JsValue::from_str(fill_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/renderer.rs:282:22 [INFO] [stdout] | [INFO] [stdout] 282 | self.context.set_stroke_style(&JsValue::from_str(stroke_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:301:22 [INFO] [stdout] | [INFO] [stdout] 301 | self.context.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:366:13 [INFO] [stdout] | [INFO] [stdout] 366 | ctx.set_fill_style(&JsValue::from_str("#076324")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | ctx.set_fill_style(&JsValue::from_str(&sprite.color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | ctx.set_fill_style(&JsValue::from_str(if card.is_red() { "#CC0000" } else { "#000000" })); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/renderer.rs:434:13 [INFO] [stdout] | [INFO] [stdout] 434 | ctx.set_stroke_style(&JsValue::from_str("#FFCC00")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | ctx.set_fill_style(&JsValue::from_str("#FFFFFF")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | ctx.set_fill_style(&JsValue::from_str("#FFFFFF")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/card_renderer.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | ctx.set_stroke_style(&JsValue::from_str("#000000")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | ctx.set_fill_style(&JsValue::from_str("#0055AA")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/card_renderer.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | ctx.set_stroke_style(&JsValue::from_str("#FFFFFF")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | ctx.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/card_renderer.rs:293:13 [INFO] [stdout] | [INFO] [stdout] 293 | ctx.set_stroke_style(&JsValue::from_str("#FFCC00")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | ctx.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/input/systems.rs:445:33 [INFO] [stdout] | [INFO] [stdout] 445 | if let Some(mut transform) = world.get_component_mut::(entity_id) { [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/input/systems.rs:456:25 [INFO] [stdout] | [INFO] [stdout] 456 | if let Some(mut renderable) = world.get_component_mut::(entity_id) { [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/input/systems.rs:532:25 [INFO] [stdout] | [INFO] [stdout] 532 | if let Some(mut droppable) = world.get_component_mut::(entity_id) { [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/input/systems.rs:548:33 [INFO] [stdout] | [INFO] [stdout] 548 | if let Some(mut droppable) = world.get_component_mut::(drop_target) { [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/input/systems.rs:966:25 [INFO] [stdout] | [INFO] [stdout] 966 | if let Some(mut renderable) = world.get_component_mut::(entity_id) { [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/input/systems.rs:974:25 [INFO] [stdout] | [INFO] [stdout] 974 | if let Some(mut transform) = world.get_component_mut::(entity_id) { [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/input/systems.rs:1078:25 [INFO] [stdout] | [INFO] [stdout] 1078 | if let Some(mut transform) = world.get_component_mut::(entity_id) { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mark_entity_for_removal` and `entity_count` are never used [INFO] [stdout] --> src/ecs/entity.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl EntityManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn mark_entity_for_removal(&mut self, entity_id: EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn entity_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/ecs/component.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Component: 'static { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | fn name(&self) -> &'static str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `iter_mut`, and `remove_entity` are never used [INFO] [stdout] --> src/ecs/component.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ComponentStorage { [INFO] [stdout] | -------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn remove(&mut self, entity_id: &EntityId) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn iter_mut(&mut self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn remove_entity(&mut self, entity_id: &EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_component` and `remove_entity` are never used [INFO] [stdout] --> src/ecs/component.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl ComponentManager { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn remove_component(&mut self, entity_id: &EntityId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn remove_entity(&mut self, entity_id: &EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_entity_from_storage` is never used [INFO] [stdout] --> src/ecs/component.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn remove_entity_from_storage(storage: &mut dyn Any, entity_id: &EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `face_up` and `is_black` are never used [INFO] [stdout] --> src/ecs/component.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 277 | impl CardInfo { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn face_up(mut self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | pub fn is_black(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Text`, `Rectangle`, and `Custom` are never constructed [INFO] [stdout] --> src/ecs/component.rs:340:5 [INFO] [stdout] | [INFO] [stdout] 336 | pub enum RenderType { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 340 | Text { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 355 | Custom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RenderType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `rectangle` and `text` are never used [INFO] [stdout] --> src/ecs/component.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 358 | impl Renderable { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 369 | pub fn rectangle( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 391 | pub fn text( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `drag_offset`, `original_position`, `original_z_index`, `width`, `height`, and `drag_children` are never read [INFO] [stdout] --> src/ecs/component.rs:427:9 [INFO] [stdout] | [INFO] [stdout] 425 | pub struct Draggable { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 426 | pub is_dragging: bool, [INFO] [stdout] 427 | pub drag_offset: Vec2, // ドラッグ開始位置からのオフセット [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 428 | pub original_position: Vec2, // ドラッグ開始前の位置 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 429 | pub original_z_index: i32, // ドラッグ開始前のZ-index [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 430 | pub width: f64, // ドラッグ可能な領域の幅 [INFO] [stdout] | ^^^^^ [INFO] [stdout] 431 | pub height: f64, // ドラッグ可能な領域の高さ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 432 | pub drag_children: bool, // 子要素も一緒にドラッグするか [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Draggable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_size` and `with_drag_children` are never used [INFO] [stdout] --> src/ecs/component.rs:448:12 [INFO] [stdout] | [INFO] [stdout] 435 | impl Draggable { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 448 | pub fn with_size(mut self, width: f64, height: f64) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 454 | pub fn with_drag_children(mut self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_hovering` is never read [INFO] [stdout] --> src/ecs/component.rs:470:9 [INFO] [stdout] | [INFO] [stdout] 469 | pub struct Clickable { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 470 | pub is_hovering: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Clickable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Custom` is never constructed [INFO] [stdout] --> src/ecs/component.rs:490:5 [INFO] [stdout] | [INFO] [stdout] 478 | pub enum ClickHandlerType { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 490 | Custom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClickHandlerType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_cards` is never read [INFO] [stdout] --> src/ecs/component.rs:515:9 [INFO] [stdout] | [INFO] [stdout] 512 | pub struct StackContainer { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 515 | pub max_cards: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StackContainer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Hand` is never constructed [INFO] [stdout] --> src/ecs/component.rs:531:5 [INFO] [stdout] | [INFO] [stdout] 521 | pub enum StackType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 531 | Hand, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StackType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cards_from_index` and `remove_cards_from_index` are never used [INFO] [stdout] --> src/ecs/component.rs:579:12 [INFO] [stdout] | [INFO] [stdout] 534 | impl StackContainer { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 579 | pub fn cards_from_index(&self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 587 | pub fn remove_cards_from_index(&mut self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/ecs/component.rs:606:9 [INFO] [stdout] | [INFO] [stdout] 605 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 606 | pub x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 607 | pub y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `zero` are never used [INFO] [stdout] --> src/ecs/component.rs:611:12 [INFO] [stdout] | [INFO] [stdout] 610 | impl Position { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 611 | pub fn new(x: f64, y: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 615 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, `color`, `image_key`, and `visible` are never read [INFO] [stdout] --> src/ecs/component.rs:629:9 [INFO] [stdout] | [INFO] [stdout] 628 | pub struct Sprite { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 629 | pub width: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 630 | pub height: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 631 | pub color: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 632 | pub image_key: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 633 | pub visible: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sprite` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_image` are never used [INFO] [stdout] --> src/ecs/component.rs:637:12 [INFO] [stdout] | [INFO] [stdout] 636 | impl Sprite { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 637 | pub fn new(width: f64, height: f64, color: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 647 | pub fn with_image(mut self, image_key: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `drop_types` is never read [INFO] [stdout] --> src/ecs/component.rs:665:9 [INFO] [stdout] | [INFO] [stdout] 662 | pub struct Droppable { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 665 | pub drop_types: Vec, // 受け入れ可能なドラッグタイプ(将来の拡張用) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Droppable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_drop_types`, and `with_active` are never used [INFO] [stdout] --> src/ecs/component.rs:670:12 [INFO] [stdout] | [INFO] [stdout] 669 | impl Droppable { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 670 | pub fn new(width: f64, height: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | pub fn with_drop_types(mut self, types: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 684 | pub fn with_active(mut self, active: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PreUpdate` and `PostUpdate` are never constructed [INFO] [stdout] --> src/ecs/system.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum SystemPhase { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 10 | Input, // 入力処理 [INFO] [stdout] 11 | PreUpdate, // メイン更新前 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | Update, // メイン更新 [INFO] [stdout] 13 | PostUpdate, // メイン更新後 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SystemPhase` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/ecs/system.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub trait System { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 46 | fn name(&self) -> &'static str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run_systems_for_phase` and `clear` are never used [INFO] [stdout] --> src/ecs/system.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl SystemManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn run_systems_for_phase( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_entity`, `entity_count`, and `remove_component` are never used [INFO] [stdout] --> src/ecs/world.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl World { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn remove_entity(&mut self, entity_id: EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn entity_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn remove_component(&mut self, entity_id: EntityId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `has`, and `get_or_insert_with` are never used [INFO] [stdout] --> src/ecs/resources.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ResourceManager { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn remove(&mut self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn has(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn get_or_insert_with(&mut self, f: F) -> &mut T [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `touch_position` and `is_touch_active` are never read [INFO] [stdout] --> src/ecs/resources.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct InputState { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 86 | pub touch_position: Vec2, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 87 | pub is_touch_active: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_touch`, `is_key_pressed`, and `is_mouse_in_rect` are never used [INFO] [stdout] --> src/ecs/resources.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl InputState { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn update_touch(&mut self, x: f64, y: f64, is_active: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn is_key_pressed(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn is_mouse_in_rect(&self, x: f64, y: f64, width: f64, height: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_fps` is never used [INFO] [stdout] --> src/ecs/resources.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl TimeInfo { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_fps(&self) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Playing`, `Paused`, and `GameOver` are never constructed [INFO] [stdout] --> src/ecs/resources.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 211 | pub enum GameState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 215 | Playing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 216 | /// 一時停止中 [INFO] [stdout] 217 | Paused, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 218 | /// ゲームオーバー [INFO] [stdout] 219 | GameOver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_connected`, `player_id`, `other_players`, `connection_error`, and `last_message_time` are never read [INFO] [stdout] --> src/ecs/resources.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 225 | pub struct NetworkState { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 226 | pub is_connected: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 227 | pub player_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 228 | pub other_players: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 229 | pub connection_error: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 230 | pub last_message_time: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_connected`, `set_player_id`, `add_player`, `remove_player`, `set_error`, and `clear_error` are never used [INFO] [stdout] --> src/ecs/resources.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 233 | impl NetworkState { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn set_connected(&mut self, connected: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 255 | pub fn set_player_id(&mut self, id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn add_player(&mut self, id: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn remove_player(&mut self, id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn set_error(&mut self, error: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn clear_error(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `canvas` and `context` are never read [INFO] [stdout] --> src/game/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 32 | // キャンバス要素 [INFO] [stdout] 33 | canvas: HtmlCanvasElement, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | context: CanvasRenderingContext2d, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_stack_card` is never used [INFO] [stdout] --> src/game/card.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn can_stack_card(world: &World, source_card_id: EntityId, target_card_id: EntityId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_stack_on_foundation` is never used [INFO] [stdout] --> src/game/card.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn can_stack_on_foundation(world: &World, card_id: EntityId, foundation_suit: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_stack_on_existing_foundation` is never used [INFO] [stdout] --> src/game/card.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn can_stack_on_existing_foundation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_card_draggable` is never used [INFO] [stdout] --> src/game/card.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn set_card_draggable(world: &mut World, card_id: EntityId, draggable: bool) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_move_to_foundation` is never used [INFO] [stdout] --> src/game/solitaire.rs:372:8 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn can_move_to_foundation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_game_state` is never used [INFO] [stdout] --> src/game/state.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn change_game_state(resources: &mut ResourceManager, new_state: GameState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_game` is never used [INFO] [stdout] --> src/game/state.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn start_game(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pause_game` is never used [INFO] [stdout] --> src/game/state.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn pause_game(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resume_game` is never used [INFO] [stdout] --> src/game/state.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn resume_game(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `game_over` is never used [INFO] [stdout] --> src/game/state.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn game_over(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_to_title` is never used [INFO] [stdout] --> src/game/state.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn return_to_title(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameRenderer` is never constructed [INFO] [stdout] --> src/render/renderer.rs:311:12 [INFO] [stdout] | [INFO] [stdout] 311 | pub struct GameRenderer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/render/renderer.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 315 | impl GameRenderer { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 316 | /// 新しいレンダラーを作成 [INFO] [stdout] 317 | pub fn new(canvas_id: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn render(&self, world: &World) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | fn render_background(&self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | fn render_sprite( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 390 | fn render_card_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 428 | fn render_drag_feedback( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | fn render_ui(&self, _world: &World) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 460 | pub fn context(&self) -> &RenderContext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleTextMetrics` is never constructed [INFO] [stdout] --> src/render/card_renderer.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct SimpleTextMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `width` are never used [INFO] [stdout] --> src/render/card_renderer.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl SimpleTextMetrics { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 14 | fn new(width: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn width(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CardRenderer` is never constructed [INFO] [stdout] --> src/render/card_renderer.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct CardRenderer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/render/card_renderer.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl CardRenderer { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 31 | /// 新しいカードレンダラーを作成 [INFO] [stdout] 32 | pub fn new(context: RenderContext) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn render_card(&self, ctx: &CanvasRenderingContext2d, transform: &Transform, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn draw_card_shape(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn draw_card_back(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn draw_card_face(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn draw_center_suit(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn draw_suit_pattern(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, value: u8, suit_char: &str) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn draw_face_card(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn highlight_card(&self, ctx: &CanvasRenderingContext2d, transform: &Transform) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | pub fn draw_moving_card(&self, ctx: &CanvasRenderingContext2d, transform: &Transform, card: &CardInfo, progress: f64) -> Result<(), J... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn context(&self) -> &RenderContext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | pub fn card_size(&self) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | fn draw_card_number(&self, card: &CardInfo, x: f64, y: f64) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `measure_text` is never used [INFO] [stdout] --> src/render/card_renderer.rs:347:4 [INFO] [stdout] | [INFO] [stdout] 347 | fn measure_text(_ctx: &CanvasRenderingContext2d, text: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RenderContext` is never constructed [INFO] [stdout] --> src/render/render_context.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RenderContext { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `clear`, `width`, `height`, and `context` are never used [INFO] [stdout] --> src/render/render_context.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl RenderContext { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | /// 新しいレンダリングコンテキストを作成 [INFO] [stdout] 15 | pub fn new(canvas_id: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn clear(&self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn width(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn height(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn context(&self) -> &web_sys::CanvasRenderingContext2d { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `drag_start_position` and `drag_started` are never read [INFO] [stdout] --> src/input/systems.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct DragSystem { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 165 | drag_start_position: Vec2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | drag_started: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/input/systems.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 179 | impl DragSystem { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 193 | fn find_draggable_entity(&self, world: &World, position: Vec2) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | fn start_drag(&mut self, world: &mut World, entity_id: EntityId, mouse_position: Vec2) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 381 | fn update_drag(&mut self, world: &mut World, entity_id: EntityId, mouse_position: Vec2) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 564 | fn process_drop(&mut self, world: &mut World, dragged_entity: EntityId, drop_target: EntityId) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 711 | fn process_multi_card_drop( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 835 | fn get_dragged_cards(&self, world: &World, main_card_id: EntityId) -> Result, JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 857 | fn reset_card_positions(&self, world: &mut World, cards: &[EntityId]) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetworkManager` is never constructed [INFO] [stdout] --> src/network.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct NetworkManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `connect`, `send_message`, `disconnect`, `is_connected`, and `set_message_handler` are never used [INFO] [stdout] --> src/network.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl NetworkManager { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 31 | /// 新しいネットワークマネージャーを作成 [INFO] [stdout] 32 | pub fn new(url: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn connect(&mut self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn send_message(&self, message: &str) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn disconnect(&mut self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn is_connected(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn set_message_handler(&mut self, handler: Box) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/network.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn init() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_time` is never used [INFO] [stdout] --> src/utils.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn get_current_time() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance` is never used [INFO] [stdout] --> src/utils.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn distance(x1: f64, y1: f64, x2: f64, y2: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clamp` is never used [INFO] [stdout] --> src/utils.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn clamp(value: T, min: T, max: T) -> T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/utils.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Vec2 { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn length(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn normalize(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn distance(&self, other: &Self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn dot(&self, other: &Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn scale(&self, scalar: f64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn add(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn subtract(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FRAME_TIME_MS` is never used [INFO] [stdout] --> src/constants.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const FRAME_TIME_MS: f64 = 1000.0 / TARGET_FPS as f64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CARD_SPACING_Y` is never used [INFO] [stdout] --> src/constants.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const CARD_SPACING_Y: f64 = 30.0; // カード間の縦方向の間隔 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CARD_TEXT_COLOR` is never used [INFO] [stdout] --> src/constants.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | pub const CARD_TEXT_COLOR: &str = "#2C3E50"; // カードの文字色 [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAG_OPACITY` is never used [INFO] [stdout] --> src/constants.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | pub const DRAG_OPACITY: f64 = 0.7; // ドラッグ中のカードの透明度 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ANIMATION_DURATION` is never used [INFO] [stdout] --> src/constants.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | pub const ANIMATION_DURATION: f64 = 300.0; // アニメーション時間(ミリ秒) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WS_SERVER_URL` is never used [INFO] [stdout] --> src/constants.rs:68:11 [INFO] [stdout] | [INFO] [stdout] 68 | pub const WS_SERVER_URL: &str = "ws://162.43.8.148:8101"; // WebSocketサーバーのURL(IPアドレス:ポート8101) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAG_THRESHOLD` is never used [INFO] [stdout] --> src/constants.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | pub const DRAG_THRESHOLD: f64 = 5.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_HEART` is never used [INFO] [stdout] --> src/constants.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | pub const SUIT_HEART: u8 = 0; // ハート [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_DIAMOND` is never used [INFO] [stdout] --> src/constants.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const SUIT_DIAMOND: u8 = 1; // ダイヤ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_CLUB` is never used [INFO] [stdout] --> src/constants.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 88 | pub const SUIT_CLUB: u8 = 2; // クラブ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_SPADE` is never used [INFO] [stdout] --> src/constants.rs:89:11 [INFO] [stdout] | [INFO] [stdout] 89 | pub const SUIT_SPADE: u8 = 3; // スペード [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wasm-bindgen-test v0.3.50 [INFO] [stderr] Compiling ecs_wasm_game4 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/ecs/component.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SUIT_SYMBOLS` [INFO] [stdout] --> src/ecs/component.rs:304:32 [INFO] [stdout] | [INFO] [stdout] 304 | use crate::constants::{SUIT_SYMBOLS, RANK_SYMBOLS}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `System` [INFO] [stdout] --> src/ecs/world.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::ecs::system::{System, SystemManager}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/ecs/resources.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::entity::*` [INFO] [stdout] --> src/ecs/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use self::entity::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::component::*` [INFO] [stdout] --> src/ecs/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use self::component::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::system::*` [INFO] [stdout] --> src/ecs/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use self::system::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::world::*` [INFO] [stdout] --> src/ecs/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use self::world::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::resources::*` [INFO] [stdout] --> src/ecs/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use self::resources::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CARD_BORDER_RADIUS` [INFO] [stdout] --> src/game/card.rs:5:49 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::constants::{CARD_WIDTH, CARD_HEIGHT, CARD_BORDER_RADIUS}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/game/setup.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | use log::{info, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/render/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CARD_HEIGHT`, `CARD_TEXT_COLOR`, and `CARD_WIDTH` [INFO] [stdout] --> src/render/renderer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | CARD_WIDTH, CARD_HEIGHT, CARD_FRONT_COLOR, CARD_BACK_COLOR, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 8 | CARD_BORDER_COLOR, CARD_TEXT_COLOR, CARD_RED_COLOR, CARD_BLACK_COLOR, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::error` [INFO] [stdout] --> src/render/renderer.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use log::error; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_sys::CanvasRenderingContext2d` [INFO] [stdout] --> src/render/render_context.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use web_sys::CanvasRenderingContext2d; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DRAG_OPACITY` [INFO] [stdout] --> src/input/systems.rs:9:24 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::constants::{DRAG_OPACITY}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:63:22 [INFO] [stdout] | [INFO] [stdout] 63 | self.context.set_fill_style(&JsValue::from_str("#076324")); // 緑色の背景(ソリティア風) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:198:26 [INFO] [stdout] | [INFO] [stdout] 198 | self.context.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/renderer.rs:231:26 [INFO] [stdout] | [INFO] [stdout] 231 | self.context.set_stroke_style(&JsValue::from_str("#FFFFFF33")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:278:22 [INFO] [stdout] | [INFO] [stdout] 278 | self.context.set_fill_style(&JsValue::from_str(fill_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/renderer.rs:282:22 [INFO] [stdout] | [INFO] [stdout] 282 | self.context.set_stroke_style(&JsValue::from_str(stroke_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:301:22 [INFO] [stdout] | [INFO] [stdout] 301 | self.context.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:366:13 [INFO] [stdout] | [INFO] [stdout] 366 | ctx.set_fill_style(&JsValue::from_str("#076324")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:383:13 [INFO] [stdout] | [INFO] [stdout] 383 | ctx.set_fill_style(&JsValue::from_str(&sprite.color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:406:13 [INFO] [stdout] | [INFO] [stdout] 406 | ctx.set_fill_style(&JsValue::from_str(if card.is_red() { "#CC0000" } else { "#000000" })); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/renderer.rs:434:13 [INFO] [stdout] | [INFO] [stdout] 434 | ctx.set_stroke_style(&JsValue::from_str("#FFCC00")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/renderer.rs:450:13 [INFO] [stdout] | [INFO] [stdout] 450 | ctx.set_fill_style(&JsValue::from_str("#FFFFFF")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | ctx.set_fill_style(&JsValue::from_str("#FFFFFF")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/card_renderer.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | ctx.set_stroke_style(&JsValue::from_str("#000000")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | ctx.set_fill_style(&JsValue::from_str("#0055AA")); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/card_renderer.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | ctx.set_stroke_style(&JsValue::from_str("#FFFFFF")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | ctx.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_stroke_style` [INFO] [stdout] --> src/render/card_renderer.rs:293:13 [INFO] [stdout] | [INFO] [stdout] 293 | ctx.set_stroke_style(&JsValue::from_str("#FFCC00")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `web_sys::CanvasRenderingContext2d::set_fill_style` [INFO] [stdout] --> src/render/card_renderer.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | ctx.set_fill_style(&JsValue::from_str(color)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/input/systems.rs:445:33 [INFO] [stdout] | [INFO] [stdout] 445 | if let Some(mut transform) = world.get_component_mut::(entity_id) { [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/input/systems.rs:456:25 [INFO] [stdout] | [INFO] [stdout] 456 | if let Some(mut renderable) = world.get_component_mut::(entity_id) { [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/input/systems.rs:532:25 [INFO] [stdout] | [INFO] [stdout] 532 | if let Some(mut droppable) = world.get_component_mut::(entity_id) { [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/input/systems.rs:548:33 [INFO] [stdout] | [INFO] [stdout] 548 | if let Some(mut droppable) = world.get_component_mut::(drop_target) { [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/input/systems.rs:966:25 [INFO] [stdout] | [INFO] [stdout] 966 | if let Some(mut renderable) = world.get_component_mut::(entity_id) { [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/input/systems.rs:974:25 [INFO] [stdout] | [INFO] [stdout] 974 | if let Some(mut transform) = world.get_component_mut::(entity_id) { [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/input/systems.rs:1078:25 [INFO] [stdout] | [INFO] [stdout] 1078 | if let Some(mut transform) = world.get_component_mut::(entity_id) { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mark_entity_for_removal` and `entity_count` are never used [INFO] [stdout] --> src/ecs/entity.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl EntityManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn mark_entity_for_removal(&mut self, entity_id: EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn entity_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/ecs/component.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Component: 'static { [INFO] [stdout] | --------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | fn name(&self) -> &'static str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `iter_mut`, and `remove_entity` are never used [INFO] [stdout] --> src/ecs/component.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ComponentStorage { [INFO] [stdout] | -------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn remove(&mut self, entity_id: &EntityId) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn iter_mut(&mut self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn remove_entity(&mut self, entity_id: &EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_component` and `remove_entity` are never used [INFO] [stdout] --> src/ecs/component.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl ComponentManager { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn remove_component(&mut self, entity_id: &EntityId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub fn remove_entity(&mut self, entity_id: &EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_entity_from_storage` is never used [INFO] [stdout] --> src/ecs/component.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn remove_entity_from_storage(storage: &mut dyn Any, entity_id: &EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `face_up` and `is_black` are never used [INFO] [stdout] --> src/ecs/component.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 277 | impl CardInfo { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn face_up(mut self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | pub fn is_black(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Text`, `Rectangle`, and `Custom` are never constructed [INFO] [stdout] --> src/ecs/component.rs:340:5 [INFO] [stdout] | [INFO] [stdout] 336 | pub enum RenderType { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 340 | Text { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 348 | Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 355 | Custom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RenderType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `rectangle` and `text` are never used [INFO] [stdout] --> src/ecs/component.rs:369:12 [INFO] [stdout] | [INFO] [stdout] 358 | impl Renderable { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 369 | pub fn rectangle( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 391 | pub fn text( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `drag_offset`, `original_position`, `original_z_index`, `width`, `height`, and `drag_children` are never read [INFO] [stdout] --> src/ecs/component.rs:427:9 [INFO] [stdout] | [INFO] [stdout] 425 | pub struct Draggable { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 426 | pub is_dragging: bool, [INFO] [stdout] 427 | pub drag_offset: Vec2, // ドラッグ開始位置からのオフセット [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 428 | pub original_position: Vec2, // ドラッグ開始前の位置 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 429 | pub original_z_index: i32, // ドラッグ開始前のZ-index [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 430 | pub width: f64, // ドラッグ可能な領域の幅 [INFO] [stdout] | ^^^^^ [INFO] [stdout] 431 | pub height: f64, // ドラッグ可能な領域の高さ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 432 | pub drag_children: bool, // 子要素も一緒にドラッグするか [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Draggable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_size` and `with_drag_children` are never used [INFO] [stdout] --> src/ecs/component.rs:448:12 [INFO] [stdout] | [INFO] [stdout] 435 | impl Draggable { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 448 | pub fn with_size(mut self, width: f64, height: f64) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 454 | pub fn with_drag_children(mut self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_hovering` is never read [INFO] [stdout] --> src/ecs/component.rs:470:9 [INFO] [stdout] | [INFO] [stdout] 469 | pub struct Clickable { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 470 | pub is_hovering: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Clickable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Custom` is never constructed [INFO] [stdout] --> src/ecs/component.rs:490:5 [INFO] [stdout] | [INFO] [stdout] 478 | pub enum ClickHandlerType { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 490 | Custom, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ClickHandlerType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_cards` is never read [INFO] [stdout] --> src/ecs/component.rs:515:9 [INFO] [stdout] | [INFO] [stdout] 512 | pub struct StackContainer { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 515 | pub max_cards: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StackContainer` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Hand` is never constructed [INFO] [stdout] --> src/ecs/component.rs:531:5 [INFO] [stdout] | [INFO] [stdout] 521 | pub enum StackType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 531 | Hand, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StackType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cards_from_index` and `remove_cards_from_index` are never used [INFO] [stdout] --> src/ecs/component.rs:579:12 [INFO] [stdout] | [INFO] [stdout] 534 | impl StackContainer { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 579 | pub fn cards_from_index(&self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 587 | pub fn remove_cards_from_index(&mut self, index: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/ecs/component.rs:606:9 [INFO] [stdout] | [INFO] [stdout] 605 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 606 | pub x: f64, [INFO] [stdout] | ^ [INFO] [stdout] 607 | pub y: f64, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `zero` are never used [INFO] [stdout] --> src/ecs/component.rs:611:12 [INFO] [stdout] | [INFO] [stdout] 610 | impl Position { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 611 | pub fn new(x: f64, y: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 615 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width`, `height`, `color`, `image_key`, and `visible` are never read [INFO] [stdout] --> src/ecs/component.rs:629:9 [INFO] [stdout] | [INFO] [stdout] 628 | pub struct Sprite { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 629 | pub width: f64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 630 | pub height: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 631 | pub color: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 632 | pub image_key: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 633 | pub visible: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Sprite` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_image` are never used [INFO] [stdout] --> src/ecs/component.rs:637:12 [INFO] [stdout] | [INFO] [stdout] 636 | impl Sprite { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 637 | pub fn new(width: f64, height: f64, color: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 647 | pub fn with_image(mut self, image_key: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `drop_types` is never read [INFO] [stdout] --> src/ecs/component.rs:665:9 [INFO] [stdout] | [INFO] [stdout] 662 | pub struct Droppable { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 665 | pub drop_types: Vec, // 受け入れ可能なドラッグタイプ(将来の拡張用) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Droppable` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_drop_types`, and `with_active` are never used [INFO] [stdout] --> src/ecs/component.rs:670:12 [INFO] [stdout] | [INFO] [stdout] 669 | impl Droppable { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 670 | pub fn new(width: f64, height: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 679 | pub fn with_drop_types(mut self, types: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 684 | pub fn with_active(mut self, active: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PreUpdate` and `PostUpdate` are never constructed [INFO] [stdout] --> src/ecs/system.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum SystemPhase { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 10 | Input, // 入力処理 [INFO] [stdout] 11 | PreUpdate, // メイン更新前 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | Update, // メイン更新 [INFO] [stdout] 13 | PostUpdate, // メイン更新後 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SystemPhase` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/ecs/system.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 43 | pub trait System { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 46 | fn name(&self) -> &'static str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `run_systems_for_phase` and `clear` are never used [INFO] [stdout] --> src/ecs/system.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl SystemManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn run_systems_for_phase( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_entity`, `entity_count`, and `remove_component` are never used [INFO] [stdout] --> src/ecs/world.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl World { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn remove_entity(&mut self, entity_id: EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn entity_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn remove_component(&mut self, entity_id: EntityId) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `has`, and `get_or_insert_with` are never used [INFO] [stdout] --> src/ecs/resources.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ResourceManager { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn remove(&mut self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn has(&self) -> bool { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn get_or_insert_with(&mut self, f: F) -> &mut T [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `touch_position` and `is_touch_active` are never read [INFO] [stdout] --> src/ecs/resources.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct InputState { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 86 | pub touch_position: Vec2, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 87 | pub is_touch_active: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_touch`, `is_key_pressed`, and `is_mouse_in_rect` are never used [INFO] [stdout] --> src/ecs/resources.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 90 | impl InputState { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn update_touch(&mut self, x: f64, y: f64, is_active: bool) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn is_key_pressed(&self, key: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn is_mouse_in_rect(&self, x: f64, y: f64, width: f64, height: f64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_fps` is never used [INFO] [stdout] --> src/ecs/resources.rs:200:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl TimeInfo { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 200 | pub fn get_fps(&self) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Playing`, `Paused`, and `GameOver` are never constructed [INFO] [stdout] --> src/ecs/resources.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 211 | pub enum GameState { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 215 | Playing, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 216 | /// 一時停止中 [INFO] [stdout] 217 | Paused, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 218 | /// ゲームオーバー [INFO] [stdout] 219 | GameOver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_connected`, `player_id`, `other_players`, `connection_error`, and `last_message_time` are never read [INFO] [stdout] --> src/ecs/resources.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 225 | pub struct NetworkState { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 226 | pub is_connected: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 227 | pub player_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 228 | pub other_players: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 229 | pub connection_error: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 230 | pub last_message_time: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_connected`, `set_player_id`, `add_player`, `remove_player`, `set_error`, and `clear_error` are never used [INFO] [stdout] --> src/ecs/resources.rs:246:12 [INFO] [stdout] | [INFO] [stdout] 233 | impl NetworkState { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn set_connected(&mut self, connected: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 255 | pub fn set_player_id(&mut self, id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 260 | pub fn add_player(&mut self, id: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn remove_player(&mut self, id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn set_error(&mut self, error: &str) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 277 | pub fn clear_error(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `canvas` and `context` are never read [INFO] [stdout] --> src/game/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 32 | // キャンバス要素 [INFO] [stdout] 33 | canvas: HtmlCanvasElement, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | context: CanvasRenderingContext2d, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_stack_card` is never used [INFO] [stdout] --> src/game/card.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn can_stack_card(world: &World, source_card_id: EntityId, target_card_id: EntityId) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_stack_on_foundation` is never used [INFO] [stdout] --> src/game/card.rs:95:8 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn can_stack_on_foundation(world: &World, card_id: EntityId, foundation_suit: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_stack_on_existing_foundation` is never used [INFO] [stdout] --> src/game/card.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn can_stack_on_existing_foundation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_card_draggable` is never used [INFO] [stdout] --> src/game/card.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn set_card_draggable(world: &mut World, card_id: EntityId, draggable: bool) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_move_to_foundation` is never used [INFO] [stdout] --> src/game/solitaire.rs:372:8 [INFO] [stdout] | [INFO] [stdout] 372 | pub fn can_move_to_foundation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_game_state` is never used [INFO] [stdout] --> src/game/state.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn change_game_state(resources: &mut ResourceManager, new_state: GameState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `start_game` is never used [INFO] [stdout] --> src/game/state.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn start_game(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pause_game` is never used [INFO] [stdout] --> src/game/state.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 128 | pub fn pause_game(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resume_game` is never used [INFO] [stdout] --> src/game/state.rs:134:8 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn resume_game(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `game_over` is never used [INFO] [stdout] --> src/game/state.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn game_over(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_to_title` is never used [INFO] [stdout] --> src/game/state.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn return_to_title(resources: &mut ResourceManager) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameRenderer` is never constructed [INFO] [stdout] --> src/render/renderer.rs:311:12 [INFO] [stdout] | [INFO] [stdout] 311 | pub struct GameRenderer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/render/renderer.rs:317:12 [INFO] [stdout] | [INFO] [stdout] 315 | impl GameRenderer { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 316 | /// 新しいレンダラーを作成 [INFO] [stdout] 317 | pub fn new(canvas_id: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn render(&self, world: &World) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | fn render_background(&self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | fn render_sprite( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 390 | fn render_card_info( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 428 | fn render_drag_feedback( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 444 | fn render_ui(&self, _world: &World) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 460 | pub fn context(&self) -> &RenderContext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleTextMetrics` is never constructed [INFO] [stdout] --> src/render/card_renderer.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct SimpleTextMetrics { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `width` are never used [INFO] [stdout] --> src/render/card_renderer.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl SimpleTextMetrics { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 14 | fn new(width: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn width(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CardRenderer` is never constructed [INFO] [stdout] --> src/render/card_renderer.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct CardRenderer { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/render/card_renderer.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl CardRenderer { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 31 | /// 新しいカードレンダラーを作成 [INFO] [stdout] 32 | pub fn new(context: RenderContext) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn render_card(&self, ctx: &CanvasRenderingContext2d, transform: &Transform, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn draw_card_shape(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | fn draw_card_back(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | fn draw_card_face(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | fn draw_center_suit(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | fn draw_suit_pattern(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, value: u8, suit_char: &str) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | fn draw_face_card(&self, ctx: &CanvasRenderingContext2d, x: f64, y: f64, card: &CardInfo) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 292 | pub fn highlight_card(&self, ctx: &CanvasRenderingContext2d, transform: &Transform) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 306 | pub fn draw_moving_card(&self, ctx: &CanvasRenderingContext2d, transform: &Transform, card: &CardInfo, progress: f64) -> Result<(), J... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn context(&self) -> &RenderContext { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | pub fn card_size(&self) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | fn draw_card_number(&self, card: &CardInfo, x: f64, y: f64) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `measure_text` is never used [INFO] [stdout] --> src/render/card_renderer.rs:347:4 [INFO] [stdout] | [INFO] [stdout] 347 | fn measure_text(_ctx: &CanvasRenderingContext2d, text: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RenderContext` is never constructed [INFO] [stdout] --> src/render/render_context.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RenderContext { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `clear`, `width`, `height`, and `context` are never used [INFO] [stdout] --> src/render/render_context.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl RenderContext { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | /// 新しいレンダリングコンテキストを作成 [INFO] [stdout] 15 | pub fn new(canvas_id: &str) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn clear(&self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn width(&self) -> f64 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn height(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn context(&self) -> &web_sys::CanvasRenderingContext2d { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `drag_start_position` and `drag_started` are never read [INFO] [stdout] --> src/input/systems.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 160 | pub struct DragSystem { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 165 | drag_start_position: Vec2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 168 | drag_started: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/input/systems.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 179 | impl DragSystem { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 193 | fn find_draggable_entity(&self, world: &World, position: Vec2) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | fn start_drag(&mut self, world: &mut World, entity_id: EntityId, mouse_position: Vec2) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 381 | fn update_drag(&mut self, world: &mut World, entity_id: EntityId, mouse_position: Vec2) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 564 | fn process_drop(&mut self, world: &mut World, dragged_entity: EntityId, drop_target: EntityId) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 711 | fn process_multi_card_drop( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 835 | fn get_dragged_cards(&self, world: &World, main_card_id: EntityId) -> Result, JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 857 | fn reset_card_positions(&self, world: &mut World, cards: &[EntityId]) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NetworkManager` is never constructed [INFO] [stdout] --> src/network.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct NetworkManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `connect`, `send_message`, `disconnect`, `is_connected`, and `set_message_handler` are never used [INFO] [stdout] --> src/network.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl NetworkManager { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 31 | /// 新しいネットワークマネージャーを作成 [INFO] [stdout] 32 | pub fn new(url: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn connect(&mut self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn send_message(&self, message: &str) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn disconnect(&mut self) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn is_connected(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn set_message_handler(&mut self, handler: Box) -> Result<(), JsValue> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/network.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | pub fn init() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_time` is never used [INFO] [stdout] --> src/utils.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn get_current_time() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `distance` is never used [INFO] [stdout] --> src/utils.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn distance(x1: f64, y1: f64, x2: f64, y2: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clamp` is never used [INFO] [stdout] --> src/utils.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn clamp(value: T, min: T, max: T) -> T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/utils.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Vec2 { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn length(&self) -> f64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn normalize(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn distance(&self, other: &Self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn dot(&self, other: &Self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn scale(&self, scalar: f64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn add(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn subtract(&self, other: &Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FRAME_TIME_MS` is never used [INFO] [stdout] --> src/constants.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const FRAME_TIME_MS: f64 = 1000.0 / TARGET_FPS as f64; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CARD_SPACING_Y` is never used [INFO] [stdout] --> src/constants.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const CARD_SPACING_Y: f64 = 30.0; // カード間の縦方向の間隔 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CARD_TEXT_COLOR` is never used [INFO] [stdout] --> src/constants.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | pub const CARD_TEXT_COLOR: &str = "#2C3E50"; // カードの文字色 [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAG_OPACITY` is never used [INFO] [stdout] --> src/constants.rs:60:11 [INFO] [stdout] | [INFO] [stdout] 60 | pub const DRAG_OPACITY: f64 = 0.7; // ドラッグ中のカードの透明度 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ANIMATION_DURATION` is never used [INFO] [stdout] --> src/constants.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | pub const ANIMATION_DURATION: f64 = 300.0; // アニメーション時間(ミリ秒) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `WS_SERVER_URL` is never used [INFO] [stdout] --> src/constants.rs:68:11 [INFO] [stdout] | [INFO] [stdout] 68 | pub const WS_SERVER_URL: &str = "ws://162.43.8.148:8101"; // WebSocketサーバーのURL(IPアドレス:ポート8101) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DRAG_THRESHOLD` is never used [INFO] [stdout] --> src/constants.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | pub const DRAG_THRESHOLD: f64 = 5.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_HEART` is never used [INFO] [stdout] --> src/constants.rs:86:11 [INFO] [stdout] | [INFO] [stdout] 86 | pub const SUIT_HEART: u8 = 0; // ハート [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_DIAMOND` is never used [INFO] [stdout] --> src/constants.rs:87:11 [INFO] [stdout] | [INFO] [stdout] 87 | pub const SUIT_DIAMOND: u8 = 1; // ダイヤ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_CLUB` is never used [INFO] [stdout] --> src/constants.rs:88:11 [INFO] [stdout] | [INFO] [stdout] 88 | pub const SUIT_CLUB: u8 = 2; // クラブ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SUIT_SPADE` is never used [INFO] [stdout] --> src/constants.rs:89:11 [INFO] [stdout] | [INFO] [stdout] 89 | pub const SUIT_SPADE: u8 = 3; // スペード [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.31s [INFO] running `Command { std: "docker" "inspect" "a943287af7868761e7bfc97532091ec431a09cb0f3ddcd4cf1a4614cec059081", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a943287af7868761e7bfc97532091ec431a09cb0f3ddcd4cf1a4614cec059081", kill_on_drop: false }` [INFO] [stdout] a943287af7868761e7bfc97532091ec431a09cb0f3ddcd4cf1a4614cec059081