[INFO] cloning repository https://github.com/xmanxihua/baseinfo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xmanxihua/baseinfo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxmanxihua%2Fbaseinfo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxmanxihua%2Fbaseinfo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 21a9fd7a46d1f77cb7b6560b7ed1123136e91df5 [INFO] checking xmanxihua/baseinfo against master#eb10639928a2781cf0a12440007fbcc1e3a6888f for pr-127827-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxmanxihua%2Fbaseinfo" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xmanxihua/baseinfo on toolchain eb10639928a2781cf0a12440007fbcc1e3a6888f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xmanxihua/baseinfo [INFO] finished tweaking git repo https://github.com/xmanxihua/baseinfo [INFO] tweaked toml for git repo https://github.com/xmanxihua/baseinfo written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/xmanxihua/baseinfo already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5194adbce2d2db9b0af43dc39d0871ef4bfbb667126e75862836997318046279 [INFO] running `Command { std: "docker" "start" "-a" "5194adbce2d2db9b0af43dc39d0871ef4bfbb667126e75862836997318046279", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5194adbce2d2db9b0af43dc39d0871ef4bfbb667126e75862836997318046279", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5194adbce2d2db9b0af43dc39d0871ef4bfbb667126e75862836997318046279", kill_on_drop: false }` [INFO] [stdout] 5194adbce2d2db9b0af43dc39d0871ef4bfbb667126e75862836997318046279 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+eb10639928a2781cf0a12440007fbcc1e3a6888f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5af3160255390611b1419aa8477ba7a3b5eb9686013bfc3504944a4fa53174e0 [INFO] running `Command { std: "docker" "start" "-a" "5af3160255390611b1419aa8477ba7a3b5eb9686013bfc3504944a4fa53174e0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling cc v1.1.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling rust_decimal v1.35.0 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling thiserror v1.0.62 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking unicode_categories v0.1.1 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking crc-catalog v2.4.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking crc v3.2.1 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking crossbeam-queue v0.3.11 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking unicode-properties v0.1.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Checking event-listener v2.5.3 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking home v0.5.9 [INFO] [stderr] Checking whoami v1.5.1 [INFO] [stderr] Checking dotenvy v0.15.7 [INFO] [stderr] Checking ordered-float v3.9.2 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Checking aliasable v0.1.3 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking sqlformat v0.2.4 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking bigdecimal v0.3.1 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.62 [INFO] [stderr] Compiling enum-ordinalize-derive v4.3.1 [INFO] [stderr] Compiling inherent v1.0.11 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling ouroboros_macro v0.17.2 [INFO] [stderr] Compiling sea-bae v0.2.0 [INFO] [stderr] Compiling sea-orm-macros v1.0.0-rc.7 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Compiling enum-ordinalize v4.3.0 [INFO] [stderr] Compiling educe v0.5.11 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking ouroboros v0.17.2 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking hyper-util v0.1.6 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking sea-query v0.31.0-rc.8 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking sqlx-postgres v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking sea-query-binder v0.6.0-rc.4 [INFO] [stderr] Checking sea-orm v1.0.0-rc.7 [INFO] [stderr] Checking baseinfo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::dao::prelude::Supplier` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::dao::prelude::Supplier; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sea_orm::EntityTrait` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sea_orm::EntityTrait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ColumnTrait` [INFO] [stdout] --> src/main.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use sea_orm::{ColumnTrait, DatabaseConnection}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PaginatorTrait` and `QueryFilter` [INFO] [stdout] --> src/main.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | use sea_orm::{Database, PaginatorTrait, QueryFilter}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bean::supplier_product_entity::SupplierProductEntity` [INFO] [stdout] --> src/bean/supplier_vo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::bean::supplier_product_entity::SupplierProductEntity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Json` [INFO] [stdout] --> src/bean/supplier_vo.rs:3:43 [INFO] [stdout] | [INFO] [stdout] 3 | use sea_orm::prelude::{DateTime, Decimal, Json}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::DeserializeOwned` [INFO] [stdout] --> src/bean/json_result.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::de::DeserializeOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/bean/json_result.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Deserializer, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sea_orm::DbErr` [INFO] [stdout] --> src/controller/supplier_controller.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sea_orm::DbErr; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::bank::Entity as Bank` [INFO] [stdout] --> src/dao/prelude.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use super::bank::Entity as Bank; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::bank_branch::Entity as BankBranch` [INFO] [stdout] --> src/dao/prelude.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use super::bank_branch::Entity as BankBranch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::category::Entity as Category` [INFO] [stdout] --> src/dao/prelude.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use super::category::Entity as Category; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::commercial_area::Entity as CommercialArea` [INFO] [stdout] --> src/dao/prelude.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use super::commercial_area::Entity as CommercialArea; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::company::Entity as Company` [INFO] [stdout] --> src/dao/prelude.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use super::company::Entity as Company; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::menu_manager::Entity as MenuManager` [INFO] [stdout] --> src/dao/prelude.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use super::menu_manager::Entity as MenuManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::org::Entity as Org` [INFO] [stdout] --> src/dao/prelude.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use super::org::Entity as Org; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product::Entity as Product` [INFO] [stdout] --> src/dao/prelude.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use super::product::Entity as Product; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product_asset::Entity as ProductAsset` [INFO] [stdout] --> src/dao/prelude.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use super::product_asset::Entity as ProductAsset; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product_image::Entity as ProductImage` [INFO] [stdout] --> src/dao/prelude.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use super::product_image::Entity as ProductImage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product_sku::Entity as ProductSku` [INFO] [stdout] --> src/dao/prelude.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use super::product_sku::Entity as ProductSku; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product_sku_material::Entity as ProductSkuMaterial` [INFO] [stdout] --> src/dao/prelude.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use super::product_sku_material::Entity as ProductSkuMaterial; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product_spu::Entity as ProductSpu` [INFO] [stdout] --> src/dao/prelude.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use super::product_spu::Entity as ProductSpu; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop::Entity as Shop` [INFO] [stdout] --> src/dao/prelude.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use super::shop::Entity as Shop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop_0625::Entity as Shop0625` [INFO] [stdout] --> src/dao/prelude.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use super::shop_0625::Entity as Shop0625; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop_asset::Entity as ShopAsset` [INFO] [stdout] --> src/dao/prelude.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use super::shop_asset::Entity as ShopAsset; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop_attachment::Entity as ShopAttachment` [INFO] [stdout] --> src/dao/prelude.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use super::shop_attachment::Entity as ShopAttachment; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop_finance::Entity as ShopFinance` [INFO] [stdout] --> src/dao/prelude.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use super::shop_finance::Entity as ShopFinance; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop_tmp::Entity as ShopTmp` [INFO] [stdout] --> src/dao/prelude.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use super::shop_tmp::Entity as ShopTmp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::supplier_finance_bank::Entity as SupplierFinanceBank` [INFO] [stdout] --> src/dao/prelude.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use super::supplier_finance_bank::Entity as SupplierFinanceBank; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::supplier_test::Entity as SupplierTest` [INFO] [stdout] --> src/dao/prelude.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use super::supplier_test::Entity as SupplierTest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dao::prelude::Supplier` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::dao::prelude::Supplier; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sea_orm::EntityTrait` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sea_orm::EntityTrait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ColumnTrait` [INFO] [stdout] --> src/main.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | use sea_orm::{ColumnTrait, DatabaseConnection}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PaginatorTrait` and `QueryFilter` [INFO] [stdout] --> src/main.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | use sea_orm::{Database, PaginatorTrait, QueryFilter}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bean::supplier_product_entity::SupplierProductEntity` [INFO] [stdout] --> src/bean/supplier_vo.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::bean::supplier_product_entity::SupplierProductEntity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Json` [INFO] [stdout] --> src/bean/supplier_vo.rs:3:43 [INFO] [stdout] | [INFO] [stdout] 3 | use sea_orm::prelude::{DateTime, Decimal, Json}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde::de::DeserializeOwned` [INFO] [stdout] --> src/bean/json_result.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::de::DeserializeOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserializer` [INFO] [stdout] --> src/bean/json_result.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Deserializer, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sea_orm::DbErr` [INFO] [stdout] --> src/controller/supplier_controller.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sea_orm::DbErr; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::bank::Entity as Bank` [INFO] [stdout] --> src/dao/prelude.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use super::bank::Entity as Bank; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::bank_branch::Entity as BankBranch` [INFO] [stdout] --> src/dao/prelude.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub use super::bank_branch::Entity as BankBranch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::category::Entity as Category` [INFO] [stdout] --> src/dao/prelude.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use super::category::Entity as Category; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::commercial_area::Entity as CommercialArea` [INFO] [stdout] --> src/dao/prelude.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use super::commercial_area::Entity as CommercialArea; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::company::Entity as Company` [INFO] [stdout] --> src/dao/prelude.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use super::company::Entity as Company; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::menu_manager::Entity as MenuManager` [INFO] [stdout] --> src/dao/prelude.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use super::menu_manager::Entity as MenuManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::org::Entity as Org` [INFO] [stdout] --> src/dao/prelude.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use super::org::Entity as Org; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product::Entity as Product` [INFO] [stdout] --> src/dao/prelude.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use super::product::Entity as Product; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product_asset::Entity as ProductAsset` [INFO] [stdout] --> src/dao/prelude.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use super::product_asset::Entity as ProductAsset; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product_image::Entity as ProductImage` [INFO] [stdout] --> src/dao/prelude.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use super::product_image::Entity as ProductImage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product_sku::Entity as ProductSku` [INFO] [stdout] --> src/dao/prelude.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use super::product_sku::Entity as ProductSku; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product_sku_material::Entity as ProductSkuMaterial` [INFO] [stdout] --> src/dao/prelude.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use super::product_sku_material::Entity as ProductSkuMaterial; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::product_spu::Entity as ProductSpu` [INFO] [stdout] --> src/dao/prelude.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use super::product_spu::Entity as ProductSpu; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop::Entity as Shop` [INFO] [stdout] --> src/dao/prelude.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub use super::shop::Entity as Shop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop_0625::Entity as Shop0625` [INFO] [stdout] --> src/dao/prelude.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use super::shop_0625::Entity as Shop0625; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop_asset::Entity as ShopAsset` [INFO] [stdout] --> src/dao/prelude.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use super::shop_asset::Entity as ShopAsset; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop_attachment::Entity as ShopAttachment` [INFO] [stdout] --> src/dao/prelude.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use super::shop_attachment::Entity as ShopAttachment; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop_finance::Entity as ShopFinance` [INFO] [stdout] --> src/dao/prelude.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use super::shop_finance::Entity as ShopFinance; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::shop_tmp::Entity as ShopTmp` [INFO] [stdout] --> src/dao/prelude.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use super::shop_tmp::Entity as ShopTmp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::supplier_finance_bank::Entity as SupplierFinanceBank` [INFO] [stdout] --> src/dao/prelude.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub use super::supplier_finance_bank::Entity as SupplierFinanceBank; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::supplier_test::Entity as SupplierTest` [INFO] [stdout] --> src/dao/prelude.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub use super::supplier_test::Entity as SupplierTest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repository::supplier_repo` [INFO] [stdout] --> src/repository/supplier_repo.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::repository::supplier_repo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bean::supplier_param::SupplierParam` [INFO] [stdout] --> src/repository/supplier_account_repo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::bean::supplier_param::SupplierParam; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PaginatorTrait` [INFO] [stdout] --> src/repository/supplier_account_repo.rs:8:58 [INFO] [stdout] | [INFO] [stdout] 8 | ColumnTrait, DatabaseConnection, DbErr, EntityTrait, PaginatorTrait, QueryFilter, QuerySelect, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/utils/option_date_format.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::de::{self, Error, Visitor}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/utils/option_date_format.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize, Deserializer, Serializer}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/utils/m_assert.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/utils/m_assert.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Arguments, Display, format}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/utils/m_assert.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | if (s.is_some_and(|x| !x.trim().is_empty())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - if (s.is_some_and(|x| !x.trim().is_empty())) { [INFO] [stdout] 5 + if s.is_some_and(|x| !x.trim().is_empty()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repository::supplier_repo` [INFO] [stdout] --> src/repository/supplier_repo.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::repository::supplier_repo; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bean::supplier_param::SupplierParam` [INFO] [stdout] --> src/repository/supplier_account_repo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::bean::supplier_param::SupplierParam; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PaginatorTrait` [INFO] [stdout] --> src/repository/supplier_account_repo.rs:8:58 [INFO] [stdout] | [INFO] [stdout] 8 | ColumnTrait, DatabaseConnection, DbErr, EntityTrait, PaginatorTrait, QueryFilter, QuerySelect, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/utils/option_date_format.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::de::{self, Error, Visitor}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/utils/option_date_format.rs:5:26 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize, Deserializer, Serializer}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/utils/m_assert.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Display` [INFO] [stdout] --> src/utils/m_assert.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Arguments, Display, format}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/utils/m_assert.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | if (s.is_some_and(|x| !x.trim().is_empty())) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - if (s.is_some_and(|x| !x.trim().is_empty())) { [INFO] [stdout] 5 + if s.is_some_and(|x| !x.trim().is_empty()) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/controller/supplier_controller.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | Ok(id) => {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/service/supplier_service.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | Some(id) => self.supplier_repo.update(supplier_entity).await, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/repository/supplier_repo.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | .map(|r| 1) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/controller/supplier_controller.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | Ok(id) => {} [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/service/supplier_service.rs:24:18 [INFO] [stdout] | [INFO] [stdout] 24 | Some(id) => self.supplier_repo.update(supplier_entity).await, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r` [INFO] [stdout] --> src/repository/supplier_repo.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | .map(|r| 1) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_r` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:24:59 [INFO] [stdout] | [INFO] [stdout] 24 | .apply_if(supplier_account_param.data_state, |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:27:69 [INFO] [stdout] | [INFO] [stdout] 27 | .apply_if(supplier_account_param.data_states.as_ref(), |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:30:57 [INFO] [stdout] | [INFO] [stdout] 30 | .apply_if(supplier_account_param.offset(), |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | |mut select, x| select.filter(supplier_account::Column::SupplierCode.is_not_in(x.clone())), [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:37:71 [INFO] [stdout] | [INFO] [stdout] 37 | .apply_if(supplier_account_param.supplier_codes.clone(), |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:40:55 [INFO] [stdout] | [INFO] [stdout] 40 | .apply_if(supplier_account_param.r#type, |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:44:62 [INFO] [stdout] | [INFO] [stdout] 44 | .apply_if(supplier_account_param.types.clone(), |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:48:56 [INFO] [stdout] | [INFO] [stdout] 48 | .apply_if(supplier_account_param.limit(), |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut select = SupplierAccountDao::find() [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:24:59 [INFO] [stdout] | [INFO] [stdout] 24 | .apply_if(supplier_account_param.data_state, |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:27:69 [INFO] [stdout] | [INFO] [stdout] 27 | .apply_if(supplier_account_param.data_states.as_ref(), |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:30:57 [INFO] [stdout] | [INFO] [stdout] 30 | .apply_if(supplier_account_param.offset(), |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | |mut select, x| select.filter(supplier_account::Column::SupplierCode.is_not_in(x.clone())), [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:37:71 [INFO] [stdout] | [INFO] [stdout] 37 | .apply_if(supplier_account_param.supplier_codes.clone(), |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:40:55 [INFO] [stdout] | [INFO] [stdout] 40 | .apply_if(supplier_account_param.r#type, |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:44:62 [INFO] [stdout] | [INFO] [stdout] 44 | .apply_if(supplier_account_param.types.clone(), |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:48:56 [INFO] [stdout] | [INFO] [stdout] 48 | .apply_if(supplier_account_param.limit(), |mut select, x| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_account_repo.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | let mut select = SupplierAccountDao::find() [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:186:62 [INFO] [stdout] | [INFO] [stdout] 186 | .apply_if(supplier_param.product_code.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:197:18 [INFO] [stdout] | [INFO] [stdout] 197 | |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:206:49 [INFO] [stdout] | [INFO] [stdout] 206 | .apply_if(supplier_param.one_time, |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:209:64 [INFO] [stdout] | [INFO] [stdout] 209 | .apply_if(supplier_param.supplier_codes.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:212:54 [INFO] [stdout] | [INFO] [stdout] 212 | .apply_if(supplier_param.sign_contract, |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:217:18 [INFO] [stdout] | [INFO] [stdout] 217 | |mut select, v| select.filter(supplier::Column::SupplierName.contains(v)), [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:219:63 [INFO] [stdout] | [INFO] [stdout] 219 | .apply_if(supplier_param.supplier_name.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:222:59 [INFO] [stdout] | [INFO] [stdout] 222 | .apply_if(supplier_param.id_not_in.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:225:63 [INFO] [stdout] | [INFO] [stdout] 225 | .apply_if(supplier_param.supplier_code.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:228:54 [INFO] [stdout] | [INFO] [stdout] 228 | .apply_if(supplier_param.supplier_type, |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:231:63 [INFO] [stdout] | [INFO] [stdout] 231 | .apply_if(supplier_param.source_system.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:234:61 [INFO] [stdout] | [INFO] [stdout] 234 | .apply_if(supplier_param.data_states.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:237:51 [INFO] [stdout] | [INFO] [stdout] 237 | .apply_if(supplier_param.data_state, |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:240:49 [INFO] [stdout] | [INFO] [stdout] 240 | .apply_if(supplier_param.offset(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:243:48 [INFO] [stdout] | [INFO] [stdout] 243 | .apply_if(supplier_param.limit(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:182:21 [INFO] [stdout] | [INFO] [stdout] 182 | fn build_select(mut supplier_param: SupplierParam) -> Select { [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | let mut select = SupplierDao::find(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `account_map` [INFO] [stdout] --> src/repository/supplier_repo.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | account_map: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_filter` [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let env_filter = EnvFilter::try_from_default_env() [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let holder = Box::from_raw(db as *const DatabaseConnection as *mut DatabaseConnection); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let holder = Box::from_raw(supplier_account_repo as *const SupplierAccountRepo as *mut SupplierAccountRepo); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let holder = Box::from_raw(supplier_repo as *const SupplierRepo as *mut SupplierRepo); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let holder = Box::from_raw(supplier_service as *const SupplierService as *mut SupplierService); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db` is never read [INFO] [stdout] --> src/bean/app_state_dyn.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AppStateDyn<'a> { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 7 | pub db: &'a DatabaseConnection, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppStateDyn` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `products` is never read [INFO] [stdout] --> src/bean/supplier_entity.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct SupplierEntity { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | pub products: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SupplierEntity` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `product_codes` is never read [INFO] [stdout] --> src/bean/supplier_param.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SupplierParam { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub product_codes: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SupplierParam` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GOODS` is never used [INFO] [stdout] --> src/constants/product_contants.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const GOODS: i32 = 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSET` is never used [INFO] [stdout] --> src/constants/product_contants.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const ASSET: i32 = 3; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MATERIAL` is never used [INFO] [stdout] --> src/constants/product_contants.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const MATERIAL: i32 = 4; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASTER` is never used [INFO] [stdout] --> src/constants/supplier_constants.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub const MASTER: i16 = 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `submit_verify` is never used [INFO] [stdout] --> src/service/supplier_service.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> SupplierService<'a> { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | async fn submit_verify(&self, supplier_entity: SupplierEntity) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not_blank` is never used [INFO] [stdout] --> src/utils/m_assert.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn not_blank<'a>(s: Option<&'a str>, error: Arguments<'a>) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:186:62 [INFO] [stdout] | [INFO] [stdout] 186 | .apply_if(supplier_param.product_code.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:197:18 [INFO] [stdout] | [INFO] [stdout] 197 | |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:206:49 [INFO] [stdout] | [INFO] [stdout] 206 | .apply_if(supplier_param.one_time, |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:209:64 [INFO] [stdout] | [INFO] [stdout] 209 | .apply_if(supplier_param.supplier_codes.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:212:54 [INFO] [stdout] | [INFO] [stdout] 212 | .apply_if(supplier_param.sign_contract, |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:217:18 [INFO] [stdout] | [INFO] [stdout] 217 | |mut select, v| select.filter(supplier::Column::SupplierName.contains(v)), [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:219:63 [INFO] [stdout] | [INFO] [stdout] 219 | .apply_if(supplier_param.supplier_name.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:222:59 [INFO] [stdout] | [INFO] [stdout] 222 | .apply_if(supplier_param.id_not_in.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:225:63 [INFO] [stdout] | [INFO] [stdout] 225 | .apply_if(supplier_param.supplier_code.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:228:54 [INFO] [stdout] | [INFO] [stdout] 228 | .apply_if(supplier_param.supplier_type, |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:231:63 [INFO] [stdout] | [INFO] [stdout] 231 | .apply_if(supplier_param.source_system.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:234:61 [INFO] [stdout] | [INFO] [stdout] 234 | .apply_if(supplier_param.data_states.as_ref(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:237:51 [INFO] [stdout] | [INFO] [stdout] 237 | .apply_if(supplier_param.data_state, |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:240:49 [INFO] [stdout] | [INFO] [stdout] 240 | .apply_if(supplier_param.offset(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:243:48 [INFO] [stdout] | [INFO] [stdout] 243 | .apply_if(supplier_param.limit(), |mut select, v| { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:182:21 [INFO] [stdout] | [INFO] [stdout] 182 | fn build_select(mut supplier_param: SupplierParam) -> Select { [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/repository/supplier_repo.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | let mut select = SupplierDao::find(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `account_map` [INFO] [stdout] --> src/repository/supplier_repo.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | account_map: HashMap, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_account_map` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `env_filter` [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let env_filter = EnvFilter::try_from_default_env() [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_env_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/main.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let holder = Box::from_raw(db as *const DatabaseConnection as *mut DatabaseConnection); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/main.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let holder = Box::from_raw(supplier_account_repo as *const SupplierAccountRepo as *mut SupplierAccountRepo); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let holder = Box::from_raw(supplier_repo as *const SupplierRepo as *mut SupplierRepo); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let holder = Box::from_raw(supplier_service as *const SupplierService as *mut SupplierService); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 82 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db` is never read [INFO] [stdout] --> src/bean/app_state_dyn.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct AppStateDyn<'a> { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 7 | pub db: &'a DatabaseConnection, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppStateDyn` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `products` is never read [INFO] [stdout] --> src/bean/supplier_entity.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct SupplierEntity { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | pub products: Option>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SupplierEntity` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `product_codes` is never read [INFO] [stdout] --> src/bean/supplier_param.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SupplierParam { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub product_codes: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SupplierParam` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GOODS` is never used [INFO] [stdout] --> src/constants/product_contants.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const GOODS: i32 = 1; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSET` is never used [INFO] [stdout] --> src/constants/product_contants.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const ASSET: i32 = 3; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MATERIAL` is never used [INFO] [stdout] --> src/constants/product_contants.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const MATERIAL: i32 = 4; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MASTER` is never used [INFO] [stdout] --> src/constants/supplier_constants.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub const MASTER: i16 = 1; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `submit_verify` is never used [INFO] [stdout] --> src/service/supplier_service.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> SupplierService<'a> { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | async fn submit_verify(&self, supplier_entity: SupplierEntity) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `not_blank` is never used [INFO] [stdout] --> src/utils/m_assert.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn not_blank<'a>(s: Option<&'a str>, error: Arguments<'a>) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 82 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s [INFO] running `Command { std: "docker" "inspect" "5af3160255390611b1419aa8477ba7a3b5eb9686013bfc3504944a4fa53174e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5af3160255390611b1419aa8477ba7a3b5eb9686013bfc3504944a4fa53174e0", kill_on_drop: false }` [INFO] [stdout] 5af3160255390611b1419aa8477ba7a3b5eb9686013bfc3504944a4fa53174e0