[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] testing maisonlam90/axum against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmaisonlam90%2Faxum" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-3-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-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/maisonlam90/axum on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded jsonwebtoken v9.3.1 [INFO] [stderr] Downloaded matchers v0.2.0 [INFO] [stderr] Downloaded chrono-tz-build v0.2.1 [INFO] [stderr] Downloaded pem v3.0.5 [INFO] [stderr] Downloaded bcrypt v0.15.1 [INFO] [stderr] Downloaded tempfile v3.22.0 [INFO] [stderr] Downloaded bigdecimal v0.3.1 [INFO] [stderr] Downloaded tokio-tungstenite v0.20.1 [INFO] [stderr] Downloaded convert_case v0.5.0 [INFO] [stderr] Downloaded chrono-tz v0.8.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e0fe3bb3520d3c3d99432651d2ce3b9ace31d320936f058f41128c079693f23c [INFO] running `Command { std: "docker" "start" "-a" "e0fe3bb3520d3c3d99432651d2ce3b9ace31d320936f058f41128c079693f23c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e0fe3bb3520d3c3d99432651d2ce3b9ace31d320936f058f41128c079693f23c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0fe3bb3520d3c3d99432651d2ce3b9ace31d320936f058f41128c079693f23c", kill_on_drop: false }` [INFO] [stdout] e0fe3bb3520d3c3d99432651d2ce3b9ace31d320936f058f41128c079693f23c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7caff6eb45d769225fc36ab3a3dfd41cb8e7fa2680fb014599abf69910d05cbf [INFO] running `Command { std: "docker" "start" "-a" "7caff6eb45d769225fc36ab3a3dfd41cb8e7fa2680fb014599abf69910d05cbf", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.36 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling indexmap v2.11.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling bigdecimal v0.3.1 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling deranged v0.5.3 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling chrono-tz-build v0.2.1 [INFO] [stderr] Compiling time v0.3.43 [INFO] [stderr] Compiling tempfile v3.22.0 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling chrono-tz v0.8.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling rust_decimal v1.37.2 [INFO] [stderr] Compiling tungstenite v0.20.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling bcrypt v0.15.1 [INFO] [stderr] Compiling tokio-tungstenite v0.20.1 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tracing-appender v0.2.3 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling convert_case v0.5.0 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling 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: `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 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: 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 48s [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 3` [INFO] running `Command { std: "docker" "inspect" "7caff6eb45d769225fc36ab3a3dfd41cb8e7fa2680fb014599abf69910d05cbf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7caff6eb45d769225fc36ab3a3dfd41cb8e7fa2680fb014599abf69910d05cbf", kill_on_drop: false }` [INFO] [stdout] 7caff6eb45d769225fc36ab3a3dfd41cb8e7fa2680fb014599abf69910d05cbf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 909fc7b7a55c63ec02ea37e0dd6e9a5762ff7b4d3c8d553222f87d835550d354 [INFO] running `Command { std: "docker" "start" "-a" "909fc7b7a55c63ec02ea37e0dd6e9a5762ff7b4d3c8d553222f87d835550d354", kill_on_drop: false }` [INFO] [stderr] Compiling 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: `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 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: 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 `test` profile [unoptimized + debuginfo] target(s) in 10.41s [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 3` [INFO] running `Command { std: "docker" "inspect" "909fc7b7a55c63ec02ea37e0dd6e9a5762ff7b4d3c8d553222f87d835550d354", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "909fc7b7a55c63ec02ea37e0dd6e9a5762ff7b4d3c8d553222f87d835550d354", kill_on_drop: false }` [INFO] [stdout] 909fc7b7a55c63ec02ea37e0dd6e9a5762ff7b4d3c8d553222f87d835550d354 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 3802d1c3c177ae514dd0401ea055087dae37357bd8de1ce2a03ea0c0897e49ec [INFO] running `Command { std: "docker" "start" "-a" "3802d1c3c177ae514dd0401ea055087dae37357bd8de1ce2a03ea0c0897e49ec", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `axum::http::StatusCode` [INFO] [stderr] --> src/module/user/handler.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use axum::http::StatusCode; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `error` [INFO] [stderr] --> src/module/tenant/handler.rs:11:22 [INFO] [stderr] | [INFO] [stderr] 11 | use tracing::{debug, error}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::module::loan::handler::report::pivot_now_contract` [INFO] [stderr] --> src/module/loan/router.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::module::loan::handler::report::pivot_now_contract; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Serialize` [INFO] [stderr] --> src/module/loan/handler/collateral.rs:8:26 [INFO] [stderr] | [INFO] [stderr] 8 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DateTime` and `Utc` [INFO] [stderr] --> src/module/loan/handler/collateral.rs:9:14 [INFO] [stderr] | [INFO] [stderr] 9 | use chrono::{DateTime, Utc}; [INFO] [stderr] | ^^^^^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::module::loan::calculator::calculate_interest_fields_as_of` [INFO] [stderr] --> src/module/loan/command.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::module::loan::calculator::calculate_interest_fields_as_of; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/module/app/dto.rs:1:13 [INFO] [stderr] | [INFO] [stderr] 1 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t_tx` [INFO] [stderr] --> src/module/loan/handler/report.rs:77:9 [INFO] [stderr] | [INFO] [stderr] 77 | let t_tx = std::time::Instant::now(); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_t_tx` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/module/loan/command.rs:21:5 [INFO] [stderr] | [INFO] [stderr] 21 | mut input: CreateContractInput, [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `sqlx::Acquire` [INFO] [stderr] --> src/module/app/handler.rs:104:9 [INFO] [stderr] | [INFO] [stderr] 104 | use sqlx::Acquire; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `telemetry` and `event_publisher` are never read [INFO] [stderr] --> src/core/state.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct AppState { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 8 | pub shard: Arc, // chỉ còn ShardManager [INFO] [stderr] 9 | pub telemetry: Arc, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 10 | pub event_publisher: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AppState` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `is_sys_admin` is never used [INFO] [stderr] --> src/core/iam.rs:6:8 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn is_sys_admin(user: &AuthUser) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `log_and_respond` is never used [INFO] [stderr] --> src/core/log.rs:5:14 [INFO] [stderr] | [INFO] [stderr] 5 | pub async fn log_and_respond(err: E) -> impl IntoResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `publish` is never used [INFO] [stderr] --> src/infra/event_bus.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub trait EventPublisher: Send + Sync { [INFO] [stderr] | -------------- method in this trait [INFO] [stderr] 4 | /// Gửi message tới topic tương ứng [INFO] [stderr] 5 | fn publish(&self, topic: &str, payload: &[u8]); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `routes` is never used [INFO] [stderr] --> src/module/user/router.rs:8:8 [INFO] [stderr] | [INFO] [stderr] 8 | pub fn routes() -> Router> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `find_users` is never used [INFO] [stderr] --> src/module/user/query.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | pub async fn find_users(pool: &PgPool, tenant_id: Uuid) -> sqlx::Result> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `find_user_by_id` is never used [INFO] [stderr] --> src/module/user/query.rs:28:14 [INFO] [stderr] | [INFO] [stderr] 28 | pub async fn find_user_by_id(pool: &PgPool, tenant_id: Uuid, user_id: Uuid) -> sqlx::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `clean` and `validate` are never used [INFO] [stderr] --> src/module/user/dto.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 14 | impl RegisterDto { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 18 | pub fn clean(self) -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 35 | pub fn validate(&self) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `clean` and `validate` are never used [INFO] [stderr] --> src/module/user/dto.rs:65:12 [INFO] [stderr] | [INFO] [stderr] 61 | impl LoginDto { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 65 | pub fn clean(self) -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | pub fn validate(&self) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ModuleMetadata` is never constructed [INFO] [stderr] --> src/module/user/metadata.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct ModuleMetadata { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `metadata` is never used [INFO] [stderr] --> src/module/user/metadata.rs:12:8 [INFO] [stderr] | [INFO] [stderr] 12 | pub fn metadata() -> ModuleMetadata { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TenantModule` is never constructed [INFO] [stderr] --> src/module/tenant/model.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 19 | pub struct TenantModule { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `GetTenantQuery` is never constructed [INFO] [stderr] --> src/module/tenant/query.rs:4:12 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct GetTenantQuery { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ListTenantByEnterpriseQuery` is never constructed [INFO] [stderr] --> src/module/tenant/query.rs:9:12 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct ListTenantByEnterpriseQuery { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ListTenantByCompanyQuery` is never constructed [INFO] [stderr] --> src/module/tenant/query.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct ListTenantByCompanyQuery { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `enterprise_form_schema` is never used [INFO] [stderr] --> src/module/tenant/metadata.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn enterprise_form_schema() -> serde_json::Value { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `enterprise_form_ui` is never used [INFO] [stderr] --> src/module/tenant/metadata.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 17 | pub fn enterprise_form_ui() -> serde_json::Value { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `company_form_schema` is never used [INFO] [stderr] --> src/module/tenant/metadata.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | pub fn company_form_schema() -> serde_json::Value { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `company_form_ui` is never used [INFO] [stderr] --> src/module/tenant/metadata.rs:39:8 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn company_form_ui() -> serde_json::Value { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `tenant_form_schema` is never used [INFO] [stderr] --> src/module/tenant/metadata.rs:49:8 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn tenant_form_schema() -> serde_json::Value { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CreateTenantInput` is never constructed [INFO] [stderr] --> src/module/tenant/dto.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct CreateTenantInput { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TenantDto` is never constructed [INFO] [stderr] --> src/module/tenant/dto.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct TenantDto { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EnableModuleInput` is never constructed [INFO] [stderr] --> src/module/tenant/dto.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 29 | pub struct EnableModuleInput { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TenantModuleDto` is never constructed [INFO] [stderr] --> src/module/tenant/dto.rs:36:12 [INFO] [stderr] | [INFO] [stderr] 36 | pub struct TenantModuleDto { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `RolePermission` is never constructed [INFO] [stderr] --> src/module/iam/model.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub struct RolePermission { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `UserRole` is never constructed [INFO] [stderr] --> src/module/iam/model.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 31 | pub struct UserRole { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `create_collateral` is never used [INFO] [stderr] --> src/module/loan/command.rs:330:14 [INFO] [stderr] | [INFO] [stderr] 330 | pub async fn create_collateral( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ContractDetail` is never constructed [INFO] [stderr] --> src/module/loan/query.rs:106:12 [INFO] [stderr] | [INFO] [stderr] 106 | pub struct ContractDetail { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_contract_detail` is never used [INFO] [stderr] --> src/module/loan/query.rs:112:14 [INFO] [stderr] | [INFO] [stderr] 112 | pub async fn get_contract_detail( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `CollateralAsset` is never constructed [INFO] [stderr] --> src/module/loan/model.rs:83:12 [INFO] [stderr] | [INFO] [stderr] 83 | pub struct CollateralAsset { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `principal`, `state`, and `collateral_asset_ids` are never read [INFO] [stderr] --> src/module/loan/dto.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct CreateContractInput { [INFO] [stderr] | ------------------- fields in this struct [INFO] [stderr] 10 | pub contact_id: Uuid, [INFO] [stderr] 11 | pub principal: i64, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 23 | pub state: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 27 | pub collateral_asset_ids: Option>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CreateContractInput` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `days_from_prev`, `interest_for_period`, `accumulated_interest`, and `principal_balance` are never read [INFO] [stderr] --> src/module/loan/dto.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 34 | pub struct TransactionInput { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 41 | pub days_from_prev: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 42 | #[serde(skip_deserializing, default)] [INFO] [stderr] 43 | pub interest_for_period: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 44 | #[serde(skip_deserializing, default)] [INFO] [stderr] 45 | pub accumulated_interest: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 46 | #[serde(skip_deserializing, default)] [INFO] [stderr] 47 | pub principal_balance: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TransactionInput` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `ContractView` is never constructed [INFO] [stderr] --> src/module/loan/dto.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 52 | pub struct ContractView { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TransactionView` is never constructed [INFO] [stderr] --> src/module/loan/dto.rs:72:12 [INFO] [stderr] | [INFO] [stderr] 72 | pub struct TransactionView { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `default_collateral_status` is never used [INFO] [stderr] --> src/module/loan/dto.rs:85:4 [INFO] [stderr] | [INFO] [stderr] 85 | fn default_collateral_status() -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `LoanEvent` is never used [INFO] [stderr] --> src/module/loan/event.rs:2:10 [INFO] [stderr] | [INFO] [stderr] 2 | pub enum LoanEvent { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DISPLAY_NAME` is never used [INFO] [stderr] --> src/module/loan/metadata.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | pub const DISPLAY_NAME: &str = "Loan"; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DESCRIPTION` is never used [INFO] [stderr] --> src/module/loan/metadata.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | pub const DESCRIPTION: &str = "Quản lí cho vay"; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `principal_paid_as_of` is never used [INFO] [stderr] --> src/module/loan/calculator.rs:146:8 [INFO] [stderr] | [INFO] [stderr] 146 | pub fn principal_paid_as_of( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `norm_opt_digits` is never used [INFO] [stderr] --> src/module/contact/handler.rs:36:4 [INFO] [stderr] | [INFO] [stderr] 36 | fn norm_opt_digits(v: &Option) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Contact` is never constructed [INFO] [stderr] --> src/module/contact/model.rs:6:12 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct Contact { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DISPLAY_NAME` is never used [INFO] [stderr] --> src/module/contact/metadata.rs:2:11 [INFO] [stderr] | [INFO] [stderr] 2 | pub const DISPLAY_NAME: &str = "Contact"; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DESCRIPTION` is never used [INFO] [stderr] --> src/module/contact/metadata.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | pub const DESCRIPTION: &str = "Quản lí liên hệ"; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ContactEvent` is never used [INFO] [stderr] --> src/module/contact/mod.rs:11:14 [INFO] [stderr] | [INFO] [stderr] 11 | pub enum ContactEvent { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `milan` (bin "milan" test) generated 54 warnings (run `cargo fix --bin "milan" --tests` to apply 8 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [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 3` [INFO] [stderr] Running unittests tools/gen_module.rs (/opt/rustwide/target/debug/deps/gen_module-f4de22d8f095b1b0) [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] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/milan-129a47ed8e93f7db) [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" "3802d1c3c177ae514dd0401ea055087dae37357bd8de1ce2a03ea0c0897e49ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3802d1c3c177ae514dd0401ea055087dae37357bd8de1ce2a03ea0c0897e49ec", kill_on_drop: false }` [INFO] [stdout] 3802d1c3c177ae514dd0401ea055087dae37357bd8de1ce2a03ea0c0897e49ec