[INFO] cloning repository https://github.com/v0l/victron_pure_ess [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/v0l/victron_pure_ess" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fv0l%2Fvictron_pure_ess", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fv0l%2Fvictron_pure_ess'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d590a3b42cc7d4e391403dcb9c825cec69f9ef23 [INFO] checking v0l/victron_pure_ess against master#8424f8e8cdf07010967a57584fd647b30e930d4d for pr-120095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fv0l%2Fvictron_pure_ess" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/v0l/victron_pure_ess on toolchain 8424f8e8cdf07010967a57584fd647b30e930d4d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/v0l/victron_pure_ess [INFO] finished tweaking git repo https://github.com/v0l/victron_pure_ess [INFO] tweaked toml for git repo https://github.com/v0l/victron_pure_ess written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/v0l/victron_pure_ess 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" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tokio-modbus v0.5.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f36f6f63a6017e99c3c4730987984d1b4dce4aad00e1c31e0968b84998f5dc4c [INFO] running `Command { std: "docker" "start" "-a" "f36f6f63a6017e99c3c4730987984d1b4dce4aad00e1c31e0968b84998f5dc4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f36f6f63a6017e99c3c4730987984d1b4dce4aad00e1c31e0968b84998f5dc4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f36f6f63a6017e99c3c4730987984d1b4dce4aad00e1c31e0968b84998f5dc4c", kill_on_drop: false }` [INFO] [stdout] f36f6f63a6017e99c3c4730987984d1b4dce4aad00e1c31e0968b84998f5dc4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+8424f8e8cdf07010967a57584fd647b30e930d4d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 554e8f61cda060f1192c305c6a30953adcb6cc3cecd46f8542efcccf84414248 [INFO] running `Command { std: "docker" "start" "-a" "554e8f61cda060f1192c305c6a30953adcb6cc3cecd46f8542efcccf84414248", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.90 [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking mio v0.8.2 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking tokio-modbus v0.5.2 [INFO] [stderr] Checking ve_smart_ess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::victron::ve_battery::VictronBattery` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::victron::ve_battery::VictronBattery; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RateDischarge` [INFO] [stdout] --> src/smart_ess/mod.rs:8:51 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::smart_ess::rate::{DischargeMode, Rate, RateDischarge}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::victron::ve_battery::VictronBattery` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::victron::ve_battery::VictronBattery; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_charge` is never used [INFO] [stdout] --> src/smart_ess/mod.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Controller { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn next_charge(&self, from: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Input` is never constructed [INFO] [stdout] --> src/victron/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Side { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 11 | Input, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Side` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `L3` is never constructed [INFO] [stdout] --> src/victron/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Line { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | L3 = 3, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Line` 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: methods `read_bool` and `read_i16` are never used [INFO] [stdout] --> src/victron/client.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl VictronClient { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn read_bool(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn read_i16(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Mode` is never constructed [INFO] [stdout] --> src/victron/ess.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum Register { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 55 | Mode(Hub4Mode), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_param` is never used [INFO] [stdout] --> src/victron/ess.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 58 | impl VictronESS { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn get_param(&mut self, reg: Register) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Register { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 116 | ActiveInputCurrentLimit, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 117 | [INFO] [stdout] 118 | BatteryVoltage, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 119 | BatteryCurrent, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 120 | [INFO] [stdout] 121 | PhaseCount, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 122 | ActiveInput, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | State, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 126 | Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 127 | Alarm(Alarm), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 128 | [INFO] [stdout] 129 | ACInputIgnore(Line, bool), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Line1`, `Line2`, and `Disconnected` are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum ActiveInput { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 134 | Line1, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 135 | Line2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 136 | Disconnected, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActiveInput` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 183 | pub enum Alarm { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 184 | HighTemperature(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 185 | LowBattery(AlarmState), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 186 | Overload(AlarmState), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 187 | TemperatureSensor(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 188 | VoltageSensor(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 189 | [INFO] [stdout] 190 | LineTemperature(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 191 | LineLowBattery(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 192 | LineOverload(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 193 | LineRipple(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 194 | [INFO] [stdout] 195 | PhaseRotation(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 196 | GridLost(AlarmState), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Alarm` 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: methods `get_state`, `get_mode`, `set_mode`, `get_active_input`, and `get_alarms` are never used [INFO] [stdout] --> src/victron/ve_bus.rs:245:18 [INFO] [stdout] | [INFO] [stdout] 199 | impl VictronBus { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 245 | pub async fn get_state(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub async fn get_mode(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub async fn set_mode(&mut self, mode: Mode) -> Result<(), VictronError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub async fn get_active_input(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub async fn get_alarms(&mut self) -> Result, VictronError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VictronBattery` is never constructed [INFO] [stdout] --> src/victron/ve_battery.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct VictronBattery { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `capacity` are never used [INFO] [stdout] --> src/victron/ve_battery.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl VictronBattery { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 10 | pub async fn new(addr: SocketAddr, unit: u8) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub async fn capacity(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_charge` is never used [INFO] [stdout] --> src/smart_ess/mod.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Controller { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn next_charge(&self, from: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Input` is never constructed [INFO] [stdout] --> src/victron/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Side { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 11 | Input, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Side` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `L3` is never constructed [INFO] [stdout] --> src/victron/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Line { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | L3 = 3, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Line` 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: methods `read_bool` and `read_i16` are never used [INFO] [stdout] --> src/victron/client.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl VictronClient { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn read_bool(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn read_i16(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Mode` is never constructed [INFO] [stdout] --> src/victron/ess.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum Register { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 55 | Mode(Hub4Mode), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_param` is never used [INFO] [stdout] --> src/victron/ess.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 58 | impl VictronESS { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn get_param(&mut self, reg: Register) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Register { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 116 | ActiveInputCurrentLimit, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 117 | [INFO] [stdout] 118 | BatteryVoltage, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 119 | BatteryCurrent, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 120 | [INFO] [stdout] 121 | PhaseCount, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 122 | ActiveInput, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | State, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 126 | Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 127 | Alarm(Alarm), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 128 | [INFO] [stdout] 129 | ACInputIgnore(Line, bool), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Line1`, `Line2`, and `Disconnected` are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum ActiveInput { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 134 | Line1, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 135 | Line2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 136 | Disconnected, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActiveInput` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 183 | pub enum Alarm { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 184 | HighTemperature(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 185 | LowBattery(AlarmState), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 186 | Overload(AlarmState), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 187 | TemperatureSensor(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 188 | VoltageSensor(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 189 | [INFO] [stdout] 190 | LineTemperature(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 191 | LineLowBattery(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 192 | LineOverload(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 193 | LineRipple(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 194 | [INFO] [stdout] 195 | PhaseRotation(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 196 | GridLost(AlarmState), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Alarm` 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: methods `get_state`, `get_mode`, `set_mode`, `get_active_input`, and `get_alarms` are never used [INFO] [stdout] --> src/victron/ve_bus.rs:245:18 [INFO] [stdout] | [INFO] [stdout] 199 | impl VictronBus { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 245 | pub async fn get_state(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub async fn get_mode(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub async fn set_mode(&mut self, mode: Mode) -> Result<(), VictronError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub async fn get_active_input(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub async fn get_alarms(&mut self) -> Result, VictronError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VictronBattery` is never constructed [INFO] [stdout] --> src/victron/ve_battery.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct VictronBattery { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `capacity` are never used [INFO] [stdout] --> src/victron/ve_battery.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl VictronBattery { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 10 | pub async fn new(addr: SocketAddr, unit: u8) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub async fn capacity(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.60s [INFO] running `Command { std: "docker" "inspect" "554e8f61cda060f1192c305c6a30953adcb6cc3cecd46f8542efcccf84414248", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "554e8f61cda060f1192c305c6a30953adcb6cc3cecd46f8542efcccf84414248", kill_on_drop: false }` [INFO] [stdout] 554e8f61cda060f1192c305c6a30953adcb6cc3cecd46f8542efcccf84414248 [INFO] checking v0l/victron_pure_ess against try#047472f299946caf090d1b5608ae4bd9f0416256+rustflags=-Ddereferencing_mut_binding for pr-120095 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fv0l%2Fvictron_pure_ess" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/v0l/victron_pure_ess on toolchain 047472f299946caf090d1b5608ae4bd9f0416256 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/v0l/victron_pure_ess [INFO] finished tweaking git repo https://github.com/v0l/victron_pure_ess [INFO] tweaked toml for git repo https://github.com/v0l/victron_pure_ess written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/v0l/victron_pure_ess 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" "+047472f299946caf090d1b5608ae4bd9f0416256" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ddf594b48a100837537e13c122be5b8df7074180f3b281ab074fe7ef1a8904fc [INFO] running `Command { std: "docker" "start" "-a" "ddf594b48a100837537e13c122be5b8df7074180f3b281ab074fe7ef1a8904fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ddf594b48a100837537e13c122be5b8df7074180f3b281ab074fe7ef1a8904fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddf594b48a100837537e13c122be5b8df7074180f3b281ab074fe7ef1a8904fc", kill_on_drop: false }` [INFO] [stdout] ddf594b48a100837537e13c122be5b8df7074180f3b281ab074fe7ef1a8904fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Ddereferencing_mut_binding" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+047472f299946caf090d1b5608ae4bd9f0416256" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3922ffe063d845998d51a782ae1f82c06ed6a0c95d01e1461f7e2080d5ec3de1 [INFO] running `Command { std: "docker" "start" "-a" "3922ffe063d845998d51a782ae1f82c06ed6a0c95d01e1461f7e2080d5ec3de1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.90 [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking mio v0.8.2 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Checking tokio v1.17.0 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Checking tokio-modbus v0.5.2 [INFO] [stderr] Checking ve_smart_ess v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::victron::ve_battery::VictronBattery` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::victron::ve_battery::VictronBattery; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::victron::ve_battery::VictronBattery` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::victron::ve_battery::VictronBattery; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RateDischarge` [INFO] [stdout] --> src/smart_ess/mod.rs:8:51 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::smart_ess::rate::{DischargeMode, Rate, RateDischarge}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:309:33 [INFO] [stdout] | [INFO] [stdout] 309 | HighTemperature(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:309:33 [INFO] [stdout] | [INFO] [stdout] 309 | HighTemperature(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: requested on the command line with `-D dereferencing-mut-binding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:310:28 [INFO] [stdout] | [INFO] [stdout] 310 | LowBattery(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:310:28 [INFO] [stdout] | [INFO] [stdout] 310 | LowBattery(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:311:26 [INFO] [stdout] | [INFO] [stdout] 311 | Overload(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:311:26 [INFO] [stdout] | [INFO] [stdout] 311 | Overload(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:312:35 [INFO] [stdout] | [INFO] [stdout] 312 | TemperatureSensor(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:312:35 [INFO] [stdout] | [INFO] [stdout] 312 | TemperatureSensor(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:313:31 [INFO] [stdout] | [INFO] [stdout] 313 | VoltageSensor(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:313:31 [INFO] [stdout] | [INFO] [stdout] 313 | VoltageSensor(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:314:36 [INFO] [stdout] | [INFO] [stdout] 314 | LineTemperature(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:314:36 [INFO] [stdout] | [INFO] [stdout] 314 | LineTemperature(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:315:35 [INFO] [stdout] | [INFO] [stdout] 315 | LineLowBattery(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:315:35 [INFO] [stdout] | [INFO] [stdout] 315 | LineLowBattery(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:316:33 [INFO] [stdout] | [INFO] [stdout] 316 | LineOverload(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:316:33 [INFO] [stdout] | [INFO] [stdout] 316 | LineOverload(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:317:31 [INFO] [stdout] | [INFO] [stdout] 317 | LineRipple(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:317:31 [INFO] [stdout] | [INFO] [stdout] 317 | LineRipple(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:318:31 [INFO] [stdout] | [INFO] [stdout] 318 | PhaseRotation(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:318:31 [INFO] [stdout] | [INFO] [stdout] 318 | PhaseRotation(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:319:26 [INFO] [stdout] | [INFO] [stdout] 319 | GridLost(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:319:26 [INFO] [stdout] | [INFO] [stdout] 319 | GridLost(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:309:33 [INFO] [stdout] | [INFO] [stdout] 309 | HighTemperature(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:309:33 [INFO] [stdout] | [INFO] [stdout] 309 | HighTemperature(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] = note: requested on the command line with `-D dereferencing-mut-binding` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:310:28 [INFO] [stdout] | [INFO] [stdout] 310 | LowBattery(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:310:28 [INFO] [stdout] | [INFO] [stdout] 310 | LowBattery(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:311:26 [INFO] [stdout] | [INFO] [stdout] 311 | Overload(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:311:26 [INFO] [stdout] | [INFO] [stdout] 311 | Overload(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:312:35 [INFO] [stdout] | [INFO] [stdout] 312 | TemperatureSensor(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:312:35 [INFO] [stdout] | [INFO] [stdout] 312 | TemperatureSensor(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:313:31 [INFO] [stdout] | [INFO] [stdout] 313 | VoltageSensor(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:313:31 [INFO] [stdout] | [INFO] [stdout] 313 | VoltageSensor(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:314:36 [INFO] [stdout] | [INFO] [stdout] 314 | LineTemperature(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:314:36 [INFO] [stdout] | [INFO] [stdout] 314 | LineTemperature(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:315:35 [INFO] [stdout] | [INFO] [stdout] 315 | LineLowBattery(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:315:35 [INFO] [stdout] | [INFO] [stdout] 315 | LineLowBattery(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:316:33 [INFO] [stdout] | [INFO] [stdout] 316 | LineOverload(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:316:33 [INFO] [stdout] | [INFO] [stdout] 316 | LineOverload(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:317:31 [INFO] [stdout] | [INFO] [stdout] 317 | LineRipple(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:317:31 [INFO] [stdout] | [INFO] [stdout] 317 | LineRipple(_, mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:318:31 [INFO] [stdout] | [INFO] [stdout] 318 | PhaseRotation(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:318:31 [INFO] [stdout] | [INFO] [stdout] 318 | PhaseRotation(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: dereferencing `mut` binding [INFO] [stdout] --> src/victron/ve_bus.rs:319:26 [INFO] [stdout] | [INFO] [stdout] 319 | GridLost(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ `mut` dereferences the type of this binding [INFO] [stdout] | [INFO] [stdout] help: this will change in edition 2024 [INFO] [stdout] --> src/victron/ve_bus.rs:319:26 [INFO] [stdout] | [INFO] [stdout] 319 | GridLost(mut _v) => _v = state, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_charge` is never used [INFO] [stdout] --> src/smart_ess/mod.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Controller { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn next_charge(&self, from: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Input` is never constructed [INFO] [stdout] --> src/victron/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Side { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 11 | Input, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Side` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `L3` is never constructed [INFO] [stdout] --> src/victron/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Line { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | L3 = 3, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Line` 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: methods `read_bool` and `read_i16` are never used [INFO] [stdout] --> src/victron/client.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl VictronClient { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn read_bool(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn read_i16(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Mode` is never constructed [INFO] [stdout] --> src/victron/ess.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum Register { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 55 | Mode(Hub4Mode), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_param` is never used [INFO] [stdout] --> src/victron/ess.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 58 | impl VictronESS { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn get_param(&mut self, reg: Register) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Register { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 116 | ActiveInputCurrentLimit, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 117 | [INFO] [stdout] 118 | BatteryVoltage, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 119 | BatteryCurrent, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 120 | [INFO] [stdout] 121 | PhaseCount, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 122 | ActiveInput, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | State, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 126 | Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 127 | Alarm(Alarm), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 128 | [INFO] [stdout] 129 | ACInputIgnore(Line, bool), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Line1`, `Line2`, and `Disconnected` are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum ActiveInput { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 134 | Line1, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 135 | Line2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 136 | Disconnected, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActiveInput` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 183 | pub enum Alarm { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 184 | HighTemperature(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 185 | LowBattery(AlarmState), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 186 | Overload(AlarmState), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 187 | TemperatureSensor(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 188 | VoltageSensor(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 189 | [INFO] [stdout] 190 | LineTemperature(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 191 | LineLowBattery(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 192 | LineOverload(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 193 | LineRipple(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 194 | [INFO] [stdout] 195 | PhaseRotation(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 196 | GridLost(AlarmState), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Alarm` 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: methods `get_state`, `get_mode`, `set_mode`, `get_active_input`, and `get_alarms` are never used [INFO] [stdout] --> src/victron/ve_bus.rs:245:18 [INFO] [stdout] | [INFO] [stdout] 199 | impl VictronBus { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 245 | pub async fn get_state(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub async fn get_mode(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub async fn set_mode(&mut self, mode: Mode) -> Result<(), VictronError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub async fn get_active_input(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub async fn get_alarms(&mut self) -> Result, VictronError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VictronBattery` is never constructed [INFO] [stdout] --> src/victron/ve_battery.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct VictronBattery { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `capacity` are never used [INFO] [stdout] --> src/victron/ve_battery.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl VictronBattery { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 10 | pub async fn new(addr: SocketAddr, unit: u8) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub async fn capacity(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ve_smart_ess` (bin "ve_smart_ess") due to 12 previous errors; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: method `next_charge` is never used [INFO] [stdout] --> src/smart_ess/mod.rs:109:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl Controller { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn next_charge(&self, from: DateTime) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Input` is never constructed [INFO] [stdout] --> src/victron/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Side { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 11 | Input, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Side` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `L3` is never constructed [INFO] [stdout] --> src/victron/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Line { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 19 | L3 = 3, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `Line` 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: methods `read_bool` and `read_i16` are never used [INFO] [stdout] --> src/victron/client.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl VictronClient { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn read_bool(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn read_i16(&mut self, addr: u16) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Mode` is never constructed [INFO] [stdout] --> src/victron/ess.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum Register { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 55 | Mode(Hub4Mode), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_param` is never used [INFO] [stdout] --> src/victron/ess.rs:65:18 [INFO] [stdout] | [INFO] [stdout] 58 | impl VictronESS { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn get_param(&mut self, reg: Register) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 105 | pub enum Register { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 116 | ActiveInputCurrentLimit, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 117 | [INFO] [stdout] 118 | BatteryVoltage, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 119 | BatteryCurrent, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 120 | [INFO] [stdout] 121 | PhaseCount, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 122 | ActiveInput, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | State, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 126 | Mode, [INFO] [stdout] | ^^^^ [INFO] [stdout] 127 | Alarm(Alarm), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 128 | [INFO] [stdout] 129 | ACInputIgnore(Line, bool), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Register` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Line1`, `Line2`, and `Disconnected` are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 133 | pub enum ActiveInput { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 134 | Line1, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 135 | Line2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 136 | Disconnected, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ActiveInput` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/victron/ve_bus.rs:184:5 [INFO] [stdout] | [INFO] [stdout] 183 | pub enum Alarm { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 184 | HighTemperature(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 185 | LowBattery(AlarmState), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 186 | Overload(AlarmState), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 187 | TemperatureSensor(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 188 | VoltageSensor(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 189 | [INFO] [stdout] 190 | LineTemperature(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 191 | LineLowBattery(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 192 | LineOverload(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 193 | LineRipple(Line, AlarmState), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 194 | [INFO] [stdout] 195 | PhaseRotation(AlarmState), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 196 | GridLost(AlarmState), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Alarm` 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: methods `get_state`, `get_mode`, `set_mode`, `get_active_input`, and `get_alarms` are never used [INFO] [stdout] --> src/victron/ve_bus.rs:245:18 [INFO] [stdout] | [INFO] [stdout] 199 | impl VictronBus { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 245 | pub async fn get_state(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 249 | pub async fn get_mode(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | pub async fn set_mode(&mut self, mode: Mode) -> Result<(), VictronError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub async fn get_active_input(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 275 | pub async fn get_alarms(&mut self) -> Result, VictronError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VictronBattery` is never constructed [INFO] [stdout] --> src/victron/ve_battery.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct VictronBattery { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `capacity` are never used [INFO] [stdout] --> src/victron/ve_battery.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl VictronBattery { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 10 | pub async fn new(addr: SocketAddr, unit: u8) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub async fn capacity(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ve_smart_ess` (bin "ve_smart_ess" test) due to 12 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3922ffe063d845998d51a782ae1f82c06ed6a0c95d01e1461f7e2080d5ec3de1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3922ffe063d845998d51a782ae1f82c06ed6a0c95d01e1461f7e2080d5ec3de1", kill_on_drop: false }` [INFO] [stdout] 3922ffe063d845998d51a782ae1f82c06ed6a0c95d01e1461f7e2080d5ec3de1