[INFO] cloning repository https://github.com/wahyurudiyan/axum-auth [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wahyurudiyan/axum-auth" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwahyurudiyan%2Faxum-auth", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwahyurudiyan%2Faxum-auth'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 43374f5ac065b16c215aeb9710be12f1aa43dacb [INFO] testing wahyurudiyan/axum-auth against nightly-2025-01-18 for randomize-layout-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwahyurudiyan%2Faxum-auth" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/wahyurudiyan/axum-auth on toolchain nightly-2025-01-18 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2025-01-18" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/wahyurudiyan/axum-auth [INFO] finished tweaking git repo https://github.com/wahyurudiyan/axum-auth [INFO] tweaked toml for git repo https://github.com/wahyurudiyan/axum-auth written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/wahyurudiyan/axum-auth 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" "+nightly-2025-01-18" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.99 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.99 [INFO] [stderr] Downloaded sval_serde v2.14.0 [INFO] [stderr] Downloaded bitflags v2.7.0 [INFO] [stderr] Downloaded env_filter v0.1.3 [INFO] [stderr] Downloaded serde_fmt v1.0.3 [INFO] [stderr] Downloaded sval_dynamic v2.14.0 [INFO] [stderr] Downloaded sval_ref v2.14.0 [INFO] [stderr] Downloaded anstyle-wincon v3.0.7 [INFO] [stderr] Downloaded axum-core v0.5.0 [INFO] [stderr] Downloaded js-sys v0.3.76 [INFO] [stderr] Downloaded sval_buffer v2.14.0 [INFO] [stderr] Downloaded cc v1.2.9 [INFO] [stderr] Downloaded orion v0.17.7 [INFO] [stderr] Downloaded axum v0.8.1 [INFO] [stderr] Downloaded serde_json v1.0.135 [INFO] [stderr] Downloaded pasetors v0.7.1 [INFO] [stderr] Downloaded log v0.4.24 [INFO] [stderr] Downloaded matchit v0.8.4 [INFO] [stderr] Downloaded sval v2.14.0 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.99 [INFO] [stderr] Downloaded env_logger v0.11.6 [INFO] [stderr] Downloaded ed25519-compact v2.1.1 [INFO] [stderr] Downloaded sval_fmt v2.14.0 [INFO] [stderr] Downloaded sval_json v2.14.0 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.99 [INFO] [stderr] Downloaded wasm-bindgen v0.2.99 [INFO] [stderr] Downloaded miniz_oxide v0.8.2 [INFO] [stderr] Downloaded ct-codecs v1.1.3 [INFO] [stderr] Downloaded value-bag-serde1 v1.10.0 [INFO] [stderr] Downloaded value-bag-sval2 v1.10.0 [INFO] [stderr] Downloaded sval_nested v2.14.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f37acf2ce5f860fc36e34be92d43e8b626ae72a3c89984937ae60f0e14f11ff0 [INFO] running `Command { std: "docker" "start" "-a" "f37acf2ce5f860fc36e34be92d43e8b626ae72a3c89984937ae60f0e14f11ff0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f37acf2ce5f860fc36e34be92d43e8b626ae72a3c89984937ae60f0e14f11ff0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f37acf2ce5f860fc36e34be92d43e8b626ae72a3c89984937ae60f0e14f11ff0", kill_on_drop: false }` [INFO] [stdout] f37acf2ce5f860fc36e34be92d43e8b626ae72a3c89984937ae60f0e14f11ff0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 619621af82b79dc0cb8bdb7a3c7080ce81f58ee06b757cce91dfa501b3e08f3b [INFO] running `Command { std: "docker" "start" "-a" "619621af82b79dc0cb8bdb7a3c7080ce81f58ee06b757cce91dfa501b3e08f3b", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling log v0.4.24 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling fiat-crypto v0.2.9 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling ct-codecs v1.1.3 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling ed25519-compact v2.1.1 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling axum-core v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling env_logger v0.11.6 [INFO] [stderr] Compiling orion v0.17.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling hyper v1.5.2 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling pasetors v0.7.1 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling axum v0.8.1 [INFO] [stderr] Compiling axum-auth v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/dto/auth.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PasetoClaimRequest { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(user: User) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_expired` are never used [INFO] [stdout] --> src/models/dto/auth.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl PasetoVerifyRequest { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 47 | pub fn new(token: String, expired: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn is_expired(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nbf`, `exp`, and `iat` are never read [INFO] [stdout] --> src/models/entities/auth.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PayloadClaim { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 5 | pub user_data: UserData, [INFO] [stdout] 6 | pub nbf: String, // Using chrono for parsing the timestamp [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub exp: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | pub iat: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PayloadClaim` 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 items `new` and `user_info` are never used [INFO] [stdout] --> src/models/entities/auth.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 25 | /// Creates a new User instance. [INFO] [stdout] 26 | pub fn new(user_id: u64, username: String, role: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn user_info(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.90s [INFO] running `Command { std: "docker" "inspect" "619621af82b79dc0cb8bdb7a3c7080ce81f58ee06b757cce91dfa501b3e08f3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "619621af82b79dc0cb8bdb7a3c7080ce81f58ee06b757cce91dfa501b3e08f3b", kill_on_drop: false }` [INFO] [stdout] 619621af82b79dc0cb8bdb7a3c7080ce81f58ee06b757cce91dfa501b3e08f3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86b61d977376fc7963556413426c25d408eb6d738df9dbfb9e9194bc60b7a069 [INFO] running `Command { std: "docker" "start" "-a" "86b61d977376fc7963556413426c25d408eb6d738df9dbfb9e9194bc60b7a069", kill_on_drop: false }` [INFO] [stderr] Compiling axum-auth v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/dto/auth.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl PasetoClaimRequest { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 11 | pub fn new(user: User) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_expired` are never used [INFO] [stdout] --> src/models/dto/auth.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl PasetoVerifyRequest { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 47 | pub fn new(token: String, expired: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn is_expired(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `nbf`, `exp`, and `iat` are never read [INFO] [stdout] --> src/models/entities/auth.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct PayloadClaim { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 5 | pub user_data: UserData, [INFO] [stdout] 6 | pub nbf: String, // Using chrono for parsing the timestamp [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | pub exp: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 8 | pub iat: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PayloadClaim` 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 items `new` and `user_info` are never used [INFO] [stdout] --> src/models/entities/auth.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 25 | /// Creates a new User instance. [INFO] [stdout] 26 | pub fn new(user_id: u64, username: String, role: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn user_info(&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.83s [INFO] running `Command { std: "docker" "inspect" "86b61d977376fc7963556413426c25d408eb6d738df9dbfb9e9194bc60b7a069", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86b61d977376fc7963556413426c25d408eb6d738df9dbfb9e9194bc60b7a069", kill_on_drop: false }` [INFO] [stdout] 86b61d977376fc7963556413426c25d408eb6d738df9dbfb9e9194bc60b7a069 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 12b0399bfa5772299a987c81a7a39e2c3dc07bdca43b057bf73ac89a7402e06c [INFO] running `Command { std: "docker" "start" "-a" "12b0399bfa5772299a987c81a7a39e2c3dc07bdca43b057bf73ac89a7402e06c", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `log::info` [INFO] [stderr] --> src/main.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use log::info; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/dto/auth.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl PasetoClaimRequest { [INFO] [stderr] | ----------------------- associated function in this implementation [INFO] [stderr] 11 | pub fn new(user: User) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `is_expired` are never used [INFO] [stderr] --> src/models/dto/auth.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 46 | impl PasetoVerifyRequest { [INFO] [stderr] | ------------------------ associated items in this implementation [INFO] [stderr] 47 | pub fn new(token: String, expired: String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 52 | pub fn is_expired(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `nbf`, `exp`, and `iat` are never read [INFO] [stderr] --> src/models/entities/auth.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct PayloadClaim { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 5 | pub user_data: UserData, [INFO] [stderr] 6 | pub nbf: String, // Using chrono for parsing the timestamp [INFO] [stderr] | ^^^ [INFO] [stderr] 7 | pub exp: String, [INFO] [stderr] | ^^^ [INFO] [stderr] 8 | pub iat: String, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PayloadClaim` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `user_info` are never used [INFO] [stderr] --> src/models/entities/auth.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl User { [INFO] [stderr] | --------- associated items in this implementation [INFO] [stderr] 25 | /// Creates a new User instance. [INFO] [stderr] 26 | pub fn new(user_id: u64, username: String, role: String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 35 | pub fn user_info(&self) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `axum-auth` (bin "axum-auth" test) generated 5 warnings (run `cargo fix --bin "axum-auth" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/axum_auth-3c61b95a993ee9c5) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "12b0399bfa5772299a987c81a7a39e2c3dc07bdca43b057bf73ac89a7402e06c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12b0399bfa5772299a987c81a7a39e2c3dc07bdca43b057bf73ac89a7402e06c", kill_on_drop: false }` [INFO] [stdout] 12b0399bfa5772299a987c81a7a39e2c3dc07bdca43b057bf73ac89a7402e06c