[INFO] cloning repository https://github.com/seokjin0414/modbus_data_collection [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/seokjin0414/modbus_data_collection" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseokjin0414%2Fmodbus_data_collection", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseokjin0414%2Fmodbus_data_collection'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 50d61683487a994d41704756e6e14c3a8c1ed272 [INFO] checking seokjin0414/modbus_data_collection against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseokjin0414%2Fmodbus_data_collection" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/seokjin0414/modbus_data_collection [INFO] finished tweaking git repo https://github.com/seokjin0414/modbus_data_collection [INFO] tweaked toml for git repo https://github.com/seokjin0414/modbus_data_collection written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/seokjin0414/modbus_data_collection on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/seokjin0414/modbus_data_collection 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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded getrandom v0.3.1 [INFO] [stderr] Downloaded wit-bindgen-rt v0.33.0 [INFO] [stderr] Downloaded windows-result v0.3.1 [INFO] [stderr] Downloaded windows-registry v0.5.0 [INFO] [stderr] Downloaded async-trait v0.1.87 [INFO] [stderr] Downloaded dashmap v7.0.0-rc2 [INFO] [stderr] Downloaded quinn-udp v0.5.10 [INFO] [stderr] Downloaded tokio-modbus v0.16.1 [INFO] [stderr] Downloaded zerocopy-derive v0.8.23 [INFO] [stderr] Downloaded quinn v0.11.7 [INFO] [stderr] Downloaded wasi v0.13.3+wasi-0.2.2 [INFO] [stderr] Downloaded rustls-webpki v0.103.0 [INFO] [stderr] Downloaded zerocopy v0.8.23 [INFO] [stderr] Downloaded quinn-proto v0.11.10 [INFO] [stderr] Downloaded webpki-roots v0.26.8 [INFO] [stderr] Downloaded rustls v0.23.25 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] da8f7b387eef95577cdc4fdff51ab52ac943a03d3beca7397b97938cc6bfe416 [INFO] running `Command { std: "docker" "start" "-a" "da8f7b387eef95577cdc4fdff51ab52ac943a03d3beca7397b97938cc6bfe416", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da8f7b387eef95577cdc4fdff51ab52ac943a03d3beca7397b97938cc6bfe416", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da8f7b387eef95577cdc4fdff51ab52ac943a03d3beca7397b97938cc6bfe416", kill_on_drop: false }` [INFO] [stdout] da8f7b387eef95577cdc4fdff51ab52ac943a03d3beca7397b97938cc6bfe416 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cfd5ac3a9c6734c8180fab20d362b23690a9c9271e5fb32071abd6372c1d7dbd [INFO] running `Command { std: "docker" "start" "-a" "cfd5ac3a9c6734c8180fab20d362b23690a9c9271e5fb32071abd6372c1d7dbd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking once_cell v1.21.1 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking log v0.4.26 [INFO] [stderr] Checking smallvec v1.14.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking litemap v0.7.5 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking rustls-pki-types v1.11.0 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking indexmap v2.8.0 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling rustls v0.23.25 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking ipnet v2.11.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking data-encoding v2.8.0 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking webpki-roots v0.26.8 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking bitflags v2.9.0 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Checking iri-string v0.7.8 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking webpki-roots v1.0.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking csv-core v0.1.12 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking dashmap v7.0.0-rc2 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking rustls-webpki v0.103.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling async-trait v0.1.87 [INFO] [stderr] Compiling axum-macros v0.5.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking tungstenite v0.26.2 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tokio-util v0.7.14 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-rustls v0.26.2 [INFO] [stderr] Checking tokio-tungstenite v0.26.2 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking h2 v0.4.8 [INFO] [stderr] Checking tokio-modbus v0.16.1 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking hyper-rustls v0.27.5 [INFO] [stderr] Checking axum v0.8.4 [INFO] [stderr] Checking reqwest v0.12.20 [INFO] [stderr] Checking modbus_data_collection v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `GemsSetData` [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:12:59 [INFO] [stdout] | [INFO] [stdout] 12 | gems_3005::data_models::{GEMS, GemsCollectionSet, GemsSetData, RequestBody}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/service/read/read_from_addr.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{Result, anyhow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `timeout` [INFO] [stdout] --> src/service/task/task_init.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::time::{Duration, timeout}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/service/task/task_init.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{error, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SECONDS_1MINUTE`, `SECONDS_5MINUTE`, `gas::handle_gas_data`, `gems_3500_modbus::collection_gems_3500_modbus`, `heat::handle_heat_data`, `schedule_task`, and `udp_listener::run_udp_listener` [INFO] [stdout] --> src/service/task/task_init.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | gas::handle_gas_data, gems_3500_modbus::collection_gems_3500_modbus, heat::handle_heat_data, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | }, [INFO] [stdout] 10 | server::{get_state::ServerState, udp_listener::run_udp_listener}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | task::common_scheduling::{SECONDS_1MINUTE, SECONDS_5MINUTE, schedule_task}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `GemsSetData` [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:12:59 [INFO] [stdout] | [INFO] [stdout] 12 | gems_3005::data_models::{GEMS, GemsCollectionSet, GemsSetData, RequestBody}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/service/read/read_from_addr.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use anyhow::{Result, anyhow}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration` and `timeout` [INFO] [stdout] --> src/service/task/task_init.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::time::{Duration, timeout}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error` [INFO] [stdout] --> src/service/task/task_init.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::{error, info}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SECONDS_1MINUTE`, `SECONDS_5MINUTE`, `gas::handle_gas_data`, `gems_3500_modbus::collection_gems_3500_modbus`, `heat::handle_heat_data`, `schedule_task`, and `udp_listener::run_udp_listener` [INFO] [stdout] --> src/service/task/task_init.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | gas::handle_gas_data, gems_3500_modbus::collection_gems_3500_modbus, heat::handle_heat_data, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | }, [INFO] [stdout] 10 | server::{get_state::ServerState, udp_listener::run_udp_listener}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | task::common_scheduling::{SECONDS_1MINUTE, SECONDS_5MINUTE, schedule_task}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checker` [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let checker = Instant::now(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checker` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let body = RequestBody::from_data(GEMS, building_id, vec) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `checker` [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | let checker = Instant::now(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_checker` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | let body = RequestBody::from_data(GEMS, building_id, vec) [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/service/task/task_init.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn task_init(state: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/service/task/task_init.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn task_init(state: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMS` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const GEMS: &str = "gems"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IAQ` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const IAQ: &str = "iaq"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEAT` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const HEAT: &str = "heat"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const GAS: &str = "gas"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_data` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl RequestBody { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 23 | pub fn from_data(sensor_type: &str, building_id: Uuid, data: Vec) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/model/gems_3005/data_models.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GemsMeasurementPoint { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 40 | pub building_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 41 | pub measurement_point_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | pub host: IpAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 43 | pub port: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | pub unit_id: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 45 | pub channel: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 46 | pub export_sum_status: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GemsMeasurementPoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GemsCollectionSet` is never constructed [INFO] [stdout] --> src/model/gems_3005/data_models.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct GemsCollectionSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_set_data` are never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl GemsCollectionSet { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 81 | pub fn new(point: GemsMeasurementPoint, registers: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn to_set_data(&self, values: GemsSetValue, recorded_at: DateTime) -> GemsSetData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GemsSetValue` is never constructed [INFO] [stdout] --> src/model/gems_3005/data_models.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct GemsSetValue { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 162 | impl GemsSetValue { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 163 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data_category`, `phase`, `fc`, `size_in_bytes`, `data_type`, and `divide_by` are never read [INFO] [stdout] --> src/model/gems_3005/gems_3500_memory_map_models.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Gems3500MemoryMap { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 7 | pub memory_address: i16, [INFO] [stdout] 8 | pub data_category: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub phase: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub fc: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | pub size_in_bytes: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub data_type: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | pub divide_by: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gems3500MemoryMap` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rows` and `idx_memory_address` are never read [INFO] [stdout] --> src/model/gems_3005/gems_3500_memory_map_models.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Gems3500MemoryMapTable { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 18 | pub rows: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | pub idx_memory_address: DashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gems3500MemoryMapTable` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_map` is never used [INFO] [stdout] --> src/model/gems_3005/gems_3500_memory_map_models.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Gems3500MemoryMapTable { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_map(&self, register: i16) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ModbusRegisterType` is never used [INFO] [stdout] --> src/model/modbus/modbus_register_models.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ModbusRegisterType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModbusRegister` is never constructed [INFO] [stdout] --> src/model/modbus/modbus_register_models.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ModbusRegister { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `building_id`, `measurement_point_id`, `ip_to`, `port_to`, `mac`, and `iaq_type` are never read [INFO] [stdout] --> src/model/iaq/data_models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct IaqMeasurementPoint { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 9 | pub building_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub measurement_point_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub ip_to: IpAddr, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub port_to: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | pub mac: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | pub iaq_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IaqMeasurementPoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Header` is never constructed [INFO] [stdout] --> src/model/iaq/data_models.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Header { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/model/iaq/data_models.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CcmData` is never constructed [INFO] [stdout] --> src/model/iaq/data_models.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct CcmData { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IaqData` is never constructed [INFO] [stdout] --> src/model/iaq/data_models.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct IaqData { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `building_id`, `measurement_point_id`, `host`, `port`, and `unit_id` are never read [INFO] [stdout] --> src/model/heat/data_models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HeatMeasurementPoint { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 9 | pub building_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub measurement_point_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub host: IpAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub port: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | pub unit_id: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeatMeasurementPoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HeatData` is never constructed [INFO] [stdout] --> src/model/heat/data_models.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct HeatData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `building_id`, `measurement_point_id`, `host`, `port`, and `unit_id` are never read [INFO] [stdout] --> src/model/gas/data_models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct GasMeasurementPoint { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 9 | pub building_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub measurement_point_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub host: IpAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub port: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | pub unit_id: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GasMeasurementPoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GasData` is never constructed [INFO] [stdout] --> src/model/gas/data_models.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct GasData { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_gas_data` is never used [INFO] [stdout] --> src/service/collect/gas.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn handle_gas_data(state: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_format` is never used [INFO] [stdout] --> src/service/collect/gas.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn data_format(reg: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_modbus_data` is never used [INFO] [stdout] --> src/service/collect/gas.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | async fn get_modbus_data(client: &mut ModbusContext, start_addr: u16, length: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collection_gems_3500_modbus` is never used [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | pub async fn collection_gems_3500_modbus(state: &Arc) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_from_ch` is never used [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn register_from_ch(ch: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_axum_server_direct_data` is never used [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:127:14 [INFO] [stdout] | [INFO] [stdout] 127 | pub async fn post_axum_server_direct_data(params: RequestBody) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_heat_data` is never used [INFO] [stdout] --> src/service/collect/heat.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn handle_heat_data(state: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_format` is never used [INFO] [stdout] --> src/service/collect/heat.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn data_format(reg: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_modbus_data` is never used [INFO] [stdout] --> src/service/collect/heat.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | async fn get_modbus_data(client: &mut ModbusContext, start_addr: u16, length: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_modbus_register_return_type` is never used [INFO] [stdout] --> src/service/read/interpret_modbus_register.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn interpret_modbus_register_return_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_modbus_u16` is never used [INFO] [stdout] --> src/service/read/interpret_modbus_register.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn interpret_modbus_u16(data: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_modbus_u32` is never used [INFO] [stdout] --> src/service/read/interpret_modbus_register.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn interpret_modbus_u32(data: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_modbus_i16` is never used [INFO] [stdout] --> src/service/read/interpret_modbus_register.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn interpret_modbus_i16(data: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_modbus_i32` is never used [INFO] [stdout] --> src/service/read/interpret_modbus_register.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn interpret_modbus_i32(data: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MODBUS_TIMEOUT` is never used [INFO] [stdout] --> src/service/read/read_from_addr.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const MODBUS_TIMEOUT: Duration = Duration::from_secs(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_point_map` is never used [INFO] [stdout] --> src/service/read/read_from_addr.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn read_from_point_map( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_register` is never used [INFO] [stdout] --> src/service/read/read_from_register.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn read_from_register( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_count` is never used [INFO] [stdout] --> src/service/read/read_from_register.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn register_count(value_type: &ModbusRegisterType) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u8` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn read_u8(cur: &mut Cursor<&[u8]>) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u16` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn read_u16(cur: &mut Cursor<&[u8]>) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_bytes` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn read_bytes(cur: &mut Cursor<&[u8]>, n: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_str_n` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn read_str_n(cur: &mut Cursor<&[u8]>, n: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_checksum` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn valid_checksum(hdr: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_function_code` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn valid_function_code(code: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_mac_upper` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn format_mac_upper(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aqm_data` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn aqm_data(registers: &[u16]) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ccm_data` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn ccm_data(registers: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_iaq` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:103:14 [INFO] [stdout] | [INFO] [stdout] 103 | pub async fn handle_iaq(state: Arc, mac: String, registers: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `gems_3500_memory_map_table`, `gems_measurement_point`, `iaq_measurement_point`, `heat_measurement_point`, and `gas_measurement_point` are never read [INFO] [stdout] --> src/service/server/get_state.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ServerState { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | pub gems_3500_memory_map_table: Gems3500MemoryMapTable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub gems_measurement_point: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub iaq_measurement_point: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub heat_measurement_point: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub gas_measurement_point: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_udp_listener` is never used [INFO] [stdout] --> src/service/server/udp_listener.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn run_udp_listener(state: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECONDS_1MINUTE` is never used [INFO] [stdout] --> src/service/task/common_scheduling.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const SECONDS_1MINUTE: u64 = 60; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECONDS_5MINUTE` is never used [INFO] [stdout] --> src/service/task/common_scheduling.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const SECONDS_5MINUTE: u64 = 300; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `schedule_task` is never used [INFO] [stdout] --> src/service/task/common_scheduling.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn schedule_task( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `schedule_message` is never used [INFO] [stdout] --> src/service/task/common_scheduling.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn schedule_message(task_descriptor: &str, now: DateTime, next: DateTime) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_run_time_delay` is never used [INFO] [stdout] --> src/service/task/common_scheduling.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn next_run_time_delay(cycle_seconds: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MINUTE` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const MINUTE: &str = "MINUTE"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOUR` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const HOUR: &str = "HOUR"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DAY` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const DAY: &str = "DAY"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `utc_now_minute` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn utc_now_minute() -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `utc_now_hour` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn utc_now_hour() -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `utc_now_day` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn utc_now_day() -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `utc_now_ago` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn utc_now_ago(ago_seconds: i64, time_unit: &str) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GEMS` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const GEMS: &str = "gems"; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IAQ` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const IAQ: &str = "iaq"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HEAT` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const HEAT: &str = "heat"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAS` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:13:11 [INFO] [stdout] | [INFO] [stdout] 13 | pub const GAS: &str = "gas"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_data` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl RequestBody { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 23 | pub fn from_data(sensor_type: &str, building_id: Uuid, data: Vec) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/model/gems_3005/data_models.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct GemsMeasurementPoint { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 40 | pub building_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 41 | pub measurement_point_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 42 | pub host: IpAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 43 | pub port: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | pub unit_id: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 45 | pub channel: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 46 | pub export_sum_status: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GemsMeasurementPoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GemsCollectionSet` is never constructed [INFO] [stdout] --> src/model/gems_3005/data_models.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 74 | pub struct GemsCollectionSet { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `to_set_data` are never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl GemsCollectionSet { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 81 | pub fn new(point: GemsMeasurementPoint, registers: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn to_set_data(&self, values: GemsSetValue, recorded_at: DateTime) -> GemsSetData { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GemsSetValue` is never constructed [INFO] [stdout] --> src/model/gems_3005/data_models.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct GemsSetValue { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/model/gems_3005/data_models.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 162 | impl GemsSetValue { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 163 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data_category`, `phase`, `fc`, `size_in_bytes`, `data_type`, and `divide_by` are never read [INFO] [stdout] --> src/model/gems_3005/gems_3500_memory_map_models.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Gems3500MemoryMap { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 7 | pub memory_address: i16, [INFO] [stdout] 8 | pub data_category: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub phase: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | pub fc: Option, [INFO] [stdout] | ^^ [INFO] [stdout] 11 | pub size_in_bytes: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 12 | pub data_type: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 13 | pub divide_by: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gems3500MemoryMap` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rows` and `idx_memory_address` are never read [INFO] [stdout] --> src/model/gems_3005/gems_3500_memory_map_models.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Gems3500MemoryMapTable { [INFO] [stdout] | ---------------------- fields in this struct [INFO] [stdout] 18 | pub rows: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | pub idx_memory_address: DashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gems3500MemoryMapTable` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_map` is never used [INFO] [stdout] --> src/model/gems_3005/gems_3500_memory_map_models.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl Gems3500MemoryMapTable { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_map(&self, register: i16) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ModbusRegisterType` is never used [INFO] [stdout] --> src/model/modbus/modbus_register_models.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ModbusRegisterType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ModbusRegister` is never constructed [INFO] [stdout] --> src/model/modbus/modbus_register_models.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ModbusRegister { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `building_id`, `measurement_point_id`, `ip_to`, `port_to`, `mac`, and `iaq_type` are never read [INFO] [stdout] --> src/model/iaq/data_models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct IaqMeasurementPoint { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 9 | pub building_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub measurement_point_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub ip_to: IpAddr, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub port_to: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | pub mac: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 14 | pub iaq_type: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `IaqMeasurementPoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Header` is never constructed [INFO] [stdout] --> src/model/iaq/data_models.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Header { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/model/iaq/data_models.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub struct Message { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CcmData` is never constructed [INFO] [stdout] --> src/model/iaq/data_models.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct CcmData { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IaqData` is never constructed [INFO] [stdout] --> src/model/iaq/data_models.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct IaqData { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `building_id`, `measurement_point_id`, `host`, `port`, and `unit_id` are never read [INFO] [stdout] --> src/model/heat/data_models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HeatMeasurementPoint { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 9 | pub building_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub measurement_point_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub host: IpAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub port: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | pub unit_id: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeatMeasurementPoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HeatData` is never constructed [INFO] [stdout] --> src/model/heat/data_models.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub struct HeatData { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `building_id`, `measurement_point_id`, `host`, `port`, and `unit_id` are never read [INFO] [stdout] --> src/model/gas/data_models.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct GasMeasurementPoint { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 9 | pub building_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub measurement_point_id: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | pub host: IpAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub port: i32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | pub unit_id: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GasMeasurementPoint` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GasData` is never constructed [INFO] [stdout] --> src/model/gas/data_models.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct GasData { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_gas_data` is never used [INFO] [stdout] --> src/service/collect/gas.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn handle_gas_data(state: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_format` is never used [INFO] [stdout] --> src/service/collect/gas.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn data_format(reg: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_modbus_data` is never used [INFO] [stdout] --> src/service/collect/gas.rs:129:10 [INFO] [stdout] | [INFO] [stdout] 129 | async fn get_modbus_data(client: &mut ModbusContext, start_addr: u16, length: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collection_gems_3500_modbus` is never used [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:22:14 [INFO] [stdout] | [INFO] [stdout] 22 | pub async fn collection_gems_3500_modbus(state: &Arc) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_from_ch` is never used [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn register_from_ch(ch: u16) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_axum_server_direct_data` is never used [INFO] [stdout] --> src/service/collect/gems_3500_modbus.rs:127:14 [INFO] [stdout] | [INFO] [stdout] 127 | pub async fn post_axum_server_direct_data(params: RequestBody) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_heat_data` is never used [INFO] [stdout] --> src/service/collect/heat.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn handle_heat_data(state: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_format` is never used [INFO] [stdout] --> src/service/collect/heat.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn data_format(reg: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_modbus_data` is never used [INFO] [stdout] --> src/service/collect/heat.rs:103:10 [INFO] [stdout] | [INFO] [stdout] 103 | async fn get_modbus_data(client: &mut ModbusContext, start_addr: u16, length: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_modbus_register_return_type` is never used [INFO] [stdout] --> src/service/read/interpret_modbus_register.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn interpret_modbus_register_return_type( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_modbus_u16` is never used [INFO] [stdout] --> src/service/read/interpret_modbus_register.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn interpret_modbus_u16(data: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_modbus_u32` is never used [INFO] [stdout] --> src/service/read/interpret_modbus_register.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn interpret_modbus_u32(data: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_modbus_i16` is never used [INFO] [stdout] --> src/service/read/interpret_modbus_register.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn interpret_modbus_i16(data: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `interpret_modbus_i32` is never used [INFO] [stdout] --> src/service/read/interpret_modbus_register.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn interpret_modbus_i32(data: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MODBUS_TIMEOUT` is never used [INFO] [stdout] --> src/service/read/read_from_addr.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const MODBUS_TIMEOUT: Duration = Duration::from_secs(1); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_point_map` is never used [INFO] [stdout] --> src/service/read/read_from_addr.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 15 | pub async fn read_from_point_map( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_register` is never used [INFO] [stdout] --> src/service/read/read_from_register.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn read_from_register( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_count` is never used [INFO] [stdout] --> src/service/read/read_from_register.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn register_count(value_type: &ModbusRegisterType) -> u16 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u8` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn read_u8(cur: &mut Cursor<&[u8]>) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_u16` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn read_u16(cur: &mut Cursor<&[u8]>) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_bytes` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn read_bytes(cur: &mut Cursor<&[u8]>, n: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_str_n` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn read_str_n(cur: &mut Cursor<&[u8]>, n: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_checksum` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:47:8 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn valid_checksum(hdr: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `valid_function_code` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn valid_function_code(code: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_mac_upper` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn format_mac_upper(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `aqm_data` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn aqm_data(registers: &[u16]) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ccm_data` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn ccm_data(registers: &[u16]) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_iaq` is never used [INFO] [stdout] --> src/service/read/iaq/util_funcs.rs:103:14 [INFO] [stdout] | [INFO] [stdout] 103 | pub async fn handle_iaq(state: Arc, mac: String, registers: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `gems_3500_memory_map_table`, `gems_measurement_point`, `iaq_measurement_point`, `heat_measurement_point`, and `gas_measurement_point` are never read [INFO] [stdout] --> src/service/server/get_state.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct ServerState { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 13 | pub gems_3500_memory_map_table: Gems3500MemoryMapTable, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | pub gems_measurement_point: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | pub iaq_measurement_point: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub heat_measurement_point: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub gas_measurement_point: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_udp_listener` is never used [INFO] [stdout] --> src/service/server/udp_listener.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn run_udp_listener(state: Arc) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECONDS_1MINUTE` is never used [INFO] [stdout] --> src/service/task/common_scheduling.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const SECONDS_1MINUTE: u64 = 60; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECONDS_5MINUTE` is never used [INFO] [stdout] --> src/service/task/common_scheduling.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const SECONDS_5MINUTE: u64 = 300; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `schedule_task` is never used [INFO] [stdout] --> src/service/task/common_scheduling.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | pub async fn schedule_task( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `schedule_message` is never used [INFO] [stdout] --> src/service/task/common_scheduling.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn schedule_message(task_descriptor: &str, now: DateTime, next: DateTime) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_run_time_delay` is never used [INFO] [stdout] --> src/service/task/common_scheduling.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn next_run_time_delay(cycle_seconds: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MINUTE` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const MINUTE: &str = "MINUTE"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOUR` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const HOUR: &str = "HOUR"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DAY` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const DAY: &str = "DAY"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `utc_now_minute` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn utc_now_minute() -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `utc_now_hour` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn utc_now_hour() -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `utc_now_day` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn utc_now_day() -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `utc_now_ago` is never used [INFO] [stdout] --> src/service/utils/create_time.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn utc_now_ago(ago_seconds: i64, time_unit: &str) -> DateTime { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 37s [INFO] running `Command { std: "docker" "inspect" "cfd5ac3a9c6734c8180fab20d362b23690a9c9271e5fb32071abd6372c1d7dbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cfd5ac3a9c6734c8180fab20d362b23690a9c9271e5fb32071abd6372c1d7dbd", kill_on_drop: false }` [INFO] [stdout] cfd5ac3a9c6734c8180fab20d362b23690a9c9271e5fb32071abd6372c1d7dbd