[INFO] cloning repository https://github.com/KRakenoZavr/bomberman-backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KRakenoZavr/bomberman-backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKRakenoZavr%2Fbomberman-backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKRakenoZavr%2Fbomberman-backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e323c77588e938c52a9ec54e5274ccaa445b595 [INFO] building KRakenoZavr/bomberman-backend against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKRakenoZavr%2Fbomberman-backend" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/KRakenoZavr/bomberman-backend [INFO] finished tweaking git repo https://github.com/KRakenoZavr/bomberman-backend [INFO] tweaked toml for git repo https://github.com/KRakenoZavr/bomberman-backend written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/KRakenoZavr/bomberman-backend on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/KRakenoZavr/bomberman-backend already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5ff842583215e692083f53d5dbd06e77dfa02512982f0d0ea0597a7e0ab56d7a [INFO] running `Command { std: "docker" "start" "-a" "5ff842583215e692083f53d5dbd06e77dfa02512982f0d0ea0597a7e0ab56d7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5ff842583215e692083f53d5dbd06e77dfa02512982f0d0ea0597a7e0ab56d7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ff842583215e692083f53d5dbd06e77dfa02512982f0d0ea0597a7e0ab56d7a", kill_on_drop: false }` [INFO] [stdout] 5ff842583215e692083f53d5dbd06e77dfa02512982f0d0ea0597a7e0ab56d7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de1dacd6acaca88d6201a59b62afba70f4ab2d709c75032038fccf942c3b1337 [INFO] running `Command { std: "docker" "start" "-a" "de1dacd6acaca88d6201a59b62afba70f4ab2d709c75032038fccf942c3b1337", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling is-terminal v0.4.13 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling cpufeatures v0.2.13 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling winnow v0.6.18 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling unicode-xid v0.2.5 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.23 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Compiling async-trait v0.1.82 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling async-stream v0.3.5 [INFO] [stderr] Compiling crossbeam-channel v0.5.13 [INFO] [stderr] Compiling debounced v0.1.0 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling bus v2.4.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling tungstenite v0.18.0 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling tokio-tungstenite v0.18.0 [INFO] [stderr] Compiling serde_spanned v0.6.7 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling toml_edit v0.22.21 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling rocket_ws v0.1.1 [INFO] [stderr] Compiling bomberman v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Key` and `self` [INFO] [stdout] --> src/game/engine.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | key_handler::{self, Key, KeyHandler}, [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `movement::NextPos` [INFO] [stdout] --> src/game/player.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{key_handler::Key, movement::NextPos}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `State` and `http::Status` [INFO] [stdout] --> src/server/map.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::{http::Status, State}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `engine::Engine` and `map::Map` [INFO] [stdout] --> src/server/map.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::game::{engine::Engine, map::Map}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/server/ws.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parking_lot::Mutex` [INFO] [stdout] --> src/server/ws.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use parking_lot::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender` and `channel` [INFO] [stdout] --> src/server/ws.rs:4:38 [INFO] [stdout] | [INFO] [stdout] 4 | use rocket::futures::channel::mpsc::{channel, Sender}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::engine::Engine` [INFO] [stdout] --> src/server/ws.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::game::engine::Engine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BusMap` is never used [INFO] [stdout] --> src/bus/mod.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type BusMap = Arc>>>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_map` and `handle_key` are never used [INFO] [stdout] --> src/game/engine.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 45 | // MAP [INFO] [stdout] 46 | pub fn get_map(&self) -> Map { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn handle_key(&mut self, player_id: u8, key: u8, event: &str) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `key_handler_loop` is never used [INFO] [stdout] --> src/game/engine.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl Engine { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 74 | pub fn key_handler_loop(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TPoint` is never used [INFO] [stdout] --> src/game/map.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait TPoint { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_speed`, `right`, `up`, and `down` are never used [INFO] [stdout] --> src/game/movement.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Movement { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 6 | fn get_speed(&self) -> T; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | fn right(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | fn up(&mut self); [INFO] [stdout] | ^^ [INFO] [stdout] 11 | fn down(&mut self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NextPos` is never used [INFO] [stdout] --> src/game/movement.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait NextPos + Sub>: Movement + TPoint { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/player.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Player { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 18 | pub fn new(id: u8, lives: u8, speed: u8, bombs_count: u8, coord: Point) -> Player { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeyMessage` is never constructed [INFO] [stdout] --> src/server/ws.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct KeyMessage { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_handler` is never used [INFO] [stdout] --> src/server/ws.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn key_handler(ws: WebSocket, bus_map: &State>) -> Channel<'static> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 25s [INFO] running `Command { std: "docker" "inspect" "de1dacd6acaca88d6201a59b62afba70f4ab2d709c75032038fccf942c3b1337", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de1dacd6acaca88d6201a59b62afba70f4ab2d709c75032038fccf942c3b1337", kill_on_drop: false }` [INFO] [stdout] de1dacd6acaca88d6201a59b62afba70f4ab2d709c75032038fccf942c3b1337 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43b93e09a34bd06017019f1e569903a0d8e23c72a327f745df228c065a2e2b6d [INFO] running `Command { std: "docker" "start" "-a" "43b93e09a34bd06017019f1e569903a0d8e23c72a327f745df228c065a2e2b6d", kill_on_drop: false }` [INFO] [stderr] Compiling bomberman v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Key` and `self` [INFO] [stdout] --> src/game/engine.rs:6:19 [INFO] [stdout] | [INFO] [stdout] 6 | key_handler::{self, Key, KeyHandler}, [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `movement::NextPos` [INFO] [stdout] --> src/game/player.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{key_handler::Key, movement::NextPos}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `State` and `http::Status` [INFO] [stdout] --> src/server/map.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::{http::Status, State}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `engine::Engine` and `map::Map` [INFO] [stdout] --> src/server/map.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::game::{engine::Engine, map::Map}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/server/ws.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parking_lot::Mutex` [INFO] [stdout] --> src/server/ws.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use parking_lot::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender` and `channel` [INFO] [stdout] --> src/server/ws.rs:4:38 [INFO] [stdout] | [INFO] [stdout] 4 | use rocket::futures::channel::mpsc::{channel, Sender}; [INFO] [stdout] | ^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::engine::Engine` [INFO] [stdout] --> src/server/ws.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::game::engine::Engine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `BusMap` is never used [INFO] [stdout] --> src/bus/mod.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type BusMap = Arc>>>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_speed`, `right`, `up`, and `down` are never used [INFO] [stdout] --> src/game/movement.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Movement { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 6 | fn get_speed(&self) -> T; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | fn right(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | fn up(&mut self); [INFO] [stdout] | ^^ [INFO] [stdout] 11 | fn down(&mut self); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `NextPos` is never used [INFO] [stdout] --> src/game/movement.rs:14:11 [INFO] [stdout] | [INFO] [stdout] 14 | pub trait NextPos + Sub>: Movement + TPoint { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeyMessage` is never constructed [INFO] [stdout] --> src/server/ws.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct KeyMessage { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `key_handler` is never used [INFO] [stdout] --> src/server/ws.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn key_handler(ws: WebSocket, bus_map: &State>) -> Channel<'static> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_map` and `handle_key` are never used [INFO] [stdout] --> src/game/engine.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 45 | // MAP [INFO] [stdout] 46 | pub fn get_map(&self) -> Map { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn handle_key(&mut self, player_id: u8, key: u8, event: &str) -> Option<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `key_handler_loop` is never used [INFO] [stdout] --> src/game/engine.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl Engine { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 74 | pub fn key_handler_loop(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TPoint` is never used [INFO] [stdout] --> src/game/map.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait TPoint { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.60s [INFO] running `Command { std: "docker" "inspect" "43b93e09a34bd06017019f1e569903a0d8e23c72a327f745df228c065a2e2b6d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43b93e09a34bd06017019f1e569903a0d8e23c72a327f745df228c065a2e2b6d", kill_on_drop: false }` [INFO] [stdout] 43b93e09a34bd06017019f1e569903a0d8e23c72a327f745df228c065a2e2b6d