[INFO] cloning repository https://github.com/josh65536/tsurust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/josh65536/tsurust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjosh65536%2Ftsurust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjosh65536%2Ftsurust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a6841c4ab7a0359d00aaf54f10e17c24c88318d0 [INFO] testing josh65536/tsurust against try#8262275854dc0e5381c9d42d56257d94932c5a87 for pr-90799 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjosh65536%2Ftsurust" "/workspace/builds/worker-91/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-91/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/josh65536/tsurust on toolchain 8262275854dc0e5381c9d42d56257d94932c5a87 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/josh65536/tsurust [INFO] finished tweaking git repo https://github.com/josh65536/tsurust [INFO] tweaked toml for git repo https://github.com/josh65536/tsurust written to /workspace/builds/worker-91/source/Cargo.toml [INFO] crate git repo https://github.com/josh65536/tsurust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-91/source/client/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-91/source/Cargo.toml [INFO] [stderr] warning: /workspace/builds/worker-91/source/client/Cargo.toml: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [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-91/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7eb66d43092f33b37e713acb27be994c187ff387bc770e99445d6d55d9304b3a [INFO] running `Command { std: "docker" "start" "-a" "7eb66d43092f33b37e713acb27be994c187ff387bc770e99445d6d55d9304b3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7eb66d43092f33b37e713acb27be994c187ff387bc770e99445d6d55d9304b3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7eb66d43092f33b37e713acb27be994c187ff387bc770e99445d6d55d9304b3a", kill_on_drop: false }` [INFO] [stdout] 7eb66d43092f33b37e713acb27be994c187ff387bc770e99445d6d55d9304b3a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/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" "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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e6e21343f303b481019e62ecb20cf87fe2789818cd5fee83618c78c326f0308 [INFO] running `Command { std: "docker" "start" "-a" "9e6e21343f303b481019e62ecb20cf87fe2789818cd5fee83618c78c326f0308", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/client/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: /opt/rustwide/workdir/client/Cargo.toml: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling futures-io v0.3.17 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.78 [INFO] [stderr] Compiling cache-padded v1.1.1 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling event-listener v2.5.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling fastrand v1.5.0 [INFO] [stderr] Compiling bumpalo v3.8.0 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling ppv-lite86 v0.2.15 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling async-task v4.0.3 [INFO] [stderr] Compiling rustversion v1.0.5 [INFO] [stderr] Compiling wasm-bindgen v0.2.78 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling paste v1.0.6 [INFO] [stderr] Compiling rawpointer v0.2.1 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling strum v0.23.0 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling mopa v0.2.2 [INFO] [stderr] Compiling serde_json v1.0.71 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling atom v0.3.6 [INFO] [stderr] Compiling tuple_utils v0.3.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling shrev v1.1.1 [INFO] [stderr] Compiling utf8-width v0.1.5 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling format_xml v0.2.0 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling hibitset v0.6.3 [INFO] [stderr] Compiling safe_arch v0.6.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-rational v0.4.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling async-lock v2.4.0 [INFO] [stderr] Compiling matrixmultiply v0.3.1 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.8 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling html-escape v0.2.9 [INFO] [stderr] Compiling wide v0.7.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling http v0.2.5 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling approx v0.5.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_pcg v0.3.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling blocking v1.1.0 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling tynm v0.1.6 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling ctor v0.1.21 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling shred-derive v0.6.3 [INFO] [stderr] Compiling strum_macros v0.23.1 [INFO] [stderr] Compiling getset v0.1.1 [INFO] [stderr] Compiling enum_dispatch v0.3.7 [INFO] [stderr] Compiling shred v0.12.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.78 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling env_logger v0.9.0 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling specs v0.17.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tungstenite v0.16.0 [INFO] [stderr] Compiling async-global-executor v2.0.2 [INFO] [stderr] Compiling async-std v1.10.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.78 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.78 [INFO] [stderr] Compiling futures-executor v0.3.17 [INFO] [stderr] Compiling futures v0.3.17 [INFO] [stderr] Compiling js-sys v0.3.55 [INFO] [stderr] Compiling console_error_panic_hook v0.1.7 [INFO] [stderr] Compiling async-tungstenite v0.16.0 [INFO] [stderr] Compiling num-complex v0.4.0 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling web-sys v0.3.55 [INFO] [stderr] Compiling simba v0.6.0 [INFO] [stderr] Compiling nalgebra v0.29.0 [INFO] [stderr] Compiling common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stdout] warning: unused import: `Vec2i` [INFO] [stdout] --> common/src/board.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::math::{Pt2i, Pt2u, Vec2i, Vec2u}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/board.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Getters` [INFO] [stdout] --> common/src/board.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use getset::{CopyGetters, Getters}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/tile.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> common/src/game.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RectangleBoard`, `RegularTile` [INFO] [stdout] --> common/src/game.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{board::{Board, Port, RectangleBoard, TLoc}, game_state::GameState, tile::{GAct, Kind, RegularTile, Tile}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/player_state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RegularTile` [INFO] [stdout] --> common/src/player_state.rs:8:46 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{board::Board, game::Game, tile::{RegularTile, Tile}}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> common/src/board_state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/board_state.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RectangleBoard` [INFO] [stdout] --> common/src/board_state.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::board::{BasePort, Board, RectangleBoard, Port, BaseTLoc, TLoc}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RegularTile` [INFO] [stdout] --> common/src/board_state.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::tile::{RegularTile, Tile, BaseTile}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/game_state.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> common/src/game_state.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathGame`, `RectangleBoard`, `RegularTile` [INFO] [stdout] --> common/src/game_state.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | ...d, RectangleBoard, TLoc}, board_state::BoardState, game::{Game, PathGame}, pcg64, player_state::{Looker, PlayerState}, tile::{BaseKind, RegularTile, T... [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uniform::UniformInt` [INFO] [stdout] --> common/src/lib.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::{distributions::{Uniform, uniform::UniformInt}, prelude::Distribution, thread_rng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> common/src/game_state.rs:360:43 [INFO] [stdout] | [INFO] [stdout] 360 | pub fn handle_dead_players(&mut self, game: &G, players: &[u32]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> common/src/game_state.rs:380:48 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn take_turn_placing_player(&mut self, game: &G, port: &G::Port) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> common/src/game_state.rs:387:89 [INFO] [stdout] | [INFO] [stdout] 387 | pub fn can_place_tile(&mut self, game: &G, player: u32, kind: &G::Kind, index: u32, action: &G::GAct, loc: &G::TLoc) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir/server) [INFO] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir/client) [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> server/src/processor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> server/src/processor.rs:4:30 [INFO] [stdout] | [INFO] [stdout] 4 | use async_std::sync::{Mutex, MutexGuard}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fnv::FnvHashMap` [INFO] [stdout] --> server/src/processor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use fnv::FnvHashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> server/src/main.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{collections::HashMap, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Response`, `game::BaseGame`, `game_state::BaseGameState` [INFO] [stdout] --> server/src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use common::{game::BaseGame, game_state::BaseGameState, message::{Request, Response}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fnv::FnvHashMap` [INFO] [stdout] --> server/src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use fnv::FnvHashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnboundedSender` [INFO] [stdout] --> server/src/main.rs:12:36 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::channel::mpsc::{self, UnboundedSender}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `process_request` [INFO] [stdout] --> server/src/main.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::{processor::{process_request, respond_to_request}, state::State}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut ws_stream = accept_async(stream).await.expect(&format!("Failed to accept {}", peer)); [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 import: `GenericGame` [INFO] [stdout] --> server/src/game.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use common::{game::{BaseGame, GenericGame}, game_state::BaseGameState}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> server/src/processor.rs:24:50 [INFO] [stdout] | [INFO] [stdout] 24 | state.peers().iter().map(|(addr, peer)| (*addr, Response::Usernames{ names: usernames.clone() })) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> server/src/processor.rs:46:54 [INFO] [stdout] | [INFO] [stdout] 46 | state.peers().iter().map(|(addr, peer)| (*addr, Response::Usernames{ names: usernames.clone() })) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> server/src/game.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | .find(|(i, player)| player.username == username) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> server/src/game.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | .find(|(i, spectator)| spectator.username == username) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> server/src/game.rs:72:22 [INFO] [stdout] | [INFO] [stdout] 72 | if let Some((index, spectator)) = self.spectators.iter_mut().enumerate() [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `state_mut` [INFO] [stdout] --> server/src/game.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn state_mut(&mut self) -> Option<&mut BaseGameState> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> client/src/processor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> client/src/render.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::Sender` [INFO] [stdout] --> client/src/render.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::mpsc::Sender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::Cell`, `marker::PhantomData` [INFO] [stdout] --> client/src/render.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cell::Cell, marker::PhantomData}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mtx2`, `Vec2f` [INFO] [stdout] --> client/src/render.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use common::math::{Mtx2, Pt2, Vec2f, Vec3f, Vec3u, pt2}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BaseKind` [INFO] [stdout] --> client/src/render.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | use common::tile::{BaseGAct, BaseKind, BaseTile, Kind}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CopyGetters`, `Getters`, `MutGetters` [INFO] [stdout] --> client/src/render.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use getset::{CopyGetters, Getters, MutGetters}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::Closure` [INFO] [stdout] --> client/src/render.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | use wasm_bindgen::{JsCast, prelude::Closure}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Element`, `MouseEvent`, `SvgGraphicsElement`, `SvgsvgElement` [INFO] [stdout] --> client/src/render.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | use web_sys::{DomParser, Element, MouseEvent, SupportedType, SvgElement, SvgGraphicsElement, SvgMatrix, SvgsvgElement}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `add_event_listener`, `console_log`, `document` [INFO] [stdout] --> client/src/render.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::{SVG_NS, add_event_listener, console_log, document}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `self` [INFO] [stdout] --> client/src/game.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc::{self, Receiver}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vec2`, `board::BasePort` [INFO] [stdout] --> client/src/game.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use common::{board::BasePort, game::{BaseGame, GenericGame}, game_state::BaseGameState, math::{Pt2, Vec2}, message::{Request, Response}, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> client/src/game.rs:5:53 [INFO] [stdout] | [INFO] [stdout] 5 | use specs::{Builder, Dispatcher, DispatcherBuilder, Entity, World, WorldExt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> client/src/game.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `console_log` [INFO] [stdout] --> client/src/game.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{console_log, document, ecs::{BoardInput, ButtonAction, Collider, ColliderInputSystem, KeyLabel, KeyboardInput, KeyboardInputS... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::JsCast` [INFO] [stdout] --> client/src/game/app.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use wasm_bindgen::JsCast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Element`, `HtmlTemplateElement` [INFO] [stdout] --> client/src/game/app.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use web_sys::{Element, HtmlTemplateElement}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `console_log` [INFO] [stdout] --> client/src/game/app.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{SVG_NS, console_log, document, ecs::{Model, TileSelect, Transform}, render::{self, BaseBoardExt, BaseTileExt, TOKEN_RADIUS}, ... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenToPlace`, `console_log` [INFO] [stdout] --> client/src/game/app.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | ...ate::{console_log, ecs::{PlacedPort, PlacedTLoc, RunPlaceTileSystem, RunPlaceTokenSystem, SelectedTile, TileLabel, TokenToPlace, Trans... [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> client/src/ecs.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::TAU` [INFO] [stdout] --> client/src/ecs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::f64::consts::TAU; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::Sender` [INFO] [stdout] --> client/src/ecs.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::mpsc::Sender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `marker::PhantomData` [INFO] [stdout] --> client/src/ecs.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{cell::Cell, marker::PhantomData}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> client/src/ecs.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `for_each_tile`, `nalgebra as na`, `nalgebra` [INFO] [stdout] --> client/src/ecs.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use common::{for_each_tile, nalgebra, nalgebra as na}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mtx2`, `Vec2f`, `Vec3f`, `Vec3u` [INFO] [stdout] --> client/src/ecs.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use common::math::{Mtx2, Pt2, Vec2f, Vec3f, Vec3u, pt2}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ComplexField`, `vector` [INFO] [stdout] --> client/src/ecs.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | use common::nalgebra::{ComplexField, vector}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseBoard`, `BaseGame`, `Board`, `Game`, `PathGame`, `RectangleBoard`, `RegularTile`, `for_each_board`, `for_each_game`, `math::Vec2` [INFO] [stdout] --> client/src/ecs.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | ...::{BaseBoard, BasePort, Board, RectangleBoard}, for_each_board, for_each_game, game::{BaseGame, Game, PathGame}, math::Vec2, tile::{RegularTile, T... [INFO] [stdout] | ^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^ ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Port`, `TLoc` [INFO] [stdout] --> client/src/ecs.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | use common::board::{BaseTLoc, Port, TLoc}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Kind` [INFO] [stdout] --> client/src/ecs.rs:15:50 [INFO] [stdout] | [INFO] [stdout] 15 | use common::tile::{BaseGAct, BaseKind, BaseTile, Kind}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `chain`, `iproduct`, `izip` [INFO] [stdout] --> client/src/ecs.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | use itertools::{Itertools, chain, iproduct, izip}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DomParser`, `SupportedType`, `SvgElement`, `SvgMatrix`, `SvgsvgElement` [INFO] [stdout] --> client/src/ecs.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | use web_sys::{DomParser, Element, KeyboardEvent, MouseEvent, SupportedType, SvgElement, SvgGraphicsElement, SvgMatrix, SvgsvgElement}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::GameWorld` [INFO] [stdout] --> client/src/ecs.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::game::GameWorld; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SVG_NS`, `add_event_listener`, `console_log` [INFO] [stdout] --> client/src/ecs.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::{SVG_NS, add_event_listener, console_log, document}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_sys::HtmlInputElement` [INFO] [stdout] --> client/src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use web_sys::HtmlInputElement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `console` [INFO] [stdout] --> client/src/lib.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 17 | use web_sys::{BinaryType, MessageEvent, WebSocket, console}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> client/src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ComplexField` [INFO] [stdout] --> client/src/render.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use common::nalgebra::{ComplexField, vector}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericGame` [INFO] [stdout] --> client/src/game.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | use common::{board::BasePort, game::{BaseGame, GenericGame}, game_state::BaseGameState, math::{Pt2, Vec2}, message::{Request, Response}, ... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tile::Tile` [INFO] [stdout] --> client/src/game.rs:3:160 [INFO] [stdout] | [INFO] [stdout] 3 | ...2, Vec2}, message::{Request, Response}, player_state::Looker, tile::Tile}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> client/src/game/app.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tile` [INFO] [stdout] --> client/src/ecs.rs:13:164 [INFO] [stdout] | [INFO] [stdout] 13 | ...ame::{BaseGame, Game, PathGame}, math::Vec2, tile::{RegularTile, Tile}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cws` [INFO] [stdout] --> client/src/lib.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let cws = ws.clone(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cws` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `doc` [INFO] [stdout] --> client/src/processor.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let doc = web_sys::window().unwrap().document().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_doc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loc` [INFO] [stdout] --> client/src/render.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | fn render_collider(&self, loc: &Self::TLoc) -> SvgElement { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `covered` [INFO] [stdout] --> client/src/render.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 194 | let mut covered = vec![false; connections.len()]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_covered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> client/src/ecs.rs:313:63 [INFO] [stdout] | [INFO] [stdout] 313 | let mouseover_listener = Closure::wrap(Box::new(move |e: MouseEvent| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> client/src/ecs.rs:317:62 [INFO] [stdout] | [INFO] [stdout] 317 | let mouseout_listener = Closure::wrap(Box::new(move |e: MouseEvent| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> client/src/ecs.rs:328:59 [INFO] [stdout] | [INFO] [stdout] 328 | let click_listener = Closure::wrap(Box::new(move |e: MouseEvent| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order` [INFO] [stdout] --> client/src/ecs.rs:405:26 [INFO] [stdout] | [INFO] [stdout] 405 | for (svg_id, order, order_changed) in values { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tile` [INFO] [stdout] --> client/src/ecs.rs:628:34 [INFO] [stdout] | [INFO] [stdout] 628 | for (model, tile_select, tile) in (&data.models, &mut data.tile_selects, &data.tiles).join() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | fn update(self, world: &mut GameWorld, requests: &mut Vec) -> AppState { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:45:44 [INFO] [stdout] | [INFO] [stdout] 45 | fn update(self, world: &mut GameWorld, requests: &mut Vec) -> AppState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> client/src/game/app.rs:145:69 [INFO] [stdout] | [INFO] [stdout] 145 | ...self, world: &mut GameWorld, player: u32, kind: &BaseKind, index: u32, action: &BaseGAct, loc: &BaseTLoc) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:343:34 [INFO] [stdout] | [INFO] [stdout] 343 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:343:55 [INFO] [stdout] | [INFO] [stdout] 343 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> client/src/game/app.rs:343:78 [INFO] [stdout] | [INFO] [stdout] 343 | ...me, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:343:98 [INFO] [stdout] | [INFO] [stdout] 343 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:349:25 [INFO] [stdout] | [INFO] [stdout] 349 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:349:46 [INFO] [stdout] | [INFO] [stdout] 349 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:349:69 [INFO] [stdout] | [INFO] [stdout] 349 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> client/src/game/app.rs:355:49 [INFO] [stdout] | [INFO] [stdout] 355 | Response::PlacedToken { player, port } => if player == app.state.player_expect() { [INFO] [stdout] | ^^^^ help: try ignoring the field: `port: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:353:98 [INFO] [stdout] | [INFO] [stdout] 353 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:373:25 [INFO] [stdout] | [INFO] [stdout] 373 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:373:46 [INFO] [stdout] | [INFO] [stdout] 373 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:373:69 [INFO] [stdout] | [INFO] [stdout] 373 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:377:34 [INFO] [stdout] | [INFO] [stdout] 377 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:377:55 [INFO] [stdout] | [INFO] [stdout] 377 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:377:98 [INFO] [stdout] | [INFO] [stdout] 377 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:387:25 [INFO] [stdout] | [INFO] [stdout] 387 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:387:46 [INFO] [stdout] | [INFO] [stdout] 387 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:387:69 [INFO] [stdout] | [INFO] [stdout] 387 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:391:98 [INFO] [stdout] | [INFO] [stdout] 391 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:476:34 [INFO] [stdout] | [INFO] [stdout] 476 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:476:55 [INFO] [stdout] | [INFO] [stdout] 476 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> client/src/game/app.rs:476:78 [INFO] [stdout] | [INFO] [stdout] 476 | ...me, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:476:98 [INFO] [stdout] | [INFO] [stdout] 476 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:482:25 [INFO] [stdout] | [INFO] [stdout] 482 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:482:46 [INFO] [stdout] | [INFO] [stdout] 482 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:482:69 [INFO] [stdout] | [INFO] [stdout] 482 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:486:98 [INFO] [stdout] | [INFO] [stdout] 486 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> client/src/render.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | let mut covered = vec![false; connections.len()]; [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: field is never read: `board_entity` [INFO] [stdout] --> client/src/game/app.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) board_entity: Entity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `callback` [INFO] [stdout] --> client/src/ecs.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | callback: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `keydown_listener` [INFO] [stdout] --> client/src/ecs.rs:208:5 [INFO] [stdout] | [INFO] [stdout] 208 | keydown_listener: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `keyup_listener` [INFO] [stdout] --> client/src/ecs.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | keyup_listener: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mouseover_listener` [INFO] [stdout] --> client/src/ecs.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | mouseover_listener: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mouseout_listener` [INFO] [stdout] --> client/src/ecs.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | mouseout_listener: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `click_listener` [INFO] [stdout] --> client/src/ecs.rs:297:5 [INFO] [stdout] | [INFO] [stdout] 297 | click_listener: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 89 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 22s [INFO] running `Command { std: "docker" "inspect" "9e6e21343f303b481019e62ecb20cf87fe2789818cd5fee83618c78c326f0308", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e6e21343f303b481019e62ecb20cf87fe2789818cd5fee83618c78c326f0308", kill_on_drop: false }` [INFO] [stdout] 9e6e21343f303b481019e62ecb20cf87fe2789818cd5fee83618c78c326f0308 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/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" "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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b9d8a969cebe67ba98f241ba3eb65b36568bffbd4e742f32e8ced87159089b05 [INFO] running `Command { std: "docker" "start" "-a" "b9d8a969cebe67ba98f241ba3eb65b36568bffbd4e742f32e8ced87159089b05", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/client/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: /opt/rustwide/workdir/client/Cargo.toml: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling futures v0.1.31 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.2.50 [INFO] [stdout] warning: unused import: `Vec2i` [INFO] [stdout] --> common/src/board.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::math::{Pt2i, Pt2u, Vec2i, Vec2u}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/board.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Getters` [INFO] [stdout] --> common/src/board.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use getset::{CopyGetters, Getters}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/tile.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> common/src/game.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RectangleBoard`, `RegularTile` [INFO] [stdout] --> common/src/game.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{board::{Board, Port, RectangleBoard, TLoc}, game_state::GameState, tile::{GAct, Kind, RegularTile, Tile}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/player_state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RegularTile` [INFO] [stdout] --> common/src/player_state.rs:8:46 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{board::Board, game::Game, tile::{RegularTile, Tile}}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> common/src/board_state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/board_state.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RectangleBoard` [INFO] [stdout] --> common/src/board_state.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::board::{BasePort, Board, RectangleBoard, Port, BaseTLoc, TLoc}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RegularTile` [INFO] [stdout] --> common/src/board_state.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::tile::{RegularTile, Tile, BaseTile}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/game_state.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> common/src/game_state.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling common v0.1.0 (/opt/rustwide/workdir/common) [INFO] [stdout] warning: unused imports: `PathGame`, `RectangleBoard`, `RegularTile` [INFO] [stdout] --> common/src/game_state.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | ...d, RectangleBoard, TLoc}, board_state::BoardState, game::{Game, PathGame}, pcg64, player_state::{Looker, PlayerState}, tile::{BaseKind, RegularTile, T... [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling server v0.1.0 (/opt/rustwide/workdir/server) [INFO] [stdout] warning: unused import: `uniform::UniformInt` [INFO] [stdout] --> common/src/lib.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::{distributions::{Uniform, uniform::UniformInt}, prelude::Distribution, thread_rng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> common/src/game_state.rs:360:43 [INFO] [stdout] | [INFO] [stdout] 360 | pub fn handle_dead_players(&mut self, game: &G, players: &[u32]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> common/src/game_state.rs:380:48 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn take_turn_placing_player(&mut self, game: &G, port: &G::Port) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> common/src/game_state.rs:387:89 [INFO] [stdout] | [INFO] [stdout] 387 | pub fn can_place_tile(&mut self, game: &G, player: u32, kind: &G::Kind, index: u32, action: &G::GAct, loc: &G::TLoc) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> server/src/processor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MutexGuard` [INFO] [stdout] --> server/src/processor.rs:4:30 [INFO] [stdout] | [INFO] [stdout] 4 | use async_std::sync::{Mutex, MutexGuard}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fnv::FnvHashMap` [INFO] [stdout] --> server/src/processor.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use fnv::FnvHashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> server/src/main.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | use std::{collections::HashMap, sync::Arc}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Response`, `game::BaseGame`, `game_state::BaseGameState` [INFO] [stdout] --> server/src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use common::{game::BaseGame, game_state::BaseGameState, message::{Request, Response}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fnv::FnvHashMap` [INFO] [stdout] --> server/src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use fnv::FnvHashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnboundedSender` [INFO] [stdout] --> server/src/main.rs:12:36 [INFO] [stdout] | [INFO] [stdout] 12 | use futures::channel::mpsc::{self, UnboundedSender}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `process_request` [INFO] [stdout] --> server/src/main.rs:15:25 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::{processor::{process_request, respond_to_request}, state::State}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> server/src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut ws_stream = accept_async(stream).await.expect(&format!("Failed to accept {}", peer)); [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 import: `GenericGame` [INFO] [stdout] --> server/src/game.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use common::{game::{BaseGame, GenericGame}, game_state::BaseGameState}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> server/src/processor.rs:24:50 [INFO] [stdout] | [INFO] [stdout] 24 | state.peers().iter().map(|(addr, peer)| (*addr, Response::Usernames{ names: usernames.clone() })) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer` [INFO] [stdout] --> server/src/processor.rs:46:54 [INFO] [stdout] | [INFO] [stdout] 46 | state.peers().iter().map(|(addr, peer)| (*addr, Response::Usernames{ names: usernames.clone() })) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> server/src/game.rs:48:21 [INFO] [stdout] | [INFO] [stdout] 48 | .find(|(i, player)| player.username == username) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> server/src/game.rs:73:21 [INFO] [stdout] | [INFO] [stdout] 73 | .find(|(i, spectator)| spectator.username == username) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> server/src/game.rs:72:22 [INFO] [stdout] | [INFO] [stdout] 72 | if let Some((index, spectator)) = self.spectators.iter_mut().enumerate() [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `state_mut` [INFO] [stdout] --> server/src/game.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn state_mut(&mut self) -> Option<&mut BaseGameState> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Vec2i` [INFO] [stdout] --> common/src/board.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::math::{Pt2i, Pt2u, Vec2i, Vec2u}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/board.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Getters` [INFO] [stdout] --> common/src/board.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | use getset::{CopyGetters, Getters}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/tile.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> common/src/game.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RectangleBoard`, `RegularTile` [INFO] [stdout] --> common/src/game.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{board::{Board, Port, RectangleBoard, TLoc}, game_state::GameState, tile::{GAct, Kind, RegularTile, Tile}}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/player_state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RegularTile` [INFO] [stdout] --> common/src/player_state.rs:8:46 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{board::Board, game::Game, tile::{RegularTile, Tile}}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> common/src/board_state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/board_state.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RectangleBoard` [INFO] [stdout] --> common/src/board_state.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::board::{BasePort, Board, RectangleBoard, Port, BaseTLoc, TLoc}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RegularTile` [INFO] [stdout] --> common/src/board_state.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::tile::{RegularTile, Tile, BaseTile}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> common/src/game_state.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::*` [INFO] [stdout] --> common/src/game_state.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use log::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathGame`, `RectangleBoard`, `RegularTile` [INFO] [stdout] --> common/src/game_state.rs:10:48 [INFO] [stdout] | [INFO] [stdout] 10 | ...d, RectangleBoard, TLoc}, board_state::BoardState, game::{Game, PathGame}, pcg64, player_state::{Looker, PlayerState}, tile::{BaseKind, RegularTile, T... [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uniform::UniformInt` [INFO] [stdout] --> common/src/lib.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | use rand::{distributions::{Uniform, uniform::UniformInt}, prelude::Distribution, thread_rng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> common/src/game_state.rs:360:43 [INFO] [stdout] | [INFO] [stdout] 360 | pub fn handle_dead_players(&mut self, game: &G, players: &[u32]) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `game` [INFO] [stdout] --> common/src/game_state.rs:380:48 [INFO] [stdout] | [INFO] [stdout] 380 | pub fn take_turn_placing_player(&mut self, game: &G, port: &G::Port) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action` [INFO] [stdout] --> common/src/game_state.rs:387:89 [INFO] [stdout] | [INFO] [stdout] 387 | pub fn can_place_tile(&mut self, game: &G, player: u32, kind: &G::Kind, index: u32, action: &G::GAct, loc: &G::TLoc) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wasm-bindgen-futures v0.3.27 [INFO] [stderr] Compiling wasm-bindgen-test v0.2.50 [INFO] [stderr] Compiling client v0.1.0 (/opt/rustwide/workdir/client) [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> client/src/processor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> client/src/render.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::Sender` [INFO] [stdout] --> client/src/render.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::mpsc::Sender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cell::Cell`, `marker::PhantomData` [INFO] [stdout] --> client/src/render.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cell::Cell, marker::PhantomData}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mtx2`, `Vec2f` [INFO] [stdout] --> client/src/render.rs:9:20 [INFO] [stdout] | [INFO] [stdout] 9 | use common::math::{Mtx2, Pt2, Vec2f, Vec3f, Vec3u, pt2}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BaseKind` [INFO] [stdout] --> client/src/render.rs:13:30 [INFO] [stdout] | [INFO] [stdout] 13 | use common::tile::{BaseGAct, BaseKind, BaseTile, Kind}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CopyGetters`, `Getters`, `MutGetters` [INFO] [stdout] --> client/src/render.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | use getset::{CopyGetters, Getters, MutGetters}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::Closure` [INFO] [stdout] --> client/src/render.rs:18:28 [INFO] [stdout] | [INFO] [stdout] 18 | use wasm_bindgen::{JsCast, prelude::Closure}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Element`, `MouseEvent`, `SvgGraphicsElement`, `SvgsvgElement` [INFO] [stdout] --> client/src/render.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | use web_sys::{DomParser, Element, MouseEvent, SupportedType, SvgElement, SvgGraphicsElement, SvgMatrix, SvgsvgElement}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `add_event_listener`, `console_log`, `document` [INFO] [stdout] --> client/src/render.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | use crate::{SVG_NS, add_event_listener, console_log, document}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `self` [INFO] [stdout] --> client/src/game.rs:1:23 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::mpsc::{self, Receiver}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Vec2`, `board::BasePort` [INFO] [stdout] --> client/src/game.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use common::{board::BasePort, game::{BaseGame, GenericGame}, game_state::BaseGameState, math::{Pt2, Vec2}, message::{Request, Response}, ... [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Entity` [INFO] [stdout] --> client/src/game.rs:5:53 [INFO] [stdout] | [INFO] [stdout] 5 | use specs::{Builder, Dispatcher, DispatcherBuilder, Entity, World, WorldExt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stdout] --> client/src/game.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use enum_dispatch::enum_dispatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `console_log` [INFO] [stdout] --> client/src/game.rs:10:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{console_log, document, ecs::{BoardInput, ButtonAction, Collider, ColliderInputSystem, KeyLabel, KeyboardInput, KeyboardInputS... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::JsCast` [INFO] [stdout] --> client/src/game/app.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use wasm_bindgen::JsCast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Element`, `HtmlTemplateElement` [INFO] [stdout] --> client/src/game/app.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use web_sys::{Element, HtmlTemplateElement}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `console_log` [INFO] [stdout] --> client/src/game/app.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::{SVG_NS, console_log, document, ecs::{Model, TileSelect, Transform}, render::{self, BaseBoardExt, BaseTileExt, TOKEN_RADIUS}, ... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TokenToPlace`, `console_log` [INFO] [stdout] --> client/src/game/app.rs:283:17 [INFO] [stdout] | [INFO] [stdout] 283 | ...ate::{console_log, ecs::{PlacedPort, PlacedTLoc, RunPlaceTileSystem, RunPlaceTokenSystem, SelectedTile, TileLabel, TokenToPlace, Trans... [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> client/src/ecs.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::consts::TAU` [INFO] [stdout] --> client/src/ecs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::f64::consts::TAU; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::mpsc::Sender` [INFO] [stdout] --> client/src/ecs.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::mpsc::Sender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `marker::PhantomData` [INFO] [stdout] --> client/src/ecs.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::{cell::Cell, marker::PhantomData}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> client/src/ecs.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `for_each_tile`, `nalgebra as na`, `nalgebra` [INFO] [stdout] --> client/src/ecs.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use common::{for_each_tile, nalgebra, nalgebra as na}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Mtx2`, `Vec2f`, `Vec3f`, `Vec3u` [INFO] [stdout] --> client/src/ecs.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | use common::math::{Mtx2, Pt2, Vec2f, Vec3f, Vec3u, pt2}; [INFO] [stdout] | ^^^^ ^^^^^ ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ComplexField`, `vector` [INFO] [stdout] --> client/src/ecs.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | use common::nalgebra::{ComplexField, vector}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseBoard`, `BaseGame`, `Board`, `Game`, `PathGame`, `RectangleBoard`, `RegularTile`, `for_each_board`, `for_each_game`, `math::Vec2` [INFO] [stdout] --> client/src/ecs.rs:13:22 [INFO] [stdout] | [INFO] [stdout] 13 | ...::{BaseBoard, BasePort, Board, RectangleBoard}, for_each_board, for_each_game, game::{BaseGame, Game, PathGame}, math::Vec2, tile::{RegularTile, T... [INFO] [stdout] | ^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^ ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Port`, `TLoc` [INFO] [stdout] --> client/src/ecs.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 14 | use common::board::{BaseTLoc, Port, TLoc}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Kind` [INFO] [stdout] --> client/src/ecs.rs:15:50 [INFO] [stdout] | [INFO] [stdout] 15 | use common::tile::{BaseGAct, BaseKind, BaseTile, Kind}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `chain`, `iproduct`, `izip` [INFO] [stdout] --> client/src/ecs.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | use itertools::{Itertools, chain, iproduct, izip}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DomParser`, `SupportedType`, `SvgElement`, `SvgMatrix`, `SvgsvgElement` [INFO] [stdout] --> client/src/ecs.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | use web_sys::{DomParser, Element, KeyboardEvent, MouseEvent, SupportedType, SvgElement, SvgGraphicsElement, SvgMatrix, SvgsvgElement}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::GameWorld` [INFO] [stdout] --> client/src/ecs.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::game::GameWorld; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SVG_NS`, `add_event_listener`, `console_log` [INFO] [stdout] --> client/src/ecs.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::{SVG_NS, add_event_listener, console_log, document}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_sys::HtmlInputElement` [INFO] [stdout] --> client/src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use web_sys::HtmlInputElement; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `console` [INFO] [stdout] --> client/src/lib.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 17 | use web_sys::{BinaryType, MessageEvent, WebSocket, console}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> client/src/lib.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ComplexField` [INFO] [stdout] --> client/src/render.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | use common::nalgebra::{ComplexField, vector}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GenericGame` [INFO] [stdout] --> client/src/game.rs:3:48 [INFO] [stdout] | [INFO] [stdout] 3 | use common::{board::BasePort, game::{BaseGame, GenericGame}, game_state::BaseGameState, math::{Pt2, Vec2}, message::{Request, Response}, ... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tile::Tile` [INFO] [stdout] --> client/src/game.rs:3:160 [INFO] [stdout] | [INFO] [stdout] 3 | ...2, Vec2}, message::{Request, Response}, player_state::Looker, tile::Tile}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> client/src/game/app.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Tile` [INFO] [stdout] --> client/src/ecs.rs:13:164 [INFO] [stdout] | [INFO] [stdout] 13 | ...ame::{BaseGame, Game, PathGame}, math::Vec2, tile::{RegularTile, Tile}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cws` [INFO] [stdout] --> client/src/lib.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | let cws = ws.clone(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cws` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `doc` [INFO] [stdout] --> client/src/processor.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let doc = web_sys::window().unwrap().document().unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_doc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loc` [INFO] [stdout] --> client/src/render.rs:96:31 [INFO] [stdout] | [INFO] [stdout] 96 | fn render_collider(&self, loc: &Self::TLoc) -> SvgElement { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `covered` [INFO] [stdout] --> client/src/render.rs:194:21 [INFO] [stdout] | [INFO] [stdout] 194 | let mut covered = vec![false; connections.len()]; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_covered` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> client/src/ecs.rs:313:63 [INFO] [stdout] | [INFO] [stdout] 313 | let mouseover_listener = Closure::wrap(Box::new(move |e: MouseEvent| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> client/src/ecs.rs:317:62 [INFO] [stdout] | [INFO] [stdout] 317 | let mouseout_listener = Closure::wrap(Box::new(move |e: MouseEvent| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> client/src/ecs.rs:328:59 [INFO] [stdout] | [INFO] [stdout] 328 | let click_listener = Closure::wrap(Box::new(move |e: MouseEvent| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order` [INFO] [stdout] --> client/src/ecs.rs:405:26 [INFO] [stdout] | [INFO] [stdout] 405 | for (svg_id, order, order_changed) in values { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tile` [INFO] [stdout] --> client/src/ecs.rs:628:34 [INFO] [stdout] | [INFO] [stdout] 628 | for (model, tile_select, tile) in (&data.models, &mut data.tile_selects, &data.tiles).join() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:45:21 [INFO] [stdout] | [INFO] [stdout] 45 | fn update(self, world: &mut GameWorld, requests: &mut Vec) -> AppState { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:45:44 [INFO] [stdout] | [INFO] [stdout] 45 | fn update(self, world: &mut GameWorld, requests: &mut Vec) -> AppState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player` [INFO] [stdout] --> client/src/game/app.rs:145:69 [INFO] [stdout] | [INFO] [stdout] 145 | ...self, world: &mut GameWorld, player: u32, kind: &BaseKind, index: u32, action: &BaseGAct, loc: &BaseTLoc) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:343:34 [INFO] [stdout] | [INFO] [stdout] 343 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:343:55 [INFO] [stdout] | [INFO] [stdout] 343 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> client/src/game/app.rs:343:78 [INFO] [stdout] | [INFO] [stdout] 343 | ...me, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:343:98 [INFO] [stdout] | [INFO] [stdout] 343 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:349:25 [INFO] [stdout] | [INFO] [stdout] 349 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:349:46 [INFO] [stdout] | [INFO] [stdout] 349 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:349:69 [INFO] [stdout] | [INFO] [stdout] 349 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> client/src/game/app.rs:355:49 [INFO] [stdout] | [INFO] [stdout] 355 | Response::PlacedToken { player, port } => if player == app.state.player_expect() { [INFO] [stdout] | ^^^^ help: try ignoring the field: `port: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:353:98 [INFO] [stdout] | [INFO] [stdout] 353 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:373:25 [INFO] [stdout] | [INFO] [stdout] 373 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:373:46 [INFO] [stdout] | [INFO] [stdout] 373 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:373:69 [INFO] [stdout] | [INFO] [stdout] 373 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:377:34 [INFO] [stdout] | [INFO] [stdout] 377 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:377:55 [INFO] [stdout] | [INFO] [stdout] 377 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:377:98 [INFO] [stdout] | [INFO] [stdout] 377 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:387:25 [INFO] [stdout] | [INFO] [stdout] 387 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:387:46 [INFO] [stdout] | [INFO] [stdout] 387 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:387:69 [INFO] [stdout] | [INFO] [stdout] 387 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:391:98 [INFO] [stdout] | [INFO] [stdout] 391 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:476:34 [INFO] [stdout] | [INFO] [stdout] 476 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:476:55 [INFO] [stdout] | [INFO] [stdout] 476 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `response` [INFO] [stdout] --> client/src/game/app.rs:476:78 [INFO] [stdout] | [INFO] [stdout] 476 | ...me, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:476:98 [INFO] [stdout] | [INFO] [stdout] 476 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> client/src/game/app.rs:482:25 [INFO] [stdout] | [INFO] [stdout] 482 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> client/src/game/app.rs:482:46 [INFO] [stdout] | [INFO] [stdout] 482 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:482:69 [INFO] [stdout] | [INFO] [stdout] 482 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `requests` [INFO] [stdout] --> client/src/game/app.rs:486:98 [INFO] [stdout] | [INFO] [stdout] 486 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> client/src/render.rs:194:17 [INFO] [stdout] | [INFO] [stdout] 194 | let mut covered = vec![false; connections.len()]; [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: field is never read: `board_entity` [INFO] [stdout] --> client/src/game/app.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) board_entity: Entity, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `callback` [INFO] [stdout] --> client/src/ecs.rs:170:5 [INFO] [stdout] | [INFO] [stdout] 170 | callback: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `keydown_listener` [INFO] [stdout] --> client/src/ecs.rs:208:5 [INFO] [stdout] | [INFO] [stdout] 208 | keydown_listener: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `keyup_listener` [INFO] [stdout] --> client/src/ecs.rs:209:5 [INFO] [stdout] | [INFO] [stdout] 209 | keyup_listener: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mouseover_listener` [INFO] [stdout] --> client/src/ecs.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | mouseover_listener: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `mouseout_listener` [INFO] [stdout] --> client/src/ecs.rs:296:5 [INFO] [stdout] | [INFO] [stdout] 296 | mouseout_listener: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `click_listener` [INFO] [stdout] --> client/src/ecs.rs:297:5 [INFO] [stdout] | [INFO] [stdout] 297 | click_listener: Closure, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 89 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 8.80s [INFO] running `Command { std: "docker" "inspect" "b9d8a969cebe67ba98f241ba3eb65b36568bffbd4e742f32e8ced87159089b05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9d8a969cebe67ba98f241ba3eb65b36568bffbd4e742f32e8ced87159089b05", kill_on_drop: false }` [INFO] [stdout] b9d8a969cebe67ba98f241ba3eb65b36568bffbd4e742f32e8ced87159089b05 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-91/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" "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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+8262275854dc0e5381c9d42d56257d94932c5a87" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 933411868f6118ad13aa8677022b28faeb10c0d1e60a27d78812e1a79ac5a730 [INFO] running `Command { std: "docker" "start" "-a" "933411868f6118ad13aa8677022b28faeb10c0d1e60a27d78812e1a79ac5a730", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/client/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: /opt/rustwide/workdir/client/Cargo.toml: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] [stderr] warning: unused import: `Vec2i` [INFO] [stderr] --> common/src/board.rs:1:31 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::math::{Pt2i, Pt2u, Vec2i, Vec2u}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stderr] --> common/src/board.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use enum_dispatch::enum_dispatch; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Getters` [INFO] [stderr] --> common/src/board.rs:9:27 [INFO] [stderr] | [INFO] [stderr] 9 | use getset::{CopyGetters, Getters}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stderr] --> common/src/tile.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use enum_dispatch::enum_dispatch; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::hash::Hash` [INFO] [stderr] --> common/src/game.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::hash::Hash; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `RectangleBoard`, `RegularTile` [INFO] [stderr] --> common/src/game.rs:8:34 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::{board::{Board, Port, RectangleBoard, TLoc}, game_state::GameState, tile::{GAct, Kind, RegularTile, Tile}}; [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stderr] --> common/src/player_state.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use enum_dispatch::enum_dispatch; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `RegularTile` [INFO] [stderr] --> common/src/player_state.rs:8:46 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::{board::Board, game::Game, tile::{RegularTile, Tile}}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `log::debug` [INFO] [stderr] --> common/src/board_state.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use log::debug; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stderr] --> common/src/board_state.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use enum_dispatch::enum_dispatch; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `RectangleBoard` [INFO] [stderr] --> common/src/board_state.rs:9:37 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::board::{BasePort, Board, RectangleBoard, Port, BaseTLoc, TLoc}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `RegularTile` [INFO] [stderr] --> common/src/board_state.rs:11:19 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::tile::{RegularTile, Tile, BaseTile}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stderr] --> common/src/game_state.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use enum_dispatch::enum_dispatch; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `log::*` [INFO] [stderr] --> common/src/game_state.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use log::*; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `PathGame`, `RectangleBoard`, `RegularTile` [INFO] [stderr] --> common/src/game_state.rs:10:48 [INFO] [stderr] | [INFO] [stderr] 10 | ...d, RectangleBoard, TLoc}, board_state::BoardState, game::{Game, PathGame}, pcg64, player_state::{Looker, PlayerState}, tile::{BaseKind, RegularTile, T... [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `uniform::UniformInt` [INFO] [stderr] --> common/src/lib.rs:11:37 [INFO] [stderr] | [INFO] [stderr] 11 | use rand::{distributions::{Uniform, uniform::UniformInt}, prelude::Distribution, thread_rng}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `game` [INFO] [stderr] --> common/src/game_state.rs:360:43 [INFO] [stderr] | [INFO] [stderr] 360 | pub fn handle_dead_players(&mut self, game: &G, players: &[u32]) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `game` [INFO] [stderr] --> common/src/game_state.rs:380:48 [INFO] [stderr] | [INFO] [stderr] 380 | pub fn take_turn_placing_player(&mut self, game: &G, port: &G::Port) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_game` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `action` [INFO] [stderr] --> common/src/game_state.rs:387:89 [INFO] [stderr] | [INFO] [stderr] 387 | pub fn can_place_tile(&mut self, game: &G, player: u32, kind: &G::Kind, index: u32, action: &G::GAct, loc: &G::TLoc) -> bool { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_action` [INFO] [stderr] [INFO] [stderr] warning: `common` (lib) generated 19 warnings [INFO] [stderr] warning: `common` (lib test) generated 19 warnings (19 duplicates) [INFO] [stderr] warning: unused import: `std::iter` [INFO] [stderr] --> server/src/processor.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::iter; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `MutexGuard` [INFO] [stderr] --> server/src/processor.rs:4:30 [INFO] [stderr] | [INFO] [stderr] 4 | use async_std::sync::{Mutex, MutexGuard}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `fnv::FnvHashMap` [INFO] [stderr] --> server/src/processor.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use fnv::FnvHashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `collections::HashMap` [INFO] [stderr] --> server/src/main.rs:5:11 [INFO] [stderr] | [INFO] [stderr] 5 | use std::{collections::HashMap, sync::Arc}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Response`, `game::BaseGame`, `game_state::BaseGameState` [INFO] [stderr] --> server/src/main.rs:9:14 [INFO] [stderr] | [INFO] [stderr] 9 | use common::{game::BaseGame, game_state::BaseGameState, message::{Request, Response}}; [INFO] [stderr] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `fnv::FnvHashMap` [INFO] [stderr] --> server/src/main.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use fnv::FnvHashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `UnboundedSender` [INFO] [stderr] --> server/src/main.rs:12:36 [INFO] [stderr] | [INFO] [stderr] 12 | use futures::channel::mpsc::{self, UnboundedSender}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `process_request` [INFO] [stderr] --> server/src/main.rs:15:25 [INFO] [stderr] | [INFO] [stderr] 15 | use crate::{processor::{process_request, respond_to_request}, state::State}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> server/src/main.rs:27:9 [INFO] [stderr] | [INFO] [stderr] 27 | let mut ws_stream = accept_async(stream).await.expect(&format!("Failed to accept {}", peer)); [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `GenericGame` [INFO] [stderr] --> server/src/game.rs:3:31 [INFO] [stderr] | [INFO] [stderr] 3 | use common::{game::{BaseGame, GenericGame}, game_state::BaseGameState}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `peer` [INFO] [stderr] --> server/src/processor.rs:24:50 [INFO] [stderr] | [INFO] [stderr] 24 | state.peers().iter().map(|(addr, peer)| (*addr, Response::Usernames{ names: usernames.clone() })) [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `peer` [INFO] [stderr] --> server/src/processor.rs:46:54 [INFO] [stderr] | [INFO] [stderr] 46 | state.peers().iter().map(|(addr, peer)| (*addr, Response::Usernames{ names: usernames.clone() })) [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_peer` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> server/src/game.rs:48:21 [INFO] [stderr] | [INFO] [stderr] 48 | .find(|(i, player)| player.username == username) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> server/src/game.rs:73:21 [INFO] [stderr] | [INFO] [stderr] 73 | .find(|(i, spectator)| spectator.username == username) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> server/src/game.rs:72:22 [INFO] [stderr] | [INFO] [stderr] 72 | if let Some((index, spectator)) = self.spectators.iter_mut().enumerate() [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `state_mut` [INFO] [stderr] --> server/src/game.rs:98:12 [INFO] [stderr] | [INFO] [stderr] 98 | pub fn state_mut(&mut self) -> Option<&mut BaseGameState> { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `server` (bin "server" test) generated 16 warnings [INFO] [stderr] warning: unused import: `itertools::Itertools` [INFO] [stderr] --> client/src/processor.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use itertools::Itertools; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::rc::Rc` [INFO] [stderr] --> client/src/render.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::rc::Rc; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::mpsc::Sender` [INFO] [stderr] --> client/src/render.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::sync::mpsc::Sender; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `cell::Cell`, `marker::PhantomData` [INFO] [stderr] --> client/src/render.rs:4:11 [INFO] [stderr] | [INFO] [stderr] 4 | use std::{cell::Cell, marker::PhantomData}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Mtx2`, `Vec2f` [INFO] [stderr] --> client/src/render.rs:9:20 [INFO] [stderr] | [INFO] [stderr] 9 | use common::math::{Mtx2, Pt2, Vec2f, Vec3f, Vec3u, pt2}; [INFO] [stderr] | ^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BaseKind` [INFO] [stderr] --> client/src/render.rs:13:30 [INFO] [stderr] | [INFO] [stderr] 13 | use common::tile::{BaseGAct, BaseKind, BaseTile, Kind}; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CopyGetters`, `Getters`, `MutGetters` [INFO] [stderr] --> client/src/render.rs:15:14 [INFO] [stderr] | [INFO] [stderr] 15 | use getset::{CopyGetters, Getters, MutGetters}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `prelude::Closure` [INFO] [stderr] --> client/src/render.rs:18:28 [INFO] [stderr] | [INFO] [stderr] 18 | use wasm_bindgen::{JsCast, prelude::Closure}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Element`, `MouseEvent`, `SvgGraphicsElement`, `SvgsvgElement` [INFO] [stderr] --> client/src/render.rs:19:26 [INFO] [stderr] | [INFO] [stderr] 19 | use web_sys::{DomParser, Element, MouseEvent, SupportedType, SvgElement, SvgGraphicsElement, SvgMatrix, SvgsvgElement}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `add_event_listener`, `console_log`, `document` [INFO] [stderr] --> client/src/render.rs:23:21 [INFO] [stderr] | [INFO] [stderr] 23 | use crate::{SVG_NS, add_event_listener, console_log, document}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Receiver`, `self` [INFO] [stderr] --> client/src/game.rs:1:23 [INFO] [stderr] | [INFO] [stderr] 1 | use std::sync::mpsc::{self, Receiver}; [INFO] [stderr] | ^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Vec2`, `board::BasePort` [INFO] [stderr] --> client/src/game.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | use common::{board::BasePort, game::{BaseGame, GenericGame}, game_state::BaseGameState, math::{Pt2, Vec2}, message::{Request, Response}, ... [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Entity` [INFO] [stderr] --> client/src/game.rs:5:53 [INFO] [stderr] | [INFO] [stderr] 5 | use specs::{Builder, Dispatcher, DispatcherBuilder, Entity, World, WorldExt}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `enum_dispatch::enum_dispatch` [INFO] [stderr] --> client/src/game.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use enum_dispatch::enum_dispatch; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `console_log` [INFO] [stderr] --> client/src/game.rs:10:13 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::{console_log, document, ecs::{BoardInput, ButtonAction, Collider, ColliderInputSystem, KeyLabel, KeyboardInput, KeyboardInputS... [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `wasm_bindgen::JsCast` [INFO] [stderr] --> client/src/game/app.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use wasm_bindgen::JsCast; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Element`, `HtmlTemplateElement` [INFO] [stderr] --> client/src/game/app.rs:8:15 [INFO] [stderr] | [INFO] [stderr] 8 | use web_sys::{Element, HtmlTemplateElement}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `console_log` [INFO] [stderr] --> client/src/game/app.rs:10:21 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::{SVG_NS, console_log, document, ecs::{Model, TileSelect, Transform}, render::{self, BaseBoardExt, BaseTileExt, TOKEN_RADIUS}, ... [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `TokenToPlace`, `console_log` [INFO] [stderr] --> client/src/game/app.rs:283:17 [INFO] [stderr] | [INFO] [stderr] 283 | ...ate::{console_log, ecs::{PlacedPort, PlacedTLoc, RunPlaceTileSystem, RunPlaceTokenSystem, SelectedTile, TileLabel, TokenToPlace, Trans... [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `HashMap` [INFO] [stderr] --> client/src/ecs.rs:2:24 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::f64::consts::TAU` [INFO] [stderr] --> client/src/ecs.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::f64::consts::TAU; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::mpsc::Sender` [INFO] [stderr] --> client/src/ecs.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::sync::mpsc::Sender; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `marker::PhantomData` [INFO] [stderr] --> client/src/ecs.rs:6:23 [INFO] [stderr] | [INFO] [stderr] 6 | use std::{cell::Cell, marker::PhantomData}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::hash::Hash` [INFO] [stderr] --> client/src/ecs.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::hash::Hash; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `for_each_tile`, `nalgebra as na`, `nalgebra` [INFO] [stderr] --> client/src/ecs.rs:9:14 [INFO] [stderr] | [INFO] [stderr] 9 | use common::{for_each_tile, nalgebra, nalgebra as na}; [INFO] [stderr] | ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Mtx2`, `Vec2f`, `Vec3f`, `Vec3u` [INFO] [stderr] --> client/src/ecs.rs:11:20 [INFO] [stderr] | [INFO] [stderr] 11 | use common::math::{Mtx2, Pt2, Vec2f, Vec3f, Vec3u, pt2}; [INFO] [stderr] | ^^^^ ^^^^^ ^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ComplexField`, `vector` [INFO] [stderr] --> client/src/ecs.rs:12:24 [INFO] [stderr] | [INFO] [stderr] 12 | use common::nalgebra::{ComplexField, vector}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BaseBoard`, `BaseGame`, `Board`, `Game`, `PathGame`, `RectangleBoard`, `RegularTile`, `for_each_board`, `for_each_game`, `math::Vec2` [INFO] [stderr] --> client/src/ecs.rs:13:22 [INFO] [stderr] | [INFO] [stderr] 13 | ...::{BaseBoard, BasePort, Board, RectangleBoard}, for_each_board, for_each_game, game::{BaseGame, Game, PathGame}, math::Vec2, tile::{RegularTile, T... [INFO] [stderr] | ^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^ ^^^^ ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Port`, `TLoc` [INFO] [stderr] --> client/src/ecs.rs:14:31 [INFO] [stderr] | [INFO] [stderr] 14 | use common::board::{BaseTLoc, Port, TLoc}; [INFO] [stderr] | ^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Kind` [INFO] [stderr] --> client/src/ecs.rs:15:50 [INFO] [stderr] | [INFO] [stderr] 15 | use common::tile::{BaseGAct, BaseKind, BaseTile, Kind}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `chain`, `iproduct`, `izip` [INFO] [stderr] --> client/src/ecs.rs:17:28 [INFO] [stderr] | [INFO] [stderr] 17 | use itertools::{Itertools, chain, iproduct, izip}; [INFO] [stderr] | ^^^^^ ^^^^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DomParser`, `SupportedType`, `SvgElement`, `SvgMatrix`, `SvgsvgElement` [INFO] [stderr] --> client/src/ecs.rs:20:15 [INFO] [stderr] | [INFO] [stderr] 20 | use web_sys::{DomParser, Element, KeyboardEvent, MouseEvent, SupportedType, SvgElement, SvgGraphicsElement, SvgMatrix, SvgsvgElement}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::game::GameWorld` [INFO] [stderr] --> client/src/ecs.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use crate::game::GameWorld; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `SVG_NS`, `add_event_listener`, `console_log` [INFO] [stderr] --> client/src/ecs.rs:24:13 [INFO] [stderr] | [INFO] [stderr] 24 | use crate::{SVG_NS, add_event_listener, console_log, document}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `web_sys::HtmlInputElement` [INFO] [stderr] --> client/src/lib.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use web_sys::HtmlInputElement; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `console` [INFO] [stderr] --> client/src/lib.rs:17:52 [INFO] [stderr] | [INFO] [stderr] 17 | use web_sys::{BinaryType, MessageEvent, WebSocket, console}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::iter` [INFO] [stderr] --> client/src/lib.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use std::iter; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `ComplexField` [INFO] [stderr] --> client/src/render.rs:10:24 [INFO] [stderr] | [INFO] [stderr] 10 | use common::nalgebra::{ComplexField, vector}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `GenericGame` [INFO] [stderr] --> client/src/game.rs:3:48 [INFO] [stderr] | [INFO] [stderr] 3 | use common::{board::BasePort, game::{BaseGame, GenericGame}, game_state::BaseGameState, math::{Pt2, Vec2}, message::{Request, Response}, ... [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tile::Tile` [INFO] [stderr] --> client/src/game.rs:3:160 [INFO] [stderr] | [INFO] [stderr] 3 | ...2, Vec2}, message::{Request, Response}, player_state::Looker, tile::Tile}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `itertools::Itertools` [INFO] [stderr] --> client/src/game/app.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use itertools::Itertools; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Tile` [INFO] [stderr] --> client/src/ecs.rs:13:164 [INFO] [stderr] | [INFO] [stderr] 13 | ...ame::{BaseGame, Game, PathGame}, math::Vec2, tile::{RegularTile, Tile}}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cws` [INFO] [stderr] --> client/src/lib.rs:109:9 [INFO] [stderr] | [INFO] [stderr] 109 | let cws = ws.clone(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cws` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `doc` [INFO] [stderr] --> client/src/processor.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | let doc = web_sys::window().unwrap().document().unwrap(); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_doc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `loc` [INFO] [stderr] --> client/src/render.rs:96:31 [INFO] [stderr] | [INFO] [stderr] 96 | fn render_collider(&self, loc: &Self::TLoc) -> SvgElement { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_loc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `covered` [INFO] [stderr] --> client/src/render.rs:194:21 [INFO] [stderr] | [INFO] [stderr] 194 | let mut covered = vec![false; connections.len()]; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_covered` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> client/src/ecs.rs:313:63 [INFO] [stderr] | [INFO] [stderr] 313 | let mouseover_listener = Closure::wrap(Box::new(move |e: MouseEvent| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> client/src/ecs.rs:317:62 [INFO] [stderr] | [INFO] [stderr] 317 | let mouseout_listener = Closure::wrap(Box::new(move |e: MouseEvent| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> client/src/ecs.rs:328:59 [INFO] [stderr] | [INFO] [stderr] 328 | let click_listener = Closure::wrap(Box::new(move |e: MouseEvent| { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `order` [INFO] [stderr] --> client/src/ecs.rs:405:26 [INFO] [stderr] | [INFO] [stderr] 405 | for (svg_id, order, order_changed) in values { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_order` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tile` [INFO] [stderr] --> client/src/ecs.rs:628:34 [INFO] [stderr] | [INFO] [stderr] 628 | for (model, tile_select, tile) in (&data.models, &mut data.tile_selects, &data.tiles).join() { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tile` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> client/src/game/app.rs:45:21 [INFO] [stderr] | [INFO] [stderr] 45 | fn update(self, world: &mut GameWorld, requests: &mut Vec) -> AppState { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `requests` [INFO] [stderr] --> client/src/game/app.rs:45:44 [INFO] [stderr] | [INFO] [stderr] 45 | fn update(self, world: &mut GameWorld, requests: &mut Vec) -> AppState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `player` [INFO] [stderr] --> client/src/game/app.rs:145:69 [INFO] [stderr] | [INFO] [stderr] 145 | ...self, world: &mut GameWorld, player: u32, kind: &BaseKind, index: u32, action: &BaseGAct, loc: &BaseTLoc) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_player` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `app` [INFO] [stderr] --> client/src/game/app.rs:343:34 [INFO] [stderr] | [INFO] [stderr] 343 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> client/src/game/app.rs:343:55 [INFO] [stderr] | [INFO] [stderr] 343 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `response` [INFO] [stderr] --> client/src/game/app.rs:343:78 [INFO] [stderr] | [INFO] [stderr] 343 | ...me, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `requests` [INFO] [stderr] --> client/src/game/app.rs:343:98 [INFO] [stderr] | [INFO] [stderr] 343 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `app` [INFO] [stderr] --> client/src/game/app.rs:349:25 [INFO] [stderr] | [INFO] [stderr] 349 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> client/src/game/app.rs:349:46 [INFO] [stderr] | [INFO] [stderr] 349 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `requests` [INFO] [stderr] --> client/src/game/app.rs:349:69 [INFO] [stderr] | [INFO] [stderr] 349 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `port` [INFO] [stderr] --> client/src/game/app.rs:355:49 [INFO] [stderr] | [INFO] [stderr] 355 | Response::PlacedToken { player, port } => if player == app.state.player_expect() { [INFO] [stderr] | ^^^^ help: try ignoring the field: `port: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `requests` [INFO] [stderr] --> client/src/game/app.rs:353:98 [INFO] [stderr] | [INFO] [stderr] 353 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `app` [INFO] [stderr] --> client/src/game/app.rs:373:25 [INFO] [stderr] | [INFO] [stderr] 373 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> client/src/game/app.rs:373:46 [INFO] [stderr] | [INFO] [stderr] 373 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `requests` [INFO] [stderr] --> client/src/game/app.rs:373:69 [INFO] [stderr] | [INFO] [stderr] 373 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `app` [INFO] [stderr] --> client/src/game/app.rs:377:34 [INFO] [stderr] | [INFO] [stderr] 377 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> client/src/game/app.rs:377:55 [INFO] [stderr] | [INFO] [stderr] 377 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `requests` [INFO] [stderr] --> client/src/game/app.rs:377:98 [INFO] [stderr] | [INFO] [stderr] 377 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `app` [INFO] [stderr] --> client/src/game/app.rs:387:25 [INFO] [stderr] | [INFO] [stderr] 387 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> client/src/game/app.rs:387:46 [INFO] [stderr] | [INFO] [stderr] 387 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `requests` [INFO] [stderr] --> client/src/game/app.rs:387:69 [INFO] [stderr] | [INFO] [stderr] 387 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `requests` [INFO] [stderr] --> client/src/game/app.rs:391:98 [INFO] [stderr] | [INFO] [stderr] 391 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `app` [INFO] [stderr] --> client/src/game/app.rs:476:34 [INFO] [stderr] | [INFO] [stderr] 476 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> client/src/game/app.rs:476:55 [INFO] [stderr] | [INFO] [stderr] 476 | ... fn handle_response(self, app: &mut app::Game, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplaySt... [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `response` [INFO] [stderr] --> client/src/game/app.rs:476:78 [INFO] [stderr] | [INFO] [stderr] 476 | ...me, world: &mut GameWorld, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_response` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `requests` [INFO] [stderr] --> client/src/game/app.rs:476:98 [INFO] [stderr] | [INFO] [stderr] 476 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `app` [INFO] [stderr] --> client/src/game/app.rs:482:25 [INFO] [stderr] | [INFO] [stderr] 482 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `world` [INFO] [stderr] --> client/src/game/app.rs:482:46 [INFO] [stderr] | [INFO] [stderr] 482 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `requests` [INFO] [stderr] --> client/src/game/app.rs:482:69 [INFO] [stderr] | [INFO] [stderr] 482 | fn update(self, app: &mut app::Game, world: &mut GameWorld, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `requests` [INFO] [stderr] --> client/src/game/app.rs:486:98 [INFO] [stderr] | [INFO] [stderr] 486 | ...World, response: Response, requests: &mut Vec) -> GameplayState { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_requests` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> client/src/render.rs:194:17 [INFO] [stderr] | [INFO] [stderr] 194 | let mut covered = vec![false; connections.len()]; [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `board_entity` [INFO] [stderr] --> client/src/game/app.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | pub(crate) board_entity: Entity, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field is never read: `callback` [INFO] [stderr] --> client/src/ecs.rs:170:5 [INFO] [stderr] | [INFO] [stderr] 170 | callback: Closure, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `keydown_listener` [INFO] [stderr] --> client/src/ecs.rs:208:5 [INFO] [stderr] | [INFO] [stderr] 208 | keydown_listener: Closure, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `keyup_listener` [INFO] [stderr] --> client/src/ecs.rs:209:5 [INFO] [stderr] | [INFO] [stderr] 209 | keyup_listener: Closure, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `mouseover_listener` [INFO] [stderr] --> client/src/ecs.rs:295:5 [INFO] [stderr] | [INFO] [stderr] 295 | mouseover_listener: Closure, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `mouseout_listener` [INFO] [stderr] --> client/src/ecs.rs:296:5 [INFO] [stderr] | [INFO] [stderr] 296 | mouseout_listener: Closure, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `click_listener` [INFO] [stderr] --> client/src/ecs.rs:297:5 [INFO] [stderr] | [INFO] [stderr] 297 | click_listener: Closure, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `client` (lib test) generated 89 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/client-1dc9a6a6ca332633) [INFO] [stdout] [INFO] [stderr] Running tests/app.rs (/opt/rustwide/target/debug/deps/app-1282fa06dfeb5eb0) [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test rust_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/common-64281d7596229595) [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test board::tests::test_rectangle_board_port_tiles_horz_sep ... ok [INFO] [stdout] test board::tests::test_rectangle_board_port_tiles_left ... ok [INFO] [stdout] test board::tests::test_rectangle_board_port_tiles_right ... ok [INFO] [stdout] test board::tests::test_rectangle_board_port_tiles_vert_sep ... ok [INFO] [stdout] test board::tests::test_rectangle_board_tile_ports ... ok [INFO] [stdout] test tile::tests::test_square_tile_rotate_cw ... ok [INFO] [stdout] test tile::tests::test_square_tile_rotate_ccw ... ok [INFO] [stdout] test tile::tests::test_square_tile_single_port_all ... ok [INFO] [stdout] test tile::tests::test_triangle_tile_all ... ok [INFO] [stdout] test game_state::tests::test_game_state_new ... ok [INFO] [stdout] test tile::tests::test_square_tile_all ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/server-7698c6896d77ad81) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests common [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "933411868f6118ad13aa8677022b28faeb10c0d1e60a27d78812e1a79ac5a730", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "933411868f6118ad13aa8677022b28faeb10c0d1e60a27d78812e1a79ac5a730", kill_on_drop: false }` [INFO] [stdout] 933411868f6118ad13aa8677022b28faeb10c0d1e60a27d78812e1a79ac5a730