[INFO] cloning repository https://github.com/laopoxingzhao/ja_plt
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/laopoxingzhao/ja_plt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flaopoxingzhao%2Fja_plt", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flaopoxingzhao%2Fja_plt'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c0852e5ec2c75bbb069a51b8a1323aec64124918
[INFO] checking laopoxingzhao/ja_plt against try#b98202ad067d72e45cec8be3d5c15d86ef0fd086 for pr-155193
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flaopoxingzhao%2Fja_plt" "/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/laopoxingzhao/ja_plt
[INFO] finished tweaking git repo https://github.com/laopoxingzhao/ja_plt
[INFO] tweaked toml for git repo https://github.com/laopoxingzhao/ja_plt written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/laopoxingzhao/ja_plt on toolchain b98202ad067d72e45cec8be3d5c15d86ef0fd086
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b98202ad067d72e45cec8be3d5c15d86ef0fd086" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/laopoxingzhao/ja_plt 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" "+b98202ad067d72e45cec8be3d5c15d86ef0fd086" "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] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded cc v1.2.49
[INFO] [stderr]   Downloaded axum v0.8.7
[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" "+b98202ad067d72e45cec8be3d5c15d86ef0fd086" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 2159f86fb736436d6636852bac580c856c0ac0ef998d6a6c918d534c024dcffb
[INFO] running `Command { std: "docker" "start" "-a" "2159f86fb736436d6636852bac580c856c0ac0ef998d6a6c918d534c024dcffb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "2159f86fb736436d6636852bac580c856c0ac0ef998d6a6c918d534c024dcffb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2159f86fb736436d6636852bac580c856c0ac0ef998d6a6c918d534c024dcffb", kill_on_drop: false }`
[INFO] [stdout] 2159f86fb736436d6636852bac580c856c0ac0ef998d6a6c918d534c024dcffb
[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" "+b98202ad067d72e45cec8be3d5c15d86ef0fd086" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] be2ae47418df283b3cd24640535b8b7761d9907a229306da10a26b8978851efe
[INFO] running `Command { std: "docker" "start" "-a" "be2ae47418df283b3cd24640535b8b7761d9907a229306da10a26b8978851efe", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling icu_properties_data v2.1.1
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]    Compiling zerocopy v0.8.31
[INFO] [stderr]    Compiling cc v1.2.49
[INFO] [stderr]    Compiling const-oid v0.9.6
[INFO] [stderr]    Compiling typenum v1.19.0
[INFO] [stderr]    Compiling zeroize v1.8.2
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]    Compiling libm v0.2.15
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling litemap v0.8.1
[INFO] [stderr]    Compiling writeable v0.6.2
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]     Checking tracing-core v0.1.35
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling rustls v0.23.35
[INFO] [stderr]     Checking tokio v1.48.0
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling num-bigint-dig v0.8.6
[INFO] [stderr]     Checking base64ct v1.8.1
[INFO] [stderr]     Checking tracing v0.1.43
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling pem-rfc7468 v0.7.0
[INFO] [stderr]    Compiling rustls-pki-types v1.13.1
[INFO] [stderr]    Compiling icu_normalizer_data v2.1.1
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling der v0.7.10
[INFO] [stderr]    Compiling once_cell v1.21.3
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling untrusted v0.9.0
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking http v1.4.0
[INFO] [stderr]    Compiling socket2 v0.6.1
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling spki v0.7.3
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.7
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling mio v1.1.1
[INFO] [stderr]    Compiling memchr v2.7.6
[INFO] [stderr]    Compiling percent-encoding v2.3.2
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling bytes v1.11.0
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]    Compiling tinyvec v1.10.0
[INFO] [stderr]    Compiling lazy_static v1.5.0
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.1
[INFO] [stderr]    Compiling num-iter v0.1.45
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling pkcs8 v0.10.2
[INFO] [stderr]     Checking thiserror v2.0.17
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling webpki-roots v1.0.4
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling iana-time-zone v0.1.64
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling slab v0.4.11
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling crc v3.4.0
[INFO] [stderr]    Compiling indexmap v2.12.1
[INFO] [stderr]    Compiling chrono v0.4.42
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling pkcs1 v0.7.5
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling webpki-roots v0.26.11
[INFO] [stderr]    Compiling unicode-normalization v0.1.25
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling signature v2.2.0
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling unicode-properties v0.1.4
[INFO] [stderr]    Compiling uuid v1.19.0
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]     Checking getrandom v0.3.4
[INFO] [stderr]    Compiling bitflags v2.10.0
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]     Checking regex-syntax v0.8.8
[INFO] [stderr]    Compiling whoami v1.6.1
[INFO] [stderr]    Compiling unicase v2.8.1
[INFO] [stderr]    Compiling rsa v0.9.9
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]     Checking time v0.3.44
[INFO] [stderr]    Compiling rustls-webpki v0.103.8
[INFO] [stderr]     Checking tokio-stream v0.1.17
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]     Checking regex-automata v0.4.13
[INFO] [stderr]     Checking sync_wrapper v1.0.2
[INFO] [stderr]     Checking hyper v1.8.1
[INFO] [stderr]     Checking num-bigint v0.4.6
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]     Checking axum-core v0.5.5
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking tokio-util v0.7.17
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking password-hash v0.5.0
[INFO] [stderr]     Checking blake2 v0.10.6
[INFO] [stderr]    Compiling axum-macros v0.5.0
[INFO] [stderr]     Checking http-range-header v0.4.2
[INFO] [stderr]     Checking argon2 v0.5.3
[INFO] [stderr]     Checking hyper-util v0.1.19
[INFO] [stderr]     Checking tower-http v0.6.8
[INFO] [stderr]     Checking simple_asn1 v0.6.3
[INFO] [stderr]     Checking jsonwebtoken v9.3.1
[INFO] [stderr]     Checking axum v0.8.7
[INFO] [stderr]     Checking matchers v0.2.0
[INFO] [stderr]     Checking tracing-subscriber v0.3.22
[INFO] [stderr]     Checking sqlx-core v0.8.6
[INFO] [stderr]     Checking tracing-appender v0.2.4
[INFO] [stderr]     Checking sqlx-mysql v0.8.6
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]     Checking sqlx v0.8.6
[INFO] [stderr]     Checking jz v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]  --> src/models/notification.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use uuid::Uuid;
[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: `uuid::Uuid`
[INFO] [stdout]  --> src/models/payment.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use uuid::Uuid;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]  --> src/models/review.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use uuid::Uuid;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/handler/users.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::jwt::Claims`
[INFO] [stdout]  --> src/handler/users.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::utils::jwt::Claims;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `post`
[INFO] [stdout]  --> src/handler/services.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 |     routing::{get, post},
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `post`
[INFO] [stdout]  --> src/handler/orders.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 |     routing::{get, post},
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/database/connection.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]  --> src/models/notification.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use uuid::Uuid;
[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: `uuid::Uuid`
[INFO] [stdout]  --> src/models/payment.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use uuid::Uuid;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `uuid::Uuid`
[INFO] [stdout]  --> src/models/review.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use uuid::Uuid;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/handler/users.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::jwt::Claims`
[INFO] [stdout]  --> src/handler/users.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::utils::jwt::Claims;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `post`
[INFO] [stdout]  --> src/handler/services.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 |     routing::{get, post},
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `post`
[INFO] [stdout]  --> src/handler/orders.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 |     routing::{get, post},
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/database/connection.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> src/services/mod.rs:36:48
[INFO] [stdout]    |
[INFO] [stdout] 36 |                     created_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> src/services/mod.rs:37:48
[INFO] [stdout]    |
[INFO] [stdout] 37 |                     updated_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> src/services/mod.rs:58:44
[INFO] [stdout]    |
[INFO] [stdout] 58 |                 created_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> src/services/mod.rs:59:44
[INFO] [stdout]    |
[INFO] [stdout] 59 |                 updated_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]    --> src/utils/jwt.rs:138:40
[INFO] [stdout]     |
[INFO] [stdout] 138 |             created_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]    --> src/utils/jwt.rs:139:40
[INFO] [stdout]     |
[INFO] [stdout] 139 |             updated_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]     |                                        ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `username`
[INFO] [stdout]    --> src/services/user_service.rs:147:23
[INFO] [stdout]     |
[INFO] [stdout] 147 |         let (user_id, username) = validate_refresh_token(&payload.refresh_token)
[INFO] [stdout]     |                       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `username`
[INFO] [stdout]    --> src/services/user_service.rs:147:23
[INFO] [stdout]     |
[INFO] [stdout] 147 |         let (user_id, username) = validate_refresh_token(&payload.refresh_token)
[INFO] [stdout]     |                       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0753]: expected outer doc comment
[INFO] [stdout]  --> tests/auth_tests.rs:5:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | //! 认证相关测试
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
[INFO] [stdout] help: you might have meant to write a regular comment
[INFO] [stdout]   |
[INFO] [stdout] 5 - //! 认证相关测试
[INFO] [stdout] 5 + // 认证相关测试
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0753]: expected outer doc comment
[INFO] [stdout]  --> tests/auth_tests.rs:6:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | //!
[INFO] [stdout]   | ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
[INFO] [stdout] help: you might have meant to write a regular comment
[INFO] [stdout]   |
[INFO] [stdout] 6 - //!
[INFO] [stdout] 6 + //
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0753]: expected outer doc comment
[INFO] [stdout]   --> tests/auth_tests.rs:7:1
[INFO] [stdout]    |
[INFO] [stdout]  7 |   //! 测试用户登录、注册、刷新令牌等功能
[INFO] [stdout]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |
[INFO] [stdout]  9 | / use axum::{
[INFO] [stdout] 10 | |     body::Body,
[INFO] [stdout] 11 | |     http::{self, Request, StatusCode},
[INFO] [stdout] 12 | |     Router,
[INFO] [stdout] 13 | | };
[INFO] [stdout]    | |__- the inner doc comment doesn't annotate this `use` import
[INFO] [stdout]    |
[INFO] [stdout] help: to annotate the `use` import, change the doc comment from inner to outer style
[INFO] [stdout]    |
[INFO] [stdout]  7 - //! 测试用户登录、注册、刷新令牌等功能
[INFO] [stdout]  7 + /// 测试用户登录、注册、刷新令牌等功能
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AppState`
[INFO] [stdout]   --> main.rs:12:93
[INFO] [stdout]    |
[INFO] [stdout] 12 | use jz::{log_init, init_db_pool, user_routes, service_routes, order_routes, init_app_state, AppState};
[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 imports: `Request`, `Router`, `StatusCode`, `body::Body`, `routing::post`, and `self`
[INFO] [stdout]  --> tests/user_tests.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     body::Body,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 3 |     http::{self, Request, StatusCode},
[INFO] [stdout]   |            ^^^^  ^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 4 |     routing::post,
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 5 |     Router,
[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: `sqlx::mysql::MySqlPool`
[INFO] [stdout]   --> main.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use sqlx::mysql::MySqlPool;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::json`
[INFO] [stdout]  --> tests/user_tests.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::json;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]  --> tests/user_tests.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::net::SocketAddr;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::net::TcpListener`
[INFO] [stdout]  --> tests/user_tests.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use tokio::net::TcpListener;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tower::ServiceExt`
[INFO] [stdout]   --> tests/user_tests.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use tower::ServiceExt; // for `call`, `oneshot`, and `ready`
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AppState`
[INFO] [stdout]   --> main.rs:12:93
[INFO] [stdout]    |
[INFO] [stdout] 12 | use jz::{log_init, init_db_pool, user_routes, service_routes, order_routes, init_app_state, AppState};
[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: `sqlx::mysql::MySqlPool`
[INFO] [stdout]   --> main.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use sqlx::mysql::MySqlPool;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `Claims` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout]  1 | use jz::utils::jwt::Claims;
[INFO] [stdout]    |     ---------------------- previous import of the type `Claims` here
[INFO] [stdout] ...
[INFO] [stdout] 17 |     utils::jwt::Claims,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^-
[INFO] [stdout]    |     |
[INFO] [stdout]    |     `Claims` reimported here
[INFO] [stdout]    |     help: remove unnecessary import
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Claims` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `User` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout]  2 | use jz::models::user::User;
[INFO] [stdout]    |     ---------------------- previous import of the type `User` here
[INFO] [stdout] ...
[INFO] [stdout] 18 |     models::user::User,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^-
[INFO] [stdout]    |     |
[INFO] [stdout]    |     `User` reimported here
[INFO] [stdout]    |     help: remove unnecessary import
[INFO] [stdout]    |
[INFO] [stdout]    = note: `User` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `NaiveDateTime` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout]  3 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ---------------------------------- previous import of the type `NaiveDateTime` here
[INFO] [stdout] ...
[INFO] [stdout] 21 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `NaiveDateTime` reimported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `NaiveDateTime` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `Claims` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout]  1 | use jz::utils::jwt::Claims;
[INFO] [stdout]    |     ---------------------- previous import of the type `Claims` here
[INFO] [stdout] ...
[INFO] [stdout] 24 | use jz::utils::jwt::Claims;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^ `Claims` reimported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Claims` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `User` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout]  2 | use jz::models::user::User;
[INFO] [stdout]    |     ---------------------- previous import of the type `User` here
[INFO] [stdout] ...
[INFO] [stdout] 25 | use jz::models::user::User;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^ `User` reimported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `User` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `NaiveDateTime` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout]  3 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ---------------------------------- previous import of the type `NaiveDateTime` here
[INFO] [stdout] ...
[INFO] [stdout] 26 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `NaiveDateTime` reimported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `NaiveDateTime` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `jz::services::mock_user_service`
[INFO] [stdout]   --> tests/auth_tests.rs:16:15
[INFO] [stdout]    |
[INFO] [stdout] 16 |     services::mock_user_service::MockUserService,
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^ could not find `mock_user_service` in `services`
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> src/services/mod.rs:7:9
[INFO] [stdout]    |
[INFO] [stdout]  6 | #[cfg(test)]
[INFO] [stdout]    |       ---- the item is gated here
[INFO] [stdout]  7 | pub mod mock_user_service {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Request`, `Router`, `StatusCode`, `body::Body`, `routing::post`, and `self`
[INFO] [stdout]  --> tests/user_tests.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     body::Body,
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 3 |     http::{self, Request, StatusCode},
[INFO] [stdout]   |            ^^^^  ^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 4 |     routing::post,
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 5 |     Router,
[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: `serde_json::json`
[INFO] [stdout]  --> tests/user_tests.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::json;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]  --> tests/user_tests.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::net::SocketAddr;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::net::TcpListener`
[INFO] [stdout]  --> tests/user_tests.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use tokio::net::TcpListener;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tower::ServiceExt`
[INFO] [stdout]   --> tests/user_tests.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use tower::ServiceExt; // for `call`, `oneshot`, and `ready`
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Request`, `Router`, `StatusCode`, `body::Body`, and `self`
[INFO] [stdout]   --> tests/auth_tests.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     body::Body,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 11 |     http::{self, Request, StatusCode},
[INFO] [stdout]    |            ^^^^  ^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 12 |     Router,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `LogoutRequest`, `RefreshTokenRequest`, `models::user::User`, and `utils::jwt::Claims`
[INFO] [stdout]   --> tests/auth_tests.rs:15:51
[INFO] [stdout]    |
[INFO] [stdout] 15 |     models::auth::{LoginRequest, RegisterRequest, RefreshTokenRequest, LogoutRequest},
[INFO] [stdout]    |                                                   ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 16 |     services::mock_user_service::MockUserService,
[INFO] [stdout] 17 |     utils::jwt::Claims,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 18 |     models::user::User,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::json`
[INFO] [stdout]   --> tests/auth_tests.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use serde_json::json;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sqlx::types::chrono::NaiveDateTime`
[INFO] [stdout]   --> tests/auth_tests.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tower::ServiceExt`
[INFO] [stdout]   --> tests/auth_tests.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use tower::ServiceExt; // for `call`, `oneshot`, and `ready`
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `jz::utils::jwt::Claims`
[INFO] [stdout]   --> tests/auth_tests.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use jz::utils::jwt::Claims;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `jz::models::user::User`
[INFO] [stdout]   --> tests/auth_tests.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use jz::models::user::User;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sqlx::types::chrono::NaiveDateTime`
[INFO] [stdout]   --> tests/auth_tests.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sqlx::types::chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> tests/auth_tests.rs:44:36
[INFO] [stdout]    |
[INFO] [stdout] 44 |         created_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sqlx::types::chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> tests/auth_tests.rs:45:36
[INFO] [stdout]    |
[INFO] [stdout] 45 |         updated_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 1 argument was supplied
[INFO] [stdout]   --> tests/auth_tests.rs:48:18
[INFO] [stdout]    |
[INFO] [stdout] 48 |     let claims = Claims::new(&user);
[INFO] [stdout]    |                  ^^^^^^^^^^^------- two arguments of type `&str` and `usize` are missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/utils/jwt.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 29 |     pub fn new(user: &User, token_type: &str, expiration_seconds: usize) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] help: provide the arguments
[INFO] [stdout]    |
[INFO] [stdout] 48 |     let claims = Claims::new(&user, /* &str */, /* usize */);
[INFO] [stdout]    |                                   +++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sqlx::types::chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> tests/auth_tests.rs:70:36
[INFO] [stdout]    |
[INFO] [stdout] 70 |         created_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sqlx::types::chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> tests/auth_tests.rs:71:36
[INFO] [stdout]    |
[INFO] [stdout] 71 |         updated_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 1 argument was supplied
[INFO] [stdout]   --> tests/auth_tests.rs:74:18
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let claims = Claims::new(&user);
[INFO] [stdout]    |                  ^^^^^^^^^^^------- two arguments of type `&str` and `usize` are missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/utils/jwt.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 29 |     pub fn new(user: &User, token_type: &str, expiration_seconds: usize) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] help: provide the arguments
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let claims = Claims::new(&user, /* &str */, /* usize */);
[INFO] [stdout]    |                                   +++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]   --> tests/auth_tests.rs:78:28
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let validated_claims = Claims::validate_token(&token, secret).expect("Failed to validate token");
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^^---------------- argument #3 of type `Option<&str>` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/utils/jwt.rs:61:12
[INFO] [stdout]    |
[INFO] [stdout] 61 |     pub fn validate_token(
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let validated_claims = Claims::validate_token(&token, secret, /* Option<&str> */).expect("Failed to validate token");
[INFO] [stdout]    |                                                                 ++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `logging_interceptor` is never used
[INFO] [stdout]   --> main.rs:78:10
[INFO] [stdout]    |
[INFO] [stdout] 78 | async fn logging_interceptor(
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `jz` (test "main") due to 13 previous errors; 17 warnings emitted
[INFO] [stdout] Some errors have detailed explanations: E0061, E0252, E0432, E0753.
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error[E0753]: expected outer doc comment
[INFO] [stdout]  --> tests/auth_tests.rs:5:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | //! 认证相关测试
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
[INFO] [stdout] help: you might have meant to write a regular comment
[INFO] [stdout]   |
[INFO] [stdout] 5 - //! 认证相关测试
[INFO] [stdout] 5 + // 认证相关测试
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0753]: expected outer doc comment
[INFO] [stdout]  --> tests/auth_tests.rs:6:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | //!
[INFO] [stdout]   | ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: inner doc comments like this (starting with `//!` or `/*!`) can only appear before items
[INFO] [stdout] help: you might have meant to write a regular comment
[INFO] [stdout]   |
[INFO] [stdout] 6 - //!
[INFO] [stdout] 6 + //
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0753]: expected outer doc comment
[INFO] [stdout]   --> tests/auth_tests.rs:7:1
[INFO] [stdout]    |
[INFO] [stdout]  7 |   //! 测试用户登录、注册、刷新令牌等功能
[INFO] [stdout]    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  8 |
[INFO] [stdout]  9 | / use axum::{
[INFO] [stdout] 10 | |     body::Body,
[INFO] [stdout] 11 | |     http::{self, Request, StatusCode},
[INFO] [stdout] 12 | |     Router,
[INFO] [stdout] 13 | | };
[INFO] [stdout]    | |__- the inner doc comment doesn't annotate this `use` import
[INFO] [stdout]    |
[INFO] [stdout] help: to annotate the `use` import, change the doc comment from inner to outer style
[INFO] [stdout]    |
[INFO] [stdout]  7 - //! 测试用户登录、注册、刷新令牌等功能
[INFO] [stdout]  7 + /// 测试用户登录、注册、刷新令牌等功能
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `Claims` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout]  1 | use jz::utils::jwt::Claims;
[INFO] [stdout]    |     ---------------------- previous import of the type `Claims` here
[INFO] [stdout] ...
[INFO] [stdout] 17 |     utils::jwt::Claims,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^-
[INFO] [stdout]    |     |
[INFO] [stdout]    |     `Claims` reimported here
[INFO] [stdout]    |     help: remove unnecessary import
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Claims` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `User` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout]  2 | use jz::models::user::User;
[INFO] [stdout]    |     ---------------------- previous import of the type `User` here
[INFO] [stdout] ...
[INFO] [stdout] 18 |     models::user::User,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^-
[INFO] [stdout]    |     |
[INFO] [stdout]    |     `User` reimported here
[INFO] [stdout]    |     help: remove unnecessary import
[INFO] [stdout]    |
[INFO] [stdout]    = note: `User` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `NaiveDateTime` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout]  3 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ---------------------------------- previous import of the type `NaiveDateTime` here
[INFO] [stdout] ...
[INFO] [stdout] 21 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `NaiveDateTime` reimported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `NaiveDateTime` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `Claims` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout]  1 | use jz::utils::jwt::Claims;
[INFO] [stdout]    |     ---------------------- previous import of the type `Claims` here
[INFO] [stdout] ...
[INFO] [stdout] 24 | use jz::utils::jwt::Claims;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^ `Claims` reimported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Claims` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `User` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout]  2 | use jz::models::user::User;
[INFO] [stdout]    |     ---------------------- previous import of the type `User` here
[INFO] [stdout] ...
[INFO] [stdout] 25 | use jz::models::user::User;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^ `User` reimported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `User` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0252]: the name `NaiveDateTime` is defined multiple times
[INFO] [stdout]   --> tests/auth_tests.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout]  3 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ---------------------------------- previous import of the type `NaiveDateTime` here
[INFO] [stdout] ...
[INFO] [stdout] 26 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `NaiveDateTime` reimported here
[INFO] [stdout]    |
[INFO] [stdout]    = note: `NaiveDateTime` must be defined only once in the type namespace of this module
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `jz::services::mock_user_service`
[INFO] [stdout]   --> tests/auth_tests.rs:16:15
[INFO] [stdout]    |
[INFO] [stdout] 16 |     services::mock_user_service::MockUserService,
[INFO] [stdout]    |               ^^^^^^^^^^^^^^^^^ could not find `mock_user_service` in `services`
[INFO] [stdout]    |
[INFO] [stdout] note: found an item that was configured out
[INFO] [stdout]   --> src/services/mod.rs:7:9
[INFO] [stdout]    |
[INFO] [stdout]  6 | #[cfg(test)]
[INFO] [stdout]    |       ---- the item is gated here
[INFO] [stdout]  7 | pub mod mock_user_service {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Request`, `Router`, `StatusCode`, `body::Body`, and `self`
[INFO] [stdout]   --> tests/auth_tests.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 |     body::Body,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 11 |     http::{self, Request, StatusCode},
[INFO] [stdout]    |            ^^^^  ^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 12 |     Router,
[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 imports: `LogoutRequest`, `RefreshTokenRequest`, `models::user::User`, and `utils::jwt::Claims`
[INFO] [stdout]   --> tests/auth_tests.rs:15:51
[INFO] [stdout]    |
[INFO] [stdout] 15 |     models::auth::{LoginRequest, RegisterRequest, RefreshTokenRequest, LogoutRequest},
[INFO] [stdout]    |                                                   ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 16 |     services::mock_user_service::MockUserService,
[INFO] [stdout] 17 |     utils::jwt::Claims,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 18 |     models::user::User,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::json`
[INFO] [stdout]   --> tests/auth_tests.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use serde_json::json;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sqlx::types::chrono::NaiveDateTime`
[INFO] [stdout]   --> tests/auth_tests.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tower::ServiceExt`
[INFO] [stdout]   --> tests/auth_tests.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use tower::ServiceExt; // for `call`, `oneshot`, and `ready`
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `jz::utils::jwt::Claims`
[INFO] [stdout]   --> tests/auth_tests.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use jz::utils::jwt::Claims;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `jz::models::user::User`
[INFO] [stdout]   --> tests/auth_tests.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use jz::models::user::User;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sqlx::types::chrono::NaiveDateTime`
[INFO] [stdout]   --> tests/auth_tests.rs:26:5
[INFO] [stdout]    |
[INFO] [stdout] 26 | use sqlx::types::chrono::NaiveDateTime;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `logging_interceptor` is never used
[INFO] [stdout]   --> main.rs:78:10
[INFO] [stdout]    |
[INFO] [stdout] 78 | async fn logging_interceptor(
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sqlx::types::chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> tests/auth_tests.rs:44:36
[INFO] [stdout]    |
[INFO] [stdout] 44 |         created_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sqlx::types::chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> tests/auth_tests.rs:45:36
[INFO] [stdout]    |
[INFO] [stdout] 45 |         updated_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 1 argument was supplied
[INFO] [stdout]   --> tests/auth_tests.rs:48:18
[INFO] [stdout]    |
[INFO] [stdout] 48 |     let claims = Claims::new(&user);
[INFO] [stdout]    |                  ^^^^^^^^^^^------- two arguments of type `&str` and `usize` are missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/utils/jwt.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 29 |     pub fn new(user: &User, token_type: &str, expiration_seconds: usize) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] help: provide the arguments
[INFO] [stdout]    |
[INFO] [stdout] 48 |     let claims = Claims::new(&user, /* &str */, /* usize */);
[INFO] [stdout]    |                                   +++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sqlx::types::chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> tests/auth_tests.rs:70:36
[INFO] [stdout]    |
[INFO] [stdout] 70 |         created_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated associated function `sqlx::types::chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead
[INFO] [stdout]   --> tests/auth_tests.rs:71:36
[INFO] [stdout]    |
[INFO] [stdout] 71 |         updated_at: NaiveDateTime::from_timestamp_opt(1609459200, 0).unwrap(),
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 1 argument was supplied
[INFO] [stdout]   --> tests/auth_tests.rs:74:18
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let claims = Claims::new(&user);
[INFO] [stdout]    |                  ^^^^^^^^^^^------- two arguments of type `&str` and `usize` are missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/utils/jwt.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 29 |     pub fn new(user: &User, token_type: &str, expiration_seconds: usize) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] help: provide the arguments
[INFO] [stdout]    |
[INFO] [stdout] 74 |     let claims = Claims::new(&user, /* &str */, /* usize */);
[INFO] [stdout]    |                                   +++++++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied
[INFO] [stdout]   --> tests/auth_tests.rs:78:28
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let validated_claims = Claims::validate_token(&token, secret).expect("Failed to validate token");
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^^^^^^^^^---------------- argument #3 of type `Option<&str>` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/utils/jwt.rs:61:12
[INFO] [stdout]    |
[INFO] [stdout] 61 |     pub fn validate_token(
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let validated_claims = Claims::validate_token(&token, secret, /* Option<&str> */).expect("Failed to validate token");
[INFO] [stdout]    |                                                                 ++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0252, E0432, E0753.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `jz` (test "auth_tests") due to 13 previous errors; 12 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "be2ae47418df283b3cd24640535b8b7761d9907a229306da10a26b8978851efe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "be2ae47418df283b3cd24640535b8b7761d9907a229306da10a26b8978851efe", kill_on_drop: false }`
[INFO] [stdout] be2ae47418df283b3cd24640535b8b7761d9907a229306da10a26b8978851efe
