[INFO] cloning repository https://github.com/Y-ZD-heheka/rust_learn
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Y-ZD-heheka/rust_learn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FY-ZD-heheka%2Frust_learn", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FY-ZD-heheka%2Frust_learn'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5490f72fb7c4732ac43304e23b60ca2f0841c436
[INFO] checking Y-ZD-heheka/rust_learn against master#bad50269f8eb0fda214f0478c3afb2c6fbb427fd for pr-149195-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FY-ZD-heheka%2Frust_learn" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Y-ZD-heheka/rust_learn
[INFO] finished tweaking git repo https://github.com/Y-ZD-heheka/rust_learn
[INFO] tweaked toml for git repo https://github.com/Y-ZD-heheka/rust_learn written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Y-ZD-heheka/rust_learn on toolchain bad50269f8eb0fda214f0478c3afb2c6fbb427fd
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bad50269f8eb0fda214f0478c3afb2c6fbb427fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Y-ZD-heheka/rust_learn 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" "+bad50269f8eb0fda214f0478c3afb2c6fbb427fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tracing-attributes v0.1.31
[INFO] [stderr]   Downloaded matchers v0.2.0
[INFO] [stderr]   Downloaded sqlx-macros v0.8.6
[INFO] [stderr]   Downloaded anstyle-query v1.1.4
[INFO] [stderr]   Downloaded pbkdf2 v0.12.2
[INFO] [stderr]   Downloaded crc v3.3.0
[INFO] [stderr]   Downloaded anstyle-wincon v3.0.10
[INFO] [stderr]   Downloaded sqlx-macros-core v0.8.6
[INFO] [stderr]   Downloaded criterion-plot v0.6.0
[INFO] [stderr]   Downloaded unicode-properties v0.1.4
[INFO] [stderr]   Downloaded rsa v0.9.9
[INFO] [stderr]   Downloaded der v0.7.10
[INFO] [stderr]   Downloaded sqlx-core v0.8.6
[INFO] [stderr]   Downloaded num-bigint-dig v0.8.6
[INFO] [stderr]   Downloaded criterion v0.7.0
[INFO] [stderr]   Downloaded hyper v1.8.0
[INFO] [stderr]   Downloaded tracing-subscriber v0.3.21
[INFO] [stderr]   Downloaded sqlx-postgres v0.8.6
[INFO] [stderr]   Downloaded unicode-normalization v0.1.25
[INFO] [stderr]   Downloaded sqlx v0.8.6
[INFO] [stderr]   Downloaded zerocopy v0.8.28
[INFO] [stderr]   Downloaded zerocopy-derive v0.8.28
[INFO] [stderr]   Downloaded tracing v0.1.42
[INFO] [stderr]   Downloaded sqlx-mysql v0.8.6
[INFO] [stderr]   Downloaded cc v1.2.45
[INFO] [stderr]   Downloaded base64ct v1.8.0
[INFO] [stderr]   Downloaded whoami v1.6.1
[INFO] [stderr]   Downloaded sqlx-sqlite v0.8.6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+bad50269f8eb0fda214f0478c3afb2c6fbb427fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d078959fea5b0915d4c8d3d3922cfb0a344a8103f41ce28fe836e71539a70f38
[INFO] running `Command { std: "docker" "start" "-a" "d078959fea5b0915d4c8d3d3922cfb0a344a8103f41ce28fe836e71539a70f38", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d078959fea5b0915d4c8d3d3922cfb0a344a8103f41ce28fe836e71539a70f38", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d078959fea5b0915d4c8d3d3922cfb0a344a8103f41ce28fe836e71539a70f38", kill_on_drop: false }`
[INFO] [stdout] d078959fea5b0915d4c8d3d3922cfb0a344a8103f41ce28fe836e71539a70f38
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+bad50269f8eb0fda214f0478c3afb2c6fbb427fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] e54c7e8f19f66cd45fb9c395f9f586f1a9985c1cae22dfc4df68549e69e7a459
[INFO] running `Command { std: "docker" "start" "-a" "e54c7e8f19f66cd45fb9c395f9f586f1a9985c1cae22dfc4df68549e69e7a459", kill_on_drop: false }`
[INFO] [stderr]    Compiling unicode-ident v1.0.20
[INFO] [stderr]    Compiling libc v0.2.177
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling shlex v1.3.0
[INFO] [stderr]    Compiling find-msvc-tools v0.1.4
[INFO] [stderr]    Compiling typenum v1.19.0
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling proc-macro2 v1.0.103
[INFO] [stderr]    Compiling cc v1.2.45
[INFO] [stderr]     Checking pin-project-lite v0.2.16
[INFO] [stderr]    Compiling icu_properties_data v2.1.1
[INFO] [stderr]    Compiling icu_normalizer_data v2.1.1
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]     Checking futures-core v0.3.31
[INFO] [stderr]     Checking memchr v2.7.6
[INFO] [stderr]     Checking once_cell v1.21.3
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]     Checking lock_api v0.4.14
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]    Compiling quote v1.0.41
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling syn v2.0.108
[INFO] [stderr]    Compiling pkg-config v0.3.32
[INFO] [stderr]     Checking futures-sink v0.3.31
[INFO] [stderr]     Checking bytes v1.10.1
[INFO] [stderr]    Compiling cfg-if v1.0.4
[INFO] [stderr]     Checking signal-hook-registry v1.4.6
[INFO] [stderr]     Checking mio v1.1.0
[INFO] [stderr]     Checking socket2 v0.6.1
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]     Checking slab v0.4.11
[INFO] [stderr]     Checking log v0.4.28
[INFO] [stderr]    Compiling zerocopy v0.8.28
[INFO] [stderr]     Checking futures-channel v0.3.31
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]    Compiling litemap v0.8.1
[INFO] [stderr]    Compiling writeable v0.6.2
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]     Checking tracing-core v0.1.35
[INFO] [stderr]     Checking futures-task v0.3.31
[INFO] [stderr]     Checking bitflags v2.10.0
[INFO] [stderr]    Compiling rustls v0.23.35
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]     Checking equivalent v1.0.2
[INFO] [stderr]     Checking futures-io v0.3.31
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.7
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling zeroize v1.8.2
[INFO] [stderr]     Checking fnv v1.0.7
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling rustls-pki-types v1.13.0
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]     Checking hashbrown v0.16.0
[INFO] [stderr]    Compiling openssl-sys v0.9.111
[INFO] [stderr]    Compiling untrusted v0.9.0
[INFO] [stderr]     Checking indexmap v2.12.0
[INFO] [stderr]    Compiling percent-encoding v2.3.2
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]     Checking http v1.3.1
[INFO] [stderr]    Compiling libsqlite3-sys v0.30.1
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]    Compiling itoa v1.0.15
[INFO] [stderr]    Compiling utf8_iter v1.0.4
[INFO] [stderr]    Compiling allocator-api2 v0.2.21
[INFO] [stderr]    Compiling ryu v1.0.20
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling rustls-webpki v0.103.8
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling webpki-roots v1.0.4
[INFO] [stderr]    Compiling parking v2.2.1
[INFO] [stderr]     Checking base64 v0.22.1
[INFO] [stderr]    Compiling cpufeatures v0.2.17
[INFO] [stderr]    Compiling crc-catalog v2.4.0
[INFO] [stderr]    Compiling iana-time-zone v0.1.64
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling zerocopy-derive v0.8.28
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]     Checking zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]     Checking tracing v0.1.42
[INFO] [stderr]    Compiling icu_properties v2.1.1
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]     Checking either v1.15.0
[INFO] [stderr]     Checking ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling tinyvec v1.10.0
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling chrono v0.4.42
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]    Compiling crc v3.3.0
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling webpki-roots v0.26.11
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]    Compiling crossbeam-queue v0.3.12
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]     Checking foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling uuid v1.18.1
[INFO] [stderr]    Compiling heck v0.5.0
[INFO] [stderr]     Checking regex-syntax v0.8.8
[INFO] [stderr]    Compiling openssl v0.10.75
[INFO] [stderr]    Compiling httparse v1.10.1
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]     Checking foreign-types v0.3.2
[INFO] [stderr]    Compiling unicode-normalization v0.1.25
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]     Checking aho-corasick v1.1.4
[INFO] [stderr]     Checking try-lock v0.2.5
[INFO] [stderr]    Compiling unicode-properties v0.1.4
[INFO] [stderr]    Compiling unicode-bidi v0.3.18
[INFO] [stderr]     Checking utf8parse v0.2.2
[INFO] [stderr]     Checking tower-service v0.3.3
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]     Checking atomic-waker v1.1.2
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]     Checking tokio-util v0.7.17
[INFO] [stderr]     Checking anstyle-parse v0.2.7
[INFO] [stderr]     Checking h2 v0.4.12
[INFO] [stderr]     Checking want v0.3.1
[INFO] [stderr]     Checking regex-automata v0.4.13
[INFO] [stderr]    Compiling flume v0.11.1
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling sqlx-core v0.8.6
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]     Checking rand_core v0.9.3
[INFO] [stderr]     Checking anstyle v1.0.13
[INFO] [stderr]    Compiling home v0.5.12
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]     Checking colorchoice v1.0.4
[INFO] [stderr]    Compiling whoami v1.6.1
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]     Checking openssl-probe v0.1.6
[INFO] [stderr]     Checking is_terminal_polyfill v1.70.2
[INFO] [stderr]     Checking anstyle-query v1.1.4
[INFO] [stderr]     Checking anstream v0.6.21
[INFO] [stderr]     Checking sync_wrapper v1.0.2
[INFO] [stderr]     Checking clap_lex v0.7.6
[INFO] [stderr]    Compiling rustix v1.1.2
[INFO] [stderr]     Checking tower-layer v0.3.3
[INFO] [stderr]     Checking strsim v0.11.1
[INFO] [stderr]     Checking ipnet v2.11.0
[INFO] [stderr]     Checking clap_builder v4.5.53
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking hyper v1.8.0
[INFO] [stderr]    Compiling clap_derive v4.5.49
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]     Checking linux-raw-sys v0.11.0
[INFO] [stderr]     Checking lazy_static v1.5.0
[INFO] [stderr]    Compiling sqlx-postgres v0.8.6
[INFO] [stderr]    Compiling sqlx-sqlite v0.8.6
[INFO] [stderr]     Checking iri-string v0.7.9
[INFO] [stderr]     Checking hyper-util v0.1.17
[INFO] [stderr]     Checking sharded-slab v0.1.7
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]     Checking clap v4.5.53
[INFO] [stderr]     Checking matchers v0.2.0
[INFO] [stderr]     Checking regex v1.12.2
[INFO] [stderr]     Checking tower-http v0.6.6
[INFO] [stderr]     Checking half v2.7.1
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]     Checking thread_local v1.1.9
[INFO] [stderr]     Checking encoding_rs v0.8.35
[INFO] [stderr]     Checking mime v0.3.17
[INFO] [stderr]     Checking ciborium-io v0.2.2
[INFO] [stderr]     Checking fastrand v2.3.0
[INFO] [stderr]     Checking plotters-backend v0.3.7
[INFO] [stderr]     Checking nu-ansi-term v0.50.3
[INFO] [stderr]     Checking tempfile v3.23.0
[INFO] [stderr]     Checking plotters-svg v0.3.7
[INFO] [stderr]     Checking ciborium-ll v0.2.2
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]     Checking pbkdf2 v0.12.2
[INFO] [stderr]     Checking tracing-subscriber v0.3.21
[INFO] [stderr]     Checking itertools v0.13.0
[INFO] [stderr]     Checking wait-timeout v0.2.1
[INFO] [stderr]     Checking quick-error v1.2.3
[INFO] [stderr]     Checking same-file v1.0.6
[INFO] [stderr]     Checking bit-vec v0.8.0
[INFO] [stderr]     Checking cast v0.3.0
[INFO] [stderr]     Checking bit-set v0.8.0
[INFO] [stderr]     Checking reqwest v0.12.24
[INFO] [stderr]     Checking walkdir v2.5.0
[INFO] [stderr]     Checking rusty-fork v0.3.1
[INFO] [stderr]     Checking ciborium v0.2.2
[INFO] [stderr]     Checking rayon v1.11.0
[INFO] [stderr]     Checking criterion-plot v0.6.0
[INFO] [stderr]     Checking plotters v0.3.7
[INFO] [stderr]     Checking rand_xorshift v0.4.0
[INFO] [stderr]     Checking tinytemplate v1.2.1
[INFO] [stderr]     Checking oorandom v11.1.5
[INFO] [stderr]     Checking unarray v0.1.4
[INFO] [stderr]     Checking anes v0.1.6
[INFO] [stderr]     Checking proptest v1.9.0
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]     Checking criterion v0.7.0
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]     Checking sqlx v0.8.6
[INFO] [stderr]     Checking rust_learn v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unexpected `cfg` condition value: `systemd`
[INFO] [stdout]    --> src/modules.rs:234:11
[INFO] [stdout]     |
[INFO] [stdout] 234 |     #[cfg(feature = "systemd")]
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `systemd` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `systemd`
[INFO] [stdout]    --> src/modules.rs:234:11
[INFO] [stdout]     |
[INFO] [stdout] 234 |     #[cfg(feature = "systemd")]
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `systemd` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `html_div`
[INFO] [stdout]    --> src/macros.rs:400:18
[INFO] [stdout]     |
[INFO] [stdout] 400 |     macro_rules! html_div {
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `html_div`
[INFO] [stdout]    --> src/macros.rs:400:18
[INFO] [stdout]     |
[INFO] [stdout] 400 |     macro_rules! html_div {
[INFO] [stdout]     |                  ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]    --> src/testing.rs:282:9
[INFO] [stdout]     |
[INFO] [stdout] 282 |     use super::*;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> src/best_practices.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> src/best_practices.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `service_name`
[INFO] [stdout]    --> src/error_handling.rs:901:29
[INFO] [stdout]     |
[INFO] [stdout] 901 |     fn handle_payment_error(service_name: &str, message: &str) {
[INFO] [stdout]     |                             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service_name`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `service_name`
[INFO] [stdout]    --> src/error_handling.rs:901:29
[INFO] [stdout]     |
[INFO] [stdout] 901 |     fn handle_payment_error(service_name: &str, message: &str) {
[INFO] [stdout]     |                             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_service_name`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_empty` is never used
[INFO] [stdout]    --> src/basics.rs:131:12
[INFO] [stdout]     |
[INFO] [stdout] 113 |     impl ModernStack {
[INFO] [stdout]     |     ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 131 |         fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_empty` is never used
[INFO] [stdout]    --> src/basics.rs:186:12
[INFO] [stdout]     |
[INFO] [stdout] 159 |     impl ModernQueue {
[INFO] [stdout]     |     ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 186 |         fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id`, `value`, and `neighbors` are never read
[INFO] [stdout]    --> src/ownership.rs:574:9
[INFO] [stdout]     |
[INFO] [stdout] 573 |     struct GraphNode {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 574 |         id: u32,
[INFO] [stdout]     |         ^^
[INFO] [stdout] 575 |         value: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 576 |         neighbors: Vec<Weak<Node>>,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `GraphNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `add_neighbor` is never used
[INFO] [stdout]    --> src/ownership.rs:590:12
[INFO] [stdout]     |
[INFO] [stdout] 581 |     impl GraphNode {
[INFO] [stdout]     |     -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 590 |         fn add_neighbor(&self, _neighbor: &Node) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `distance` and `travel_time` are never read
[INFO] [stdout]    --> src/types.rs:453:9
[INFO] [stdout]     |
[INFO] [stdout] 452 |     struct Route {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] 453 |         distance: f64,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 454 |         travel_time: f64,
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Route` 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: trait `Drawable` is never used
[INFO] [stdout]    --> src/types.rs:592:11
[INFO] [stdout]     |
[INFO] [stdout] 592 |     trait Drawable {
[INFO] [stdout]     |           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Red` is never constructed
[INFO] [stdout]    --> src/types.rs:600:12
[INFO] [stdout]     |
[INFO] [stdout] 600 |     struct Red;
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Blue` is never constructed
[INFO] [stdout]    --> src/types.rs:602:12
[INFO] [stdout]     |
[INFO] [stdout] 602 |     struct Blue;
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RedCircle` is never constructed
[INFO] [stdout]    --> src/types.rs:605:12
[INFO] [stdout]     |
[INFO] [stdout] 605 |     struct RedCircle {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BlueRectangle` is never constructed
[INFO] [stdout]    --> src/types.rs:611:12
[INFO] [stdout]     |
[INFO] [stdout] 611 |     struct BlueRectangle {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `disable` is never used
[INFO] [stdout]    --> src/types.rs:721:12
[INFO] [stdout]     |
[INFO] [stdout] 720 |     impl LightSwitch<Enabled> {
[INFO] [stdout]     |     ------------------------- method in this implementation
[INFO] [stdout] 721 |         fn disable(self) -> LightSwitch<Disabled> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `remove` is never used
[INFO] [stdout]    --> src/types.rs:827:12
[INFO] [stdout]     |
[INFO] [stdout] 815 |     impl Composite {
[INFO] [stdout]     |     -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 827 |         fn remove(&mut self, index: usize) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Container` is never constructed
[INFO] [stdout]    --> src/types.rs:954:12
[INFO] [stdout]     |
[INFO] [stdout] 954 |     struct Container<T> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `push`, `get`, and `len` are never used
[INFO] [stdout]    --> src/types.rs:960:12
[INFO] [stdout]     |
[INFO] [stdout] 959 |     impl<T> Container<T> {
[INFO] [stdout]     |     -------------------- associated items in this implementation
[INFO] [stdout] 960 |         fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 967 |         fn push(&mut self, item: T) {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 971 |         fn get(&self, index: usize) -> Option<&T> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 975 |         fn len(&self) -> usize {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PublishedState` is never constructed
[INFO] [stdout]     --> src/types.rs:1059:12
[INFO] [stdout]      |
[INFO] [stdout] 1059 |     struct PublishedState;
[INFO] [stdout]      |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_content` is never used
[INFO] [stdout]     --> src/types.rs:1067:12
[INFO] [stdout]      |
[INFO] [stdout] 1066 |     impl SimpleDocument<PublishedState> {
[INFO] [stdout]      |     ----------------------------------- method in this implementation
[INFO] [stdout] 1067 |         fn get_content(&self) -> &str {
[INFO] [stdout]      |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Seconds` is never constructed
[INFO] [stdout]     --> src/types.rs:1160:12
[INFO] [stdout]      |
[INFO] [stdout] 1160 |     struct Seconds(f64);
[INFO] [stdout]      |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_meters` is never used
[INFO] [stdout]     --> src/types.rs:1169:12
[INFO] [stdout]      |
[INFO] [stdout] 1168 |     impl Kilometers {
[INFO] [stdout]      |     --------------- method in this implementation
[INFO] [stdout] 1169 |         fn to_meters(self) -> Meters {
[INFO] [stdout]      |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `NetworkError` and `JsonParsingError` are never constructed
[INFO] [stdout]    --> src/error_handling.rs:274:9
[INFO] [stdout]     |
[INFO] [stdout] 270 |     enum NetworkError {
[INFO] [stdout]     |          ------------ variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 274 |         NetworkError(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 275 |         JsonParsingError,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `NetworkError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fetch_user_data` is never used
[INFO] [stdout]    --> src/error_handling.rs:291:14
[INFO] [stdout]     |
[INFO] [stdout] 291 |     async fn fetch_user_data(user_id: u32) -> Result<String, NetworkError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_config_file` is never used
[INFO] [stdout]    --> src/error_handling.rs:352:8
[INFO] [stdout]     |
[INFO] [stdout] 352 |     fn read_config_file() -> Result<String, io::Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `InvalidType` and `FileParseError` are never constructed
[INFO] [stdout]    --> src/error_handling.rs:419:9
[INFO] [stdout]     |
[INFO] [stdout] 417 |     enum ConfigError {
[INFO] [stdout]     |          ----------- variants in this enum
[INFO] [stdout] 418 |         MissingField(String),
[INFO] [stdout] 419 |         InvalidType { field: String, expected: String, actual: String },
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout] 420 |         InvalidValue { field: String, value: String, reason: String },
[INFO] [stdout] 421 |         FileParseError(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ConfigError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `host`, `port`, `database_url`, and `debug` are never read
[INFO] [stdout]    --> src/error_handling.rs:442:9
[INFO] [stdout]     |
[INFO] [stdout] 441 |     struct AppConfig {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 442 |         host: String,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 443 |         port: u16,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 444 |         database_url: String,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 445 |         debug: bool,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `AppConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ForbiddenAction` is never constructed
[INFO] [stdout]    --> src/error_handling.rs:543:9
[INFO] [stdout]     |
[INFO] [stdout] 538 |     enum ValidationError {
[INFO] [stdout]     |          --------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 543 |         ForbiddenAction(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ValidationError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `TimeoutError` is never constructed
[INFO] [stdout]    --> src/error_handling.rs:666:9
[INFO] [stdout]     |
[INFO] [stdout] 663 |     enum ResourceError {
[INFO] [stdout]     |          ------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 666 |         TimeoutError,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ResourceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `price`, `category`, and `stock` are never read
[INFO] [stdout]    --> src/modules.rs:345:17
[INFO] [stdout]     |
[INFO] [stdout] 342 |         pub struct Product {
[INFO] [stdout]     |                    ------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 345 |             pub price: f64,
[INFO] [stdout]     |                 ^^^^^
[INFO] [stdout] 346 |             pub category: String,
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout] 347 |             pub stock: u32,
[INFO] [stdout]     |                 ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Product` 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: method `find_by_id` is never used
[INFO] [stdout]    --> src/modules.rs:352:16
[INFO] [stdout]     |
[INFO] [stdout] 351 |         pub trait UserRepository {
[INFO] [stdout]     |                   -------------- method in this trait
[INFO] [stdout] 352 |             fn find_by_id(&self, id: u64) -> Option<User>;
[INFO] [stdout]     |                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `find_by_id` is never used
[INFO] [stdout]    --> src/modules.rs:359:16
[INFO] [stdout]     |
[INFO] [stdout] 358 |         pub trait ProductRepository {
[INFO] [stdout]     |                   ----------------- method in this trait
[INFO] [stdout] 359 |             fn find_by_id(&self, id: u64) -> Option<Product>;
[INFO] [stdout]     |                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `product_service` is never read
[INFO] [stdout]    --> src/modules.rs:595:13
[INFO] [stdout]     |
[INFO] [stdout] 593 |         pub struct ApiGateway {
[INFO] [stdout]     |                    ---------- field in this struct
[INFO] [stdout] 594 |             user_service: user_service::UserService,
[INFO] [stdout] 595 |             product_service: product_service::ProductService,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Processing` and `Completed` are never constructed
[INFO] [stdout]    --> src/macros.rs:794:9
[INFO] [stdout]     |
[INFO] [stdout] 792 |     enum SimpleState {
[INFO] [stdout]     |          ----------- variants in this enum
[INFO] [stdout] 793 |         Idle,
[INFO] [stdout] 794 |         Processing,
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout] 795 |         Completed,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `SimpleState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id` and `items` are never read
[INFO] [stdout]    --> src/testing.rs:752:13
[INFO] [stdout]     |
[INFO] [stdout] 751 |     pub struct Order {
[INFO] [stdout]     |                ----- fields in this struct
[INFO] [stdout] 752 |         pub id: u32,
[INFO] [stdout]     |             ^^
[INFO] [stdout] 753 |         pub items: Vec<OrderItem>,
[INFO] [stdout]     |             ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Order` 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 `product_id` is never read
[INFO] [stdout]    --> src/testing.rs:760:13
[INFO] [stdout]     |
[INFO] [stdout] 759 |     pub struct OrderItem {
[INFO] [stdout]     |                --------- field in this struct
[INFO] [stdout] 760 |         pub product_id: u32,
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OrderItem` 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 `Cancelled` is never constructed
[INFO] [stdout]    --> src/testing.rs:769:9
[INFO] [stdout]     |
[INFO] [stdout] 766 |     pub enum OrderStatus {
[INFO] [stdout]     |              ----------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 769 |         Cancelled,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OrderStatus` 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: multiple fields are never read
[INFO] [stdout]   --> src/advanced_patterns.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct DatabaseConfig {
[INFO] [stdout]    |            -------------- fields in this struct
[INFO] [stdout] 15 |     host: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 16 |     port: u16,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 17 |     database: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 18 |     username: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 19 |     password: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 20 |     pool_size: usize,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 21 |     timeout_secs: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DatabaseConfig` 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: type alias `AppResult` is never used
[INFO] [stdout]   --> src/best_practices.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 |     type AppResult<T> = anyhow::Result<T>;
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `UserNotFound` and `PermissionDenied` are never constructed
[INFO] [stdout]   --> src/best_practices.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     enum BusinessError {
[INFO] [stdout]    |          ------------- variants in this enum
[INFO] [stdout] 21 |         #[error("用户不存在: {0}")]
[INFO] [stdout] 22 |         UserNotFound(String),
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 23 |         #[error("权限不足: {0}")]
[INFO] [stdout] 24 |         PermissionDenied(String),
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BusinessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_user_data` is never used
[INFO] [stdout]   --> src/best_practices.rs:43:8
[INFO] [stdout]    |
[INFO] [stdout] 43 |     fn process_user_data(user_id: &str) -> AppResult<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `value` is never read
[INFO] [stdout]    --> src/best_practices.rs:202:9
[INFO] [stdout]     |
[INFO] [stdout] 201 |     struct Node {
[INFO] [stdout]     |            ---- field in this struct
[INFO] [stdout] 202 |         value: i32,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `a`, `b`, `c`, `d`, and `e` are never read
[INFO] [stdout]    --> src/best_practices.rs:231:9
[INFO] [stdout]     |
[INFO] [stdout] 230 |     struct UnoptimizedStruct {
[INFO] [stdout]     |            ----------------- fields in this struct
[INFO] [stdout] 231 |         a: u8,    // 1字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 232 |         b: u64,   // 8字节 (需要8字节对齐)
[INFO] [stdout]     |         ^
[INFO] [stdout] 233 |         c: u32,   // 4字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 234 |         d: u16,   // 2字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 235 |         e: u8,    // 1字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ApiError` is never used
[INFO] [stdout]    --> src/best_practices.rs:362:14
[INFO] [stdout]     |
[INFO] [stdout] 362 |     pub enum ApiError {
[INFO] [stdout]     |              ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `ApiResult` is never used
[INFO] [stdout]    --> src/best_practices.rs:380:10
[INFO] [stdout]     |
[INFO] [stdout] 380 |     type ApiResult<T> = Result<T, ApiError>;
[INFO] [stdout]     |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Validator` is never used
[INFO] [stdout]    --> src/best_practices.rs:383:15
[INFO] [stdout]     |
[INFO] [stdout] 383 |     pub trait Validator {
[INFO] [stdout]     |               ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `return_first_element` is never used
[INFO] [stdout]   --> src/pitfalls.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 |     fn return_first_element() -> i32 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Node` is never constructed
[INFO] [stdout]    --> src/pitfalls.rs:257:12
[INFO] [stdout]     |
[INFO] [stdout] 257 |     struct Node {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SafeNode` is never constructed
[INFO] [stdout]    --> src/pitfalls.rs:286:12
[INFO] [stdout]     |
[INFO] [stdout] 286 |     struct SafeNode {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `data` and `metadata` are never read
[INFO] [stdout]    --> src/pitfalls.rs:296:9
[INFO] [stdout]     |
[INFO] [stdout] 295 |     struct LargeData {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 296 |         data: Vec<u8>,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 297 |         metadata: Vec<String>,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_empty` is never used
[INFO] [stdout]    --> src/basics.rs:131:12
[INFO] [stdout]     |
[INFO] [stdout] 113 |     impl ModernStack {
[INFO] [stdout]     |     ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 131 |         fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_empty` is never used
[INFO] [stdout]    --> src/basics.rs:186:12
[INFO] [stdout]     |
[INFO] [stdout] 159 |     impl ModernQueue {
[INFO] [stdout]     |     ---------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 186 |         fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id`, `value`, and `neighbors` are never read
[INFO] [stdout]    --> src/ownership.rs:574:9
[INFO] [stdout]     |
[INFO] [stdout] 573 |     struct GraphNode {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 574 |         id: u32,
[INFO] [stdout]     |         ^^
[INFO] [stdout] 575 |         value: String,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 576 |         neighbors: Vec<Weak<Node>>,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `GraphNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `add_neighbor` is never used
[INFO] [stdout]    --> src/ownership.rs:590:12
[INFO] [stdout]     |
[INFO] [stdout] 581 |     impl GraphNode {
[INFO] [stdout]     |     -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 590 |         fn add_neighbor(&self, _neighbor: &Node) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `distance` and `travel_time` are never read
[INFO] [stdout]    --> src/types.rs:453:9
[INFO] [stdout]     |
[INFO] [stdout] 452 |     struct Route {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] 453 |         distance: f64,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 454 |         travel_time: f64,
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Route` 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: trait `Drawable` is never used
[INFO] [stdout]    --> src/types.rs:592:11
[INFO] [stdout]     |
[INFO] [stdout] 592 |     trait Drawable {
[INFO] [stdout]     |           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Red` is never constructed
[INFO] [stdout]    --> src/types.rs:600:12
[INFO] [stdout]     |
[INFO] [stdout] 600 |     struct Red;
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Blue` is never constructed
[INFO] [stdout]    --> src/types.rs:602:12
[INFO] [stdout]     |
[INFO] [stdout] 602 |     struct Blue;
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `RedCircle` is never constructed
[INFO] [stdout]    --> src/types.rs:605:12
[INFO] [stdout]     |
[INFO] [stdout] 605 |     struct RedCircle {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `BlueRectangle` is never constructed
[INFO] [stdout]    --> src/types.rs:611:12
[INFO] [stdout]     |
[INFO] [stdout] 611 |     struct BlueRectangle {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `disable` is never used
[INFO] [stdout]    --> src/types.rs:721:12
[INFO] [stdout]     |
[INFO] [stdout] 720 |     impl LightSwitch<Enabled> {
[INFO] [stdout]     |     ------------------------- method in this implementation
[INFO] [stdout] 721 |         fn disable(self) -> LightSwitch<Disabled> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `remove` is never used
[INFO] [stdout]    --> src/types.rs:827:12
[INFO] [stdout]     |
[INFO] [stdout] 815 |     impl Composite {
[INFO] [stdout]     |     -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 827 |         fn remove(&mut self, index: usize) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Container` is never constructed
[INFO] [stdout]    --> src/types.rs:954:12
[INFO] [stdout]     |
[INFO] [stdout] 954 |     struct Container<T> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `push`, `get`, and `len` are never used
[INFO] [stdout]    --> src/types.rs:960:12
[INFO] [stdout]     |
[INFO] [stdout] 959 |     impl<T> Container<T> {
[INFO] [stdout]     |     -------------------- associated items in this implementation
[INFO] [stdout] 960 |         fn new() -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 967 |         fn push(&mut self, item: T) {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 971 |         fn get(&self, index: usize) -> Option<&T> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 975 |         fn len(&self) -> usize {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PublishedState` is never constructed
[INFO] [stdout]     --> src/types.rs:1059:12
[INFO] [stdout]      |
[INFO] [stdout] 1059 |     struct PublishedState;
[INFO] [stdout]      |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_content` is never used
[INFO] [stdout]     --> src/types.rs:1067:12
[INFO] [stdout]      |
[INFO] [stdout] 1066 |     impl SimpleDocument<PublishedState> {
[INFO] [stdout]      |     ----------------------------------- method in this implementation
[INFO] [stdout] 1067 |         fn get_content(&self) -> &str {
[INFO] [stdout]      |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Seconds` is never constructed
[INFO] [stdout]     --> src/types.rs:1160:12
[INFO] [stdout]      |
[INFO] [stdout] 1160 |     struct Seconds(f64);
[INFO] [stdout]      |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_meters` is never used
[INFO] [stdout]     --> src/types.rs:1169:12
[INFO] [stdout]      |
[INFO] [stdout] 1168 |     impl Kilometers {
[INFO] [stdout]      |     --------------- method in this implementation
[INFO] [stdout] 1169 |         fn to_meters(self) -> Meters {
[INFO] [stdout]      |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `NetworkError` and `JsonParsingError` are never constructed
[INFO] [stdout]    --> src/error_handling.rs:274:9
[INFO] [stdout]     |
[INFO] [stdout] 270 |     enum NetworkError {
[INFO] [stdout]     |          ------------ variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 274 |         NetworkError(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 275 |         JsonParsingError,
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `NetworkError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fetch_user_data` is never used
[INFO] [stdout]    --> src/error_handling.rs:291:14
[INFO] [stdout]     |
[INFO] [stdout] 291 |     async fn fetch_user_data(user_id: u32) -> Result<String, NetworkError> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `read_config_file` is never used
[INFO] [stdout]    --> src/error_handling.rs:352:8
[INFO] [stdout]     |
[INFO] [stdout] 352 |     fn read_config_file() -> Result<String, io::Error> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `InvalidType` and `FileParseError` are never constructed
[INFO] [stdout]    --> src/error_handling.rs:419:9
[INFO] [stdout]     |
[INFO] [stdout] 417 |     enum ConfigError {
[INFO] [stdout]     |          ----------- variants in this enum
[INFO] [stdout] 418 |         MissingField(String),
[INFO] [stdout] 419 |         InvalidType { field: String, expected: String, actual: String },
[INFO] [stdout]     |         ^^^^^^^^^^^
[INFO] [stdout] 420 |         InvalidValue { field: String, value: String, reason: String },
[INFO] [stdout] 421 |         FileParseError(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ConfigError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `host`, `port`, `database_url`, and `debug` are never read
[INFO] [stdout]    --> src/error_handling.rs:442:9
[INFO] [stdout]     |
[INFO] [stdout] 441 |     struct AppConfig {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 442 |         host: String,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 443 |         port: u16,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 444 |         database_url: String,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout] 445 |         debug: bool,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `AppConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ForbiddenAction` is never constructed
[INFO] [stdout]    --> src/error_handling.rs:543:9
[INFO] [stdout]     |
[INFO] [stdout] 538 |     enum ValidationError {
[INFO] [stdout]     |          --------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 543 |         ForbiddenAction(String),
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ValidationError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `TimeoutError` is never constructed
[INFO] [stdout]    --> src/error_handling.rs:666:9
[INFO] [stdout]     |
[INFO] [stdout] 663 |     enum ResourceError {
[INFO] [stdout]     |          ------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 666 |         TimeoutError,
[INFO] [stdout]     |         ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ResourceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `price`, `category`, and `stock` are never read
[INFO] [stdout]    --> src/modules.rs:345:17
[INFO] [stdout]     |
[INFO] [stdout] 342 |         pub struct Product {
[INFO] [stdout]     |                    ------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 345 |             pub price: f64,
[INFO] [stdout]     |                 ^^^^^
[INFO] [stdout] 346 |             pub category: String,
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout] 347 |             pub stock: u32,
[INFO] [stdout]     |                 ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Product` 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: method `find_by_id` is never used
[INFO] [stdout]    --> src/modules.rs:352:16
[INFO] [stdout]     |
[INFO] [stdout] 351 |         pub trait UserRepository {
[INFO] [stdout]     |                   -------------- method in this trait
[INFO] [stdout] 352 |             fn find_by_id(&self, id: u64) -> Option<User>;
[INFO] [stdout]     |                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `find_by_id` is never used
[INFO] [stdout]    --> src/modules.rs:359:16
[INFO] [stdout]     |
[INFO] [stdout] 358 |         pub trait ProductRepository {
[INFO] [stdout]     |                   ----------------- method in this trait
[INFO] [stdout] 359 |             fn find_by_id(&self, id: u64) -> Option<Product>;
[INFO] [stdout]     |                ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `product_service` is never read
[INFO] [stdout]    --> src/modules.rs:595:13
[INFO] [stdout]     |
[INFO] [stdout] 593 |         pub struct ApiGateway {
[INFO] [stdout]     |                    ---------- field in this struct
[INFO] [stdout] 594 |             user_service: user_service::UserService,
[INFO] [stdout] 595 |             product_service: product_service::ProductService,
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Processing` and `Completed` are never constructed
[INFO] [stdout]    --> src/macros.rs:794:9
[INFO] [stdout]     |
[INFO] [stdout] 792 |     enum SimpleState {
[INFO] [stdout]     |          ----------- variants in this enum
[INFO] [stdout] 793 |         Idle,
[INFO] [stdout] 794 |         Processing,
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout] 795 |         Completed,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `SimpleState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `id` and `items` are never read
[INFO] [stdout]    --> src/testing.rs:752:13
[INFO] [stdout]     |
[INFO] [stdout] 751 |     pub struct Order {
[INFO] [stdout]     |                ----- fields in this struct
[INFO] [stdout] 752 |         pub id: u32,
[INFO] [stdout]     |             ^^
[INFO] [stdout] 753 |         pub items: Vec<OrderItem>,
[INFO] [stdout]     |             ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Order` 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 `product_id` is never read
[INFO] [stdout]    --> src/testing.rs:760:13
[INFO] [stdout]     |
[INFO] [stdout] 759 |     pub struct OrderItem {
[INFO] [stdout]     |                --------- field in this struct
[INFO] [stdout] 760 |         pub product_id: u32,
[INFO] [stdout]     |             ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OrderItem` 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 `Cancelled` is never constructed
[INFO] [stdout]    --> src/testing.rs:769:9
[INFO] [stdout]     |
[INFO] [stdout] 766 |     pub enum OrderStatus {
[INFO] [stdout]     |              ----------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 769 |         Cancelled,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `OrderStatus` 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: multiple fields are never read
[INFO] [stdout]   --> src/advanced_patterns.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct DatabaseConfig {
[INFO] [stdout]    |            -------------- fields in this struct
[INFO] [stdout] 15 |     host: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 16 |     port: u16,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 17 |     database: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 18 |     username: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 19 |     password: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 20 |     pool_size: usize,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 21 |     timeout_secs: u64,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `DatabaseConfig` 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: type alias `AppResult` is never used
[INFO] [stdout]   --> src/best_practices.rs:16:10
[INFO] [stdout]    |
[INFO] [stdout] 16 |     type AppResult<T> = anyhow::Result<T>;
[INFO] [stdout]    |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `UserNotFound` and `PermissionDenied` are never constructed
[INFO] [stdout]   --> src/best_practices.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 20 |     enum BusinessError {
[INFO] [stdout]    |          ------------- variants in this enum
[INFO] [stdout] 21 |         #[error("用户不存在: {0}")]
[INFO] [stdout] 22 |         UserNotFound(String),
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout] 23 |         #[error("权限不足: {0}")]
[INFO] [stdout] 24 |         PermissionDenied(String),
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `BusinessError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `process_user_data` is never used
[INFO] [stdout]   --> src/best_practices.rs:43:8
[INFO] [stdout]    |
[INFO] [stdout] 43 |     fn process_user_data(user_id: &str) -> AppResult<String> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `value` is never read
[INFO] [stdout]    --> src/best_practices.rs:202:9
[INFO] [stdout]     |
[INFO] [stdout] 201 |     struct Node {
[INFO] [stdout]     |            ---- field in this struct
[INFO] [stdout] 202 |         value: i32,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `a`, `b`, `c`, `d`, and `e` are never read
[INFO] [stdout]    --> src/best_practices.rs:231:9
[INFO] [stdout]     |
[INFO] [stdout] 230 |     struct UnoptimizedStruct {
[INFO] [stdout]     |            ----------------- fields in this struct
[INFO] [stdout] 231 |         a: u8,    // 1字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 232 |         b: u64,   // 8字节 (需要8字节对齐)
[INFO] [stdout]     |         ^
[INFO] [stdout] 233 |         c: u32,   // 4字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 234 |         d: u16,   // 2字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 235 |         e: u8,    // 1字节
[INFO] [stdout]     |         ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ApiError` is never used
[INFO] [stdout]    --> src/best_practices.rs:362:14
[INFO] [stdout]     |
[INFO] [stdout] 362 |     pub enum ApiError {
[INFO] [stdout]     |              ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `ApiResult` is never used
[INFO] [stdout]    --> src/best_practices.rs:380:10
[INFO] [stdout]     |
[INFO] [stdout] 380 |     type ApiResult<T> = Result<T, ApiError>;
[INFO] [stdout]     |          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Validator` is never used
[INFO] [stdout]    --> src/best_practices.rs:383:15
[INFO] [stdout]     |
[INFO] [stdout] 383 |     pub trait Validator {
[INFO] [stdout]     |               ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `validate_email_correct_format` is never used
[INFO] [stdout]    --> src/best_practices.rs:428:12
[INFO] [stdout]     |
[INFO] [stdout] 428 |         fn validate_email_correct_format() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_config_functionality` is never used
[INFO] [stdout]    --> src/best_practices.rs:434:12
[INFO] [stdout]     |
[INFO] [stdout] 434 |         fn test_config_functionality() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `panics_on_invalid_input` is never used
[INFO] [stdout]    --> src/best_practices.rs:442:12
[INFO] [stdout]     |
[INFO] [stdout] 442 |         fn panics_on_invalid_input() {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `return_first_element` is never used
[INFO] [stdout]   --> src/pitfalls.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 |     fn return_first_element() -> i32 {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Node` is never constructed
[INFO] [stdout]    --> src/pitfalls.rs:257:12
[INFO] [stdout]     |
[INFO] [stdout] 257 |     struct Node {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `SafeNode` is never constructed
[INFO] [stdout]    --> src/pitfalls.rs:286:12
[INFO] [stdout]     |
[INFO] [stdout] 286 |     struct SafeNode {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `data` and `metadata` are never read
[INFO] [stdout]    --> src/pitfalls.rs:296:9
[INFO] [stdout]     |
[INFO] [stdout] 295 |     struct LargeData {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 296 |         data: Vec<u8>,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 297 |         metadata: Vec<String>,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 35s
[INFO] running `Command { std: "docker" "inspect" "e54c7e8f19f66cd45fb9c395f9f586f1a9985c1cae22dfc4df68549e69e7a459", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e54c7e8f19f66cd45fb9c395f9f586f1a9985c1cae22dfc4df68549e69e7a459", kill_on_drop: false }`
[INFO] [stdout] e54c7e8f19f66cd45fb9c395f9f586f1a9985c1cae22dfc4df68549e69e7a459
