[INFO] cloning repository https://github.com/pplee2020/actixTest
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pplee2020/actixTest" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpplee2020%2FactixTest", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpplee2020%2FactixTest'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 27cd2d4fc429f51d61eb7d7030da73399545ce57
[INFO] checking pplee2020/actixTest against master#03c609abb6638f9d7f49f34326d4137d07f5cd61 for pr-155945
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpplee2020%2FactixTest" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/pplee2020/actixTest
[INFO] finished tweaking git repo https://github.com/pplee2020/actixTest
[INFO] tweaked toml for git repo https://github.com/pplee2020/actixTest written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/pplee2020/actixTest on toolchain 03c609abb6638f9d7f49f34326d4137d07f5cd61
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+03c609abb6638f9d7f49f34326d4137d07f5cd61" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/pplee2020/actixTest 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" "+03c609abb6638f9d7f49f34326d4137d07f5cd61" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded validator_derive v0.16.0
[INFO] [stderr]   Downloaded validator_types v0.16.0
[INFO] [stderr]   Downloaded actix-multipart-derive v0.6.1
[INFO] [stderr]   Downloaded actix-multipart v0.6.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+03c609abb6638f9d7f49f34326d4137d07f5cd61" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 53b80bb8a4add80cc848f3394881dc22051eb81b3df30a0d78b15f70f4a62bb8
[INFO] running `Command { std: "docker" "start" "-a" "53b80bb8a4add80cc848f3394881dc22051eb81b3df30a0d78b15f70f4a62bb8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "53b80bb8a4add80cc848f3394881dc22051eb81b3df30a0d78b15f70f4a62bb8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "53b80bb8a4add80cc848f3394881dc22051eb81b3df30a0d78b15f70f4a62bb8", kill_on_drop: false }`
[INFO] [stdout] 53b80bb8a4add80cc848f3394881dc22051eb81b3df30a0d78b15f70f4a62bb8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+03c609abb6638f9d7f49f34326d4137d07f5cd61" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c1ee966b79764c89a110b6c6a7fcb2efa52927023fbfd3789f78e71aba6528f3
[INFO] running `Command { std: "docker" "start" "-a" "c1ee966b79764c89a110b6c6a7fcb2efa52927023fbfd3789f78e71aba6528f3", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.184
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking mio v1.2.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.3
[INFO] [stderr]     Checking getrandom v0.3.4
[INFO] [stderr]    Compiling zerofrom-derive v0.1.7
[INFO] [stderr]    Compiling yoke-derive v0.8.2
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]    Compiling unicode-segmentation v1.13.2
[INFO] [stderr]     Checking simd-adler32 v0.3.9
[INFO] [stderr]    Compiling bytes v1.11.1
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling num-conv v0.2.1
[INFO] [stderr]     Checking indexmap v2.13.1
[INFO] [stderr]    Compiling aho-corasick v1.1.4
[INFO] [stderr]     Checking rand_core v0.9.5
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling time-macros v0.2.27
[INFO] [stderr]     Checking socket2 v0.5.10
[INFO] [stderr]     Checking miniz_oxide v0.8.9
[INFO] [stderr]     Checking getrandom v0.2.17
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking tokio v1.51.1
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]     Checking tinyvec v1.11.0
[INFO] [stderr]    Compiling bytestring v1.5.0
[INFO] [stderr]    Compiling convert_case v0.10.0
[INFO] [stderr]     Checking actix-router v0.5.4
[INFO] [stderr]     Checking getrandom v0.4.2
[INFO] [stderr]    Compiling v_htmlescape v0.15.8
[INFO] [stderr]     Checking rustix v1.1.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling if_chain v1.0.3
[INFO] [stderr]     Checking unicode-normalization v0.1.25
[INFO] [stderr]    Compiling parse-size v1.1.0
[INFO] [stderr]     Checking unicode-bidi v0.3.18
[INFO] [stderr]     Checking flate2 v1.1.9
[INFO] [stderr]    Compiling derive_more-impl v2.1.1
[INFO] [stderr]    Compiling derive_more v0.99.20
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling actix-multipart-derive v0.6.1
[INFO] [stderr]     Checking zerofrom v0.1.7
[INFO] [stderr]     Checking serde_plain v1.0.2
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]     Checking idna v0.4.0
[INFO] [stderr]     Checking http-range v0.1.5
[INFO] [stderr]     Checking yoke v0.8.2
[INFO] [stderr]     Checking time v0.3.47
[INFO] [stderr]     Checking tracing-subscriber v0.3.23
[INFO] [stderr]     Checking chrono v0.4.44
[INFO] [stderr]     Checking uuid v1.23.0
[INFO] [stderr]    Compiling jobserver v0.1.34
[INFO] [stderr]     Checking zerovec v0.11.6
[INFO] [stderr]    Compiling cc v1.2.59
[INFO] [stderr]     Checking zerotrie v0.2.4
[INFO] [stderr]     Checking tempfile v3.27.0
[INFO] [stderr]    Compiling validator_types v0.16.0
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]     Checking tinystr v0.8.3
[INFO] [stderr]     Checking potential_utf v0.1.5
[INFO] [stderr]     Checking icu_locale_core v2.2.0
[INFO] [stderr]     Checking icu_collections v2.2.0
[INFO] [stderr]     Checking cookie v0.16.2
[INFO] [stderr]     Checking icu_provider v2.2.0
[INFO] [stderr]    Compiling zstd-sys v2.0.16+zstd.1.5.7
[INFO] [stderr]     Checking icu_properties v2.2.0
[INFO] [stderr]     Checking icu_normalizer v2.2.0
[INFO] [stderr]     Checking derive_more v2.1.1
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking actix-rt v2.11.0
[INFO] [stderr]     Checking actix-server v2.6.0
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking h2 v0.3.27
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking actix-codec v0.5.2
[INFO] [stderr]    Compiling regex v1.12.3
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]    Compiling validator_derive v0.16.0
[INFO] [stderr]     Checking validator v0.16.1
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]     Checking zstd v0.13.3
[INFO] [stderr]     Checking actix-http v3.12.0
[INFO] [stderr]     Checking actix-web v4.13.0
[INFO] [stderr]     Checking actix-files v0.6.10
[INFO] [stderr]     Checking actix-multipart v0.6.2
[INFO] [stderr]     Checking actixTest v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `HttpRequest` and `web`
[INFO] [stdout]   --> src/handlers/mod.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 24 | use actix_web::{HttpRequest, HttpResponse, Responder, web};
[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: `HttpResponse`
[INFO] [stdout]   --> src/middleware/auth.rs:17:25
[INFO] [stdout]    |
[INFO] [stdout] 17 |     Error, HttpMessage, HttpResponse,
[INFO] [stdout]    |                         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `auth::AuthMiddleware`
[INFO] [stdout]   --> src/middleware/mod.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub use auth::AuthMiddleware;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AppConfig`
[INFO] [stdout]   --> src/models/mod.rs:18:27
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub use state::{AppState, AppConfig};
[INFO] [stdout]    |                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpRequest` and `web`
[INFO] [stdout]   --> src/handlers/mod.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 24 | use actix_web::{HttpRequest, HttpResponse, Responder, web};
[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: `HttpResponse`
[INFO] [stdout]   --> src/middleware/auth.rs:17:25
[INFO] [stdout]    |
[INFO] [stdout] 17 |     Error, HttpMessage, HttpResponse,
[INFO] [stdout]    |                         ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `auth::AuthMiddleware`
[INFO] [stdout]   --> src/middleware/mod.rs:35:9
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub use auth::AuthMiddleware;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AppConfig`
[INFO] [stdout]   --> src/models/mod.rs:18:27
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub use state::{AppState, AppConfig};
[INFO] [stdout]    |                           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/middleware/auth.rs:90:20
[INFO] [stdout]    |
[INFO] [stdout] 90 |     fn call(&self, mut req: ServiceRequest) -> Self::Future {
[INFO] [stdout]    |                    ----^^^
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/middleware/auth.rs:210:20
[INFO] [stdout]     |
[INFO] [stdout] 210 |     fn call(&self, mut req: ServiceRequest) -> Self::Future {
[INFO] [stdout]     |                    ----^^^
[INFO] [stdout]     |                    |
[INFO] [stdout]     |                    help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/middleware/auth.rs:90:20
[INFO] [stdout]    |
[INFO] [stdout] 90 |     fn call(&self, mut req: ServiceRequest) -> Self::Future {
[INFO] [stdout]    |                    ----^^^
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/middleware/auth.rs:210:20
[INFO] [stdout]     |
[INFO] [stdout] 210 |     fn call(&self, mut req: ServiceRequest) -> Self::Future {
[INFO] [stdout]     |                    ----^^^
[INFO] [stdout]     |                    |
[INFO] [stdout]     |                    help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/middleware/mod.rs:257:20
[INFO] [stdout]     |
[INFO] [stdout] 257 |     fn call(&self, mut req: ServiceRequest) -> Self::Future {
[INFO] [stdout]     |                    ----^^^
[INFO] [stdout]     |                    |
[INFO] [stdout]     |                    help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/middleware/mod.rs:257:20
[INFO] [stdout]     |
[INFO] [stdout] 257 |     fn call(&self, mut req: ServiceRequest) -> Self::Future {
[INFO] [stdout]     |                    ----^^^
[INFO] [stdout]     |                    |
[INFO] [stdout]     |                    help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]    --> src/middleware/mod.rs:222:22
[INFO] [stdout]     |
[INFO] [stdout] 222 | pub struct RequestId(pub String);
[INFO] [stdout]     |            --------- ^^^^^^^^^^
[INFO] [stdout]     |            |
[INFO] [stdout]     |            field in this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider removing this field
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuthenticatedUser` is never constructed
[INFO] [stdout]   --> src/middleware/auth.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub struct AuthenticatedUser {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuthMiddleware` is never constructed
[INFO] [stdout]   --> src/middleware/auth.rs:51:12
[INFO] [stdout]    |
[INFO] [stdout] 51 | pub struct AuthMiddleware;
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuthMiddlewareService` is never constructed
[INFO] [stdout]   --> src/middleware/auth.rs:74:12
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub struct AuthMiddlewareService<S> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `validate_token` is never used
[INFO] [stdout]    --> src/middleware/auth.rs:148:10
[INFO] [stdout]     |
[INFO] [stdout] 148 | async fn validate_token(token: &str) -> Option<AuthenticatedUser> {
[INFO] [stdout]     |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OptionalAuthMiddleware` is never constructed
[INFO] [stdout]    --> src/middleware/auth.rs:173:12
[INFO] [stdout]     |
[INFO] [stdout] 173 | pub struct OptionalAuthMiddleware;
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OptionalAuthMiddlewareService` is never constructed
[INFO] [stdout]    --> src/middleware/auth.rs:194:12
[INFO] [stdout]     |
[INFO] [stdout] 194 | pub struct OptionalAuthMiddlewareService<S> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_current_user` is never used
[INFO] [stdout]    --> src/middleware/auth.rs:253:8
[INFO] [stdout]     |
[INFO] [stdout] 253 | pub fn get_current_user(req: &HttpRequest) -> Option<AuthenticatedUser> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `require_auth` is never used
[INFO] [stdout]    --> src/middleware/auth.rs:262:8
[INFO] [stdout]     |
[INFO] [stdout] 262 | pub fn require_auth(req: &HttpRequest) -> Result<AuthenticatedUser, actix_web::Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `error` and `error_only` are never used
[INFO] [stdout]    --> src/models/mod.rs:172:12
[INFO] [stdout]     |
[INFO] [stdout] 140 | impl<T> ApiResponse<T> {
[INFO] [stdout]     | ---------------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 172 |     pub fn error(message: &str) -> Self 
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 185 |     pub fn error_only(message: &str) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Forbidden` and `ServiceUnavailable` are never constructed
[INFO] [stdout]   --> src/models/error.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub enum AppError {
[INFO] [stdout]    |          -------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 39 |     Forbidden(String),
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |     ServiceUnavailable(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `bad_request`, `unauthorized`, and `forbidden` are never used
[INFO] [stdout]    --> src/models/error.rs:188:12
[INFO] [stdout]     |
[INFO] [stdout] 186 | impl AppError {
[INFO] [stdout]     | ------------- associated functions in this implementation
[INFO] [stdout] 187 |     /// 快速创建 400 Bad Request 错误
[INFO] [stdout] 188 |     pub fn bad_request<S: Into<String>>(msg: S) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 198 |     pub fn unauthorized<S: Into<String>>(msg: S) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 203 |     pub fn forbidden<S: Into<String>>(msg: S) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `debug` is never read
[INFO] [stdout]   --> src/models/state.rs:61:9
[INFO] [stdout]    |
[INFO] [stdout] 55 | pub struct AppConfig {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 61 |     pub debug: bool,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppConfig` 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 items `with_config` and `reset_count` are never used
[INFO] [stdout]    --> src/models/state.rs:93:12
[INFO] [stdout]     |
[INFO] [stdout]  77 | impl AppState {
[INFO] [stdout]     | ------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn with_config(config: AppConfig) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 229 |     pub fn reset_count(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]    --> src/middleware/mod.rs:222:22
[INFO] [stdout]     |
[INFO] [stdout] 222 | pub struct RequestId(pub String);
[INFO] [stdout]     |            --------- ^^^^^^^^^^
[INFO] [stdout]     |            |
[INFO] [stdout]     |            field in this struct
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider removing this field
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuthenticatedUser` is never constructed
[INFO] [stdout]   --> src/middleware/auth.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 30 | pub struct AuthenticatedUser {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuthMiddleware` is never constructed
[INFO] [stdout]   --> src/middleware/auth.rs:51:12
[INFO] [stdout]    |
[INFO] [stdout] 51 | pub struct AuthMiddleware;
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `AuthMiddlewareService` is never constructed
[INFO] [stdout]   --> src/middleware/auth.rs:74:12
[INFO] [stdout]    |
[INFO] [stdout] 74 | pub struct AuthMiddlewareService<S> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `validate_token` is never used
[INFO] [stdout]    --> src/middleware/auth.rs:148:10
[INFO] [stdout]     |
[INFO] [stdout] 148 | async fn validate_token(token: &str) -> Option<AuthenticatedUser> {
[INFO] [stdout]     |          ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OptionalAuthMiddleware` is never constructed
[INFO] [stdout]    --> src/middleware/auth.rs:173:12
[INFO] [stdout]     |
[INFO] [stdout] 173 | pub struct OptionalAuthMiddleware;
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `OptionalAuthMiddlewareService` is never constructed
[INFO] [stdout]    --> src/middleware/auth.rs:194:12
[INFO] [stdout]     |
[INFO] [stdout] 194 | pub struct OptionalAuthMiddlewareService<S> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_current_user` is never used
[INFO] [stdout]    --> src/middleware/auth.rs:253:8
[INFO] [stdout]     |
[INFO] [stdout] 253 | pub fn get_current_user(req: &HttpRequest) -> Option<AuthenticatedUser> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `require_auth` is never used
[INFO] [stdout]    --> src/middleware/auth.rs:262:8
[INFO] [stdout]     |
[INFO] [stdout] 262 | pub fn require_auth(req: &HttpRequest) -> Result<AuthenticatedUser, actix_web::Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `error` and `error_only` are never used
[INFO] [stdout]    --> src/models/mod.rs:172:12
[INFO] [stdout]     |
[INFO] [stdout] 140 | impl<T> ApiResponse<T> {
[INFO] [stdout]     | ---------------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 172 |     pub fn error(message: &str) -> Self 
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 185 |     pub fn error_only(message: &str) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Forbidden` and `ServiceUnavailable` are never constructed
[INFO] [stdout]   --> src/models/error.rs:39:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | pub enum AppError {
[INFO] [stdout]    |          -------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 39 |     Forbidden(String),
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |     ServiceUnavailable(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `bad_request`, `unauthorized`, and `forbidden` are never used
[INFO] [stdout]    --> src/models/error.rs:188:12
[INFO] [stdout]     |
[INFO] [stdout] 186 | impl AppError {
[INFO] [stdout]     | ------------- associated functions in this implementation
[INFO] [stdout] 187 |     /// 快速创建 400 Bad Request 错误
[INFO] [stdout] 188 |     pub fn bad_request<S: Into<String>>(msg: S) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 198 |     pub fn unauthorized<S: Into<String>>(msg: S) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 203 |     pub fn forbidden<S: Into<String>>(msg: S) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `debug` is never read
[INFO] [stdout]   --> src/models/state.rs:61:9
[INFO] [stdout]    |
[INFO] [stdout] 55 | pub struct AppConfig {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 61 |     pub debug: bool,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppConfig` 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 items `with_config` and `reset_count` are never used
[INFO] [stdout]    --> src/models/state.rs:93:12
[INFO] [stdout]     |
[INFO] [stdout]  77 | impl AppState {
[INFO] [stdout]     | ------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  93 |     pub fn with_config(config: AppConfig) -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 229 |     pub fn reset_count(&self) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.43s
[INFO] running `Command { std: "docker" "inspect" "c1ee966b79764c89a110b6c6a7fcb2efa52927023fbfd3789f78e71aba6528f3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c1ee966b79764c89a110b6c6a7fcb2efa52927023fbfd3789f78e71aba6528f3", kill_on_drop: false }`
[INFO] [stdout] c1ee966b79764c89a110b6c6a7fcb2efa52927023fbfd3789f78e71aba6528f3
