[INFO] fetching crate bq40z50-rx 0.8.0... [INFO] checking bq40z50-rx-0.8.0 against try#fcfb0ffc7ed7fc631df1136063939ef648434735 for pr-152543 [INFO] extracting crate bq40z50-rx 0.8.0 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate bq40z50-rx 0.8.0 [INFO] finished tweaking crates.io crate bq40z50-rx 0.8.0 [INFO] tweaked toml for crates.io crate bq40z50-rx 0.8.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate bq40z50-rx 0.8.0 on toolchain fcfb0ffc7ed7fc631df1136063939ef648434735 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fcfb0ffc7ed7fc631df1136063939ef648434735" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate bq40z50-rx 0.8.0 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" "+fcfb0ffc7ed7fc631df1136063939ef648434735" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fcfb0ffc7ed7fc631df1136063939ef648434735" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d253849149f08068690487f5284b867ee32a9d2b693c16c5d4b7e1e457123f19 [INFO] running `Command { std: "docker" "start" "-a" "d253849149f08068690487f5284b867ee32a9d2b693c16c5d4b7e1e457123f19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d253849149f08068690487f5284b867ee32a9d2b693c16c5d4b7e1e457123f19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d253849149f08068690487f5284b867ee32a9d2b693c16c5d4b7e1e457123f19", kill_on_drop: false }` [INFO] [stdout] d253849149f08068690487f5284b867ee32a9d2b693c16c5d4b7e1e457123f19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+fcfb0ffc7ed7fc631df1136063939ef648434735" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e2e7a6fe8b6c3ca78675ae78739f3d015a883b12c07b9bc36bc7293b3c179e2d [INFO] running `Command { std: "docker" "start" "-a" "e2e7a6fe8b6c3ca78675ae78739f3d015a883b12c07b9bc36bc7293b3c179e2d", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking embedded-hal v1.0.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling arraydeque v0.5.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Checking nb v1.1.0 [INFO] [stderr] Compiling embedded-hal-async v1.0.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling embedded-io-async v0.6.1 [INFO] [stderr] Compiling heapless v0.8.0 [INFO] [stderr] Compiling embedded-crc-macros v1.0.0 [INFO] [stderr] Compiling smbus-pec v1.0.1 [INFO] [stderr] Checking hash32 v0.3.1 [INFO] [stderr] Checking nb v0.1.3 [INFO] [stderr] Checking embedded-io v0.6.1 [INFO] [stderr] Compiling embassy-time-queue-utils v0.3.0 [INFO] [stderr] Checking embassy-executor-timer-queue v0.1.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling embassy-time-driver v0.2.1 [INFO] [stderr] Compiling bq40z50-rx v0.8.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling embassy-executor v0.9.1 [INFO] [stderr] Checking critical-section v1.2.0 [INFO] [stderr] Checking embedded-hal v0.2.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Checking embedded-hal-nb v1.0.0 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Checking embassy-time v0.5.0 [INFO] [stderr] Checking static_cell v2.1.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num v0.3.1 [INFO] [stderr] Checking embedded-time v0.12.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling yaml-rust2 v0.9.0 [INFO] [stderr] Checking embedded-hal-mock v0.11.1 [INFO] [stderr] Compiling dd-manifest-tree v1.0.0 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling device-driver-generation v1.0.4 [INFO] [stderr] Compiling bitfield-struct v0.10.1 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Checking embedded-batteries v0.2.0 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Checking embedded-batteries-async v0.3.0 [INFO] [stderr] Compiling device-driver-macros v1.0.4 [INFO] [stderr] Checking device-driver v1.0.4 [INFO] [stdout] warning: unused macro definition: `implement_embedded_batteries` [INFO] [stdout] --> src/common.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | macro_rules! implement_embedded_batteries { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `implement_embedded_batteries` [INFO] [stdout] --> src/common.rs:413:16 [INFO] [stdout] | [INFO] [stdout] 413 | pub(crate) use implement_embedded_batteries; [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 macro definition: `bq40z50_tests` [INFO] [stdout] --> src/tests.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | macro_rules! bq40z50_tests { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bq40z50_tests` [INFO] [stdout] --> src/tests.rs:827:16 [INFO] [stdout] | [INFO] [stdout] 827 | pub(crate) use bq40z50_tests; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/lib.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | mod tests; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `versions::*` [INFO] [stdout] --> src/lib.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub use versions::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CapacityModeState` is never used [INFO] [stdout] --> src/common.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) enum CapacityModeState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LARGEST_REG_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) const LARGEST_REG_SIZE_BYTES: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LARGEST_CMD_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) const LARGEST_CMD_SIZE_BYTES: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LARGEST_BUF_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) const LARGEST_BUF_SIZE_BYTES: usize = 33; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LARGEST_DF_BLOCK_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) const LARGEST_DF_BLOCK_SIZE_BYTES: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BQ_ADDR` is never used [INFO] [stdout] --> src/consts.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) const BQ_ADDR: u8 = 0x0B; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAC_CMD_ADDR_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) const MAC_CMD_ADDR_SIZE_BYTES: u8 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAC_CMD_ADDR_SIZE_BITS` is never used [INFO] [stdout] --> src/consts.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const MAC_CMD_ADDR_SIZE_BITS: u8 = MAC_CMD_ADDR_SIZE_BYTES * 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAC_CMD` is never used [INFO] [stdout] --> src/consts.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const MAC_CMD: u8 = 0x44; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECURITY_KEYS_CMD` is never used [INFO] [stdout] --> src/consts.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) const SECURITY_KEYS_CMD: [u8; MAC_CMD_ADDR_SIZE_BYTES as usize] = 0x0035u16.to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECURITY_KEYS_DATA_LEN_BYTES` is never used [INFO] [stdout] --> src/consts.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const SECURITY_KEYS_DATA_LEN_BYTES: u8 = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECURITY_KEYS_LEN_BYTES` is never used [INFO] [stdout] --> src/consts.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) const SECURITY_KEYS_LEN_BYTES: u8 = SECURITY_KEYS_DATA_LEN_BYTES + MAC_CMD_ADDR_SIZE_BYTES; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUTH_KEY_CMD` is never used [INFO] [stdout] --> src/consts.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const AUTH_KEY_CMD: [u8; MAC_CMD_ADDR_SIZE_BYTES as usize] = 0x0037u16.to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUTH_KEY_DATA_LEN_BYTES` is never used [INFO] [stdout] --> src/consts.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const AUTH_KEY_DATA_LEN_BYTES: u8 = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUTH_KEY_LEN_BYTES` is never used [INFO] [stdout] --> src/consts.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const AUTH_KEY_LEN_BYTES: u8 = AUTH_KEY_DATA_LEN_BYTES + MAC_CMD_ADDR_SIZE_BYTES; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MFG_INFO_CMD` is never used [INFO] [stdout] --> src/consts.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const MFG_INFO_CMD: u8 = 0x70; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHRG_VOLTAGE_OVERRIDE_CMD` is never used [INFO] [stdout] --> src/consts.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) const CHRG_VOLTAGE_OVERRIDE_CMD: [u8; MAC_CMD_ADDR_SIZE_BYTES as usize] = 0x00B0u16.to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHRG_VOLTAGE_OVERRIDE_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) const CHRG_VOLTAGE_OVERRIDE_SIZE_BYTES: u8 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_ERROR_BACKOFF_DELAY_MS` is never used [INFO] [stdout] --> src/consts.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) const DEFAULT_ERROR_BACKOFF_DELAY_MS: u32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceInterface` is never constructed [INFO] [stdout] --> src/interface.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct DeviceInterface { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/interface.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl DeviceInterface { [INFO] [stdout] | ------------------------------------------------------------------ associated function in this implementation [INFO] [stdout] 24 | pub fn new(i2c: I2C, delay: DELAY) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mac_write_with_retries` and `mac_write_to_df_with_retries` are never used [INFO] [stdout] --> src/interface.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 33 | impl DeviceInterface { [INFO] [stdout] | ------------------------------------------------------------------ methods in this implementation [INFO] [stdout] 34 | pub(crate) async fn mac_write_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub(crate) async fn mac_write_to_df_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_with_retries_internal`, `write_with_retries`, `read_with_retries`, `mac_read_with_retries`, `mac_read_from_df_with_retries`, and `mac_read_from_df_with_retries_pec` are never used [INFO] [stdout] --> src/interface.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 90 | impl DeviceInterface { [INFO] [stdout] | ------------------------------------------------------------------ methods in this implementation [INFO] [stdout] 91 | async fn write_with_retries_internal(&mut self, write: &[u8]) -> Result<(), BQ40Z50Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub(crate) async fn write_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub(crate) async fn read_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub(crate) async fn mac_read_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub(crate) async fn mac_read_from_df_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | pub(crate) async fn mac_read_from_df_with_retries_pec( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling embassy-executor-macros v0.7.0 [INFO] [stdout] warning: unused macro definition: `implement_embedded_batteries` [INFO] [stdout] --> src/common.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | macro_rules! implement_embedded_batteries { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `implement_embedded_batteries` [INFO] [stdout] --> src/common.rs:413:16 [INFO] [stdout] | [INFO] [stdout] 413 | pub(crate) use implement_embedded_batteries; [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 macro definition: `bq40z50_tests` [INFO] [stdout] --> src/tests.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | macro_rules! bq40z50_tests { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bq40z50_tests` [INFO] [stdout] --> src/tests.rs:827:16 [INFO] [stdout] | [INFO] [stdout] 827 | pub(crate) use bq40z50_tests; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `versions::*` [INFO] [stdout] --> src/lib.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub use versions::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CapacityModeState` is never used [INFO] [stdout] --> src/common.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | pub(crate) enum CapacityModeState { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LARGEST_REG_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | pub(crate) const LARGEST_REG_SIZE_BYTES: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LARGEST_CMD_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:2:18 [INFO] [stdout] | [INFO] [stdout] 2 | pub(crate) const LARGEST_CMD_SIZE_BYTES: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LARGEST_BUF_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | pub(crate) const LARGEST_BUF_SIZE_BYTES: usize = 33; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LARGEST_DF_BLOCK_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub(crate) const LARGEST_DF_BLOCK_SIZE_BYTES: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BQ_ADDR` is never used [INFO] [stdout] --> src/consts.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) const BQ_ADDR: u8 = 0x0B; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAC_CMD_ADDR_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:7:18 [INFO] [stdout] | [INFO] [stdout] 7 | pub(crate) const MAC_CMD_ADDR_SIZE_BYTES: u8 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAC_CMD_ADDR_SIZE_BITS` is never used [INFO] [stdout] --> src/consts.rs:8:18 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) const MAC_CMD_ADDR_SIZE_BITS: u8 = MAC_CMD_ADDR_SIZE_BYTES * 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAC_CMD` is never used [INFO] [stdout] --> src/consts.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) const MAC_CMD: u8 = 0x44; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECURITY_KEYS_CMD` is never used [INFO] [stdout] --> src/consts.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 12 | pub(crate) const SECURITY_KEYS_CMD: [u8; MAC_CMD_ADDR_SIZE_BYTES as usize] = 0x0035u16.to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECURITY_KEYS_DATA_LEN_BYTES` is never used [INFO] [stdout] --> src/consts.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | pub(crate) const SECURITY_KEYS_DATA_LEN_BYTES: u8 = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECURITY_KEYS_LEN_BYTES` is never used [INFO] [stdout] --> src/consts.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 14 | pub(crate) const SECURITY_KEYS_LEN_BYTES: u8 = SECURITY_KEYS_DATA_LEN_BYTES + MAC_CMD_ADDR_SIZE_BYTES; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUTH_KEY_CMD` is never used [INFO] [stdout] --> src/consts.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 16 | pub(crate) const AUTH_KEY_CMD: [u8; MAC_CMD_ADDR_SIZE_BYTES as usize] = 0x0037u16.to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUTH_KEY_DATA_LEN_BYTES` is never used [INFO] [stdout] --> src/consts.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) const AUTH_KEY_DATA_LEN_BYTES: u8 = 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `AUTH_KEY_LEN_BYTES` is never used [INFO] [stdout] --> src/consts.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 18 | pub(crate) const AUTH_KEY_LEN_BYTES: u8 = AUTH_KEY_DATA_LEN_BYTES + MAC_CMD_ADDR_SIZE_BYTES; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MFG_INFO_CMD` is never used [INFO] [stdout] --> src/consts.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) const MFG_INFO_CMD: u8 = 0x70; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHRG_VOLTAGE_OVERRIDE_CMD` is never used [INFO] [stdout] --> src/consts.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | pub(crate) const CHRG_VOLTAGE_OVERRIDE_CMD: [u8; MAC_CMD_ADDR_SIZE_BYTES as usize] = 0x00B0u16.to_le_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHRG_VOLTAGE_OVERRIDE_SIZE_BYTES` is never used [INFO] [stdout] --> src/consts.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) const CHRG_VOLTAGE_OVERRIDE_SIZE_BYTES: u8 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_ERROR_BACKOFF_DELAY_MS` is never used [INFO] [stdout] --> src/consts.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) const DEFAULT_ERROR_BACKOFF_DELAY_MS: u32 = 10; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeviceInterface` is never constructed [INFO] [stdout] --> src/interface.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct DeviceInterface { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/interface.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl DeviceInterface { [INFO] [stdout] | ------------------------------------------------------------------ associated function in this implementation [INFO] [stdout] 24 | pub fn new(i2c: I2C, delay: DELAY) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `mac_write_with_retries` and `mac_write_to_df_with_retries` are never used [INFO] [stdout] --> src/interface.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 33 | impl DeviceInterface { [INFO] [stdout] | ------------------------------------------------------------------ methods in this implementation [INFO] [stdout] 34 | pub(crate) async fn mac_write_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub(crate) async fn mac_write_to_df_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `write_with_retries_internal`, `write_with_retries`, `read_with_retries`, `mac_read_with_retries`, `mac_read_from_df_with_retries`, and `mac_read_from_df_with_retries_pec` are never used [INFO] [stdout] --> src/interface.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 90 | impl DeviceInterface { [INFO] [stdout] | ------------------------------------------------------------------ methods in this implementation [INFO] [stdout] 91 | async fn write_with_retries_internal(&mut self, write: &[u8]) -> Result<(), BQ40Z50Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub(crate) async fn write_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub(crate) async fn read_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 196 | pub(crate) async fn mac_read_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 287 | pub(crate) async fn mac_read_from_df_with_retries( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | pub(crate) async fn mac_read_from_df_with_retries_pec( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.59s [INFO] running `Command { std: "docker" "inspect" "e2e7a6fe8b6c3ca78675ae78739f3d015a883b12c07b9bc36bc7293b3c179e2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2e7a6fe8b6c3ca78675ae78739f3d015a883b12c07b9bc36bc7293b3c179e2d", kill_on_drop: false }` [INFO] [stdout] e2e7a6fe8b6c3ca78675ae78739f3d015a883b12c07b9bc36bc7293b3c179e2d