[INFO] cloning repository https://github.com/maisonlam90/axum [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/maisonlam90/axum" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaisonlam90%2Faxum", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaisonlam90%2Faxum'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 79672f38e059489d015c381dbf54435c0f7bfdf4 [INFO] checking maisonlam90/axum against master#55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d for pr-146300 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaisonlam90%2Faxum" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-4-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/maisonlam90/axum [INFO] finished tweaking git repo https://github.com/maisonlam90/axum [INFO] tweaked toml for git repo https://github.com/maisonlam90/axum written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/maisonlam90/axum on toolchain 55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 326 packages to latest compatible versions [INFO] [stderr] Adding axum v0.7.9 (available: v0.8.4) [INFO] [stderr] Adding bcrypt v0.15.1 (available: v0.17.1) [INFO] [stderr] Adding bigdecimal v0.3.1 (available: v0.4.8) [INFO] [stderr] Adding chrono-tz v0.8.6 (available: v0.10.4) [INFO] [stderr] Adding convert_case v0.5.0 (available: v0.8.0) [INFO] [stderr] Adding sqlx v0.7.4 (available: v0.8.6) [INFO] [stderr] Adding tokio-tungstenite v0.20.1 (available: v0.27.0) [INFO] [stderr] Adding tower v0.4.13 (available: v0.5.2) [INFO] [stderr] Adding tower-http v0.5.2 (available: v0.6.6) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uuid v1.18.1 [INFO] [stderr] Downloaded chrono-tz-build v0.2.1 [INFO] [stderr] Downloaded valuable v0.1.1 [INFO] [stderr] Downloaded sqlx-mysql v0.7.4 [INFO] [stderr] Downloaded axum-macros v0.4.2 [INFO] [stderr] Downloaded jsonwebtoken v9.3.1 [INFO] [stderr] Downloaded pem v3.0.5 [INFO] [stderr] Downloaded sqlx-sqlite v0.7.4 [INFO] [stderr] Downloaded borsh v1.5.7 [INFO] [stderr] Downloaded sqlx-postgres v0.7.4 [INFO] [stderr] Downloaded chrono v0.4.42 [INFO] [stderr] Downloaded sqlx-core v0.7.4 [INFO] [stderr] Downloaded parse-zoneinfo v0.3.1 [INFO] [stderr] Downloaded regex v1.11.2 [INFO] [stderr] Downloaded time v0.3.43 [INFO] [stderr] Downloaded rust_decimal v1.37.2 [INFO] [stderr] Downloaded rsa v0.9.8 [INFO] [stderr] Downloaded tower-http v0.5.2 [INFO] [stderr] Downloaded chrono-tz v0.8.6 [INFO] [stderr] Downloaded flume v0.11.1 [INFO] [stderr] Downloaded regex-automata v0.4.10 [INFO] [stderr] Downloaded der v0.7.10 [INFO] [stderr] Downloaded typenum v1.18.0 [INFO] [stderr] Downloaded regex-syntax v0.8.6 [INFO] [stderr] Downloaded tracing-subscriber v0.3.20 [INFO] [stderr] Downloaded tungstenite v0.20.1 [INFO] [stderr] Downloaded deranged v0.5.3 [INFO] [stderr] Downloaded sqlx-macros-core v0.7.4 [INFO] [stderr] Downloaded base64ct v1.8.0 [INFO] [stderr] Downloaded etcetera v0.8.0 [INFO] [stderr] Downloaded home v0.5.11 [INFO] [stderr] Downloaded sqlformat v0.2.6 [INFO] [stderr] Downloaded tokio-tungstenite v0.20.1 [INFO] [stderr] Downloaded time-macros v0.2.24 [INFO] [stderr] Downloaded sqlx-macros v0.7.4 [INFO] [stderr] Downloaded whoami v1.6.1 [INFO] [stderr] Downloaded iana-time-zone v0.1.63 [INFO] [stderr] Downloaded hashlink v0.8.4 [INFO] [stderr] Downloaded sha2 v0.10.9 [INFO] [stderr] Downloaded tokio-stream v0.1.17 [INFO] [stderr] Downloaded data-encoding v2.9.0 [INFO] [stderr] Downloaded cpufeatures v0.2.17 [INFO] [stderr] Downloaded serde_path_to_error v0.1.17 [INFO] [stderr] Downloaded inout v0.1.4 [INFO] [stderr] Downloaded bcrypt v0.15.1 [INFO] [stderr] Downloaded phf_codegen v0.11.3 [INFO] [stderr] Downloaded convert_case v0.5.0 [INFO] [stderr] Downloaded simple_asn1 v0.6.3 [INFO] [stderr] Downloaded dotenvy v0.15.7 [INFO] [stderr] Downloaded bigdecimal v0.3.1 [INFO] [stderr] Downloaded crc v3.3.0 [INFO] [stderr] Downloaded crossbeam-queue v0.3.12 [INFO] [stderr] Downloaded unicode_categories v0.1.1 [INFO] [stderr] Downloaded sqlx v0.7.4 [INFO] [stderr] Downloaded matchers v0.2.0 [INFO] [stderr] Downloaded url v2.5.7 [INFO] [stderr] Downloaded potential_utf v0.1.3 [INFO] [stderr] Downloaded borsh-derive v1.5.7 [INFO] [stderr] Downloaded tempfile v3.22.0 [INFO] [stderr] Downloaded atoi v2.0.0 [INFO] [stderr] Downloaded time-core v0.1.6 [INFO] [stderr] Downloaded nu-ansi-term v0.50.1 [INFO] [stderr] Downloaded thread_local v1.1.9 [INFO] [stderr] Downloaded libsqlite3-sys v0.27.0 [INFO] [stderr] Downloaded tracing-appender v0.2.3 [INFO] [stderr] Downloaded futures-intrusive v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2c77f9cd65b781563224ffc70a97118264848e80dec1a0197557d6e0c8b461a8 [INFO] running `Command { std: "docker" "start" "-a" "2c77f9cd65b781563224ffc70a97118264848e80dec1a0197557d6e0c8b461a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c77f9cd65b781563224ffc70a97118264848e80dec1a0197557d6e0c8b461a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c77f9cd65b781563224ffc70a97118264848e80dec1a0197557d6e0c8b461a8", kill_on_drop: false }` [INFO] [stdout] 2c77f9cd65b781563224ffc70a97118264848e80dec1a0197557d6e0c8b461a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+55b9b4d1e1bb5b46c04237a2fb2f8a85f39ef97d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08e3fc62065e7d1038cf701b830fab8d36f513e886aaafcc78ba235ffa24d770 [INFO] running `Command { std: "docker" "start" "-a" "08e3fc62065e7d1038cf701b830fab8d36f513e886aaafcc78ba235ffa24d770", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling cc v1.2.36 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Checking writeable v0.6.1 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling bigdecimal v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Checking deranged v0.5.3 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Checking time v0.3.43 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling chrono-tz-build v0.2.1 [INFO] [stderr] Compiling tempfile v3.22.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling chrono-tz v0.8.6 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Compiling rust_decimal v1.37.2 [INFO] [stderr] Checking nu-ansi-term v0.50.1 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Checking pem v3.0.5 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking convert_case v0.5.0 [INFO] [stderr] Checking bcrypt v0.15.1 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking tracing-appender v0.2.3 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking sqlx-postgres v0.7.4 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking milan v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `axum::http::StatusCode` [INFO] [stdout] --> src/module/user/handler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::http::StatusCode; [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: `error` [INFO] [stdout] --> src/module/tenant/handler.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | use tracing::{debug, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::http::StatusCode` [INFO] [stdout] --> src/module/user/handler.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::http::StatusCode; [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: `error` [INFO] [stdout] --> src/module/tenant/handler.rs:11:22 [INFO] [stdout] | [INFO] [stdout] 11 | use tracing::{debug, error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::module::loan::handler::report::pivot_now_contract` [INFO] [stdout] --> src/module/loan/router.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::module::loan::handler::report::pivot_now_contract; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/module/loan/handler/collateral.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/module/loan/handler/collateral.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::module::loan::calculator::calculate_interest_fields_as_of` [INFO] [stdout] --> src/module/loan/command.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::module::loan::calculator::calculate_interest_fields_as_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::module::loan::handler::report::pivot_now_contract` [INFO] [stdout] --> src/module/loan/router.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::module::loan::handler::report::pivot_now_contract; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/module/loan/handler/collateral.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/module/loan/handler/collateral.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::{DateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::module::loan::calculator::calculate_interest_fields_as_of` [INFO] [stdout] --> src/module/loan/command.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::module::loan::calculator::calculate_interest_fields_as_of; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/module/app/dto.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/module/app/dto.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_tx` [INFO] [stdout] --> src/module/loan/handler/report.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let t_tx = std::time::Instant::now(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_t_tx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/module/loan/command.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | mut input: CreateContractInput, [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t_tx` [INFO] [stdout] --> src/module/loan/handler/report.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let t_tx = std::time::Instant::now(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_t_tx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/module/loan/command.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | mut input: CreateContractInput, [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Acquire` [INFO] [stdout] --> src/module/app/handler.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | use sqlx::Acquire; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::Acquire` [INFO] [stdout] --> src/module/app/handler.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | use sqlx::Acquire; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `telemetry` and `event_publisher` are never read [INFO] [stdout] --> src/core/state.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct AppState { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 8 | pub shard: Arc, // chỉ còn ShardManager [INFO] [stdout] 9 | pub telemetry: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | pub event_publisher: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_sys_admin` is never used [INFO] [stdout] --> src/core/iam.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn is_sys_admin(user: &AuthUser) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_and_respond` is never used [INFO] [stdout] --> src/core/log.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn log_and_respond(err: E) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `publish` is never used [INFO] [stdout] --> src/infra/event_bus.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait EventPublisher: Send + Sync { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 4 | /// Gửi message tới topic tương ứng [INFO] [stdout] 5 | fn publish(&self, topic: &str, payload: &[u8]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/module/user/router.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn routes() -> Router> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_users` is never used [INFO] [stdout] --> src/module/user/query.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn find_users(pool: &PgPool, tenant_id: Uuid) -> sqlx::Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_user_by_id` is never used [INFO] [stdout] --> src/module/user/query.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn find_user_by_id(pool: &PgPool, tenant_id: Uuid, user_id: Uuid) -> sqlx::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clean` and `validate` are never used [INFO] [stdout] --> src/module/user/dto.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl RegisterDto { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn clean(self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn validate(&self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clean` and `validate` are never used [INFO] [stdout] --> src/module/user/dto.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl LoginDto { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn clean(self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn validate(&self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModuleMetadata` is never constructed [INFO] [stdout] --> src/module/user/metadata.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ModuleMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `metadata` is never used [INFO] [stdout] --> src/module/user/metadata.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn metadata() -> ModuleMetadata { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TenantModule` is never constructed [INFO] [stdout] --> src/module/tenant/model.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TenantModule { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetTenantQuery` is never constructed [INFO] [stdout] --> src/module/tenant/query.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct GetTenantQuery { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListTenantByEnterpriseQuery` is never constructed [INFO] [stdout] --> src/module/tenant/query.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ListTenantByEnterpriseQuery { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListTenantByCompanyQuery` is never constructed [INFO] [stdout] --> src/module/tenant/query.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ListTenantByCompanyQuery { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enterprise_form_schema` is never used [INFO] [stdout] --> src/module/tenant/metadata.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn enterprise_form_schema() -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enterprise_form_ui` is never used [INFO] [stdout] --> src/module/tenant/metadata.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn enterprise_form_ui() -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `company_form_schema` is never used [INFO] [stdout] --> src/module/tenant/metadata.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn company_form_schema() -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `company_form_ui` is never used [INFO] [stdout] --> src/module/tenant/metadata.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn company_form_ui() -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_form_schema` is never used [INFO] [stdout] --> src/module/tenant/metadata.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn tenant_form_schema() -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateTenantInput` is never constructed [INFO] [stdout] --> src/module/tenant/dto.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CreateTenantInput { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TenantDto` is never constructed [INFO] [stdout] --> src/module/tenant/dto.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TenantDto { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnableModuleInput` is never constructed [INFO] [stdout] --> src/module/tenant/dto.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct EnableModuleInput { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TenantModuleDto` is never constructed [INFO] [stdout] --> src/module/tenant/dto.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct TenantModuleDto { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RolePermission` is never constructed [INFO] [stdout] --> src/module/iam/model.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct RolePermission { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserRole` is never constructed [INFO] [stdout] --> src/module/iam/model.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct UserRole { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_collateral` is never used [INFO] [stdout] --> src/module/loan/command.rs:330:14 [INFO] [stdout] | [INFO] [stdout] 330 | pub async fn create_collateral( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContractDetail` is never constructed [INFO] [stdout] --> src/module/loan/query.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct ContractDetail { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_contract_detail` is never used [INFO] [stdout] --> src/module/loan/query.rs:112:14 [INFO] [stdout] | [INFO] [stdout] 112 | pub async fn get_contract_detail( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CollateralAsset` is never constructed [INFO] [stdout] --> src/module/loan/model.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct CollateralAsset { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `principal`, `state`, and `collateral_asset_ids` are never read [INFO] [stdout] --> src/module/loan/dto.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CreateContractInput { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 10 | pub contact_id: Uuid, [INFO] [stdout] 11 | pub principal: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub state: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub collateral_asset_ids: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateContractInput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `days_from_prev`, `interest_for_period`, `accumulated_interest`, and `principal_balance` are never read [INFO] [stdout] --> src/module/loan/dto.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct TransactionInput { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | pub days_from_prev: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 42 | #[serde(skip_deserializing, default)] [INFO] [stdout] 43 | pub interest_for_period: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | #[serde(skip_deserializing, default)] [INFO] [stdout] 45 | pub accumulated_interest: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | #[serde(skip_deserializing, default)] [INFO] [stdout] 47 | pub principal_balance: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionInput` 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: struct `ContractView` is never constructed [INFO] [stdout] --> src/module/loan/dto.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct ContractView { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TransactionView` is never constructed [INFO] [stdout] --> src/module/loan/dto.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct TransactionView { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_collateral_status` is never used [INFO] [stdout] --> src/module/loan/dto.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn default_collateral_status() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoanEvent` is never used [INFO] [stdout] --> src/module/loan/event.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum LoanEvent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DISPLAY_NAME` is never used [INFO] [stdout] --> src/module/loan/metadata.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const DISPLAY_NAME: &str = "Loan"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DESCRIPTION` is never used [INFO] [stdout] --> src/module/loan/metadata.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const DESCRIPTION: &str = "Quản lí cho vay"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `principal_paid_as_of` is never used [INFO] [stdout] --> src/module/loan/calculator.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn principal_paid_as_of( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `norm_opt_digits` is never used [INFO] [stdout] --> src/module/contact/handler.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn norm_opt_digits(v: &Option) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Contact` is never constructed [INFO] [stdout] --> src/module/contact/model.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Contact { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DISPLAY_NAME` is never used [INFO] [stdout] --> src/module/contact/metadata.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const DISPLAY_NAME: &str = "Contact"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DESCRIPTION` is never used [INFO] [stdout] --> src/module/contact/metadata.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const DESCRIPTION: &str = "Quản lí liên hệ"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContactEvent` is never used [INFO] [stdout] --> src/module/contact/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum ContactEvent { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `telemetry` and `event_publisher` are never read [INFO] [stdout] --> src/core/state.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct AppState { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 8 | pub shard: Arc, // chỉ còn ShardManager [INFO] [stdout] 9 | pub telemetry: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | pub event_publisher: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_sys_admin` is never used [INFO] [stdout] --> src/core/iam.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn is_sys_admin(user: &AuthUser) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `log_and_respond` is never used [INFO] [stdout] --> src/core/log.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn log_and_respond(err: E) -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `publish` is never used [INFO] [stdout] --> src/infra/event_bus.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait EventPublisher: Send + Sync { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 4 | /// Gửi message tới topic tương ứng [INFO] [stdout] 5 | fn publish(&self, topic: &str, payload: &[u8]); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `routes` is never used [INFO] [stdout] --> src/module/user/router.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn routes() -> Router> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_users` is never used [INFO] [stdout] --> src/module/user/query.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn find_users(pool: &PgPool, tenant_id: Uuid) -> sqlx::Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_user_by_id` is never used [INFO] [stdout] --> src/module/user/query.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn find_user_by_id(pool: &PgPool, tenant_id: Uuid, user_id: Uuid) -> sqlx::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clean` and `validate` are never used [INFO] [stdout] --> src/module/user/dto.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl RegisterDto { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn clean(self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn validate(&self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clean` and `validate` are never used [INFO] [stdout] --> src/module/user/dto.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 61 | impl LoginDto { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn clean(self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn validate(&self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModuleMetadata` is never constructed [INFO] [stdout] --> src/module/user/metadata.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ModuleMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `metadata` is never used [INFO] [stdout] --> src/module/user/metadata.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn metadata() -> ModuleMetadata { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TenantModule` is never constructed [INFO] [stdout] --> src/module/tenant/model.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct TenantModule { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GetTenantQuery` is never constructed [INFO] [stdout] --> src/module/tenant/query.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct GetTenantQuery { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListTenantByEnterpriseQuery` is never constructed [INFO] [stdout] --> src/module/tenant/query.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ListTenantByEnterpriseQuery { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ListTenantByCompanyQuery` is never constructed [INFO] [stdout] --> src/module/tenant/query.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ListTenantByCompanyQuery { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enterprise_form_schema` is never used [INFO] [stdout] --> src/module/tenant/metadata.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn enterprise_form_schema() -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `enterprise_form_ui` is never used [INFO] [stdout] --> src/module/tenant/metadata.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn enterprise_form_ui() -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `company_form_schema` is never used [INFO] [stdout] --> src/module/tenant/metadata.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn company_form_schema() -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `company_form_ui` is never used [INFO] [stdout] --> src/module/tenant/metadata.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn company_form_ui() -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_form_schema` is never used [INFO] [stdout] --> src/module/tenant/metadata.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn tenant_form_schema() -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateTenantInput` is never constructed [INFO] [stdout] --> src/module/tenant/dto.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct CreateTenantInput { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TenantDto` is never constructed [INFO] [stdout] --> src/module/tenant/dto.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct TenantDto { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnableModuleInput` is never constructed [INFO] [stdout] --> src/module/tenant/dto.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct EnableModuleInput { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TenantModuleDto` is never constructed [INFO] [stdout] --> src/module/tenant/dto.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct TenantModuleDto { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RolePermission` is never constructed [INFO] [stdout] --> src/module/iam/model.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct RolePermission { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserRole` is never constructed [INFO] [stdout] --> src/module/iam/model.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct UserRole { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_collateral` is never used [INFO] [stdout] --> src/module/loan/command.rs:330:14 [INFO] [stdout] | [INFO] [stdout] 330 | pub async fn create_collateral( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ContractDetail` is never constructed [INFO] [stdout] --> src/module/loan/query.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct ContractDetail { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_contract_detail` is never used [INFO] [stdout] --> src/module/loan/query.rs:112:14 [INFO] [stdout] | [INFO] [stdout] 112 | pub async fn get_contract_detail( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CollateralAsset` is never constructed [INFO] [stdout] --> src/module/loan/model.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct CollateralAsset { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `principal`, `state`, and `collateral_asset_ids` are never read [INFO] [stdout] --> src/module/loan/dto.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct CreateContractInput { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 10 | pub contact_id: Uuid, [INFO] [stdout] 11 | pub principal: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub state: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub collateral_asset_ids: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateContractInput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `days_from_prev`, `interest_for_period`, `accumulated_interest`, and `principal_balance` are never read [INFO] [stdout] --> src/module/loan/dto.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct TransactionInput { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 41 | pub days_from_prev: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 42 | #[serde(skip_deserializing, default)] [INFO] [stdout] 43 | pub interest_for_period: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | #[serde(skip_deserializing, default)] [INFO] [stdout] 45 | pub accumulated_interest: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 46 | #[serde(skip_deserializing, default)] [INFO] [stdout] 47 | pub principal_balance: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransactionInput` 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: struct `ContractView` is never constructed [INFO] [stdout] --> src/module/loan/dto.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct ContractView { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TransactionView` is never constructed [INFO] [stdout] --> src/module/loan/dto.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct TransactionView { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `default_collateral_status` is never used [INFO] [stdout] --> src/module/loan/dto.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn default_collateral_status() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `LoanEvent` is never used [INFO] [stdout] --> src/module/loan/event.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum LoanEvent { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DISPLAY_NAME` is never used [INFO] [stdout] --> src/module/loan/metadata.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const DISPLAY_NAME: &str = "Loan"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DESCRIPTION` is never used [INFO] [stdout] --> src/module/loan/metadata.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const DESCRIPTION: &str = "Quản lí cho vay"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `principal_paid_as_of` is never used [INFO] [stdout] --> src/module/loan/calculator.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | pub fn principal_paid_as_of( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `norm_opt_digits` is never used [INFO] [stdout] --> src/module/contact/handler.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn norm_opt_digits(v: &Option) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Contact` is never constructed [INFO] [stdout] --> src/module/contact/model.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Contact { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DISPLAY_NAME` is never used [INFO] [stdout] --> src/module/contact/metadata.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const DISPLAY_NAME: &str = "Contact"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DESCRIPTION` is never used [INFO] [stdout] --> src/module/contact/metadata.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const DESCRIPTION: &str = "Quản lí liên hệ"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContactEvent` is never used [INFO] [stdout] --> src/module/contact/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum ContactEvent { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 31s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "08e3fc62065e7d1038cf701b830fab8d36f513e886aaafcc78ba235ffa24d770", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08e3fc62065e7d1038cf701b830fab8d36f513e886aaafcc78ba235ffa24d770", kill_on_drop: false }` [INFO] [stdout] 08e3fc62065e7d1038cf701b830fab8d36f513e886aaafcc78ba235ffa24d770