[INFO] cloning repository https://github.com/itachilee/ratatui_weather [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/itachilee/ratatui_weather" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitachilee%2Fratatui_weather", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitachilee%2Fratatui_weather'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a136149851e7ad27bf5682a49574bd723d7cd700 [INFO] checking itachilee/ratatui_weather against master#fe348cd1a8e0fa445b772393147ed865904dcd4d for pr-139587-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fitachilee%2Fratatui_weather" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/itachilee/ratatui_weather on toolchain fe348cd1a8e0fa445b772393147ed865904dcd4d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fe348cd1a8e0fa445b772393147ed865904dcd4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/itachilee/ratatui_weather [INFO] finished tweaking git repo https://github.com/itachilee/ratatui_weather [INFO] tweaked toml for git repo https://github.com/itachilee/ratatui_weather written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/itachilee/ratatui_weather 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" "+fe348cd1a8e0fa445b772393147ed865904dcd4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded xml-rs v0.8.25 [INFO] [stderr] Downloaded uuid v1.12.1 [INFO] [stderr] Downloaded log v0.4.25 [INFO] [stderr] Downloaded proc-macro2 v1.0.93 [INFO] [stderr] Downloaded psl-types v2.0.11 [INFO] [stderr] Downloaded diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Downloaded serde-xml-rs v0.6.0 [INFO] [stderr] Downloaded bytes v1.10.0 [INFO] [stderr] Downloaded dsl_auto_type v0.1.3 [INFO] [stderr] Downloaded scheduled-thread-pool v0.2.7 [INFO] [stderr] Downloaded actix-cors v0.7.0 [INFO] [stderr] Downloaded anyhow v1.0.95 [INFO] [stderr] Downloaded diesel_derives v2.2.3 [INFO] [stderr] Downloaded url v2.5.1 [INFO] [stderr] Downloaded publicsuffix v2.2.3 [INFO] [stderr] Downloaded zerovec v0.10.2 [INFO] [stderr] Downloaded idna v1.0.0 [INFO] [stderr] Downloaded zerocopy-derive v0.8.16 [INFO] [stderr] Downloaded reqwest v0.12.12 [INFO] [stderr] Downloaded serde_json v1.0.138 [INFO] [stderr] Downloaded syn v2.0.96 [INFO] [stderr] Downloaded redis v0.25.4 [INFO] [stderr] Downloaded zerocopy v0.8.16 [INFO] [stderr] Downloaded chrono v0.4.39 [INFO] [stderr] Downloaded idna v0.3.0 [INFO] [stderr] Downloaded elasticsearch v8.17.0-alpha.1 [INFO] [stderr] Downloaded rustls v0.23.22 [INFO] [stderr] Downloaded miniz_oxide v0.8.3 [INFO] [stderr] Downloaded icu_properties v1.5.0 [INFO] [stderr] Downloaded diesel v2.2.7 [INFO] [stderr] Downloaded env_logger v0.11.6 [INFO] [stderr] Downloaded compact_str v0.8.1 [INFO] [stderr] Downloaded semver v1.0.25 [INFO] [stderr] Downloaded pq-sys v0.7.0 [INFO] [stderr] Downloaded cookie_store v0.21.1 [INFO] [stderr] Downloaded cc v1.2.12 [INFO] [stderr] Downloaded r2d2 v0.8.10 [INFO] [stderr] Downloaded dyn-clone v1.0.18 [INFO] [stderr] Downloaded rand_core v0.9.0 [INFO] [stderr] Downloaded instability v0.3.7 [INFO] [stderr] Downloaded unicode-truncate v1.0.0 [INFO] [stderr] Downloaded zerovec-derive v0.10.2 [INFO] [stderr] Downloaded httparse v1.9.3 [INFO] [stderr] Downloaded displaydoc v0.2.4 [INFO] [stderr] Downloaded dtoa-short v0.3.5 [INFO] [stderr] Downloaded libc v0.2.169 [INFO] [stderr] Downloaded tokio v1.43.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+fe348cd1a8e0fa445b772393147ed865904dcd4d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 375a532642019a6d544046c783016c3374d5cecb36e5f44d6eb3a1a1fb7f20d7 [INFO] running `Command { std: "docker" "start" "-a" "375a532642019a6d544046c783016c3374d5cecb36e5f44d6eb3a1a1fb7f20d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "375a532642019a6d544046c783016c3374d5cecb36e5f44d6eb3a1a1fb7f20d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "375a532642019a6d544046c783016c3374d5cecb36e5f44d6eb3a1a1fb7f20d7", kill_on_drop: false }` [INFO] [stdout] 375a532642019a6d544046c783016c3374d5cecb36e5f44d6eb3a1a1fb7f20d7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+fe348cd1a8e0fa445b772393147ed865904dcd4d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e00f572271159179ed2e94f6119de767ac3c83c25a79178817aff1b224df91d [INFO] running `Command { std: "docker" "start" "-a" "8e00f572271159179ed2e94f6119de767ac3c83c25a79178817aff1b224df91d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking log v0.4.25 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking bytes v1.10.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking allocator-api2 v0.2.18 [INFO] [stderr] Checking litemap v0.7.3 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling cc v1.2.12 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling httparse v1.9.3 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking miniz_oxide v0.8.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking flate2 v1.0.35 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling semver v1.0.25 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling zerocopy v0.8.16 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling zerovec-derive v0.10.2 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Compiling displaydoc v0.2.4 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking zerofrom v0.1.4 [INFO] [stderr] Checking yoke v0.7.4 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Checking zerovec v0.10.2 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking idna v0.3.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking futf v0.1.5 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking icu_properties v1.5.0 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Checking phf v0.10.1 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking unicode-width v0.1.12 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling litrs v0.4.1 [INFO] [stderr] Checking dtoa v1.0.9 [INFO] [stderr] Checking psl-types v2.0.11 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Checking tendril v0.4.3 [INFO] [stderr] Compiling document-features v0.2.10 [INFO] [stderr] Checking publicsuffix v2.2.3 [INFO] [stderr] Checking dtoa-short v0.3.5 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking phf v0.11.2 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking idna v1.0.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking string_cache v0.8.7 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking url v2.5.1 [INFO] [stderr] Checking brotli v6.0.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Compiling selectors v0.25.0 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Compiling pq-sys v0.7.0 [INFO] [stderr] Checking rustls-pki-types v1.11.0 [INFO] [stderr] Checking rand_core v0.9.0 [INFO] [stderr] Compiling dsl_auto_type v0.1.3 [INFO] [stderr] Checking rustls-pemfile v2.1.2 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking cssparser v0.31.2 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking signal-hook-mio v0.2.4 [INFO] [stderr] Checking cookie_store v0.21.1 [INFO] [stderr] Compiling elasticsearch v8.17.0-alpha.1 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking actix-server v2.5.0 [INFO] [stderr] Checking async-compression v0.4.18 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking castaway v0.2.3 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking servo_arc v0.3.0 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Checking impl-more v0.1.9 [INFO] [stderr] Compiling indoc v2.0.5 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Checking unicode-truncate v1.0.0 [INFO] [stderr] Checking compact_str v0.8.1 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Compiling instability v0.3.7 [INFO] [stderr] Checking serde_with v3.12.0 [INFO] [stderr] Checking reqwest v0.12.12 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking r2d2 v0.8.10 [INFO] [stderr] Compiling diesel_derives v2.2.3 [INFO] [stderr] Checking crossterm v0.28.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking lru v0.12.3 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking dyn-clone v1.0.18 [INFO] [stderr] Checking xml-rs v0.8.25 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking ego-tree v0.6.2 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking unicode-width v0.2.0 [INFO] [stderr] Checking sha1_smol v1.0.0 [INFO] [stderr] Checking env_logger v0.11.6 [INFO] [stderr] Checking serde-xml-rs v0.6.0 [INFO] [stderr] Checking scraper v0.19.0 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking uuid v1.12.1 [INFO] [stderr] Checking ratatui v0.29.0 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking actix-http v3.9.0 [INFO] [stderr] Checking diesel v2.2.7 [INFO] [stderr] Checking actix-web v4.9.0 [INFO] [stderr] Checking redis v0.25.4 [INFO] [stderr] Checking actix-cors v0.7.0 [INFO] [stderr] Checking ratatui_weather v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/constants/constant.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::r2d2::ConnectionManager` [INFO] [stdout] --> src/constants/constant.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use diesel::r2d2::ConnectionManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::r2d2::PooledConnection` [INFO] [stdout] --> src/constants/constant.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use diesel::r2d2::PooledConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/constants/constant.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::r2d2::ConnectionManager` [INFO] [stdout] --> src/constants/constant.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use diesel::r2d2::ConnectionManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::r2d2::PooledConnection` [INFO] [stdout] --> src/constants/constant.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use diesel::r2d2::PooledConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/constants/constant.rs:265:23 [INFO] [stdout] | [INFO] [stdout] 264 | peoper_name: todo!(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 265 | position: todo!(), [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/constants/constant.rs:265:23 [INFO] [stdout] | [INFO] [stdout] 264 | peoper_name: todo!(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 265 | position: todo!(), [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/constants/constant.rs:296:23 [INFO] [stdout] | [INFO] [stdout] 295 | peoper_name: todo!(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 296 | position: todo!(), [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/constants/constant.rs:296:23 [INFO] [stdout] | [INFO] [stdout] 295 | peoper_name: todo!(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 296 | position: todo!(), [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/constants/constant.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 59 | Ok(res) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/constants/constant.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 65 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/constants/constant.rs:111:16 [INFO] [stdout] | [INFO] [stdout] 111 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/constants/constant.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | Err(e) => Ok(Vec::new()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/constants/constant.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | Err(e) => Ok(Vec::new()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/constants/constant.rs:59:16 [INFO] [stdout] | [INFO] [stdout] 59 | Ok(res) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/constants/constant.rs:65:24 [INFO] [stdout] | [INFO] [stdout] 65 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/constants/constant.rs:111:16 [INFO] [stdout] | [INFO] [stdout] 111 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `warning_info` [INFO] [stdout] --> src/constants/constant.rs:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | let warning_info = MinePeopleInfoInsert { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_warning_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/constants/constant.rs:284:16 [INFO] [stdout] | [INFO] [stdout] 284 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `warning_info` [INFO] [stdout] --> src/constants/constant.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | let warning_info = MinePeopleInfoInsert { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_warning_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/constants/constant.rs:314:16 [INFO] [stdout] | [INFO] [stdout] 314 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/constants/constant.rs:165:17 [INFO] [stdout] | [INFO] [stdout] 165 | Err(e) => Ok(Vec::new()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/constants/constant.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | Err(e) => Ok(Vec::new()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `warning_info` [INFO] [stdout] --> src/constants/constant.rs:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | let warning_info = MinePeopleInfoInsert { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_warning_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/constants/constant.rs:284:16 [INFO] [stdout] | [INFO] [stdout] 284 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `warning_info` [INFO] [stdout] --> src/constants/constant.rs:294:13 [INFO] [stdout] | [INFO] [stdout] 294 | let warning_info = MinePeopleInfoInsert { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_warning_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/constants/constant.rs:314:16 [INFO] [stdout] | [INFO] [stdout] 314 | Ok(res) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `online_rate` is never read [INFO] [stdout] --> src/models/aoyinuo.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | let mut online_rate = 0f64; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `online_rate` is never read [INFO] [stdout] --> src/models/aoyinuo.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | let mut online_rate = 0f64; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es_url` [INFO] [stdout] --> src/models/common.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let es_url = env::var("ELASTICSEARCH_HOST").expect("ELASTICSEARCH_HOST must be set"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_es_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `es_url` [INFO] [stdout] --> src/models/common.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let es_url = env::var("ELASTICSEARCH_HOST").expect("ELASTICSEARCH_HOST must be set"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_es_url` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleCache` is never constructed [INFO] [stdout] --> src/cache/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct SimpleCache { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `put`, `get`, `remove`, and `clear` are never used [INFO] [stdout] --> src/cache/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl SimpleCache { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 11 | /// 创建一个新的缓存实例,设置默认过期时间 [INFO] [stdout] 12 | fn new(ttl: Duration) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn put(&mut self, key: String, value: String) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn get(&mut self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn remove(&mut self, key: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_mine_people_info` and `query_mine_people_info` are never used [INFO] [stdout] --> src/constants/constant.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Monitor { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 256 | pub fn insert_mine_people_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | fn query_mine_people_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `devtypeid` and `count` are never read [INFO] [stdout] --> src/db/models.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | struct DeviceOnlineCount { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 97 | devtypeid: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 98 | count: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `index` is never used [INFO] [stdout] --> src/handlers/elasticsearch.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | async fn index() -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/middleware/request_log.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl RequestLogger { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 20 | pub fn new(log_file_path: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sensor_type`, `unit`, and `status` are never read [INFO] [stdout] --> src/modbus/monitor_parser.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SensorData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 7 | pub sensor_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 8 | pub value: f64, [INFO] [stdout] 9 | pub unit: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | pub status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SensorData` 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 `as_number` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl SensorType { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 60 | pub fn as_number(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/modbus/monitor_threshold.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct WarningInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 128 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WarningInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 152 | impl TemperatureThreshold { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 153 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HumidityThreshold` is never constructed [INFO] [stdout] --> src/modbus/monitor_threshold.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | pub struct HumidityThreshold { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HumidityThreshold` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 203 | impl HumidityThreshold { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 204 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_humidty_warning` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:213:4 [INFO] [stdout] | [INFO] [stdout] 213 | fn check_humidty_warning(data: &SensorData, threshold: &HumidityThreshold) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `No2Threshold` is never constructed [INFO] [stdout] --> src/modbus/monitor_threshold.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub struct No2Threshold { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `No2Threshold` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:286:8 [INFO] [stdout] | [INFO] [stdout] 285 | impl No2Threshold { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 286 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_no2_warning` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:291:4 [INFO] [stdout] | [INFO] [stdout] 291 | fn check_no2_warning(data: &SensorData, threshold: &No2Threshold) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DustConcentrationThreshold` is never constructed [INFO] [stdout] --> src/modbus/monitor_threshold.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 297 | pub struct DustConcentrationThreshold { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DustConcentrationThreshold` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:301:8 [INFO] [stdout] | [INFO] [stdout] 300 | impl DustConcentrationThreshold { [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 301 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_dust_concentration_warning` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:306:4 [INFO] [stdout] | [INFO] [stdout] 306 | fn check_dust_concentration_warning( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_data_to_ip` is never used [INFO] [stdout] --> src/modbus/tcp_server.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 20 | impl DeviceStatusTracker { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | async fn send_data_to_ip( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `conversation_id` is never read [INFO] [stdout] --> src/models/chat.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ChatRequest { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 11 | pub message: String, [INFO] [stdout] 12 | pub conversation_id: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatRequest` 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 `config` is never used [INFO] [stdout] --> src/routes/elasticsearch.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn config(cfg: &mut web::ServiceConfig) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleCache` is never constructed [INFO] [stdout] --> src/cache/mod.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct SimpleCache { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `put`, `get`, `remove`, and `clear` are never used [INFO] [stdout] --> src/cache/mod.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl SimpleCache { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 11 | /// 创建一个新的缓存实例,设置默认过期时间 [INFO] [stdout] 12 | fn new(ttl: Duration) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn put(&mut self, key: String, value: String) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn get(&mut self, key: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn remove(&mut self, key: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `insert_mine_people_info` and `query_mine_people_info` are never used [INFO] [stdout] --> src/constants/constant.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Monitor { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 256 | pub fn insert_mine_people_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | fn query_mine_people_info(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `devtypeid` and `count` are never read [INFO] [stdout] --> src/db/models.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | struct DeviceOnlineCount { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 97 | devtypeid: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 98 | count: i64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `index` is never used [INFO] [stdout] --> src/handlers/elasticsearch.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | async fn index() -> &'static str { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/middleware/request_log.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl RequestLogger { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 20 | pub fn new(log_file_path: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sensor_type`, `unit`, and `status` are never read [INFO] [stdout] --> src/modbus/monitor_parser.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SensorData { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 7 | pub sensor_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 8 | pub value: f64, [INFO] [stdout] 9 | pub unit: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | pub status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SensorData` 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 `as_number` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl SensorType { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] 60 | pub fn as_number(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timestamp` is never read [INFO] [stdout] --> src/modbus/monitor_threshold.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct WarningInfo { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 128 | pub timestamp: DateTime, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `WarningInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:153:8 [INFO] [stdout] | [INFO] [stdout] 152 | impl TemperatureThreshold { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 153 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HumidityThreshold` is never constructed [INFO] [stdout] --> src/modbus/monitor_threshold.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | pub struct HumidityThreshold { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HumidityThreshold` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:204:8 [INFO] [stdout] | [INFO] [stdout] 203 | impl HumidityThreshold { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 204 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_humidty_warning` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:213:4 [INFO] [stdout] | [INFO] [stdout] 213 | fn check_humidty_warning(data: &SensorData, threshold: &HumidityThreshold) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `No2Threshold` is never constructed [INFO] [stdout] --> src/modbus/monitor_threshold.rs:282:12 [INFO] [stdout] | [INFO] [stdout] 282 | pub struct No2Threshold { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `No2Threshold` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:286:8 [INFO] [stdout] | [INFO] [stdout] 285 | impl No2Threshold { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 286 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_no2_warning` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:291:4 [INFO] [stdout] | [INFO] [stdout] 291 | fn check_no2_warning(data: &SensorData, threshold: &No2Threshold) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DustConcentrationThreshold` is never constructed [INFO] [stdout] --> src/modbus/monitor_threshold.rs:297:12 [INFO] [stdout] | [INFO] [stdout] 297 | pub struct DustConcentrationThreshold { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DustConcentrationThreshold` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:301:8 [INFO] [stdout] | [INFO] [stdout] 300 | impl DustConcentrationThreshold { [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] 301 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_dust_concentration_warning` is never used [INFO] [stdout] --> src/modbus/monitor_threshold.rs:306:4 [INFO] [stdout] | [INFO] [stdout] 306 | fn check_dust_concentration_warning( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `send_data_to_ip` is never used [INFO] [stdout] --> src/modbus/tcp_server.rs:72:14 [INFO] [stdout] | [INFO] [stdout] 20 | impl DeviceStatusTracker { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | async fn send_data_to_ip( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `conversation_id` is never read [INFO] [stdout] --> src/models/chat.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ChatRequest { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 11 | pub message: String, [INFO] [stdout] 12 | pub conversation_id: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChatRequest` 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 `config` is never used [INFO] [stdout] --> src/routes/elasticsearch.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn config(cfg: &mut web::ServiceConfig) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.69s [INFO] running `Command { std: "docker" "inspect" "8e00f572271159179ed2e94f6119de767ac3c83c25a79178817aff1b224df91d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e00f572271159179ed2e94f6119de767ac3c83c25a79178817aff1b224df91d", kill_on_drop: false }` [INFO] [stdout] 8e00f572271159179ed2e94f6119de767ac3c83c25a79178817aff1b224df91d