[INFO] cloning repository https://github.com/S0nrEir/rust_tetris [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/S0nrEir/rust_tetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FS0nrEir%2Frust_tetris", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FS0nrEir%2Frust_tetris'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fc213a34f4850d170f5c3bae21d5df003ea415ed [INFO] checking S0nrEir/rust_tetris against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FS0nrEir%2Frust_tetris" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/S0nrEir/rust_tetris on toolchain cd420d8bda33494ba3cc45048d5f067484a32b94 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/S0nrEir/rust_tetris [INFO] finished tweaking git repo https://github.com/S0nrEir/rust_tetris [INFO] tweaked toml for git repo https://github.com/S0nrEir/rust_tetris written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/S0nrEir/rust_tetris 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" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dc19f5deb6926420aa6af00efad835a4220e63618cf2f95121d064e9fe755715 [INFO] running `Command { std: "docker" "start" "-a" "dc19f5deb6926420aa6af00efad835a4220e63618cf2f95121d064e9fe755715", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc19f5deb6926420aa6af00efad835a4220e63618cf2f95121d064e9fe755715", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc19f5deb6926420aa6af00efad835a4220e63618cf2f95121d064e9fe755715", kill_on_drop: false }` [INFO] [stdout] dc19f5deb6926420aa6af00efad835a4220e63618cf2f95121d064e9fe755715 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 593049a8e15418a2fd5f5e49a4f934d9b218cdd30f43c12d7b44fc669131e5b0 [INFO] running `Command { std: "docker" "start" "-a" "593049a8e15418a2fd5f5e49a4f934d9b218cdd30f43c12d7b44fc669131e5b0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.162 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling xml-rs v0.8.23 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Checking libloading v0.8.5 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking ttf-parser v0.25.0 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling rustix v0.38.40 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling camino v1.1.9 [INFO] [stderr] Checking scoped-tls v1.0.1 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Checking flate2 v1.0.34 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking fdeflate v0.3.6 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Checking allocator-api2 v0.2.20 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling cfg_aliases v0.2.1 [INFO] [stderr] Compiling pulldown-cmark v0.9.6 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Checking bit-set v0.5.3 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking png v0.17.14 [INFO] [stderr] Checking codespan-reporting v0.11.1 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling cc v1.1.37 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Checking gpu-descriptor-types v0.1.2 [INFO] [stderr] Checking gpu-alloc-types v0.2.0 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking xcursor v0.3.8 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Checking strict-num v0.1.1 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling unicase v2.8.0 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling zstd-safe v5.0.2+zstd.1.5.2 [INFO] [stderr] Checking unicode-xid v0.2.6 [INFO] [stderr] Checking euclid v0.22.11 [INFO] [stderr] Checking spirv v0.2.0+1.5.4 [INFO] [stderr] Checking hexf-parse v0.2.1 [INFO] [stderr] Compiling hashbrown v0.15.1 [INFO] [stderr] Checking raw-window-handle v0.5.2 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Checking gpu-alloc v0.5.4 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Checking wgpu-types v0.16.1 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking nix v0.25.1 [INFO] [stderr] Checking owned_ttf_parser v0.25.0 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking lyon_geom v1.0.6 [INFO] [stderr] Checking ab_glyph v0.2.29 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking lyon_path v1.0.6 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking glow v0.12.3 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking profiling v1.0.16 [INFO] [stderr] Checking renderdoc-sys v1.1.0 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling bytecount v0.6.8 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking alsa v0.9.1 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Checking inotify v0.10.2 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Compiling bytemuck_derive v1.8.0 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Checking ogg v0.8.0 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking mint v0.5.9 [INFO] [stderr] Checking dasp_sample v0.11.0 [INFO] [stderr] Checking float_next_after v1.0.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking uuid v1.11.0 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking rustc-hash v2.0.0 [INFO] [stderr] Compiling gilrs v0.10.10 [INFO] [stderr] Checking xi-unicode v0.3.0 [INFO] [stderr] Checking gilrs-core v0.5.15 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Checking gif v0.13.1 [INFO] [stderr] Checking glyph_brush_layout v0.2.4 [INFO] [stderr] Checking bzip2 v0.4.4 [INFO] [stderr] Checking bytemuck v1.19.0 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Checking lyon_tessellation v1.0.15 [INFO] [stderr] Checking calloop v0.10.6 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking naga v0.12.3 [INFO] [stderr] Checking lewton v0.10.2 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking symphonia-core v0.5.4 [INFO] [stderr] Checking tiny-skia-path v0.8.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking lyon_algorithms v1.0.4 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking tiny-skia v0.8.4 [INFO] [stderr] Checking ordered-float v4.5.0 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking claxon v0.4.3 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking hound v3.5.1 [INFO] [stderr] Checking gpu-descriptor v0.2.4 [INFO] [stderr] Checking glyph_brush_draw_cache v0.1.6 [INFO] [stderr] Checking lyon v1.0.1 [INFO] [stderr] Checking directories v5.0.1 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking glam v0.24.2 [INFO] [stderr] Compiling smart-default v0.7.1 [INFO] [stderr] Checking ordered-float v3.9.2 [INFO] [stderr] Checking twox-hash v2.0.1 [INFO] [stderr] Checking glyph_brush v0.7.11 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Checking pollster v0.3.0 [INFO] [stderr] Checking symphonia-metadata v0.5.4 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Compiling crevice-derive v0.10.0 [INFO] [stderr] Checking symphonia-bundle-mp3 v0.5.4 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Checking crevice v0.13.0 [INFO] [stderr] Checking symphonia v0.5.4 [INFO] [stderr] Checking rodio v0.17.3 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Checking num_enum v0.7.3 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Compiling cargo-platform v0.1.8 [INFO] [stderr] Compiling cargo_metadata v0.14.2 [INFO] [stderr] Checking zstd v0.11.2+zstd.1.5.2 [INFO] [stderr] Checking wgpu-hal v0.16.2 [INFO] [stderr] Checking zip v0.6.6 [INFO] [stderr] Checking sctk-adwaita v0.5.4 [INFO] [stderr] Compiling skeptic v0.13.7 [INFO] [stderr] Compiling ggez v0.9.3 [INFO] [stderr] Checking wgpu-core v0.16.1 [INFO] [stderr] Checking wgpu v0.16.3 [INFO] [stderr] Checking rust_tetris v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Updatable` [INFO] [stdout] --> src/t_state.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::t_updatable::{Drawable, Tickable, Updatable}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/define/fn_define.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::runtime::input::InputComponent` [INFO] [stdout] --> src/define/fn_define.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::runtime::input::InputComponent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Void_Fn` should have an upper camel case name [INFO] [stdout] --> src/define/fn_define.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Void_Fn = fn(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `VoidFn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bool_KeyCode_Fn` should have an upper camel case name [INFO] [stdout] --> src/define/fn_define.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Bool_KeyCode_Fn = fn(KeyCode) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BoolKeyCodeFn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPrimitive` [INFO] [stdout] --> src/define/enum_define.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use num_enum::{FromPrimitive, IntoPrimitive, TryFromPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::Color` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use colored::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | if(self._start_game_flag){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if(self._start_game_flag){ [INFO] [stdout] 105 + if self._start_game_flag { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | if(key_code.is_none()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 109 - if(key_code.is_none()){ [INFO] [stdout] 109 + if key_code.is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StrokeOptions` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:4:46 [INFO] [stdout] | [INFO] [stdout] 4 | use ggez::graphics::{Canvas, DrawMode, Mesh, StrokeOptions, Text, Color, DrawParam}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | if(self._tick_counter < 10){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if(self._tick_counter < 10){ [INFO] [stdout] 105 + if self._tick_counter < 10 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tickable` [INFO] [stdout] --> src/runtime/procedure.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::t_updatable::{Tickable, Updatable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 27 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 44 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] 52 + if !call_back_vec.contains(&call_back) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 67 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] 73 + if !call_back_vec.contains(&call_back) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vec2` and `ivec2` [INFO] [stdout] --> src/runtime/data/tetrimino.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::glam::{IVec2, ivec2, Vec2}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/data/tetrimino.rs:169:20 [INFO] [stdout] | [INFO] [stdout] 169 | if (is_block != 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 169 - if (is_block != 1) { [INFO] [stdout] 169 + if is_block != 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProcedureTestDrawBlockParam` and `ProcedureTestDrawBlock` [INFO] [stdout] --> src/app.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::runtime::procedure::procedure_test_draw_block::{ProcedureTestDrawBlock, ProcedureTestDrawBlockParam}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LogLevelEnum` [INFO] [stdout] --> src/app.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::tools::logger::{log, LogLevelEnum}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Updatable` [INFO] [stdout] --> src/t_state.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::t_updatable::{Drawable, Tickable, Updatable}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/define/fn_define.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::runtime::input::InputComponent` [INFO] [stdout] --> src/define/fn_define.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::runtime::input::InputComponent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Void_Fn` should have an upper camel case name [INFO] [stdout] --> src/define/fn_define.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Void_Fn = fn(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `VoidFn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Bool_KeyCode_Fn` should have an upper camel case name [INFO] [stdout] --> src/define/fn_define.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type Bool_KeyCode_Fn = fn(KeyCode) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `BoolKeyCodeFn` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromPrimitive` [INFO] [stdout] --> src/define/enum_define.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use num_enum::{FromPrimitive, IntoPrimitive, TryFromPrimitive}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TypeId` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `colored::Color` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use colored::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | if(self._start_game_flag){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if(self._start_game_flag){ [INFO] [stdout] 105 + if self._start_game_flag { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | if(key_code.is_none()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 109 - if(key_code.is_none()){ [INFO] [stdout] 109 + if key_code.is_none() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StrokeOptions` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:4:46 [INFO] [stdout] | [INFO] [stdout] 4 | use ggez::graphics::{Canvas, DrawMode, Mesh, StrokeOptions, Text, Color, DrawParam}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:105:11 [INFO] [stdout] | [INFO] [stdout] 105 | if(self._tick_counter < 10){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 105 - if(self._tick_counter < 10){ [INFO] [stdout] 105 + if self._tick_counter < 10 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tickable` [INFO] [stdout] --> src/runtime/procedure.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | use crate::t_updatable::{Tickable, Updatable}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 27 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 44 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 44 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:52:11 [INFO] [stdout] | [INFO] [stdout] 52 | if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 52 - if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] 52 + if !call_back_vec.contains(&call_back) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 67 | if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 67 - if(!self._event_map.contains_key(&event_id)){ [INFO] [stdout] 67 + if !self._event_map.contains_key(&event_id) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/event.rs:73:11 [INFO] [stdout] | [INFO] [stdout] 73 | if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 73 - if(!call_back_vec.contains(&call_back)){ [INFO] [stdout] 73 + if !call_back_vec.contains(&call_back) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vec2` and `ivec2` [INFO] [stdout] --> src/runtime/data/tetrimino.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::glam::{IVec2, ivec2, Vec2}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/runtime/data/tetrimino.rs:169:20 [INFO] [stdout] | [INFO] [stdout] 169 | if (is_block != 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 169 - if (is_block != 1) { [INFO] [stdout] 169 + if is_block != 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ProcedureTestDrawBlockParam` and `ProcedureTestDrawBlock` [INFO] [stdout] --> src/app.rs:11:60 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::runtime::procedure::procedure_test_draw_block::{ProcedureTestDrawBlock, ProcedureTestDrawBlockParam}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LogLevelEnum` [INFO] [stdout] --> src/app.rs:14:33 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::tools::logger::{log, LogLevelEnum}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:87:27 [INFO] [stdout] | [INFO] [stdout] 87 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:87:27 [INFO] [stdout] | [INFO] [stdout] 87 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:87:46 [INFO] [stdout] | [INFO] [stdout] 87 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:87:63 [INFO] [stdout] | [INFO] [stdout] 87 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:87:46 [INFO] [stdout] | [INFO] [stdout] 87 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:94:32 [INFO] [stdout] | [INFO] [stdout] 94 | fn on_enter(&mut self, mut param:Box){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:87:63 [INFO] [stdout] | [INFO] [stdout] 87 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:94:32 [INFO] [stdout] | [INFO] [stdout] 94 | fn on_enter(&mut self, mut param:Box){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | fn on_enter(&mut self, mut param:Box){ [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: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:103:28 [INFO] [stdout] | [INFO] [stdout] 103 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_sec` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:103:71 [INFO] [stdout] | [INFO] [stdout] 103 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:69:46 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:69:63 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | fn on_enter(&mut self, mut param:Box){ [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: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:103:28 [INFO] [stdout] | [INFO] [stdout] 103 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_sec` [INFO] [stdout] --> src/runtime/procedure/procedure_main_ui.rs:103:71 [INFO] [stdout] | [INFO] [stdout] 103 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:69:46 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:69:63 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:98:27 [INFO] [stdout] | [INFO] [stdout] 98 | fn on_enter(&mut self,param:Box){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:261:30 [INFO] [stdout] | [INFO] [stdout] 261 | fn draw_play_field(&self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `canvas` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:261:47 [INFO] [stdout] | [INFO] [stdout] 261 | fn draw_play_field(&self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:290:32 [INFO] [stdout] | [INFO] [stdout] 290 | fn draw_playing_info(&self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `canvas` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:290:49 [INFO] [stdout] | [INFO] [stdout] 290 | fn draw_playing_info(&self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:98:27 [INFO] [stdout] | [INFO] [stdout] 98 | fn on_enter(&mut self,param:Box){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:261:30 [INFO] [stdout] | [INFO] [stdout] 261 | fn draw_play_field(&self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `canvas` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:261:47 [INFO] [stdout] | [INFO] [stdout] 261 | fn draw_play_field(&self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:290:32 [INFO] [stdout] | [INFO] [stdout] 290 | fn draw_playing_info(&self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `canvas` [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:290:49 [INFO] [stdout] | [INFO] [stdout] 290 | fn draw_playing_info(&self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_canvas` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | fn on_draw(&mut self, ctx: &mut Context) -> GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | fn on_draw(&mut self, ctx: &mut Context) -> GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:46 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:63 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:33:45 [INFO] [stdout] | [INFO] [stdout] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_sec` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:33:71 [INFO] [stdout] | [INFO] [stdout] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:46 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mesh_rect_2` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mesh_rect_2 = Mesh::new_rectangle( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mesh_rect_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:22:63 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:46 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:63 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:76:28 [INFO] [stdout] | [INFO] [stdout] 76 | fn on_enter(&mut self, param: Box) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:84:28 [INFO] [stdout] | [INFO] [stdout] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_sec` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:84:72 [INFO] [stdout] | [INFO] [stdout] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:33:28 [INFO] [stdout] | [INFO] [stdout] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 89 | fn on_leave(&mut self, param: Option>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_draw(&mut self, ctx: &mut Context) -> GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/procedure/procedure_over.rs:33:45 [INFO] [stdout] | [INFO] [stdout] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:28:27 [INFO] [stdout] | [INFO] [stdout] 28 | fn on_enter(&mut self,param:Box){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | fn on_update(&mut self,ctx:&mut ggez::Context,key_code: Option,delta_sec:f32) -> Option src/runtime/procedure/procedure_over.rs:33:71 [INFO] [stdout] | [INFO] [stdout] 33 | fn on_update(&mut self,ctx:&mut Context,key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:31:51 [INFO] [stdout] | [INFO] [stdout] 31 | fn on_update(&mut self,ctx:&mut ggez::Context,key_code: Option,delta_sec:f32) -> Option src/runtime/procedure/procedure_test_draw_text.rs:31:100 [INFO] [stdout] | [INFO] [stdout] 31 | ...input::keyboard::KeyCode>,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | fn on_leave(&mut self,param:Option>){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 43 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:43:64 [INFO] [stdout] | [INFO] [stdout] 43 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mesh_rect_2` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mesh_rect_2 = Mesh::new_rectangle( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_mesh_rect_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:27 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:46 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:69:63 [INFO] [stdout] | [INFO] [stdout] 69 | fn on_tick(&mut self, ctx: &mut Context, delta_time: f32, interval: f32) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:76:28 [INFO] [stdout] | [INFO] [stdout] 76 | fn on_enter(&mut self, param: Box) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:84:28 [INFO] [stdout] | [INFO] [stdout] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_sec` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:84:72 [INFO] [stdout] | [INFO] [stdout] 84 | fn on_update(&mut self,ctx:&mut Context, key_code: Option,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:89:28 [INFO] [stdout] | [INFO] [stdout] 89 | fn on_leave(&mut self, param: Option>) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:22:27 [INFO] [stdout] | [INFO] [stdout] 22 | fn on_draw(&mut self, ctx: &mut Context) -> GameResult { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:28:27 [INFO] [stdout] | [INFO] [stdout] 28 | fn on_enter(&mut self,param:Box){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:31:28 [INFO] [stdout] | [INFO] [stdout] 31 | fn on_update(&mut self,ctx:&mut ggez::Context,key_code: Option,delta_sec:f32) -> Option src/runtime/procedure/procedure_test_draw_text.rs:31:51 [INFO] [stdout] | [INFO] [stdout] 31 | fn on_update(&mut self,ctx:&mut ggez::Context,key_code: Option,delta_sec:f32) -> Option src/runtime/procedure/procedure_test_draw_text.rs:31:100 [INFO] [stdout] | [INFO] [stdout] 31 | ...input::keyboard::KeyCode>,delta_sec:f32) -> Option{ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_sec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:34:27 [INFO] [stdout] | [INFO] [stdout] 34 | fn on_leave(&mut self,param:Option>){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 43 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:43:49 [INFO] [stdout] | [INFO] [stdout] 43 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:43:64 [INFO] [stdout] | [INFO] [stdout] 43 | fn on_tick(&mut self,ctx:&mut ggez::Context,delta_time:f32,interval:f32){ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `insert_succ` is never read [INFO] [stdout] --> src/runtime/procedure.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | let mut insert_succ : Option> = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn not_impl_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `insert_succ` is never read [INFO] [stdout] --> src/runtime/procedure.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | let mut insert_succ : Option> = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:47:30 [INFO] [stdout] | [INFO] [stdout] 47 | fn not_impl_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | fn playing_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | fn over_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | if let Some(key_code) = key{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | fn playing_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | fn over_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key_code` [INFO] [stdout] --> src/runtime/input.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | if let Some(key_code) = key{ [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_key_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repeat` [INFO] [stdout] --> src/app.rs:169:71 [INFO] [stdout] | [INFO] [stdout] 169 | fn key_down_event(&mut self, _ctx: &mut Context, input: KeyInput, repeat: bool) -> GameResult { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_repeat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RUNTIME_INITIAL_PROCEDURE_INDEX` is never used [INFO] [stdout] --> src/constant.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const RUNTIME_INITIAL_PROCEDURE_INDEX : i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_RGB_BLACK` is never used [INFO] [stdout] --> src/constant.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub const COLOR_RGB_BLACK : [f32;3] = [0.0 ,0.0 ,0.0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_ALPHA_1` is never used [INFO] [stdout] --> src/constant.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub const COLOR_ALPHA_1 : [f32;1] = [1.0]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_ALPHA_0` is never used [INFO] [stdout] --> src/constant.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | pub const COLOR_ALPHA_0 : [f32;1] = [0.0]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Void_Fn` is never used [INFO] [stdout] --> src/define/fn_define.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Void_Fn = fn(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/define/enum_define.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl TetriminoTypeEnum { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 60 | ///将枚举转换为&str / Convert enum to &str [INFO] [stdout] 61 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Purple` is never constructed [INFO] [stdout] --> src/define/enum_define.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub enum TetriminoColorEnum{ [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 87 | Purple, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TetriminoColorEnum` 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_as_empty`, `add_new_procedure`, and `all_procedure_name` are never used [INFO] [stdout] --> src/runtime/procedure.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl ProcedureComponent { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn new_as_empty() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn add_new_procedure(&mut self,procedure_enum:ProcedureEnum) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn all_procedure_name(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw_playing_info` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:290:8 [INFO] [stdout] | [INFO] [stdout] 222 | impl ProcedurePlaying { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 290 | fn draw_playing_info(&self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:319:12 [INFO] [stdout] | [INFO] [stdout] 318 | impl ProcedurePlayingParam { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 319 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_any_mut` is never used [INFO] [stdout] --> src/runtime/procedure/t_procedure_param.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait ProcedureParam : Debug+Any{ [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 6 | fn as_any_mut(&mut self) -> &mut dyn Any; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `draw_text` are never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl ProcedureTestDrawBlock{ [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new()-> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn draw_text(&mut self,canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl ProcedureTestDrawBlockParam { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 121 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ProcedureTestDrawText{ [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl ProcedureTestDrawTextParam{ [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 56 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventComponent` is never constructed [INFO] [stdout] --> src/runtime/event.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EventComponent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EventComponent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fire`, `register_event`, `unregister_event`, and `test` are never used [INFO] [stdout] --> src/runtime/event.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl EventComponent { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 15 | ///constructor [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn fire(&mut self,event_id:i32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn register_event(&mut self,event_id:i32,call_back:fn()) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn unregister_event(&mut self,event_id: i32,call_back:fn()) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn test(&self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `clear_input`, `main_ui_input_filter`, `playing_input_filter`, `over_input_filter`, and `set_input_filter_mode` are never used [INFO] [stdout] --> src/runtime/input.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl InputComponent { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn clear_input(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn main_ui_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn playing_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn over_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn set_input_filter_mode(&mut self,procedure:ProcedureEnum){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `block_area` and `get_curr_tetrimino_type` are never used [INFO] [stdout] --> src/runtime/data/play_field.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl PlayField { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn block_area(&self) -> &[[TetriGridCell;constant::BLOCK_AREA_MAX_HORIZONTAL_BLOCK_CNT];constant::BLOCK_AREA_MAX_VERTICAL_BLOCK_C... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn get_curr_tetrimino_type(&self) -> &TetriminoTypeEnum{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_score`, `add_score`, and `clear` are never used [INFO] [stdout] --> src/runtime/data/playing_data.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl PlayingData { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get_score(&self) -> u32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn add_score(&mut self,score_to_add:u32){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn clear(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `color`, `get_world_position`, and `get_coord` are never used [INFO] [stdout] --> src/runtime/data/teri_grid.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl TetriGridCell{ [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn color(&self) -> &Color{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_world_position(&self) -> &Vec2{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn get_coord(&self) -> &IVec2{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_type` is never used [INFO] [stdout] --> src/runtime/data/tetrimino.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Tetrimino{ [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn get_type(&self) -> &TetriminoTypeEnum{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | curr_procedure.on_draw(ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 197 | let _ = curr_procedure.on_draw(ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | self.draw_block(&mut canvas, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 106 | let _ = self.draw_block(&mut canvas, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | self.draw_another_block(&mut canvas, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 109 | let _ = self.draw_another_block(&mut canvas, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/runtime/data/play_field.rs:377:16 [INFO] [stdout] | [INFO] [stdout] 377 | if x < 0 || x >= constant::BLOCK_AREA_MAX_VERTICAL_BLOCK_CNT || y < 0 || y >= constant::BLOCK_AREA_MAX_HORIZONTAL_BLOCK_CNT { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/runtime/data/play_field.rs:377:77 [INFO] [stdout] | [INFO] [stdout] 377 | if x < 0 || x >= constant::BLOCK_AREA_MAX_VERTICAL_BLOCK_CNT || y < 0 || y >= constant::BLOCK_AREA_MAX_HORIZONTAL_BLOCK_CNT { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repeat` [INFO] [stdout] --> src/app.rs:169:71 [INFO] [stdout] | [INFO] [stdout] 169 | fn key_down_event(&mut self, _ctx: &mut Context, input: KeyInput, repeat: bool) -> GameResult { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_repeat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RUNTIME_INITIAL_PROCEDURE_INDEX` is never used [INFO] [stdout] --> src/constant.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const RUNTIME_INITIAL_PROCEDURE_INDEX : i32 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_RGB_BLACK` is never used [INFO] [stdout] --> src/constant.rs:40:11 [INFO] [stdout] | [INFO] [stdout] 40 | pub const COLOR_RGB_BLACK : [f32;3] = [0.0 ,0.0 ,0.0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_ALPHA_1` is never used [INFO] [stdout] --> src/constant.rs:42:11 [INFO] [stdout] | [INFO] [stdout] 42 | pub const COLOR_ALPHA_1 : [f32;1] = [1.0]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COLOR_ALPHA_0` is never used [INFO] [stdout] --> src/constant.rs:43:11 [INFO] [stdout] | [INFO] [stdout] 43 | pub const COLOR_ALPHA_0 : [f32;1] = [0.0]; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Void_Fn` is never used [INFO] [stdout] --> src/define/fn_define.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type Void_Fn = fn(); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/define/enum_define.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl TetriminoTypeEnum { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 60 | ///将枚举转换为&str / Convert enum to &str [INFO] [stdout] 61 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Purple` is never constructed [INFO] [stdout] --> src/define/enum_define.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 82 | pub enum TetriminoColorEnum{ [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 87 | Purple, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TetriminoColorEnum` 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_as_empty`, `add_new_procedure`, and `all_procedure_name` are never used [INFO] [stdout] --> src/runtime/procedure.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl ProcedureComponent { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn new_as_empty() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn add_new_procedure(&mut self,procedure_enum:ProcedureEnum) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn all_procedure_name(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `draw_playing_info` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:290:8 [INFO] [stdout] | [INFO] [stdout] 222 | impl ProcedurePlaying { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 290 | fn draw_playing_info(&self,ctx:&mut Context,canvas:&mut Canvas){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_playing.rs:319:12 [INFO] [stdout] | [INFO] [stdout] 318 | impl ProcedurePlayingParam { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 319 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_any_mut` is never used [INFO] [stdout] --> src/runtime/procedure/t_procedure_param.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait ProcedureParam : Debug+Any{ [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 6 | fn as_any_mut(&mut self) -> &mut dyn Any; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `draw_text` are never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl ProcedureTestDrawBlock{ [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new()-> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn draw_text(&mut self,canvas: &mut Canvas){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl ProcedureTestDrawBlockParam { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 121 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ProcedureTestDrawText{ [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_text.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 55 | impl ProcedureTestDrawTextParam{ [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 56 | pub fn new() -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EventComponent` is never constructed [INFO] [stdout] --> src/runtime/event.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EventComponent { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EventComponent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fire`, `register_event`, `unregister_event`, and `test` are never used [INFO] [stdout] --> src/runtime/event.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl EventComponent { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 15 | ///constructor [INFO] [stdout] 16 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn fire(&mut self,event_id:i32){ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn register_event(&mut self,event_id:i32,call_back:fn()) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn unregister_event(&mut self,event_id: i32,call_back:fn()) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn test(&self){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `clear_input`, `main_ui_input_filter`, `playing_input_filter`, `over_input_filter`, and `set_input_filter_mode` are never used [INFO] [stdout] --> src/runtime/input.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl InputComponent { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn clear_input(&mut self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn main_ui_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn playing_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | fn over_input_filter(key_code: KeyCode) -> bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn set_input_filter_mode(&mut self,procedure:ProcedureEnum){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `block_area` and `get_curr_tetrimino_type` are never used [INFO] [stdout] --> src/runtime/data/play_field.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl PlayField { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn block_area(&self) -> &[[TetriGridCell;constant::BLOCK_AREA_MAX_HORIZONTAL_BLOCK_CNT];constant::BLOCK_AREA_MAX_VERTICAL_BLOCK_C... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 246 | pub fn get_curr_tetrimino_type(&self) -> &TetriminoTypeEnum{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_score`, `add_score`, and `clear` are never used [INFO] [stdout] --> src/runtime/data/playing_data.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl PlayingData { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get_score(&self) -> u32{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn add_score(&mut self,score_to_add:u32){ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn clear(&mut self){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `color`, `get_world_position`, and `get_coord` are never used [INFO] [stdout] --> src/runtime/data/teri_grid.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl TetriGridCell{ [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn color(&self) -> &Color{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_world_position(&self) -> &Vec2{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn get_coord(&self) -> &IVec2{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_type` is never used [INFO] [stdout] --> src/runtime/data/tetrimino.rs:148:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Tetrimino{ [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn get_type(&self) -> &TetriminoTypeEnum{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | curr_procedure.on_draw(ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 197 | let _ = curr_procedure.on_draw(ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | self.draw_block(&mut canvas, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 106 | let _ = self.draw_block(&mut canvas, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/runtime/procedure/procedure_test_draw_block.rs:109:13 [INFO] [stdout] | [INFO] [stdout] 109 | self.draw_another_block(&mut canvas, ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 109 | let _ = self.draw_another_block(&mut canvas, ctx); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/runtime/data/play_field.rs:377:16 [INFO] [stdout] | [INFO] [stdout] 377 | if x < 0 || x >= constant::BLOCK_AREA_MAX_VERTICAL_BLOCK_CNT || y < 0 || y >= constant::BLOCK_AREA_MAX_HORIZONTAL_BLOCK_CNT { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/runtime/data/play_field.rs:377:77 [INFO] [stdout] | [INFO] [stdout] 377 | if x < 0 || x >= constant::BLOCK_AREA_MAX_VERTICAL_BLOCK_CNT || y < 0 || y >= constant::BLOCK_AREA_MAX_HORIZONTAL_BLOCK_CNT { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s [INFO] running `Command { std: "docker" "inspect" "593049a8e15418a2fd5f5e49a4f934d9b218cdd30f43c12d7b44fc669131e5b0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "593049a8e15418a2fd5f5e49a4f934d9b218cdd30f43c12d7b44fc669131e5b0", kill_on_drop: false }` [INFO] [stdout] 593049a8e15418a2fd5f5e49a4f934d9b218cdd30f43c12d7b44fc669131e5b0