[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] testing pplee2020/actixTest against try#28f95933dc0727396c07b48d0a8cb5211b7fb472 for pr-154065-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpplee2020%2FactixTest" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/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-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/pplee2020/actixTest on toolchain 28f95933dc0727396c07b48d0a8cb5211b7fb472
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "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" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e2584b0764d211ad2de3ac90aa7dded11f34e7f5ca17e9825df2b6e6c5ae803a
[INFO] running `Command { std: "docker" "start" "-a" "e2584b0764d211ad2de3ac90aa7dded11f34e7f5ca17e9825df2b6e6c5ae803a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e2584b0764d211ad2de3ac90aa7dded11f34e7f5ca17e9825df2b6e6c5ae803a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e2584b0764d211ad2de3ac90aa7dded11f34e7f5ca17e9825df2b6e6c5ae803a", kill_on_drop: false }`
[INFO] [stdout] e2584b0764d211ad2de3ac90aa7dded11f34e7f5ca17e9825df2b6e6c5ae803a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] abdff7ba2864a1012b8973101d9460416f17af4809a72f88e60bdd0ea9de1999
[INFO] running `Command { std: "docker" "start" "-a" "abdff7ba2864a1012b8973101d9460416f17af4809a72f88e60bdd0ea9de1999", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v2.0.117
[INFO] [stderr]    Compiling libc v0.2.184
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling once_cell v1.21.4
[INFO] [stderr]    Compiling regex-syntax v0.8.10
[INFO] [stderr]    Compiling litemap v0.8.2
[INFO] [stderr]    Compiling writeable v0.6.3
[INFO] [stderr]    Compiling icu_normalizer_data v2.2.0
[INFO] [stderr]    Compiling icu_properties_data v2.2.0
[INFO] [stderr]    Compiling aho-corasick v1.1.4
[INFO] [stderr]    Compiling unicode-segmentation v1.13.2
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling http v0.2.12
[INFO] [stderr]    Compiling log v0.4.29
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling bytes v1.11.1
[INFO] [stderr]    Compiling regex-lite v0.1.9
[INFO] [stderr]    Compiling simd-adler32 v0.3.9
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling num-conv v0.2.1
[INFO] [stderr]    Compiling deranged v0.5.8
[INFO] [stderr]    Compiling miniz_oxide v0.8.9
[INFO] [stderr]    Compiling indexmap v2.13.1
[INFO] [stderr]    Compiling time-macros v0.2.27
[INFO] [stderr]    Compiling convert_case v0.10.0
[INFO] [stderr]    Compiling tracing v0.1.44
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling bytestring v1.5.0
[INFO] [stderr]    Compiling brotli-decompressor v5.0.0
[INFO] [stderr]    Compiling actix-utils v3.0.1
[INFO] [stderr]    Compiling actix-service v2.0.3
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling memchr v2.8.0
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]    Compiling actix-router v0.5.4
[INFO] [stderr]    Compiling flate2 v1.1.9
[INFO] [stderr]    Compiling local-channel v0.1.5
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]    Compiling unicase v2.9.0
[INFO] [stderr]    Compiling tinyvec v1.11.0
[INFO] [stderr]    Compiling jobserver v0.1.34
[INFO] [stderr]    Compiling errno v0.3.14
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling socket2 v0.6.3
[INFO] [stderr]    Compiling mio v1.2.0
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling signal-hook-registry v1.4.8
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling brotli v8.0.2
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling cc v1.2.59
[INFO] [stderr]    Compiling rand_core v0.9.5
[INFO] [stderr]    Compiling time v0.3.47
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling tokio v1.51.1
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling getrandom v0.4.2
[INFO] [stderr]    Compiling rand v0.9.2
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling v_htmlescape v0.15.8
[INFO] [stderr]    Compiling rustix v1.1.4
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling unicode-normalization v0.1.25
[INFO] [stderr]    Compiling if_chain v1.0.3
[INFO] [stderr]    Compiling parse-size v1.1.0
[INFO] [stderr]    Compiling unicode-bidi v0.3.18
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]    Compiling idna v0.4.0
[INFO] [stderr]    Compiling validator_types v0.16.0
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling http-range v0.1.5
[INFO] [stderr]    Compiling zstd-sys v2.0.16+zstd.1.5.7
[INFO] [stderr]    Compiling uuid v1.23.0
[INFO] [stderr]    Compiling tempfile v3.27.0
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling darling_core v0.20.11
[INFO] [stderr]    Compiling regex v1.12.3
[INFO] [stderr]    Compiling zerofrom-derive v0.1.7
[INFO] [stderr]    Compiling yoke-derive v0.8.2
[INFO] [stderr]    Compiling zerovec-derive v0.11.3
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling futures-macro v0.3.32
[INFO] [stderr]    Compiling actix-macros v0.2.4
[INFO] [stderr]    Compiling derive_more-impl v2.1.1
[INFO] [stderr]    Compiling tokio-util v0.7.18
[INFO] [stderr]    Compiling actix-rt v2.11.0
[INFO] [stderr]    Compiling futures-util v0.3.32
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling derive_more v0.99.20
[INFO] [stderr]    Compiling validator_derive v0.16.0
[INFO] [stderr]    Compiling actix-codec v0.5.2
[INFO] [stderr]    Compiling darling_macro v0.20.11
[INFO] [stderr]    Compiling zerofrom v0.1.7
[INFO] [stderr]    Compiling zstd v0.13.3
[INFO] [stderr]    Compiling tracing-subscriber v0.3.23
[INFO] [stderr]    Compiling yoke v0.8.2
[INFO] [stderr]    Compiling zerovec v0.11.6
[INFO] [stderr]    Compiling zerotrie v0.2.4
[INFO] [stderr]    Compiling darling v0.20.11
[INFO] [stderr]    Compiling actix-multipart-derive v0.6.1
[INFO] [stderr]    Compiling tinystr v0.8.3
[INFO] [stderr]    Compiling potential_utf v0.1.5
[INFO] [stderr]    Compiling icu_collections v2.2.0
[INFO] [stderr]    Compiling icu_locale_core v2.2.0
[INFO] [stderr]    Compiling derive_more v2.1.1
[INFO] [stderr]    Compiling h2 v0.3.27
[INFO] [stderr]    Compiling actix-server v2.6.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling serde_plain v1.0.2
[INFO] [stderr]    Compiling chrono v0.4.44
[INFO] [stderr]    Compiling icu_provider v2.2.0
[INFO] [stderr]    Compiling icu_normalizer v2.2.0
[INFO] [stderr]    Compiling icu_properties v2.2.0
[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 validator v0.16.1
[INFO] [stderr]    Compiling actix-http v3.12.0
[INFO] [stderr]    Compiling actix-web v4.13.0
[INFO] [stderr]    Compiling actix-files v0.6.10
[INFO] [stderr]    Compiling actix-multipart v0.6.2
[INFO] [stderr]    Compiling 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: 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: 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 1m 24s
[INFO] running `Command { std: "docker" "inspect" "abdff7ba2864a1012b8973101d9460416f17af4809a72f88e60bdd0ea9de1999", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "abdff7ba2864a1012b8973101d9460416f17af4809a72f88e60bdd0ea9de1999", kill_on_drop: false }`
[INFO] [stdout] abdff7ba2864a1012b8973101d9460416f17af4809a72f88e60bdd0ea9de1999
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4b2056466572ab5e8a35f467a7f1e834e2133e94455a637959fd492b625bd927
[INFO] running `Command { std: "docker" "start" "-a" "4b2056466572ab5e8a35f467a7f1e834e2133e94455a637959fd492b625bd927", kill_on_drop: false }`
[INFO] [stderr]    Compiling 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: 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: 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 `test` profile [unoptimized + debuginfo] target(s) in 3.90s
[INFO] running `Command { std: "docker" "inspect" "4b2056466572ab5e8a35f467a7f1e834e2133e94455a637959fd492b625bd927", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4b2056466572ab5e8a35f467a7f1e834e2133e94455a637959fd492b625bd927", kill_on_drop: false }`
[INFO] [stdout] 4b2056466572ab5e8a35f467a7f1e834e2133e94455a637959fd492b625bd927
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+28f95933dc0727396c07b48d0a8cb5211b7fb472" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] b40c31ba72cd8713e9f7b87e35a58ee22335fefa7809d54cddde242d32e2cb86
[INFO] running `Command { std: "docker" "start" "-a" "b40c31ba72cd8713e9f7b87e35a58ee22335fefa7809d54cddde242d32e2cb86", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `HttpRequest` and `web`
[INFO] [stderr]   --> src/handlers/mod.rs:24:17
[INFO] [stderr]    |
[INFO] [stderr] 24 | use actix_web::{HttpRequest, HttpResponse, Responder, web};
[INFO] [stderr]    |                 ^^^^^^^^^^^                           ^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `HttpResponse`
[INFO] [stderr]   --> src/middleware/auth.rs:17:25
[INFO] [stderr]    |
[INFO] [stderr] 17 |     Error, HttpMessage, HttpResponse,
[INFO] [stderr]    |                         ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `auth::AuthMiddleware`
[INFO] [stderr]   --> src/middleware/mod.rs:35:9
[INFO] [stderr]    |
[INFO] [stderr] 35 | pub use auth::AuthMiddleware;
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `AppConfig`
[INFO] [stderr]   --> src/models/mod.rs:18:27
[INFO] [stderr]    |
[INFO] [stderr] 18 | pub use state::{AppState, AppConfig};
[INFO] [stderr]    |                           ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/middleware/auth.rs:90:20
[INFO] [stderr]    |
[INFO] [stderr] 90 |     fn call(&self, mut req: ServiceRequest) -> Self::Future {
[INFO] [stderr]    |                    ----^^^
[INFO] [stderr]    |                    |
[INFO] [stderr]    |                    help: remove this `mut`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/middleware/auth.rs:210:20
[INFO] [stderr]     |
[INFO] [stderr] 210 |     fn call(&self, mut req: ServiceRequest) -> Self::Future {
[INFO] [stderr]     |                    ----^^^
[INFO] [stderr]     |                    |
[INFO] [stderr]     |                    help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/middleware/mod.rs:257:20
[INFO] [stderr]     |
[INFO] [stderr] 257 |     fn call(&self, mut req: ServiceRequest) -> Self::Future {
[INFO] [stderr]     |                    ----^^^
[INFO] [stderr]     |                    |
[INFO] [stderr]     |                    help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: field `0` is never read
[INFO] [stderr]    --> src/middleware/mod.rs:222:22
[INFO] [stderr]     |
[INFO] [stderr] 222 | pub struct RequestId(pub String);
[INFO] [stderr]     |            --------- ^^^^^^^^^^
[INFO] [stderr]     |            |
[INFO] [stderr]     |            field in this struct
[INFO] [stderr]     |
[INFO] [stderr]     = help: consider removing this field
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: struct `AuthenticatedUser` is never constructed
[INFO] [stderr]   --> src/middleware/auth.rs:30:12
[INFO] [stderr]    |
[INFO] [stderr] 30 | pub struct AuthenticatedUser {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `AuthMiddleware` is never constructed
[INFO] [stderr]   --> src/middleware/auth.rs:51:12
[INFO] [stderr]    |
[INFO] [stderr] 51 | pub struct AuthMiddleware;
[INFO] [stderr]    |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `AuthMiddlewareService` is never constructed
[INFO] [stderr]   --> src/middleware/auth.rs:74:12
[INFO] [stderr]    |
[INFO] [stderr] 74 | pub struct AuthMiddlewareService<S> {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `validate_token` is never used
[INFO] [stderr]    --> src/middleware/auth.rs:148:10
[INFO] [stderr]     |
[INFO] [stderr] 148 | async fn validate_token(token: &str) -> Option<AuthenticatedUser> {
[INFO] [stderr]     |          ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `OptionalAuthMiddleware` is never constructed
[INFO] [stderr]    --> src/middleware/auth.rs:173:12
[INFO] [stderr]     |
[INFO] [stderr] 173 | pub struct OptionalAuthMiddleware;
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `OptionalAuthMiddlewareService` is never constructed
[INFO] [stderr]    --> src/middleware/auth.rs:194:12
[INFO] [stderr]     |
[INFO] [stderr] 194 | pub struct OptionalAuthMiddlewareService<S> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `get_current_user` is never used
[INFO] [stderr]    --> src/middleware/auth.rs:253:8
[INFO] [stderr]     |
[INFO] [stderr] 253 | pub fn get_current_user(req: &HttpRequest) -> Option<AuthenticatedUser> {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `require_auth` is never used
[INFO] [stderr]    --> src/middleware/auth.rs:262:8
[INFO] [stderr]     |
[INFO] [stderr] 262 | pub fn require_auth(req: &HttpRequest) -> Result<AuthenticatedUser, actix_web::Error> {
[INFO] [stderr]     |        ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated functions `error` and `error_only` are never used
[INFO] [stderr]    --> src/models/mod.rs:172:12
[INFO] [stderr]     |
[INFO] [stderr] 140 | impl<T> ApiResponse<T> {
[INFO] [stderr]     | ---------------------- associated functions in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 172 |     pub fn error(message: &str) -> Self 
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 185 |     pub fn error_only(message: &str) -> Self {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variants `Forbidden` and `ServiceUnavailable` are never constructed
[INFO] [stderr]   --> src/models/error.rs:39:5
[INFO] [stderr]    |
[INFO] [stderr] 26 | pub enum AppError {
[INFO] [stderr]    |          -------- variants in this enum
[INFO] [stderr] ...
[INFO] [stderr] 39 |     Forbidden(String),
[INFO] [stderr]    |     ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 61 |     ServiceUnavailable(String),
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: associated functions `bad_request`, `unauthorized`, and `forbidden` are never used
[INFO] [stderr]    --> src/models/error.rs:188:12
[INFO] [stderr]     |
[INFO] [stderr] 186 | impl AppError {
[INFO] [stderr]     | ------------- associated functions in this implementation
[INFO] [stderr] 187 |     /// 快速创建 400 Bad Request 错误
[INFO] [stderr] 188 |     pub fn bad_request<S: Into<String>>(msg: S) -> Self {
[INFO] [stderr]     |            ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 198 |     pub fn unauthorized<S: Into<String>>(msg: S) -> Self {
[INFO] [stderr]     |            ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 203 |     pub fn forbidden<S: Into<String>>(msg: S) -> Self {
[INFO] [stderr]     |            ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `debug` is never read
[INFO] [stderr]   --> src/models/state.rs:61:9
[INFO] [stderr]    |
[INFO] [stderr] 55 | pub struct AppConfig {
[INFO] [stderr]    |            --------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 61 |     pub debug: bool,
[INFO] [stderr]    |         ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `AppConfig` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `with_config` and `reset_count` are never used
[INFO] [stderr]    --> src/models/state.rs:93:12
[INFO] [stderr]     |
[INFO] [stderr]  77 | impl AppState {
[INFO] [stderr]     | ------------- associated items in this implementation
[INFO] [stderr] ...
[INFO] [stderr]  93 |     pub fn with_config(config: AppConfig) -> Self {
[INFO] [stderr]     |            ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 229 |     pub fn reset_count(&self) {
[INFO] [stderr]     |            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `actixTest` (bin "actixTest" test) generated 21 warnings (run `cargo fix --bin "actixTest" -p actixTest --tests` to apply 7 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/actixTest-60f1f07e5fd45f71)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test tests::test_health_check ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "b40c31ba72cd8713e9f7b87e35a58ee22335fefa7809d54cddde242d32e2cb86", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b40c31ba72cd8713e9f7b87e35a58ee22335fefa7809d54cddde242d32e2cb86", kill_on_drop: false }`
[INFO] [stdout] b40c31ba72cd8713e9f7b87e35a58ee22335fefa7809d54cddde242d32e2cb86
