[INFO] cloning repository https://github.com/xiaochen0517/todolist_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xiaochen0517/todolist_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiaochen0517%2Ftodolist_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiaochen0517%2Ftodolist_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2a69012884f7676473892fb991b9eba623f8a69f [INFO] checking xiaochen0517/todolist_rs against master#656ccbe796ff98def9b555c118e1620c5389e3b2 for pr-133502-24 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxiaochen0517%2Ftodolist_rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/xiaochen0517/todolist_rs [INFO] finished tweaking git repo https://github.com/xiaochen0517/todolist_rs [INFO] tweaked toml for git repo https://github.com/xiaochen0517/todolist_rs written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/xiaochen0517/todolist_rs on toolchain 656ccbe796ff98def9b555c118e1620c5389e3b2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+656ccbe796ff98def9b555c118e1620c5389e3b2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/xiaochen0517/todolist_rs 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" "+656ccbe796ff98def9b555c118e1620c5389e3b2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded if_chain v1.0.3 [INFO] [stderr] Downloaded validator_derive v0.16.0 [INFO] [stderr] Downloaded validator v0.16.1 [INFO] [stderr] Downloaded validator_types v0.16.0 [INFO] [stderr] Downloaded native-tls v0.2.15 [INFO] [stderr] Downloaded sea-orm-macros v1.1.20 [INFO] [stderr] Downloaded rocket-validation v0.2.0 [INFO] [stderr] Downloaded sea-orm v1.1.20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] d5d3507be9a68d909acbe71a68c4ded9121f7ad52b735d3a50bf2bca8ca9b1b2 [INFO] running `Command { std: "docker" "start" "d5d3507be9a68d909acbe71a68c4ded9121f7ad52b735d3a50bf2bca8ca9b1b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5d3507be9a68d909acbe71a68c4ded9121f7ad52b735d3a50bf2bca8ca9b1b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d5d3507be9a68d909acbe71a68c4ded9121f7ad52b735d3a50bf2bca8ca9b1b2" "/opt/rustwide/cargo-home/bin/cargo" "+656ccbe796ff98def9b555c118e1620c5389e3b2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d5d3507be9a68d909acbe71a68c4ded9121f7ad52b735d3a50bf2bca8ca9b1b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d5d3507be9a68d909acbe71a68c4ded9121f7ad52b735d3a50bf2bca8ca9b1b2" "/opt/rustwide/cargo-home/bin/cargo" "+656ccbe796ff98def9b555c118e1620c5389e3b2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling num-conv v0.2.1 [INFO] [stderr] Checking num-traits v0.2.19 [INFO] [stderr] Checking deranged v0.5.8 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Checking hashbrown v0.17.0 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking tokio v1.52.1 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Checking icu_provider v2.2.0 [INFO] [stderr] Compiling openssl-sys v0.9.114 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking unicode-normalization v0.1.25 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Checking rand v0.8.6 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling rust_decimal v1.41.0 [INFO] [stderr] Compiling openssl v0.10.78 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Checking icu_properties v2.2.0 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking indexmap v2.14.0 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling native-tls v0.2.15 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking icu_normalizer v2.2.0 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Compiling futures-channel v0.3.32 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking is-terminal v0.4.17 [INFO] [stderr] Checking uuid v1.23.1 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Checking crc-catalog v2.5.0 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Checking yansi v1.0.1 [INFO] [stderr] Checking crc v3.4.0 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Checking bigdecimal v0.4.10 [INFO] [stderr] Compiling futures v0.3.32 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling num-bigint-dig v0.8.6 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Checking cookie v0.18.1 [INFO] [stderr] Checking getrandom v0.4.2 [INFO] [stderr] Checking primeorder v0.13.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking ordered-float v4.6.0 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling inherent v1.0.13 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling if_chain v1.0.3 [INFO] [stderr] Checking tempfile v3.27.0 [INFO] [stderr] Compiling sea-bae v0.2.1 [INFO] [stderr] Compiling ouroboros_macro v0.18.5 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking sea-query v0.32.7 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Compiling sea-orm-macros v1.1.20 [INFO] [stderr] Checking p256 v0.13.2 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking p384 v0.13.1 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking simple_asn1 v0.6.4 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling validator_types v0.16.0 [INFO] [stderr] Checking rsa v0.9.10 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking symlink v0.1.0 [INFO] [stderr] Checking ed25519-dalek v2.2.0 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking jsonwebtoken v10.3.0 [INFO] [stderr] Checking derive_more v2.1.1 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking ouroboros v0.18.5 [INFO] [stderr] Checking sqlx-core v0.8.6 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Compiling validator_derive v0.16.0 [INFO] [stderr] Checking tracing-appender v0.2.5 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Checking validator v0.16.1 [INFO] [stderr] Checking sqlx-postgres v0.8.6 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking sea-query-binder v0.7.0 [INFO] [stderr] Checking sea-orm v1.1.20 [INFO] [stderr] Checking rocket-validation v0.2.0 [INFO] [stderr] Checking todolist_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rocket::request::FromRequest` [INFO] [stdout] --> src/models/todolist.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::request::FromRequest; [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: `rocket::request::FromRequest` [INFO] [stdout] --> src/models/todolist.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::request::FromRequest; [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: `todolist` [INFO] [stdout] --> src/service/todolist_service.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::db::{todolist, user}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EntityTrait` [INFO] [stdout] --> src/service/todolist_service.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | use sea_orm::{DatabaseConnection, EntityTrait, ModelTrait, PaginatorTrait}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `todolist` [INFO] [stdout] --> src/service/todolist_service.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::db::{todolist, user}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `EntityTrait` [INFO] [stdout] --> src/service/todolist_service.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | use sea_orm::{DatabaseConnection, EntityTrait, ModelTrait, PaginatorTrait}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `GET` is never constructed [INFO] [stdout] --> src/controllers/auth_controller.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 27 | enum ReqType { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 30 | GET, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReqType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/controllers/auth_controller.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | #[warn(dead_code)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/utils/datetime_format.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn serialize(date: &NaiveDateTime, serializer: S) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize` is never used [INFO] [stdout] --> src/utils/datetime_format.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn deserialize<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `DEFAULT_ERROR_CODE` and `GENERATE_TOKEN_ERROR_CODE` are never used [INFO] [stdout] --> src/utils/response.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 11 | impl ErrorInfo<()> { [INFO] [stdout] | ------------------ associated constants in this implementation [INFO] [stdout] 12 | pub(crate) const DEFAULT_ERROR_CODE: i32 = 1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) const GENERATE_TOKEN_ERROR_CODE: i32 = 5100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotFound` is never constructed [INFO] [stdout] --> src/utils/response.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub enum ApiError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 58 | NotFound(Json), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` 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: enum `BizError` is never used [INFO] [stdout] --> src/utils/status.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum BizError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `http_status`, `code`, and `message` are never used [INFO] [stdout] --> src/utils/status.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl BizError { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 21 | /// 获取 HTTP 状态码 / Get HTTP status code [INFO] [stdout] 22 | pub fn http_status(&self) -> Status { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn code(&self) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn message(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_params` is never used [INFO] [stdout] --> src/utils/validator.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn validate_params(data: &T) -> ApiResult<(), ErrorInfo>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/utils/datetime_format.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn serialize(date: &NaiveDateTime, serializer: S) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize` is never used [INFO] [stdout] --> src/utils/datetime_format.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn deserialize<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password_argon2` is never used [INFO] [stdout] --> src/utils/password.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn hash_password_argon2(password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constants `DEFAULT_ERROR_CODE` and `GENERATE_TOKEN_ERROR_CODE` are never used [INFO] [stdout] --> src/utils/response.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 11 | impl ErrorInfo<()> { [INFO] [stdout] | ------------------ associated constants in this implementation [INFO] [stdout] 12 | pub(crate) const DEFAULT_ERROR_CODE: i32 = 1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub(crate) const GENERATE_TOKEN_ERROR_CODE: i32 = 5100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotFound` is never constructed [INFO] [stdout] --> src/utils/response.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub enum ApiError { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 58 | NotFound(Json), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` 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: enum `BizError` is never used [INFO] [stdout] --> src/utils/status.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum BizError { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `http_status`, `code`, and `message` are never used [INFO] [stdout] --> src/utils/status.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl BizError { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] 21 | /// 获取 HTTP 状态码 / Get HTTP status code [INFO] [stdout] 22 | pub fn http_status(&self) -> Status { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn code(&self) -> u16 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn message(&self) -> &str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_params` is never used [INFO] [stdout] --> src/utils/validator.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn validate_params(data: &T) -> ApiResult<(), ErrorInfo>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 7` [INFO] running `Command { std: "docker" "inspect" "d5d3507be9a68d909acbe71a68c4ded9121f7ad52b735d3a50bf2bca8ca9b1b2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5d3507be9a68d909acbe71a68c4ded9121f7ad52b735d3a50bf2bca8ca9b1b2", kill_on_drop: false }` [INFO] [stdout] d5d3507be9a68d909acbe71a68c4ded9121f7ad52b735d3a50bf2bca8ca9b1b2