[INFO] cloning repository https://github.com/salcedoinaki/BMS_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/salcedoinaki/BMS_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsalcedoinaki%2FBMS_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsalcedoinaki%2FBMS_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d6e8d246ba305d0f64016c93c643ed6af9bcf425 [INFO] testing salcedoinaki/BMS_rust against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsalcedoinaki%2FBMS_rust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/salcedoinaki/BMS_rust [INFO] finished tweaking git repo https://github.com/salcedoinaki/BMS_rust [INFO] tweaked toml for git repo https://github.com/salcedoinaki/BMS_rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/salcedoinaki/BMS_rust on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/salcedoinaki/BMS_rust 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5239bbc1cb52903c2821650521a6f22471bf29bf65b991bd337425a5cc364c8b [INFO] running `Command { std: "docker" "start" "-a" "5239bbc1cb52903c2821650521a6f22471bf29bf65b991bd337425a5cc364c8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5239bbc1cb52903c2821650521a6f22471bf29bf65b991bd337425a5cc364c8b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5239bbc1cb52903c2821650521a6f22471bf29bf65b991bd337425a5cc364c8b", kill_on_drop: false }` [INFO] [stdout] 5239bbc1cb52903c2821650521a6f22471bf29bf65b991bd337425a5cc364c8b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b74e032a27fc450ec514c04f3ebfe2d23f53c56d36260a9aa5ca54410411119 [INFO] running `Command { std: "docker" "start" "-a" "2b74e032a27fc450ec514c04f3ebfe2d23f53c56d36260a9aa5ca54410411119", kill_on_drop: false }` [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling once_cell v1.21.0 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling prettyplease v0.1.25 [INFO] [stderr] Compiling tokio v1.44.0 [INFO] [stderr] Compiling anymap2 v0.13.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling boolinator v2.4.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling implicit-clone v0.3.10 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling yew-macro v0.20.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling js-sys v0.3.77 [INFO] [stderr] Compiling console_error_panic_hook v0.1.7 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling pinned v0.1.0 [INFO] [stderr] Compiling prokio v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling web-sys v0.3.77 [INFO] [stderr] Compiling wasm-bindgen-futures v0.4.50 [INFO] [stderr] Compiling serde-wasm-bindgen v0.5.0 [INFO] [stderr] Compiling gloo-timers v0.2.6 [INFO] [stderr] Compiling gloo-utils v0.1.7 [INFO] [stderr] Compiling gloo-events v0.1.2 [INFO] [stderr] Compiling gloo-render v0.1.1 [INFO] [stderr] Compiling gloo-dialogs v0.1.1 [INFO] [stderr] Compiling console_log v0.2.2 [INFO] [stderr] Compiling gloo-console v0.2.3 [INFO] [stderr] Compiling gloo-storage v0.2.2 [INFO] [stderr] Compiling gloo-net v0.3.1 [INFO] [stderr] Compiling gloo-net v0.2.6 [INFO] [stderr] Compiling gloo-file v0.2.3 [INFO] [stderr] Compiling gloo-history v0.1.5 [INFO] [stderr] Compiling gloo-worker v0.2.1 [INFO] [stderr] Compiling gloo v0.8.1 [INFO] [stderr] Compiling gloo v0.5.0 [INFO] [stderr] Compiling yew v0.20.0 [INFO] [stderr] Compiling bms_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `read_battery_sensor` [INFO] [stdout] --> src/lib.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use sensors::{read_fuel_cell_sensor, read_battery_sensor}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen_futures::spawn_local` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use wasm_bindgen_futures::spawn_local; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gloo_net::http::Request` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use gloo_net::http::Request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `js_sys::Date` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use js_sys::Date; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yew::prelude::*` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use yew::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `voltage`, `current`, `hydrogen_flow`, and `temperature` are never read [INFO] [stdout] --> src/sensors.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct FuelCellSensorData { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 5 | pub voltage: f64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | pub current: f64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | pub hydrogen_flow: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub temperature: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FuelCellSensorData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BatterySensorData` is never constructed [INFO] [stdout] --> src/sensors.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct BatterySensorData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_battery_sensor` is never used [INFO] [stdout] --> src/sensors.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn read_battery_sensor(battery: &Battery) -> BatterySensorData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `regulate` is never used [INFO] [stdout] --> src/control.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl OxygenController { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn regulate(&mut self, desired: f64, measured: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Sensor` is never used [INFO] [stdout] --> src/hal.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Sensor { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DigitalOutput` is never used [INFO] [stdout] --> src/hal.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait DigitalOutput { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimulatedTemperatureSensor` is never constructed [INFO] [stdout] --> src/hal.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SimulatedTemperatureSensor [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimulatedActuator` is never constructed [INFO] [stdout] --> src/hal.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct SimulatedActuator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/hal.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl SimulatedActuator { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 38 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HardwareInterface` is never constructed [INFO] [stdout] --> src/hal.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct HardwareInterface [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read_temperature`, `activate_actuator`, `deactivate_actuator`, and `get_actuator_state` are never used [INFO] [stdout] --> src/hal.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 67 | / impl HardwareInterface [INFO] [stdout] 68 | | where [INFO] [stdout] 69 | | T: Sensor, [INFO] [stdout] 70 | | U: DigitalOutput, [INFO] [stdout] | |_____________________- methods in this implementation [INFO] [stdout] 71 | { [INFO] [stdout] 72 | pub fn read_temperature(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn activate_actuator(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn deactivate_actuator(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn get_actuator_state(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dP_mass` should have a snake case name [INFO] [stdout] --> src/simulation/manifold.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let dP_mass = (r_air * self.temperature / self.volume) * (mass_flow_in - mass_flow_out) * dt; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `d_p_mass` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dP_leak` should have a snake case name [INFO] [stdout] --> src/simulation/manifold.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let dP_leak = k_leak * (self.pressure - ambient_pressure) * dt; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `d_p_leak` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dP_vent` should have a snake case name [INFO] [stdout] --> src/simulation/manifold.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let dP_vent = if self.pressure > target_pressure { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `d_p_vent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dP_control` should have a snake case name [INFO] [stdout] --> src/simulation/manifold.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let dP_control = if self.pressure > target_pressure { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `d_p_control` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.28s [INFO] running `Command { std: "docker" "inspect" "2b74e032a27fc450ec514c04f3ebfe2d23f53c56d36260a9aa5ca54410411119", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b74e032a27fc450ec514c04f3ebfe2d23f53c56d36260a9aa5ca54410411119", kill_on_drop: false }` [INFO] [stdout] 2b74e032a27fc450ec514c04f3ebfe2d23f53c56d36260a9aa5ca54410411119 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 157bb265f84b9ecf2630907a27e299f03ad6b37ab14cccd2478e913ba9061781 [INFO] running `Command { std: "docker" "start" "-a" "157bb265f84b9ecf2630907a27e299f03ad6b37ab14cccd2478e913ba9061781", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `read_battery_sensor` [INFO] [stdout] --> src/lib.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use sensors::{read_fuel_cell_sensor, read_battery_sensor}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen_futures::spawn_local` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use wasm_bindgen_futures::spawn_local; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gloo_net::http::Request` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use gloo_net::http::Request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `js_sys::Date` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use js_sys::Date; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yew::prelude::*` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use yew::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `voltage`, `current`, `hydrogen_flow`, and `temperature` are never read [INFO] [stdout] --> src/sensors.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct FuelCellSensorData { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 5 | pub voltage: f64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 6 | pub current: f64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | pub hydrogen_flow: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 8 | pub temperature: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FuelCellSensorData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BatterySensorData` is never constructed [INFO] [stdout] --> src/sensors.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct BatterySensorData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_battery_sensor` is never used [INFO] [stdout] --> src/sensors.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn read_battery_sensor(battery: &Battery) -> BatterySensorData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `regulate` is never used [INFO] [stdout] --> src/control.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl OxygenController { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn regulate(&mut self, desired: f64, measured: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Sensor` is never used [INFO] [stdout] --> src/hal.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub trait Sensor { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `DigitalOutput` is never used [INFO] [stdout] --> src/hal.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait DigitalOutput { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimulatedTemperatureSensor` is never constructed [INFO] [stdout] --> src/hal.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SimulatedTemperatureSensor [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimulatedActuator` is never constructed [INFO] [stdout] --> src/hal.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct SimulatedActuator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/hal.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 37 | impl SimulatedActuator { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 38 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HardwareInterface` is never constructed [INFO] [stdout] --> src/hal.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub struct HardwareInterface [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `read_temperature`, `activate_actuator`, `deactivate_actuator`, and `get_actuator_state` are never used [INFO] [stdout] --> src/hal.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 67 | / impl HardwareInterface [INFO] [stdout] 68 | | where [INFO] [stdout] 69 | | T: Sensor, [INFO] [stdout] 70 | | U: DigitalOutput, [INFO] [stdout] | |_____________________- methods in this implementation [INFO] [stdout] 71 | { [INFO] [stdout] 72 | pub fn read_temperature(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn activate_actuator(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn deactivate_actuator(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn get_actuator_state(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dP_mass` should have a snake case name [INFO] [stdout] --> src/simulation/manifold.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let dP_mass = (r_air * self.temperature / self.volume) * (mass_flow_in - mass_flow_out) * dt; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `d_p_mass` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dP_leak` should have a snake case name [INFO] [stdout] --> src/simulation/manifold.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let dP_leak = k_leak * (self.pressure - ambient_pressure) * dt; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `d_p_leak` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dP_vent` should have a snake case name [INFO] [stdout] --> src/simulation/manifold.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let dP_vent = if self.pressure > target_pressure { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `d_p_vent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dP_control` should have a snake case name [INFO] [stdout] --> src/simulation/manifold.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let dP_control = if self.pressure > target_pressure { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `d_p_control` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bms_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `read_battery_sensor` [INFO] [stdout] --> src/lib.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use sensors::{read_fuel_cell_sensor, read_battery_sensor}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen_futures::spawn_local` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use wasm_bindgen_futures::spawn_local; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gloo_net::http::Request` [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use gloo_net::http::Request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `js_sys::Date` [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use js_sys::Date; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*` [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use wasm_bindgen::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `yew::prelude::*` [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use yew::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> src/simulation.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | bat.update(2.0, 5.0); [INFO] [stdout] | ^^^^^^---------- argument #3 of type `bool` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/simulation.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn update(&mut self, charge_current: f64, discharge_current: f64, charging_mode: bool) { [INFO] [stdout] | ^^^^^^ ------------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 197 | bat.update(2.0, 5.0, /* bool */); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bms_rust` (lib test) due to 1 previous error; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "157bb265f84b9ecf2630907a27e299f03ad6b37ab14cccd2478e913ba9061781", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "157bb265f84b9ecf2630907a27e299f03ad6b37ab14cccd2478e913ba9061781", kill_on_drop: false }` [INFO] [stdout] 157bb265f84b9ecf2630907a27e299f03ad6b37ab14cccd2478e913ba9061781