[INFO] cloning repository https://github.com/Rumiko7125/minectaft_rust_proxy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Rumiko7125/minectaft_rust_proxy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRumiko7125%2Fminectaft_rust_proxy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRumiko7125%2Fminectaft_rust_proxy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4ba14732000e3b214a2ebe2b337c987288dca900 [INFO] checking Rumiko7125/minectaft_rust_proxy/4ba14732000e3b214a2ebe2b337c987288dca900 against master#fe7294f8793d001bc3f9d197e7cdef6cdb46c15a for pr-153912 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRumiko7125%2Fminectaft_rust_proxy" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 40% (7556/18785) Updating files: 41% (7702/18785) Updating files: 42% (7890/18785) Updating files: 43% (8078/18785) Updating files: 44% (8266/18785) Updating files: 45% (8454/18785) Updating files: 46% (8642/18785) Updating files: 47% (8829/18785) Updating files: 48% (9017/18785) Updating files: 49% (9205/18785) Updating files: 50% (9393/18785) Updating files: 51% (9581/18785) Updating files: 52% (9769/18785) Updating files: 53% (9957/18785) Updating files: 54% (10144/18785) Updating files: 55% (10332/18785) Updating files: 56% (10520/18785) Updating files: 57% (10708/18785) Updating files: 58% (10896/18785) Updating files: 59% (11084/18785) Updating files: 60% (11271/18785) Updating files: 61% (11459/18785) Updating files: 62% (11647/18785) Updating files: 63% (11835/18785) Updating files: 64% (12023/18785) Updating files: 65% (12211/18785) Updating files: 66% (12399/18785) Updating files: 67% (12586/18785) Updating files: 68% (12774/18785) Updating files: 69% (12962/18785) Updating files: 70% (13150/18785) Updating files: 71% (13338/18785) Updating files: 72% (13526/18785) Updating files: 73% (13714/18785) Updating files: 74% (13901/18785) Updating files: 75% (14089/18785) Updating files: 76% (14277/18785) Updating files: 77% (14465/18785) Updating files: 78% (14653/18785) Updating files: 79% (14841/18785) Updating files: 80% (15028/18785) Updating files: 81% (15216/18785) Updating files: 82% (15404/18785) Updating files: 83% (15592/18785) Updating files: 84% (15780/18785) Updating files: 85% (15968/18785) Updating files: 86% (16156/18785) Updating files: 87% (16343/18785) Updating files: 88% (16531/18785) Updating files: 89% (16719/18785) Updating files: 89% (16860/18785) Updating files: 90% (16907/18785) Updating files: 91% (17095/18785) Updating files: 92% (17283/18785) Updating files: 93% (17471/18785) Updating files: 94% (17658/18785) Updating files: 95% (17846/18785) Updating files: 96% (18034/18785) Updating files: 97% (18222/18785) Updating files: 98% (18410/18785) Updating files: 99% (18598/18785) Updating files: 100% (18785/18785) Updating files: 100% (18785/18785), done. [INFO] started tweaking git repo https://github.com/Rumiko7125/minectaft_rust_proxy [INFO] finished tweaking git repo https://github.com/Rumiko7125/minectaft_rust_proxy [INFO] tweaked toml for git repo https://github.com/Rumiko7125/minectaft_rust_proxy written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Rumiko7125/minectaft_rust_proxy on toolchain fe7294f8793d001bc3f9d197e7cdef6cdb46c15a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fe7294f8793d001bc3f9d197e7cdef6cdb46c15a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Rumiko7125/minectaft_rust_proxy 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" "+fe7294f8793d001bc3f9d197e7cdef6cdb46c15a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unicode-ident v1.0.23 [INFO] [stderr] Downloaded pbkdf2 v0.12.2 [INFO] [stderr] Downloaded rust-embed-utils v8.11.0 [INFO] [stderr] Downloaded deranged v0.5.6 [INFO] [stderr] Downloaded bcrypt v0.15.1 [INFO] [stderr] Downloaded rust-embed-impl v8.11.0 [INFO] [stderr] Downloaded sqlx-macros v0.8.6 [INFO] [stderr] Downloaded base32 v0.5.1 [INFO] [stderr] Downloaded blowfish v0.9.1 [INFO] [stderr] Downloaded totp-rs v5.7.0 [INFO] [stderr] Downloaded unicase v2.9.0 [INFO] [stderr] Downloaded uuid v1.20.0 [INFO] [stderr] Downloaded sqlx-mysql v0.8.6 [INFO] [stderr] Downloaded sqlx-sqlite v0.8.6 [INFO] [stderr] Downloaded sqlx-core v0.8.6 [INFO] [stderr] Downloaded async-compression v0.4.39 [INFO] [stderr] Downloaded sqlx-postgres v0.8.6 [INFO] [stderr] Downloaded sqlx v0.8.6 [INFO] [stderr] Downloaded bzip2 v0.5.2 [INFO] [stderr] Downloaded lzma-rs v0.3.0 [INFO] [stderr] Downloaded xz2 v0.1.7 [INFO] [stderr] Downloaded native-tls v0.2.15 [INFO] [stderr] Downloaded system-configuration v0.7.0 [INFO] [stderr] Downloaded syn v2.0.115 [INFO] [stderr] Downloaded sqlx-macros-core v0.8.6 [INFO] [stderr] Downloaded redox_syscall v0.7.1 [INFO] [stderr] Downloaded compression-codecs v0.4.36 [INFO] [stderr] Downloaded deflate64 v0.1.10 [INFO] [stderr] Downloaded lzma-sys v0.1.20 [INFO] [stderr] Downloaded libc v0.2.181 [INFO] [stderr] Downloaded rust-embed v8.11.0 [INFO] [stderr] Downloaded libsqlite3-sys v0.30.1 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+fe7294f8793d001bc3f9d197e7cdef6cdb46c15a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cc8c3845f0ced5b1398abf27f6cd9384f79ab417c6ebde8f656ae64b97411822 [INFO] running `Command { std: "docker" "start" "-a" "cc8c3845f0ced5b1398abf27f6cd9384f79ab417c6ebde8f656ae64b97411822", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cc8c3845f0ced5b1398abf27f6cd9384f79ab417c6ebde8f656ae64b97411822", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc8c3845f0ced5b1398abf27f6cd9384f79ab417c6ebde8f656ae64b97411822", kill_on_drop: false }` [INFO] [stdout] cc8c3845f0ced5b1398abf27f6cd9384f79ab417c6ebde8f656ae64b97411822 [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=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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+fe7294f8793d001bc3f9d197e7cdef6cdb46c15a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dfc2a2331265453b320cc5fb18fbecb47292852ccf5ef9bc6b506524bb877c3d [INFO] running `Command { std: "docker" "start" "-a" "dfc2a2331265453b320cc5fb18fbecb47292852ccf5ef9bc6b506524bb877c3d", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.23 [INFO] [stderr] Compiling libc v0.2.181 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking futures-io v0.3.32 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Checking simd-adler32 v0.3.8 [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling syn v2.0.115 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling native-tls v0.2.15 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Compiling num-conv v0.2.0 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking deranged v0.5.6 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking openssl-probe v0.1.6 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking pxfm v0.1.27 [INFO] [stderr] Checking compression-core v0.4.31 [INFO] [stderr] Compiling rust-embed-utils v8.11.0 [INFO] [stderr] Checking compression-codecs v0.4.36 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking bytemuck v1.25.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling zip v2.4.2 [INFO] [stderr] Checking iri-string v0.7.10 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking bumpalo v3.19.1 [INFO] [stderr] Checking clap_builder v4.5.58 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking zopfli v0.8.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking lzma-rs v0.3.0 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Checking deflate64 v0.1.10 [INFO] [stderr] Checking base32 v0.5.1 [INFO] [stderr] Checking http-range-header v0.4.2 [INFO] [stderr] Checking totp-rs v5.7.0 [INFO] [stderr] Checking dashmap v6.1.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking uuid v1.20.0 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling lzma-sys v0.1.20 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking xz2 v0.1.7 [INFO] [stderr] Checking bzip2 v0.5.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking moxcms v0.7.11 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zeroize_derive v1.4.3 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking rustls-pki-types v1.14.0 [INFO] [stderr] Compiling rust-embed-impl v8.11.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking bcrypt v0.15.1 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Checking simple_asn1 v0.6.4 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking clap v4.5.58 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Checking image v0.25.9 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking qrcode v0.14.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking async-compression v0.4.39 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking sqlx-sqlite v0.8.6 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking axum v0.8.8 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking rust-embed v8.11.0 [INFO] [stderr] Checking minecraft-rust-proxy v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/db/admin.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [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: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/access.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/admin.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthError`, `LoginResponse`, and `TotpSetupResponse` [INFO] [stdout] --> src/web_api/handlers/auth.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::web_api::auth::{AuthError, Claims, LoginResponse, TotpSetupResponse}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/config.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db` [INFO] [stdout] --> src/web_api/handlers/logs.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/logs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db` [INFO] [stdout] --> src/web_api/handlers/players.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/players.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/routes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/two_factor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/db/admin.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [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: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/access.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/admin.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AuthError`, `LoginResponse`, and `TotpSetupResponse` [INFO] [stdout] --> src/web_api/handlers/auth.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::web_api::auth::{AuthError, Claims, LoginResponse, TotpSetupResponse}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/config.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db` [INFO] [stdout] --> src/web_api/handlers/logs.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/logs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db` [INFO] [stdout] --> src/web_api/handlers/players.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/players.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/routes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::proxy::Proxy` [INFO] [stdout] --> src/web_api/handlers/two_factor.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::proxy::Proxy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proxy` [INFO] [stdout] --> src/web_api/handlers/auth.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | fn get_jwt_secret(proxy: &Proxy) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/web_api/handlers/auth.rs:243:27 [INFO] [stdout] | [INFO] [stdout] 243 | pub async fn logout(State(state): State>, Json(body): Json) -> ApiResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/web_api/handlers/auth.rs:243:62 [INFO] [stdout] | [INFO] [stdout] 243 | pub async fn logout(State(state): State>, Json(body): Json) -> ApiResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proxy` [INFO] [stdout] --> src/web_api/handlers/auth.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | fn get_jwt_secret(proxy: &Proxy) -> Vec { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_proxy` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/web_api/handlers/auth.rs:243:27 [INFO] [stdout] | [INFO] [stdout] 243 | pub async fn logout(State(state): State>, Json(body): Json) -> ApiResult { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/web_api/handlers/auth.rs:243:62 [INFO] [stdout] | [INFO] [stdout] 243 | pub async fn logout(State(state): State>, Json(body): Json) -> ApiResult { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_whitelist_details`, `get_blacklist_details`, and `is_allowed` are never used [INFO] [stdout] --> src/access_control.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl AccessControl { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub async fn get_whitelist_details(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn get_blacklist_details(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn is_allowed(&self, username: &str) -> bool { [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 `remove_2fa`, `list_2fa_users`, and `cleanup_sessions` are never used [INFO] [stdout] --> src/auth/mod.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 28 | impl TwoFactorManager { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub async fn remove_2fa(&self, username: &str) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub async fn list_2fa_users(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub async fn cleanup_sessions(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TwoFactorStorage` is never constructed [INFO] [stdout] --> src/auth/storage.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TwoFactorStorage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load`, `save`, `get_secret`, `set_secret`, `has_secret`, and `remove_secret` are never used [INFO] [stdout] --> src/auth/storage.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl TwoFactorStorage { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 15 | /// Load from file or create new storage [INFO] [stdout] 16 | pub fn load(path: &Path) -> anyhow::Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn save(&self) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn get_secret(&self, username: &str) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn set_secret(&mut self, username: &str, secret_b32: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn has_secret(&self, username: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn remove_secret(&mut self, username: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/config.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 82 | impl Config { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 141 | pub async fn save(&self, pool: &SqlitePool) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `added_at` is never read [INFO] [stdout] --> src/db/access.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct WhitelistEntry { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 26 | pub username: String, [INFO] [stdout] 27 | pub added_at: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WhitelistEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reason` and `added_at` are never read [INFO] [stdout] --> src/db/access.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct BlacklistEntry { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 74 | pub username: String, [INFO] [stdout] 75 | pub reason: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 76 | pub added_at: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlacklistEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_blacklisted` is never used [INFO] [stdout] --> src/db/access.rs:92:14 [INFO] [stdout] | [INFO] [stdout] 92 | pub async fn is_blacklisted(pool: &SqlitePool, username: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_enabled_backends` is never used [INFO] [stdout] --> src/db/backend_servers.rs:327:14 [INFO] [stdout] | [INFO] [stdout] 327 | pub async fn get_enabled_backends(pool: &SqlitePool) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_backend_by_id` is never used [INFO] [stdout] --> src/db/backend_servers.rs:337:14 [INFO] [stdout] | [INFO] [stdout] 337 | pub async fn get_backend_by_id(pool: &SqlitePool, id: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_all_domain_routes` is never used [INFO] [stdout] --> src/db/domain_routes.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | pub async fn clear_all_domain_routes(pool: &SqlitePool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_last_updated` is never used [INFO] [stdout] --> src/db/domain_routes.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | pub async fn get_last_updated(pool: &SqlitePool) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_backend_id` is never used [INFO] [stdout] --> src/db/domain_routes.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 113 | pub async fn get_backend_id(pool: &SqlitePool, id: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/db/modlog.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ModLog { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 6 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModLog` 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: function `get_session_stats` is never used [INFO] [stdout] --> src/db/sessions.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | pub async fn get_session_stats(pool: &SqlitePool, username: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_setting` is never used [INFO] [stdout] --> src/db/settings.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn get_setting(pool: &SqlitePool, key: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_last_updated` is never used [INFO] [stdout] --> src/db/settings.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn get_last_updated(pool: &SqlitePool) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rejected`, `TwoFactor`, `Database`, `NotFound`, and `BadRequest` are never constructed [INFO] [stdout] --> src/error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ProxyError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Rejected(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | TwoFactor(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | Database(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | BadRequest(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProxyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_motd` is never used [INFO] [stdout] --> src/motd.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn load_motd(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_motd_players` is never used [INFO] [stdout] --> src/motd.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn update_motd_players(motd: &mut serde_json::Value, online: i32, max_players: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_raw` and `uuid_string` are never used [INFO] [stdout] --> src/protocol/login.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl LoginStartPacket { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn to_raw(&self) -> RawPacket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn uuid_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `status_request_packet` is never used [INFO] [stdout] --> src/protocol/status.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn status_request_packet() -> RawPacket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_raw` is never used [INFO] [stdout] --> src/protocol/status.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl StatusResponse { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn from_raw(packet: &RawPacket) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_varint` is never used [INFO] [stdout] --> src/protocol/varint.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn write_varint(writer: &mut W, value: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_string` is never used [INFO] [stdout] --> src/protocol/varint.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn read_string(reader: &mut R) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `show_log_level` and `save_log_level` are never read [INFO] [stdout] --> src/proxy/mod.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct BackendServerInfo { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | pub show_log_level: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub save_log_level: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BackendServerInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `backend_id`, `ping_passthrough`, and `motd_passthrough` are never read [INFO] [stdout] --> src/proxy/mod.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct TargetInfo { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 71 | pub backend_id: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub ping_passthrough: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 82 | pub motd_passthrough: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TargetInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_addr` is never used [INFO] [stdout] --> src/proxy/mod.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl TargetInfo { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | fn from_addr(addr: SocketAddr) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `remote_addr` is never read [INFO] [stdout] --> src/proxy/mod.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 129 | pub struct UserInfo { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 136 | pub remote_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LoginRequest` is never constructed [INFO] [stdout] --> src/web_api/auth/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct LoginRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LoginResponse` is never constructed [INFO] [stdout] --> src/web_api/auth/mod.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct LoginResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TotpSetupResponse` is never constructed [INFO] [stdout] --> src/web_api/auth/mod.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct TotpSetupResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TotpVerifyRequest` is never constructed [INFO] [stdout] --> src/web_api/auth/mod.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct TotpVerifyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthError` is never constructed [INFO] [stdout] --> src/web_api/auth/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct AuthError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `invalid_credentials`, `invalid_totp`, `account_locked`, and `unauthorized` are never used [INFO] [stdout] --> src/web_api/auth/mod.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl AuthError { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 55 | pub fn invalid_credentials() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn invalid_totp() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn account_locked(minutes: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn unauthorized() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `JWT_SECRET_LEN` is never used [INFO] [stdout] --> src/web_api/handlers/auth.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const JWT_SECRET_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_token` is never used [INFO] [stdout] --> src/web_api/handlers/auth.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn verify_token(token: &str, secret: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_whitelist_details`, `get_blacklist_details`, and `is_allowed` are never used [INFO] [stdout] --> src/access_control.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl AccessControl { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub async fn get_whitelist_details(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn get_blacklist_details(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn is_allowed(&self, username: &str) -> bool { [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 `remove_2fa`, `list_2fa_users`, and `cleanup_sessions` are never used [INFO] [stdout] --> src/auth/mod.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 28 | impl TwoFactorManager { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub async fn remove_2fa(&self, username: &str) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub async fn list_2fa_users(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub async fn cleanup_sessions(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TwoFactorStorage` is never constructed [INFO] [stdout] --> src/auth/storage.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct TwoFactorStorage { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `load`, `save`, `get_secret`, `set_secret`, `has_secret`, and `remove_secret` are never used [INFO] [stdout] --> src/auth/storage.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl TwoFactorStorage { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 15 | /// Load from file or create new storage [INFO] [stdout] 16 | pub fn load(path: &Path) -> anyhow::Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn save(&self) -> anyhow::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn get_secret(&self, username: &str) -> Option<&str> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn set_secret(&mut self, username: &str, secret_b32: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn has_secret(&self, username: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn remove_secret(&mut self, username: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/config.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 82 | impl Config { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 141 | pub async fn save(&self, pool: &SqlitePool) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `added_at` is never read [INFO] [stdout] --> src/db/access.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct WhitelistEntry { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 26 | pub username: String, [INFO] [stdout] 27 | pub added_at: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WhitelistEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `reason` and `added_at` are never read [INFO] [stdout] --> src/db/access.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct BlacklistEntry { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 74 | pub username: String, [INFO] [stdout] 75 | pub reason: Option, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 76 | pub added_at: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlacklistEntry` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_blacklisted` is never used [INFO] [stdout] --> src/db/access.rs:92:14 [INFO] [stdout] | [INFO] [stdout] 92 | pub async fn is_blacklisted(pool: &SqlitePool, username: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_enabled_backends` is never used [INFO] [stdout] --> src/db/backend_servers.rs:327:14 [INFO] [stdout] | [INFO] [stdout] 327 | pub async fn get_enabled_backends(pool: &SqlitePool) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_backend_by_id` is never used [INFO] [stdout] --> src/db/backend_servers.rs:337:14 [INFO] [stdout] | [INFO] [stdout] 337 | pub async fn get_backend_by_id(pool: &SqlitePool, id: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_all_domain_routes` is never used [INFO] [stdout] --> src/db/domain_routes.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 72 | pub async fn clear_all_domain_routes(pool: &SqlitePool) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_last_updated` is never used [INFO] [stdout] --> src/db/domain_routes.rs:100:14 [INFO] [stdout] | [INFO] [stdout] 100 | pub async fn get_last_updated(pool: &SqlitePool) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_backend_id` is never used [INFO] [stdout] --> src/db/domain_routes.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 113 | pub async fn get_backend_id(pool: &SqlitePool, id: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/db/modlog.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ModLog { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 6 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `ModLog` 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: function `get_session_stats` is never used [INFO] [stdout] --> src/db/sessions.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | pub async fn get_session_stats(pool: &SqlitePool, username: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_setting` is never used [INFO] [stdout] --> src/db/settings.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn get_setting(pool: &SqlitePool, key: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_last_updated` is never used [INFO] [stdout] --> src/db/settings.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 40 | pub async fn get_last_updated(pool: &SqlitePool) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rejected`, `TwoFactor`, `Database`, `NotFound`, and `BadRequest` are never constructed [INFO] [stdout] --> src/error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ProxyError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 18 | Rejected(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | TwoFactor(String), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | Database(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | BadRequest(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProxyError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_motd` is never used [INFO] [stdout] --> src/motd.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn load_motd(path: &Path) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_motd_players` is never used [INFO] [stdout] --> src/motd.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn update_motd_players(motd: &mut serde_json::Value, online: i32, max_players: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_raw` and `uuid_string` are never used [INFO] [stdout] --> src/protocol/login.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl LoginStartPacket { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn to_raw(&self) -> RawPacket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn uuid_string(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `status_request_packet` is never used [INFO] [stdout] --> src/protocol/status.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn status_request_packet() -> RawPacket { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_raw` is never used [INFO] [stdout] --> src/protocol/status.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl StatusResponse { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 16 | pub fn from_raw(packet: &RawPacket) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_varint` is never used [INFO] [stdout] --> src/protocol/varint.rs:41:14 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn write_varint(writer: &mut W, value: i32) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_string` is never used [INFO] [stdout] --> src/protocol/varint.rs:62:14 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn read_string(reader: &mut R) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `show_log_level` and `save_log_level` are never read [INFO] [stdout] --> src/proxy/mod.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct BackendServerInfo { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 33 | pub show_log_level: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 34 | pub save_log_level: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BackendServerInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `backend_id`, `ping_passthrough`, and `motd_passthrough` are never read [INFO] [stdout] --> src/proxy/mod.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct TargetInfo { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 71 | pub backend_id: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub ping_passthrough: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 82 | pub motd_passthrough: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TargetInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_addr` is never used [INFO] [stdout] --> src/proxy/mod.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 86 | impl TargetInfo { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | fn from_addr(addr: SocketAddr) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `remote_addr` is never read [INFO] [stdout] --> src/proxy/mod.rs:136:9 [INFO] [stdout] | [INFO] [stdout] 129 | pub struct UserInfo { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 136 | pub remote_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LoginRequest` is never constructed [INFO] [stdout] --> src/web_api/auth/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct LoginRequest { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LoginResponse` is never constructed [INFO] [stdout] --> src/web_api/auth/mod.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct LoginResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TotpSetupResponse` is never constructed [INFO] [stdout] --> src/web_api/auth/mod.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct TotpSetupResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TotpVerifyRequest` is never constructed [INFO] [stdout] --> src/web_api/auth/mod.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct TotpVerifyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthError` is never constructed [INFO] [stdout] --> src/web_api/auth/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct AuthError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `invalid_credentials`, `invalid_totp`, `account_locked`, and `unauthorized` are never used [INFO] [stdout] --> src/web_api/auth/mod.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl AuthError { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 55 | pub fn invalid_credentials() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn invalid_totp() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn account_locked(minutes: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn unauthorized() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `JWT_SECRET_LEN` is never used [INFO] [stdout] --> src/web_api/handlers/auth.rs:15:7 [INFO] [stdout] | [INFO] [stdout] 15 | const JWT_SECRET_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_token` is never used [INFO] [stdout] --> src/web_api/handlers/auth.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn verify_token(token: &str, secret: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 26s [INFO] running `Command { std: "docker" "inspect" "dfc2a2331265453b320cc5fb18fbecb47292852ccf5ef9bc6b506524bb877c3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfc2a2331265453b320cc5fb18fbecb47292852ccf5ef9bc6b506524bb877c3d", kill_on_drop: false }` [INFO] [stdout] dfc2a2331265453b320cc5fb18fbecb47292852ccf5ef9bc6b506524bb877c3d