[INFO] cloning repository https://github.com/KawaroX/fancheng [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KawaroX/fancheng" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKawaroX%2Ffancheng", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKawaroX%2Ffancheng'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2fab2f90c0629503c509fb7ff90ecab4cc8fbdf8 [INFO] checking KawaroX/fancheng against try#fafe42c59556a4233f03dd0d900b575a9afeece8 for pr-143764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKawaroX%2Ffancheng" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/KawaroX/fancheng [INFO] finished tweaking git repo https://github.com/KawaroX/fancheng [INFO] tweaked toml for git repo https://github.com/KawaroX/fancheng written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/KawaroX/fancheng on toolchain fafe42c59556a4233f03dd0d900b575a9afeece8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/KawaroX/fancheng 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" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded uuid-macro-internal v1.11.1 [INFO] [stderr] Downloaded crypto-common v0.2.0-rc.1 [INFO] [stderr] Downloaded sha2 v0.11.0-pre.4 [INFO] [stderr] Downloaded digest v0.11.0-pre.9 [INFO] [stderr] Downloaded block-buffer v0.11.0-rc.3 [INFO] [stderr] Downloaded const-oid v0.10.0-rc.3 [INFO] [stderr] Downloaded hybrid-array v0.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cbb8409ae30a91e126337947674e5642a3298f25d81506b51ded0472dd58fc64 [INFO] running `Command { std: "docker" "start" "-a" "cbb8409ae30a91e126337947674e5642a3298f25d81506b51ded0472dd58fc64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cbb8409ae30a91e126337947674e5642a3298f25d81506b51ded0472dd58fc64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbb8409ae30a91e126337947674e5642a3298f25d81506b51ded0472dd58fc64", kill_on_drop: false }` [INFO] [stdout] cbb8409ae30a91e126337947674e5642a3298f25d81506b51ded0472dd58fc64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 09e455fae993f532ef44f13cd3612c9c150e8ab5a5740806a64de26ef0a99513 [INFO] running `Command { std: "docker" "start" "-a" "09e455fae993f532ef44f13cd3612c9c150e8ab5a5740806a64de26ef0a99513", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking const-oid v0.10.0-rc.3 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking cpufeatures v0.2.16 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.95 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking hybrid-array v0.2.3 [INFO] [stderr] Checking block-buffer v0.11.0-rc.3 [INFO] [stderr] Checking crypto-common v0.2.0-rc.1 [INFO] [stderr] Checking digest v0.11.0-pre.9 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling uuid-macro-internal v1.11.1 [INFO] [stderr] Checking sha2 v0.11.0-pre.4 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking uuid v1.11.0 [INFO] [stderr] Checking fancheng v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/contract/types/sale.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/contract/types/atypical.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `number` and `content` are never read [INFO] [stdout] --> src/contract/base.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ContractTerm { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 15 | /// 条款序号 [INFO] [stdout] 16 | number: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | /// 条款内容 [INFO] [stdout] 18 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContractTerm` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `terms` and `time_limit` are never read [INFO] [stdout] --> src/contract/base.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct BaseContract { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 91 | terms: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | time_limit: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BaseContract` 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 `description` is never read [INFO] [stdout] --> src/contract/intent/content.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct SubjectMatter { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 68 | description: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubjectMatter` 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: fields `standard`, `requirements`, and `warranty_period` are never read [INFO] [stdout] --> src/contract/intent/content.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 150 | pub struct Quality { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 151 | /// 质量标准 [INFO] [stdout] 152 | standard: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 153 | /// 具体要求 [INFO] [stdout] 154 | requirements: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 155 | /// 质量保证期限 [INFO] [stdout] 156 | warranty_period: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Quality` 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: fields `payment_method` and `payment_deadline` are never read [INFO] [stdout] --> src/contract/intent/content.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 161 | pub struct Price { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 167 | payment_method: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 168 | /// 支付期限 [INFO] [stdout] 169 | payment_deadline: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Price` 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: fields `address` and `requirements` are never read [INFO] [stdout] --> src/contract/intent/content.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 185 | pub struct Location { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 186 | /// 地址 [INFO] [stdout] 187 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 188 | /// 具体要求(如交付方式等) [INFO] [stdout] 189 | requirements: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Location` 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: fields `start_time`, `end_time`, `is_installment`, and `installment_plan` are never read [INFO] [stdout] --> src/contract/intent/content.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct TimeLimit { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 195 | /// 开始时间 [INFO] [stdout] 196 | start_time: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 197 | /// 结束时间 [INFO] [stdout] 198 | end_time: DateTime, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 199 | /// 是否分期履行 [INFO] [stdout] 200 | is_installment: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 201 | /// 分期履行的具体安排 [INFO] [stdout] 202 | installment_plan: Option>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TimeLimit` 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 `SubjectMatter` is never constructed [INFO] [stdout] --> src/contract/types/sale.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SubjectMatter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Price` is never constructed [INFO] [stdout] --> src/contract/types/sale.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Price { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SaleContract` is never constructed [INFO] [stdout] --> src/contract/types/sale.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct SaleContract { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `subject`, `price`, `delivery_time`, and `delivery_location` are never used [INFO] [stdout] --> src/contract/types/sale.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl SaleContract { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 57 | /// 创建新的买卖合同 [INFO] [stdout] 58 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn subject(&self) -> &SubjectMatter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn price(&self) -> &Price { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn delivery_time(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn delivery_location(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AtypicalContract` is never constructed [INFO] [stdout] --> src/contract/types/atypical.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AtypicalContract { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `name` are never used [INFO] [stdout] --> src/contract/types/atypical.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl AtypicalContract { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 24 | /// 创建新的非典型合同 [INFO] [stdout] 25 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `legal_person_type`, `registered_capital`, `registered_address`, and `establishment_date` are never read [INFO] [stdout] --> src/core/entity/legal_person.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct LegalPerson { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 34 | base: BaseEntity, [INFO] [stdout] 35 | legal_person_type: LegalPersonType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | registered_capital: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | legal_representative: Uuid, // 法定代表人ID [INFO] [stdout] 38 | registered_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | establishment_date: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LegalPerson` 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 `SyncLegalPerson` is never constructed [INFO] [stdout] --> src/core/entity/legal_person.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub struct SyncLegalPerson { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update_registered_capital`, `change_legal_representative`, `add_permitted_activity`, `can_perform_activity`, and `from_legal_person` are never used [INFO] [stdout] --> src/core/entity/legal_person.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 196 | impl SyncLegalPerson { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 197 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn update_registered_capital(&self, new_capital: f64) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn change_legal_representative(&self, new_representative: Uuid) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn add_permitted_activity(&self, activity: String) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn can_perform_activity(&self, activity: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn from_legal_person(person: LegalPerson) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `guardian`, `ward`, `scope`, `created_at`, and `valid_until` are never read [INFO] [stdout] --> src/core/entity/natural_person.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Guardianship { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 25 | guardian: Uuid, // 监护人ID [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 26 | ward: Uuid, // 被监护人ID [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | scope: GuardianshipScope, // 监护范围 [INFO] [stdout] | ^^^^^ [INFO] [stdout] 28 | created_at: DateTime, // 监护关系建立时间 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 29 | valid_until: Option>, // 监护关系有效期 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Guardianship` 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: field `permitted_actions` is never read [INFO] [stdout] --> src/core/entity/natural_person.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct GuardianshipScope { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 35 | permitted_actions: HashSet, // 允许的行为类型 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GuardianshipScope` 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 `SyncNaturalPerson` is never constructed [INFO] [stdout] --> src/core/entity/natural_person.rs:270:12 [INFO] [stdout] | [INFO] [stdout] 270 | pub struct SyncNaturalPerson { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `age`, `update_mental_status`, `set_guardian`, `can_be_guardian`, and `from_natural_person` are never used [INFO] [stdout] --> src/core/entity/natural_person.rs:290:12 [INFO] [stdout] | [INFO] [stdout] 279 | impl SyncNaturalPerson { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn new(birth_date: DateTime, mental_status: MentalStatus) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn age(&self) -> u8 { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 329 | pub fn update_mental_status(&self, new_status: MentalStatus) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 347 | pub fn set_guardian( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 405 | pub fn can_be_guardian(&self) -> FanResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 418 | pub fn from_natural_person(person: NaturalPerson) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `partnership_type`, `contribution`, `profit_sharing_ratio`, and `liability_type` are never read [INFO] [stdout] --> src/core/entity/unincorporated.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Partner { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 35 | id: Uuid, // 合伙人ID [INFO] [stdout] 36 | partnership_type: PartnerType, // 合伙人类型 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | contribution: f64, // 出资额 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 38 | profit_sharing_ratio: f32, // 利润分配比例 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | liability_type: LiabilityType, // 责任承担方式 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Partner` 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: variants `GeneralPartner` and `LimitedPartner` are never constructed [INFO] [stdout] --> src/core/entity/unincorporated.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum PartnerType { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 44 | GeneralPartner, // 普通合伙人 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 45 | LimitedPartner, // 有限合伙人 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PartnerType` 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: variants `Unlimited` and `Limited` are never constructed [INFO] [stdout] --> src/core/entity/unincorporated.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum LiabilityType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 50 | Unlimited, // 无限责任 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 51 | Limited, // 有限责任 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiabilityType` 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: fields `proprietor`, `registered_address`, and `establishment_date` are never read [INFO] [stdout] --> src/core/entity/unincorporated.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct UnincorporatedOrg { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | proprietor: Option, // 投资人(个人独资企业特有) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 61 | members: Vec, // 成员列表 [INFO] [stdout] 62 | registered_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 63 | establishment_date: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnincorporatedOrg` 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 `SyncUnincorporatedOrg` is never constructed [INFO] [stdout] --> src/core/entity/unincorporated.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct SyncUnincorporatedOrg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/core/entity/unincorporated.rs:234:12 [INFO] [stdout] | [INFO] [stdout] 233 | impl SyncUnincorporatedOrg { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 234 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | pub fn add_partner(&self, partner: Partner) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn set_executive_partner(&self, partner_id: Uuid) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub fn add_authority(&self, authority: String) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn update_authority_status(&self, new_status: AuthorityStatus) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 337 | pub fn can_perform_activity(&self, activity: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | pub fn from_unincorporated_org(org: UnincorporatedOrg) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `operation`, `location`, and `timestamp` are never read [INFO] [stdout] --> src/error.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct ErrorContext { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 50 | /// 执行的操作 [INFO] [stdout] 51 | operation: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 52 | /// 错误发生的位置 [INFO] [stdout] 53 | location: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/contract/base.rs:276:13 [INFO] [stdout] | [INFO] [stdout] 276 | let mut contract = BaseContract::new( [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: fields `number` and `content` are never read [INFO] [stdout] --> src/contract/base.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ContractTerm { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 15 | /// 条款序号 [INFO] [stdout] 16 | number: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | /// 条款内容 [INFO] [stdout] 18 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ContractTerm` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `terms` and `time_limit` are never read [INFO] [stdout] --> src/contract/base.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub struct BaseContract { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 91 | terms: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | time_limit: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BaseContract` 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 `description` is never read [INFO] [stdout] --> src/contract/intent/content.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct SubjectMatter { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 68 | description: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SubjectMatter` 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: fields `standard`, `requirements`, and `warranty_period` are never read [INFO] [stdout] --> src/contract/intent/content.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 150 | pub struct Quality { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 151 | /// 质量标准 [INFO] [stdout] 152 | standard: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 153 | /// 具体要求 [INFO] [stdout] 154 | requirements: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 155 | /// 质量保证期限 [INFO] [stdout] 156 | warranty_period: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Quality` 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: fields `payment_method` and `payment_deadline` are never read [INFO] [stdout] --> src/contract/intent/content.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 161 | pub struct Price { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 167 | payment_method: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 168 | /// 支付期限 [INFO] [stdout] 169 | payment_deadline: Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Price` 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: fields `address` and `requirements` are never read [INFO] [stdout] --> src/contract/intent/content.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 185 | pub struct Location { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 186 | /// 地址 [INFO] [stdout] 187 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 188 | /// 具体要求(如交付方式等) [INFO] [stdout] 189 | requirements: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Location` 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: fields `start_time`, `end_time`, `is_installment`, and `installment_plan` are never read [INFO] [stdout] --> src/contract/intent/content.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct TimeLimit { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 195 | /// 开始时间 [INFO] [stdout] 196 | start_time: Option>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 197 | /// 结束时间 [INFO] [stdout] 198 | end_time: DateTime, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 199 | /// 是否分期履行 [INFO] [stdout] 200 | is_installment: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 201 | /// 分期履行的具体安排 [INFO] [stdout] 202 | installment_plan: Option>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TimeLimit` 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 `SubjectMatter` is never constructed [INFO] [stdout] --> src/contract/types/sale.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SubjectMatter { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Price` is never constructed [INFO] [stdout] --> src/contract/types/sale.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Price { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SaleContract` is never constructed [INFO] [stdout] --> src/contract/types/sale.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct SaleContract { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `subject`, `price`, `delivery_time`, and `delivery_location` are never used [INFO] [stdout] --> src/contract/types/sale.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl SaleContract { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 57 | /// 创建新的买卖合同 [INFO] [stdout] 58 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn subject(&self) -> &SubjectMatter { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn price(&self) -> &Price { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn delivery_time(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn delivery_location(&self) -> Option<&String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AtypicalContract` is never constructed [INFO] [stdout] --> src/contract/types/atypical.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct AtypicalContract { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `name` are never used [INFO] [stdout] --> src/contract/types/atypical.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl AtypicalContract { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 24 | /// 创建新的非典型合同 [INFO] [stdout] 25 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `legal_person_type`, `registered_capital`, `registered_address`, and `establishment_date` are never read [INFO] [stdout] --> src/core/entity/legal_person.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct LegalPerson { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 34 | base: BaseEntity, [INFO] [stdout] 35 | legal_person_type: LegalPersonType, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 36 | registered_capital: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | legal_representative: Uuid, // 法定代表人ID [INFO] [stdout] 38 | registered_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | establishment_date: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LegalPerson` 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 `SyncLegalPerson` is never constructed [INFO] [stdout] --> src/core/entity/legal_person.rs:187:12 [INFO] [stdout] | [INFO] [stdout] 187 | pub struct SyncLegalPerson { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update_registered_capital`, `change_legal_representative`, `add_permitted_activity`, `can_perform_activity`, and `from_legal_person` are never used [INFO] [stdout] --> src/core/entity/legal_person.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 196 | impl SyncLegalPerson { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 197 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 227 | pub fn update_registered_capital(&self, new_capital: f64) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn change_legal_representative(&self, new_representative: Uuid) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn add_permitted_activity(&self, activity: String) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 264 | pub fn can_perform_activity(&self, activity: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn from_legal_person(person: LegalPerson) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `ward`, `created_at`, and `valid_until` are never read [INFO] [stdout] --> src/core/entity/natural_person.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Guardianship { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 25 | guardian: Uuid, // 监护人ID [INFO] [stdout] 26 | ward: Uuid, // 被监护人ID [INFO] [stdout] | ^^^^ [INFO] [stdout] 27 | scope: GuardianshipScope, // 监护范围 [INFO] [stdout] 28 | created_at: DateTime, // 监护关系建立时间 [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 29 | valid_until: Option>, // 监护关系有效期 [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Guardianship` 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: fields `partnership_type`, `contribution`, `profit_sharing_ratio`, and `liability_type` are never read [INFO] [stdout] --> src/core/entity/unincorporated.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct Partner { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 35 | id: Uuid, // 合伙人ID [INFO] [stdout] 36 | partnership_type: PartnerType, // 合伙人类型 [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | contribution: f64, // 出资额 [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 38 | profit_sharing_ratio: f32, // 利润分配比例 [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | liability_type: LiabilityType, // 责任承担方式 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Partner` 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: variant `LimitedPartner` is never constructed [INFO] [stdout] --> src/core/entity/unincorporated.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 43 | pub enum PartnerType { [INFO] [stdout] | ----------- variant in this enum [INFO] [stdout] 44 | GeneralPartner, // 普通合伙人 [INFO] [stdout] 45 | LimitedPartner, // 有限合伙人 [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PartnerType` 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: variant `Limited` is never constructed [INFO] [stdout] --> src/core/entity/unincorporated.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum LiabilityType { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 50 | Unlimited, // 无限责任 [INFO] [stdout] 51 | Limited, // 有限责任 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiabilityType` 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: fields `proprietor`, `registered_address`, and `establishment_date` are never read [INFO] [stdout] --> src/core/entity/unincorporated.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct UnincorporatedOrg { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 60 | proprietor: Option, // 投资人(个人独资企业特有) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 61 | members: Vec, // 成员列表 [INFO] [stdout] 62 | registered_address: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 63 | establishment_date: DateTime, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnincorporatedOrg` 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 `SyncUnincorporatedOrg` is never constructed [INFO] [stdout] --> src/core/entity/unincorporated.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct SyncUnincorporatedOrg { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/core/entity/unincorporated.rs:234:12 [INFO] [stdout] | [INFO] [stdout] 233 | impl SyncUnincorporatedOrg { [INFO] [stdout] | -------------------------- associated items in this implementation [INFO] [stdout] 234 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | pub fn add_partner(&self, partner: Partner) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn set_executive_partner(&self, partner_id: Uuid) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 305 | pub fn add_authority(&self, authority: String) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn update_authority_status(&self, new_status: AuthorityStatus) -> FanResult<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 337 | pub fn can_perform_activity(&self, activity: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 362 | pub fn from_unincorporated_org(org: UnincorporatedOrg) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `operation`, `location`, and `timestamp` are never read [INFO] [stdout] --> src/error.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct ErrorContext { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 50 | /// 执行的操作 [INFO] [stdout] 51 | operation: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 52 | /// 错误发生的位置 [INFO] [stdout] 53 | location: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorContext` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.73s [INFO] running `Command { std: "docker" "inspect" "09e455fae993f532ef44f13cd3612c9c150e8ab5a5740806a64de26ef0a99513", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09e455fae993f532ef44f13cd3612c9c150e8ab5a5740806a64de26ef0a99513", kill_on_drop: false }` [INFO] [stdout] 09e455fae993f532ef44f13cd3612c9c150e8ab5a5740806a64de26ef0a99513