[INFO] cloning repository https://github.com/uhryniuk/player2 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/uhryniuk/player2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuhryniuk%2Fplayer2", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuhryniuk%2Fplayer2'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9e77705be93e52985e4f4df896d2773ff6ac9f83 [INFO] testing uhryniuk/player2 against 1.79.0 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuhryniuk%2Fplayer2" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/uhryniuk/player2 on toolchain 1.79.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.79.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/uhryniuk/player2 [INFO] finished tweaking git repo https://github.com/uhryniuk/player2 [INFO] tweaked toml for git repo https://github.com/uhryniuk/player2 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/uhryniuk/player2 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" "+1.79.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thiserror-impl v1.0.53 [INFO] [stderr] Downloaded uuid v1.6.1 [INFO] [stderr] Downloaded thiserror v1.0.53 [INFO] [stderr] Downloaded axum-core v0.4.2 [INFO] [stderr] Downloaded axum_session v0.11.1 [INFO] [stderr] Downloaded itertools v0.12.0 [INFO] [stderr] Downloaded rustix v0.38.28 [INFO] [stderr] Downloaded bson v2.8.1 [INFO] [stderr] Downloaded libc v0.2.151 [INFO] [stderr] Downloaded serde_bytes v0.11.13 [INFO] [stderr] Downloaded async-trait v0.1.76 [INFO] [stderr] Downloaded async-compression v0.4.3 [INFO] [stderr] Downloaded sharded-slab v0.1.6 [INFO] [stderr] Downloaded mongodb v2.8.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ca09a42b34bdfcc2ba87e045a7a33d22f533371580c43202eee7d93f496bb25d [INFO] running `Command { std: "docker" "start" "-a" "ca09a42b34bdfcc2ba87e045a7a33d22f533371580c43202eee7d93f496bb25d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ca09a42b34bdfcc2ba87e045a7a33d22f533371580c43202eee7d93f496bb25d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca09a42b34bdfcc2ba87e045a7a33d22f533371580c43202eee7d93f496bb25d", kill_on_drop: false }` [INFO] [stdout] ca09a42b34bdfcc2ba87e045a7a33d22f533371580c43202eee7d93f496bb25d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0ba9642bbfdb805ed2f3c281f12f50cb54a777cbff8b63bab9edcfbd05bd747 [INFO] running `Command { std: "docker" "start" "-a" "c0ba9642bbfdb805ed2f3c281f12f50cb54a777cbff8b63bab9edcfbd05bd747", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling smallvec v1.11.1 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling jobserver v0.1.26 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling cpufeatures v0.2.9 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling ring v0.17.7 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling thiserror v1.0.53 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling async-trait v0.1.76 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling base64 v0.21.5 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.18 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling zstd-sys v2.0.8+zstd.1.5.5 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling data-encoding v2.4.0 [INFO] [stderr] Compiling iana-time-zone v0.1.59 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling time-macros v0.2.16 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.53 [INFO] [stderr] Compiling tokio v1.35.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling webpki-roots v0.25.3 [INFO] [stderr] Compiling zstd-safe v6.0.6 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling crc v3.0.1 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling polyval v0.6.1 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling time v0.3.31 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling crossbeam-queue v0.3.10 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling http v1.0.0 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling bitflags v2.4.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling pin-project v1.1.3 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling rustc_version_runtime v0.2.1 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling ghash v0.5.0 [INFO] [stderr] Compiling brotli-decompressor v2.5.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling aes v0.8.3 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling axum-core v0.4.2 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling cookie v0.18.0 [INFO] [stderr] Compiling whoami v1.4.1 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling brotli v3.4.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling tokio-util v0.7.9 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling trust-dns-proto v0.21.2 [INFO] [stderr] Compiling h2 v0.3.21 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling tungstenite v0.20.1 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling flate2 v1.0.27 [INFO] [stderr] Compiling uuid v1.6.1 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling itertools v0.12.0 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling serde_bytes v0.11.13 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Compiling http-body-util v0.1.0 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling serde_with v1.14.0 [INFO] [stderr] Compiling sqlformat v0.2.3 [INFO] [stderr] Compiling bson v2.8.1 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling trust-dns-resolver v0.21.2 [INFO] [stderr] Compiling tokio-tungstenite v0.20.1 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling serde_path_to_error v0.1.14 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling tracing-log v0.1.3 [INFO] [stderr] Compiling sharded-slab v0.1.6 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] Compiling iri-string v0.7.0 [INFO] [stderr] Compiling http-range-header v0.3.1 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling take_mut v0.2.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.17 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling zstd v0.12.4 [INFO] [stderr] Compiling async-compression v0.4.3 [INFO] [stderr] Compiling tower-http v0.4.4 [INFO] [stderr] Compiling sqlx-core v0.7.3 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling mongodb v2.8.0 [INFO] [stderr] Compiling sqlx-postgres v0.7.3 [INFO] [stderr] Compiling sqlx v0.7.3 [INFO] [stderr] Compiling axum_session v0.11.1 [INFO] [stderr] Compiling player2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Html`, `Message`, `Method`, `Router`, `body::Body` [INFO] [stdout] --> src/web/connect4.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | body::Body, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | extract::ws::{Message, WebSocket, WebSocketUpgrade}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | extract::{Path, Query}, [INFO] [stdout] 16 | http::{Method, StatusCode}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | response::{Html, IntoResponse, Json}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/web/connect4.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | use serde_json::{self, json}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete`, `put` [INFO] [stdout] --> src/web/router.rs:6:36 [INFO] [stdout] | [INFO] [stdout] 6 | pub use axum::routing::{get, post, put, delete}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NewUser` [INFO] [stdout] --> src/main.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use db::models::{User, NewUser}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `bson` [INFO] [stdout] --> src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use mongodb::{bson, Client}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ENV_TYPE`, `SINGLETON`, `var` [INFO] [stdout] --> src/main.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | use config::{ENV_TYPE, var, SINGLETON}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Level`, `span` [INFO] [stdout] --> src/main.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | use tracing::{span, Level}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws` [INFO] [stdout] --> src/web/connect4.rs:286:59 [INFO] [stdout] | [INFO] [stdout] 286 | async fn handler(queries: Query>, ws: WebSocketUpgrade) -> impl IntoResponse { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ws` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/web/connect4.rs:296:13 [INFO] [stdout] | [INFO] [stdout] 296 | let msg = if let Ok(msg) = msg { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/web/connect4.rs:296:29 [INFO] [stdout] | [INFO] [stdout] 296 | let msg = if let Ok(msg) = msg { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `router` [INFO] [stdout] --> src/web/server.rs:29:36 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn start_https(self, router: Router) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/web/connect4.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let (t, s) = computed.iter().nth(rng.gen_range(0..7)).unwrap().clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppState` is never constructed [INFO] [stdout] --> src/main.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl AppState { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 28 | pub fn new() -> AppState{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SingletonHashMap` is never used [INFO] [stdout] --> src/config.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type SingletonHashMap = HashMap<&'static str, &'static str>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EnvVar` is never used [INFO] [stdout] --> src/config.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type EnvVar = &'static str; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SINGLETON` is never used [INFO] [stdout] --> src/config.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub static SINGLETON: Lazy> = Lazy::new({|| { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PORT` is never used [INFO] [stdout] --> src/config.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const PORT: EnvVar = "PORT"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENV_TYPE` is never used [INFO] [stdout] --> src/config.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const ENV_TYPE: EnvVar = "ENV"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DB_PORT` is never used [INFO] [stdout] --> src/config.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | pub const DB_PORT: EnvVar = "DB_PORT"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DB_ADDR` is never used [INFO] [stdout] --> src/config.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub const DB_ADDR: EnvVar = "DB_ADDR"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `var` is never used [INFO] [stdout] --> src/config.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn var(key: EnvVar) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `blank_board` is never used [INFO] [stdout] --> src/web/connect4.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl GameState { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 104 | [INFO] [stdout] 105 | pub fn blank_board() -> Board { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handler` is never used [INFO] [stdout] --> src/web/connect4.rs:286:10 [INFO] [stdout] | [INFO] [stdout] 286 | async fn handler(queries: Query>, ws: WebSocketUpgrade) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_socket` is never used [INFO] [stdout] --> src/web/connect4.rs:294:10 [INFO] [stdout] | [INFO] [stdout] 294 | async fn handle_socket(mut socket: WebSocket) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_https` is never used [INFO] [stdout] --> src/web/server.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl HttpServer { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn start_https(self, router: Router) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PUT` and `DELETE` are never constructed [INFO] [stdout] --> src/web/router.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Method { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | PUT, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | DELETE [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Method` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/web/router.rs:67:68 [INFO] [stdout] | [INFO] [stdout] 67 | self.route_logs.iter_mut().for_each(|rl| rl.add_prefix(path.clone())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 27s [INFO] running `Command { std: "docker" "inspect" "c0ba9642bbfdb805ed2f3c281f12f50cb54a777cbff8b63bab9edcfbd05bd747", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0ba9642bbfdb805ed2f3c281f12f50cb54a777cbff8b63bab9edcfbd05bd747", kill_on_drop: false }` [INFO] [stdout] c0ba9642bbfdb805ed2f3c281f12f50cb54a777cbff8b63bab9edcfbd05bd747 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d335c7558f794147a448246d574baa38aaed69386e3ff5c490ac5466a02f461 [INFO] running `Command { std: "docker" "start" "-a" "4d335c7558f794147a448246d574baa38aaed69386e3ff5c490ac5466a02f461", kill_on_drop: false }` [INFO] [stderr] Compiling player2 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Html`, `Message`, `Method`, `Router`, `body::Body` [INFO] [stdout] --> src/web/connect4.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | body::Body, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | extract::ws::{Message, WebSocket, WebSocketUpgrade}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | extract::{Path, Query}, [INFO] [stdout] 16 | http::{Method, StatusCode}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | response::{Html, IntoResponse, Json}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/web/connect4.rs:21:24 [INFO] [stdout] | [INFO] [stdout] 21 | use serde_json::{self, json}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete`, `put` [INFO] [stdout] --> src/web/router.rs:6:36 [INFO] [stdout] | [INFO] [stdout] 6 | pub use axum::routing::{get, post, put, delete}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NewUser` [INFO] [stdout] --> src/main.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use db::models::{User, NewUser}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `bson` [INFO] [stdout] --> src/main.rs:15:15 [INFO] [stdout] | [INFO] [stdout] 15 | use mongodb::{bson, Client}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ENV_TYPE`, `SINGLETON`, `var` [INFO] [stdout] --> src/main.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | use config::{ENV_TYPE, var, SINGLETON}; [INFO] [stdout] | ^^^^^^^^ ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Level`, `span` [INFO] [stdout] --> src/main.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 19 | use tracing::{span, Level}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ws` [INFO] [stdout] --> src/web/connect4.rs:286:59 [INFO] [stdout] | [INFO] [stdout] 286 | async fn handler(queries: Query>, ws: WebSocketUpgrade) -> impl IntoResponse { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ws` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/web/connect4.rs:296:13 [INFO] [stdout] | [INFO] [stdout] 296 | let msg = if let Ok(msg) = msg { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `msg` [INFO] [stdout] --> src/web/connect4.rs:296:29 [INFO] [stdout] | [INFO] [stdout] 296 | let msg = if let Ok(msg) = msg { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `router` [INFO] [stdout] --> src/web/server.rs:29:36 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn start_https(self, router: Router) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_router` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> src/web/connect4.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let (t, s) = computed.iter().nth(rng.gen_range(0..7)).unwrap().clone(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppState` is never constructed [INFO] [stdout] --> src/main.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/main.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl AppState { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 28 | pub fn new() -> AppState{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `SingletonHashMap` is never used [INFO] [stdout] --> src/config.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type SingletonHashMap = HashMap<&'static str, &'static str>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `EnvVar` is never used [INFO] [stdout] --> src/config.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type EnvVar = &'static str; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `SINGLETON` is never used [INFO] [stdout] --> src/config.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub static SINGLETON: Lazy> = Lazy::new({|| { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PORT` is never used [INFO] [stdout] --> src/config.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const PORT: EnvVar = "PORT"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENV_TYPE` is never used [INFO] [stdout] --> src/config.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const ENV_TYPE: EnvVar = "ENV"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DB_PORT` is never used [INFO] [stdout] --> src/config.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | pub const DB_PORT: EnvVar = "DB_PORT"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DB_ADDR` is never used [INFO] [stdout] --> src/config.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub const DB_ADDR: EnvVar = "DB_ADDR"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `var` is never used [INFO] [stdout] --> src/config.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn var(key: EnvVar) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `blank_board` is never used [INFO] [stdout] --> src/web/connect4.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl GameState { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 104 | [INFO] [stdout] 105 | pub fn blank_board() -> Board { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handler` is never used [INFO] [stdout] --> src/web/connect4.rs:286:10 [INFO] [stdout] | [INFO] [stdout] 286 | async fn handler(queries: Query>, ws: WebSocketUpgrade) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_socket` is never used [INFO] [stdout] --> src/web/connect4.rs:294:10 [INFO] [stdout] | [INFO] [stdout] 294 | async fn handle_socket(mut socket: WebSocket) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_https` is never used [INFO] [stdout] --> src/web/server.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl HttpServer { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub async fn start_https(self, router: Router) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PUT` and `DELETE` are never constructed [INFO] [stdout] --> src/web/router.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Method { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 12 | PUT, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | DELETE [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Method` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/web/router.rs:67:68 [INFO] [stdout] | [INFO] [stdout] 67 | self.route_logs.iter_mut().for_each(|rl| rl.add_prefix(path.clone())); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.66s [INFO] running `Command { std: "docker" "inspect" "4d335c7558f794147a448246d574baa38aaed69386e3ff5c490ac5466a02f461", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d335c7558f794147a448246d574baa38aaed69386e3ff5c490ac5466a02f461", kill_on_drop: false }` [INFO] [stdout] 4d335c7558f794147a448246d574baa38aaed69386e3ff5c490ac5466a02f461 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e4a3b2d99b271b9c94d13ad69106c8e967e754aa7df055d9ed0952f63529f5a8 [INFO] running `Command { std: "docker" "start" "-a" "e4a3b2d99b271b9c94d13ad69106c8e967e754aa7df055d9ed0952f63529f5a8", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Html`, `Message`, `Method`, `Router`, `body::Body` [INFO] [stderr] --> src/web/connect4.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | body::Body, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 14 | extract::ws::{Message, WebSocket, WebSocketUpgrade}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 15 | extract::{Path, Query}, [INFO] [stderr] 16 | http::{Method, StatusCode}, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 17 | response::{Html, IntoResponse, Json}, [INFO] [stderr] | ^^^^ [INFO] [stderr] 18 | Router, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `json` [INFO] [stderr] --> src/web/connect4.rs:21:24 [INFO] [stderr] | [INFO] [stderr] 21 | use serde_json::{self, json}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `delete`, `put` [INFO] [stderr] --> src/web/router.rs:6:36 [INFO] [stderr] | [INFO] [stderr] 6 | pub use axum::routing::{get, post, put, delete}; [INFO] [stderr] | ^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `NewUser` [INFO] [stderr] --> src/main.rs:7:24 [INFO] [stderr] | [INFO] [stderr] 7 | use db::models::{User, NewUser}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Client`, `bson` [INFO] [stderr] --> src/main.rs:15:15 [INFO] [stderr] | [INFO] [stderr] 15 | use mongodb::{bson, Client}; [INFO] [stderr] | ^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ENV_TYPE`, `SINGLETON`, `var` [INFO] [stderr] --> src/main.rs:17:14 [INFO] [stderr] | [INFO] [stderr] 17 | use config::{ENV_TYPE, var, SINGLETON}; [INFO] [stderr] | ^^^^^^^^ ^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Level`, `span` [INFO] [stderr] --> src/main.rs:19:15 [INFO] [stderr] | [INFO] [stderr] 19 | use tracing::{span, Level}; [INFO] [stderr] | ^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ws` [INFO] [stderr] --> src/web/connect4.rs:286:59 [INFO] [stderr] | [INFO] [stderr] 286 | async fn handler(queries: Query>, ws: WebSocketUpgrade) -> impl IntoResponse { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_ws` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/web/connect4.rs:296:13 [INFO] [stderr] | [INFO] [stderr] 296 | let msg = if let Ok(msg) = msg { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `msg` [INFO] [stderr] --> src/web/connect4.rs:296:29 [INFO] [stderr] | [INFO] [stderr] 296 | let msg = if let Ok(msg) = msg { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_msg` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `router` [INFO] [stderr] --> src/web/server.rs:29:36 [INFO] [stderr] | [INFO] [stderr] 29 | pub async fn start_https(self, router: Router) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_router` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `s` [INFO] [stderr] --> src/web/connect4.rs:63:21 [INFO] [stderr] | [INFO] [stderr] 63 | let (t, s) = computed.iter().nth(rng.gen_range(0..7)).unwrap().clone(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stderr] [INFO] [stderr] warning: struct `AppState` is never constructed [INFO] [stderr] --> src/main.rs:22:8 [INFO] [stderr] | [INFO] [stderr] 22 | struct AppState { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/main.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 27 | impl AppState { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 28 | pub fn new() -> AppState{ [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `SingletonHashMap` is never used [INFO] [stderr] --> src/config.rs:8:6 [INFO] [stderr] | [INFO] [stderr] 8 | type SingletonHashMap = HashMap<&'static str, &'static str>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `EnvVar` is never used [INFO] [stderr] --> src/config.rs:9:6 [INFO] [stderr] | [INFO] [stderr] 9 | type EnvVar = &'static str; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `SINGLETON` is never used [INFO] [stderr] --> src/config.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 16 | pub static SINGLETON: Lazy> = Lazy::new({|| { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `PORT` is never used [INFO] [stderr] --> src/config.rs:22:11 [INFO] [stderr] | [INFO] [stderr] 22 | pub const PORT: EnvVar = "PORT"; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `ENV_TYPE` is never used [INFO] [stderr] --> src/config.rs:23:11 [INFO] [stderr] | [INFO] [stderr] 23 | pub const ENV_TYPE: EnvVar = "ENV"; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DB_PORT` is never used [INFO] [stderr] --> src/config.rs:24:11 [INFO] [stderr] | [INFO] [stderr] 24 | pub const DB_PORT: EnvVar = "DB_PORT"; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DB_ADDR` is never used [INFO] [stderr] --> src/config.rs:25:11 [INFO] [stderr] | [INFO] [stderr] 25 | pub const DB_ADDR: EnvVar = "DB_ADDR"; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `var` is never used [INFO] [stderr] --> src/config.rs:30:8 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn var(key: EnvVar) -> Option { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `blank_board` is never used [INFO] [stderr] --> src/web/connect4.rs:105:12 [INFO] [stderr] | [INFO] [stderr] 103 | impl GameState { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] 104 | [INFO] [stderr] 105 | pub fn blank_board() -> Board { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `handler` is never used [INFO] [stderr] --> src/web/connect4.rs:286:10 [INFO] [stderr] | [INFO] [stderr] 286 | async fn handler(queries: Query>, ws: WebSocketUpgrade) -> impl IntoResponse { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `handle_socket` is never used [INFO] [stderr] --> src/web/connect4.rs:294:10 [INFO] [stderr] | [INFO] [stderr] 294 | async fn handle_socket(mut socket: WebSocket) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `start_https` is never used [INFO] [stderr] --> src/web/server.rs:29:18 [INFO] [stderr] | [INFO] [stderr] 16 | impl HttpServer { [INFO] [stderr] | --------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 29 | pub async fn start_https(self, router: Router) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `PUT` and `DELETE` are never constructed [INFO] [stderr] --> src/web/router.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub enum Method { [INFO] [stderr] | ------ variants in this enum [INFO] [stderr] ... [INFO] [stderr] 12 | PUT, [INFO] [stderr] | ^^^ [INFO] [stderr] 13 | DELETE [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Method` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/web/router.rs:67:68 [INFO] [stderr] | [INFO] [stderr] 67 | self.route_logs.iter_mut().for_each(|rl| rl.add_prefix(path.clone())); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `player2` (bin "player2" test) generated 28 warnings (run `cargo fix --bin "player2" --tests` to apply 8 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/player2-68b4a6cea4acccf0) [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" "e4a3b2d99b271b9c94d13ad69106c8e967e754aa7df055d9ed0952f63529f5a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e4a3b2d99b271b9c94d13ad69106c8e967e754aa7df055d9ed0952f63529f5a8", kill_on_drop: false }` [INFO] [stdout] e4a3b2d99b271b9c94d13ad69106c8e967e754aa7df055d9ed0952f63529f5a8