[INFO] cloning repository https://github.com/mpv945/axum-openwrt [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mpv945/axum-openwrt" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmpv945%2Faxum-openwrt", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmpv945%2Faxum-openwrt'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5547dee8160e1da5aae48cca8e8b660c82e77190 [INFO] checking mpv945/axum-openwrt against try#9228062c11d321a3ea08123f57e47533a3c88b00 for pr-154781 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmpv945%2Faxum-openwrt" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mpv945/axum-openwrt [INFO] finished tweaking git repo https://github.com/mpv945/axum-openwrt [INFO] tweaked toml for git repo https://github.com/mpv945/axum-openwrt written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mpv945/axum-openwrt on toolchain 9228062c11d321a3ea08123f57e47533a3c88b00 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9228062c11d321a3ea08123f57e47533a3c88b00" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mpv945/axum-openwrt 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" "+9228062c11d321a3ea08123f57e47533a3c88b00" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9228062c11d321a3ea08123f57e47533a3c88b00" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 885a9976cd05e59239aaa758279f5145c5c47b6e166c3930316b6eeb72fd8c23 [INFO] running `Command { std: "docker" "start" "-a" "885a9976cd05e59239aaa758279f5145c5c47b6e166c3930316b6eeb72fd8c23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "885a9976cd05e59239aaa758279f5145c5c47b6e166c3930316b6eeb72fd8c23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "885a9976cd05e59239aaa758279f5145c5c47b6e166c3930316b6eeb72fd8c23", kill_on_drop: false }` [INFO] [stdout] 885a9976cd05e59239aaa758279f5145c5c47b6e166c3930316b6eeb72fd8c23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9228062c11d321a3ea08123f57e47533a3c88b00" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0558e7f91ddffe23e8e1f2df35085a2686ad5b03d061523769fcefefa479f535 [INFO] running `Command { std: "docker" "start" "-a" "0558e7f91ddffe23e8e1f2df35085a2686ad5b03d061523769fcefefa479f535", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Compiling libm v0.2.16 [INFO] [stderr] Checking once_cell v1.21.4 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling zerocopy v0.8.42 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking futures-sink v0.3.32 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Checking futures-io v0.3.32 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Checking futures-task v0.3.32 [INFO] [stderr] Checking futures-util v0.3.32 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Checking rustls-pki-types v1.14.0 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling num-bigint-dig v0.8.6 [INFO] [stderr] Compiling base64ct v1.8.3 [INFO] [stderr] Compiling pin-project-lite v0.2.17 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling aws-lc-rs v1.16.1 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Checking simd-adler32 v0.3.8 [INFO] [stderr] Compiling regex-syntax v0.8.10 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking socket2 v0.6.3 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling libloading v0.8.9 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling bindgen v0.69.5 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling tinyvec v1.11.0 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Checking getrandom v0.4.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling aws-lc-sys v0.38.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling tokio v1.50.0 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Compiling rustls v0.23.37 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Checking chrono v0.4.44 [INFO] [stderr] Compiling pest v2.8.6 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking brotli-decompressor v5.0.0 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.1 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Compiling uuid v1.22.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking brotli v8.0.2 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rsa v0.9.10 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Compiling pest_meta v2.8.6 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking ipnet v2.12.0 [INFO] [stderr] Checking compression-core v0.4.31 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Compiling pest_generator v2.8.6 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling libmimalloc-sys v0.1.44 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Compiling rustix v1.1.4 [INFO] [stderr] Checking winnow v0.7.15 [INFO] [stderr] Compiling pest_derive v2.8.6 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking compression-codecs v0.4.37 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Compiling rust-embed-utils v8.11.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking tracing-serde v0.2.0 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking zip v0.6.6 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking webpki-roots v1.0.6 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking crypto-mac v0.10.0 [INFO] [stderr] Checking openssl-probe v0.2.1 [INFO] [stderr] Checking iri-string v0.7.10 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Checking linux-raw-sys v0.12.1 [INFO] [stderr] Checking arraydeque v0.5.1 [INFO] [stderr] Compiling tokio-cron-scheduler v0.10.2 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking blowfish v0.7.0 [INFO] [stderr] Checking rustls-native-certs v0.8.3 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Compiling rust-embed-impl v8.11.0 [INFO] [stderr] Checking cron v0.12.1 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking rustls-webpki v0.102.8 [INFO] [stderr] Checking simple_asn1 v0.6.4 [INFO] [stderr] Checking md-5 v0.9.1 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking deadpool-runtime v0.1.4 [INFO] [stderr] Checking async-compression v0.4.41 [INFO] [stderr] Checking deadpool v0.12.3 [INFO] [stderr] Checking quick-xml v0.31.0 [INFO] [stderr] Checking codepage v0.1.2 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking sqlx-core v0.8.6 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking rustls-pemfile v2.2.0 [INFO] [stderr] Checking flume v0.11.1 [INFO] [stderr] Checking fixedbitset v0.5.7 [INFO] [stderr] Checking tempfile v3.27.0 [INFO] [stderr] Checking tracing-appender v0.2.4 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking calamine v0.24.0 [INFO] [stderr] Checking rust_xlsxwriter v0.64.2 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking pwhash v1.0.0 [INFO] [stderr] Checking rust-embed v8.11.0 [INFO] [stderr] Checking mimalloc v0.1.48 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Checking axum v0.8.8 [INFO] [stderr] Checking sqlx-mysql v0.8.6 [INFO] [stderr] Compiling foo-sys v0.1.0 (/opt/rustwide/workdir/foo-sys) [INFO] [stderr] Checking redis v0.32.7 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking foo-safe v0.1.0 (/opt/rustwide/workdir/foo-safe) [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking rustls-webpki v0.103.9 [INFO] [stderr] Checking deadpool-redis v0.22.1 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking rumqttc v0.25.1 [INFO] [stderr] Checking reqwest v0.12.28 [INFO] [stderr] Checking axum-openwrt v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `axum::Router` [INFO] [stdout] --> src/bootstrap/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::Router; [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: `crate::AppRouter` [INFO] [stdout] --> src/bootstrap/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::AppRouter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::handler::user_handler` [INFO] [stdout] --> src/router/api_router.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::handler::user_handler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::r#static::embed::Assets` [INFO] [stdout] --> src/router/api_router.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use crate::r#static::embed::Assets; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error::AppError`, `response::ApiResponse`, and `result::AppResult` [INFO] [stdout] --> src/redis/redis_client.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | common::{error::AppError, response::ApiResponse, result::AppResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_embed::EmbeddedFile` [INFO] [stdout] --> src/excel/excel_reader.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rust_embed::EmbeddedFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Worksheet` [INFO] [stdout] --> src/excel/excel_writer.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_xlsxwriter::{Workbook, Worksheet}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `load_config` [INFO] [stdout] --> src/main.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | use crate::config::{load_config, load_settings_plus}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::Router` [INFO] [stdout] --> src/bootstrap/server.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::Router; [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: `crate::AppRouter` [INFO] [stdout] --> src/bootstrap/server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::AppRouter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::handler::user_handler` [INFO] [stdout] --> src/router/api_router.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::handler::user_handler; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::r#static::embed::Assets` [INFO] [stdout] --> src/router/api_router.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | use crate::r#static::embed::Assets; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error::AppError`, `response::ApiResponse`, and `result::AppResult` [INFO] [stdout] --> src/redis/redis_client.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | common::{error::AppError, response::ApiResponse, result::AppResult}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_embed::EmbeddedFile` [INFO] [stdout] --> src/excel/excel_reader.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rust_embed::EmbeddedFile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Worksheet` [INFO] [stdout] --> src/excel/excel_writer.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_xlsxwriter::{Workbook, Worksheet}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `load_config` [INFO] [stdout] --> src/main.rs:32:21 [INFO] [stdout] | [INFO] [stdout] 32 | use crate::config::{load_config, load_settings_plus}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/redis/redis_client.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut cfg = Config::from_url(url); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/redis/redis_client.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut cfg = Config::from_url(url); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/bootstrap/server.rs:111:18 [INFO] [stdout] | [INFO] [stdout] 111 | async fn cleanup(state: &AppState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/handler/user_handler.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | let name = state.redis.h_get("user:1", "name").await.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tags` [INFO] [stdout] --> src/handler/user_handler.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | let tags = state.redis.s_members("tags").await.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/handler/user_handler.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | let result: serde_json::Value = state.http.post_json(url, &payload).await.unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/handler/user_handler.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | let result: serde_json::Value = state.http [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/bootstrap/server.rs:111:18 [INFO] [stdout] | [INFO] [stdout] 111 | async fn cleanup(state: &AppState) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/utils/command.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn exec_cmd(cmd: &str) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/utils/command.rs:104:28 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn exec_powershell(cmd: &str) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/handler/user_handler.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | let name = state.redis.h_get("user:1", "name").await.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tags` [INFO] [stdout] --> src/handler/user_handler.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | let tags = state.redis.s_members("tags").await.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_tags` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/handler/user_handler.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | let result: serde_json::Value = state.http.post_json(url, &payload).await.unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/handler/user_handler.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | let result: serde_json::Value = state.http [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/excel/excel_reader.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | _ => Cow::Borrowed(""), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/excel/excel_reader.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 113 | Data::Empty => Cow::Borrowed(""), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 114 | Data::String(s) => Cow::Borrowed(s.as_str()), // ✅ 关键改动 [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 115 | Data::Float(f) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 119 | Data::Int(i) => Cow::Owned(i.to_string()), [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 125 | _ => Cow::Borrowed(""), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/excel/excel_reader.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | _ => Cow::Borrowed(""), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/excel/excel_reader.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 166 | Data::Empty => Cow::Borrowed(""), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 167 | Data::String(s) => Cow::Borrowed(s), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 168 | Data::Float(f) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 175 | Data::Int(i) => Cow::Owned(i.to_string()), [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 181 | _ => Cow::Borrowed(""), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `api_router` is never used [INFO] [stdout] --> src/router/api_router.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn api_router() -> Router { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_users_simple` is never used [INFO] [stdout] --> src/handler/user_handler.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn list_users_simple() -> Json> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_all` is never used [INFO] [stdout] --> src/service/user_service.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn find_all() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_all` is never used [INFO] [stdout] --> src/repository/user_repo.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn find_all() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_user` is never used [INFO] [stdout] --> src/repository/user_repo.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | pub async fn update_user( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_config` is never used [INFO] [stdout] --> src/config/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn load_config() -> Settings { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrorResponse` is never constructed [INFO] [stdout] --> src/common/error.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct ErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Unauthorized`, `NotFound`, and `Internal` are never constructed [INFO] [stdout] --> src/common/error.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 23 | #[error("未授权")] [INFO] [stdout] 24 | Unauthorized, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | Internal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppState` is never constructed [INFO] [stdout] --> src/state/app_state.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_redis_url` is never used [INFO] [stdout] --> src/redis/redis_client.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn build_redis_url( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_stream_value` is never used [INFO] [stdout] --> src/redis/stream_consumer.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn parse_stream_value(v: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `redis` is never read [INFO] [stdout] --> src/mqtt/consumer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct MqttConsumer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 6 | redis: RedisClient, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignUtil` is never constructed [INFO] [stdout] --> src/utils/sign_util.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SignUtil; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `md5`, `sign_json_md5`, `sha256`, `sign_md5`, and `sign_sha256` are never used [INFO] [stdout] --> src/utils/sign_util.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl SignUtil { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 9 | /// MD5 签名(返回 hex) [INFO] [stdout] 10 | pub fn md5(input: &str) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn sign_json_md5(json: &Value, key: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn sha256(input: &str) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn sign_md5(params: &BTreeMap, key: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn sign_sha256(params: &BTreeMap, key: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_query` is never used [INFO] [stdout] --> src/utils/sign_util.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn build_query(params: &BTreeMap) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Base64Util` is never constructed [INFO] [stdout] --> src/utils/base64_util.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Base64Util; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `encode`, `decode`, `encode_url`, `decode_url`, `encode_url_no_pad`, and `decode_url_no_pad` are never used [INFO] [stdout] --> src/utils/base64_util.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Base64Util { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 21 | /// 标准 Base64 编码 [INFO] [stdout] 22 | pub fn encode(input: &str) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn decode(input: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn encode_url(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn decode_url(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn encode_url_no_pad(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn decode_url_no_pad(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonUtil` is never constructed [INFO] [stdout] --> src/utils/json_util.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct JsonUtil; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/utils/json_util.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl JsonUtil { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn to_string(data: &T) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn from_str(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn str_to_value(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn to_pretty_string(value: &Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn map_to_json(map: &BTreeMap) -> Value { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn json_to_map(value: &Value) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn str_to_map(s: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn map_to_string(map: &BTreeMap) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/utils/command.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | IoError(std::io::Error), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CommandError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 - IoError(std::io::Error), [INFO] [stdout] 16 + IoError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/utils/command.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | Utf8Error(std::string::FromUtf8Error), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CommandError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 - Utf8Error(std::string::FromUtf8Error), [INFO] [stdout] 18 + Utf8Error(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `exec_cmd` and `exec_powershell` are never used [INFO] [stdout] --> src/utils/command.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl CommandExecutor { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn exec_cmd(cmd: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn exec_powershell(cmd: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `embedded_to_temp_path` is never used [INFO] [stdout] --> src/static/embed.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn embedded_to_temp_path(file_name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_embedded_file` is never used [INFO] [stdout] --> src/static/embed.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn read_embedded_file(file_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExcelError` is never used [INFO] [stdout] --> src/excel/excel_error.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ExcelError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/excel/excel_reader.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ExcelReader { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 9 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read_sheet_stream`, `read_sheet`, and `cell_to_string` are never used [INFO] [stdout] --> src/excel/excel_reader.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl ExcelReader { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn read_sheet_stream(&self, sheet_name: &str, mut callback: F) -> Result<(), ExcelError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn read_sheet( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn cell_to_string(cell: &Data) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_template` is never used [INFO] [stdout] --> src/excel/excel_reader.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 135 | async fn export_template( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `float_fmt` is never used [INFO] [stdout] --> src/excel/excel_reader.rs:153:4 [INFO] [stdout] | [INFO] [stdout] 153 | fn float_fmt(f: f64) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cell_to_cow` is never used [INFO] [stdout] --> src/excel/excel_reader.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn cell_to_cow(cell: &Data) -> Cow<'_, str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExcelWriter` is never constructed [INFO] [stdout] --> src/excel/excel_writer.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ExcelWriter { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write_sheet`, and `save` are never used [INFO] [stdout] --> src/excel/excel_writer.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ExcelWriter { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn write_sheet( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn save(mut self, path: &str) -> Result<(), ExcelError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `read` and `write` are never used [INFO] [stdout] --> src/excel/excel_util.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl ExcelUtil { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 8 | pub fn read(path: &str, sheet: &str) -> Result>, ExcelError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn write( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/utils/command.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn exec_cmd(cmd: &str) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/utils/command.rs:104:28 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn exec_powershell(cmd: &str) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/excel/excel_reader.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 125 | _ => Cow::Borrowed(""), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/excel/excel_reader.rs:125:17 [INFO] [stdout] | [INFO] [stdout] 113 | Data::Empty => Cow::Borrowed(""), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 114 | Data::String(s) => Cow::Borrowed(s.as_str()), // ✅ 关键改动 [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 115 | Data::Float(f) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 119 | Data::Int(i) => Cow::Owned(i.to_string()), [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 125 | _ => Cow::Borrowed(""), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/excel/excel_reader.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 181 | _ => Cow::Borrowed(""), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/excel/excel_reader.rs:181:9 [INFO] [stdout] | [INFO] [stdout] 166 | Data::Empty => Cow::Borrowed(""), [INFO] [stdout] | ----------- matches some of the same values [INFO] [stdout] 167 | Data::String(s) => Cow::Borrowed(s), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 168 | Data::Float(f) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 175 | Data::Int(i) => Cow::Owned(i.to_string()), [INFO] [stdout] | ------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 181 | _ => Cow::Borrowed(""), [INFO] [stdout] | ^ ...and 5 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `api_router` is never used [INFO] [stdout] --> src/router/api_router.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn api_router() -> Router { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `list_users_simple` is never used [INFO] [stdout] --> src/handler/user_handler.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn list_users_simple() -> Json> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_all` is never used [INFO] [stdout] --> src/service/user_service.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn find_all() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_all` is never used [INFO] [stdout] --> src/repository/user_repo.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn find_all() -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_user` is never used [INFO] [stdout] --> src/repository/user_repo.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | pub async fn update_user( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_config` is never used [INFO] [stdout] --> src/config/mod.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn load_config() -> Settings { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ErrorResponse` is never constructed [INFO] [stdout] --> src/common/error.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct ErrorResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Unauthorized`, `NotFound`, and `Internal` are never constructed [INFO] [stdout] --> src/common/error.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 23 | #[error("未授权")] [INFO] [stdout] 24 | Unauthorized, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | NotFound(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | Internal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AppState` is never constructed [INFO] [stdout] --> src/state/app_state.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct AppState { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_redis_url` is never used [INFO] [stdout] --> src/redis/redis_client.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn build_redis_url( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_stream_value` is never used [INFO] [stdout] --> src/redis/stream_consumer.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn parse_stream_value(v: Value) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `redis` is never read [INFO] [stdout] --> src/mqtt/consumer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct MqttConsumer { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 6 | redis: RedisClient, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SignUtil` is never constructed [INFO] [stdout] --> src/utils/sign_util.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SignUtil; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `md5`, `sign_json_md5`, `sha256`, `sign_md5`, and `sign_sha256` are never used [INFO] [stdout] --> src/utils/sign_util.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl SignUtil { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 9 | /// MD5 签名(返回 hex) [INFO] [stdout] 10 | pub fn md5(input: &str) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn sign_json_md5(json: &Value, key: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn sha256(input: &str) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn sign_md5(params: &BTreeMap, key: &str) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn sign_sha256(params: &BTreeMap, key: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_query` is never used [INFO] [stdout] --> src/utils/sign_util.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn build_query(params: &BTreeMap) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Base64Util` is never constructed [INFO] [stdout] --> src/utils/base64_util.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Base64Util; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `encode`, `decode`, `encode_url`, `decode_url`, `encode_url_no_pad`, and `decode_url_no_pad` are never used [INFO] [stdout] --> src/utils/base64_util.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Base64Util { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 21 | /// 标准 Base64 编码 [INFO] [stdout] 22 | pub fn encode(input: &str) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn decode(input: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn encode_url(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn decode_url(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn encode_url_no_pad(input: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn decode_url_no_pad(input: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JsonUtil` is never constructed [INFO] [stdout] --> src/utils/json_util.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct JsonUtil; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/utils/json_util.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl JsonUtil { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn to_string(data: &T) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn from_str(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn str_to_value(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn to_pretty_string(value: &Value) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn map_to_json(map: &BTreeMap) -> Value { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn json_to_map(value: &Value) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn str_to_map(s: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn map_to_string(map: &BTreeMap) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/utils/command.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | IoError(std::io::Error), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CommandError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 - IoError(std::io::Error), [INFO] [stdout] 16 + IoError(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/utils/command.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | Utf8Error(std::string::FromUtf8Error), [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `CommandError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 18 - Utf8Error(std::string::FromUtf8Error), [INFO] [stdout] 18 + Utf8Error(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `exec_cmd` and `exec_powershell` are never used [INFO] [stdout] --> src/utils/command.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl CommandExecutor { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn exec_cmd(cmd: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn exec_powershell(cmd: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `embedded_to_temp_path` is never used [INFO] [stdout] --> src/static/embed.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn embedded_to_temp_path(file_name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_embedded_file` is never used [INFO] [stdout] --> src/static/embed.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn read_embedded_file(file_name: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExcelError` is never used [INFO] [stdout] --> src/excel/excel_error.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ExcelError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> src/excel/excel_reader.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ExcelReader { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 9 | path: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `read_sheet_stream`, `read_sheet`, and `cell_to_string` are never used [INFO] [stdout] --> src/excel/excel_reader.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl ExcelReader { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn read_sheet_stream(&self, sheet_name: &str, mut callback: F) -> Result<(), ExcelError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn read_sheet( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | fn cell_to_string(cell: &Data) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `export_template` is never used [INFO] [stdout] --> src/excel/excel_reader.rs:135:10 [INFO] [stdout] | [INFO] [stdout] 135 | async fn export_template( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `float_fmt` is never used [INFO] [stdout] --> src/excel/excel_reader.rs:153:4 [INFO] [stdout] | [INFO] [stdout] 153 | fn float_fmt(f: f64) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cell_to_cow` is never used [INFO] [stdout] --> src/excel/excel_reader.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn cell_to_cow(cell: &Data) -> Cow<'_, str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ExcelWriter` is never constructed [INFO] [stdout] --> src/excel/excel_writer.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ExcelWriter { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write_sheet`, and `save` are never used [INFO] [stdout] --> src/excel/excel_writer.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl ExcelWriter { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 9 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | pub fn write_sheet( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn save(mut self, path: &str) -> Result<(), ExcelError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `read` and `write` are never used [INFO] [stdout] --> src/excel/excel_util.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl ExcelUtil { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 8 | pub fn read(path: &str, sheet: &str) -> Result>, ExcelError> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn write( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 48s [INFO] running `Command { std: "docker" "inspect" "0558e7f91ddffe23e8e1f2df35085a2686ad5b03d061523769fcefefa479f535", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0558e7f91ddffe23e8e1f2df35085a2686ad5b03d061523769fcefefa479f535", kill_on_drop: false }` [INFO] [stdout] 0558e7f91ddffe23e8e1f2df35085a2686ad5b03d061523769fcefefa479f535