[INFO] cloning repository https://github.com/henrikvtcodes/cs2210 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/henrikvtcodes/cs2210" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenrikvtcodes%2Fcs2210", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenrikvtcodes%2Fcs2210'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f9a62e0e75e49687affb365b3a6747a110fc94fd [INFO] checking henrikvtcodes/cs2210 against master#64b185eddaa1d7ddf5e0c024be23b9cbba6c1722 for pr-143929 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhenrikvtcodes%2Fcs2210" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/henrikvtcodes/cs2210 [INFO] finished tweaking git repo https://github.com/henrikvtcodes/cs2210 [INFO] tweaked toml for git repo https://github.com/henrikvtcodes/cs2210 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/henrikvtcodes/cs2210 on toolchain 64b185eddaa1d7ddf5e0c024be23b9cbba6c1722 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/henrikvtcodes/cs2210 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" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rppal v0.20.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4d9a46a747b7536f335804068ebc8267fc2dbb35dce8a742d90258fe47427266 [INFO] running `Command { std: "docker" "start" "-a" "4d9a46a747b7536f335804068ebc8267fc2dbb35dce8a742d90258fe47427266", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4d9a46a747b7536f335804068ebc8267fc2dbb35dce8a742d90258fe47427266", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d9a46a747b7536f335804068ebc8267fc2dbb35dce8a742d90258fe47427266", kill_on_drop: false }` [INFO] [stdout] 4d9a46a747b7536f335804068ebc8267fc2dbb35dce8a742d90258fe47427266 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+64b185eddaa1d7ddf5e0c024be23b9cbba6c1722" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 25a748a50329ae017d24130ad49139f28dfe9a9df0dbf1b90f66d1d780969558 [INFO] running `Command { std: "docker" "start" "-a" "25a748a50329ae017d24130ad49139f28dfe9a9df0dbf1b90f66d1d780969558", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking litemap v0.7.4 [INFO] [stderr] Checking writeable v0.5.5 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling libc v0.2.167 [INFO] [stderr] Checking icu_properties_data v1.5.0 [INFO] [stderr] Checking write16 v1.0.0 [INFO] [stderr] Checking icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking utf16_iter v1.0.5 [INFO] [stderr] Checking utf8_iter v1.0.4 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Compiling prometheus v0.13.4 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking ascii v1.1.0 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking chunked_transfer v1.5.0 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking rppal v0.20.0 [INFO] [stderr] Checking time v0.3.37 [INFO] [stderr] Compiling syn v2.0.90 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking tiny_http v0.10.0 [INFO] [stderr] Checking prometheus_exporter v0.8.5 [INFO] [stderr] Checking cs2210fp v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Gpio` and `OutputPin` [INFO] [stdout] --> src/ccs811.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use rppal::gpio::{Gpio, OutputPin}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `write` [INFO] [stdout] --> src/ccs811.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{self, write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/ccs811.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ccs811::Ccs811Data` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ccs811::Ccs811Data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rppal::gpio::Gpio` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rppal::gpio::Gpio; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Gpio` and `OutputPin` [INFO] [stdout] --> src/ccs811.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use rppal::gpio::{Gpio, OutputPin}; [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `write` [INFO] [stdout] --> src/ccs811.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{self, write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> src/ccs811.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ccs811::Ccs811Data` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ccs811::Ccs811Data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rppal::gpio::Gpio` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rppal::gpio::Gpio; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::sleep` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::thread::sleep; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REG_PRESSURE_START` is never used [INFO] [stdout] --> src/bmp280.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const REG_PRESSURE_START: u8 = 0xF7; // Start of Pressure Register [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Idle`, `Sec10`, and `Sec60` are never constructed [INFO] [stdout] --> src/ccs811.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Ccs811Mode { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 12 | Idle = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | Sec1 = 1, [INFO] [stdout] 14 | Sec10 = 2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | Sec60 = 3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_SLAVEADDR_1` is never used [INFO] [stdout] --> src/ccs811.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const CCS811_SLAVEADDR_1: u16 = 0x5B; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_ERR` is never used [INFO] [stdout] --> src/ccs811.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const CCS811_ERR: u8 = 0xE0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_ENV_DATA` is never used [INFO] [stdout] --> src/ccs811.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub const CCS811_ENV_DATA: u8 = 0x05; // 4 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_BASELINE` is never used [INFO] [stdout] --> src/ccs811.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const CCS811_BASELINE: u8 = 0x11; // 2 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_HW_VERSION` is never used [INFO] [stdout] --> src/ccs811.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | pub const CCS811_HW_VERSION: u8 = 0x21; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_FW_BOOT_VERSION` is never used [INFO] [stdout] --> src/ccs811.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const CCS811_FW_BOOT_VERSION: u8 = 0x23; // 2 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_FW_APP_VERSION` is never used [INFO] [stdout] --> src/ccs811.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const CCS811_FW_APP_VERSION: u8 = 0x24; // 2 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_APP_ERASE` is never used [INFO] [stdout] --> src/ccs811.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | pub const CCS811_APP_ERASE: u8 = 0xF1; // 4 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_APP_DATA` is never used [INFO] [stdout] --> src/ccs811.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const CCS811_APP_DATA: u8 = 0xF2; // 9 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_APP_VERIFY` is never used [INFO] [stdout] --> src/ccs811.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const CCS811_APP_VERIFY: u8 = 0xF3; // 0 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_STATUS_APP_ERASE` is never used [INFO] [stdout] --> src/ccs811.rs:39:11 [INFO] [stdout] | [INFO] [stdout] 39 | pub const CCS811_STATUS_APP_ERASE: u8 = 0b01000000; // Else no erase completed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_STATUS_APP_VALID` is never used [INFO] [stdout] --> src/ccs811.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | pub const CCS811_STATUS_APP_VALID: u8 = 0b00010000; // Else no valid app firmware loaded [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_WAIT_AFTER_WAKE_US` is never used [INFO] [stdout] --> src/ccs811.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub const CCS811_WAIT_AFTER_WAKE_US: Duration = Duration::from_micros(50); // The CCS811 needs a wait after WAKE signal [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_WAIT_AFTER_APPERASE_MS` is never used [INFO] [stdout] --> src/ccs811.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub const CCS811_WAIT_AFTER_APPERASE_MS: Duration = Duration::from_millis(500); // The CCS811 needs a wait after app erase (300ms from sp... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_WAIT_AFTER_APPVERIFY_MS` is never used [INFO] [stdout] --> src/ccs811.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | pub const CCS811_WAIT_AFTER_APPVERIFY_MS: Duration = Duration::from_millis(70); // The CCS811 needs a wait after app verify [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_WAIT_AFTER_APPDATA_MS` is never used [INFO] [stdout] --> src/ccs811.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const CCS811_WAIT_AFTER_APPDATA_MS: Duration = Duration::from_millis(50); // The CCS811 needs a wait after writing app data [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `float_to_bytes` is never used [INFO] [stdout] --> src/ccs811.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn float_to_bytes(value: f32) -> [u8; 2] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw` is never read [INFO] [stdout] --> src/ccs811.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Ccs811Data { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 69 | pub raw: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REG_PRESSURE_START` is never used [INFO] [stdout] --> src/bmp280.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const REG_PRESSURE_START: u8 = 0xF7; // Start of Pressure Register [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Idle`, `Sec10`, and `Sec60` are never constructed [INFO] [stdout] --> src/ccs811.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Ccs811Mode { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 12 | Idle = 0, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | Sec1 = 1, [INFO] [stdout] 14 | Sec10 = 2, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | Sec60 = 3, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_SLAVEADDR_1` is never used [INFO] [stdout] --> src/ccs811.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | pub const CCS811_SLAVEADDR_1: u16 = 0x5B; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_ERR` is never used [INFO] [stdout] --> src/ccs811.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const CCS811_ERR: u8 = 0xE0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_ENV_DATA` is never used [INFO] [stdout] --> src/ccs811.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub const CCS811_ENV_DATA: u8 = 0x05; // 4 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_BASELINE` is never used [INFO] [stdout] --> src/ccs811.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const CCS811_BASELINE: u8 = 0x11; // 2 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_HW_VERSION` is never used [INFO] [stdout] --> src/ccs811.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | pub const CCS811_HW_VERSION: u8 = 0x21; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_FW_BOOT_VERSION` is never used [INFO] [stdout] --> src/ccs811.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const CCS811_FW_BOOT_VERSION: u8 = 0x23; // 2 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_FW_APP_VERSION` is never used [INFO] [stdout] --> src/ccs811.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const CCS811_FW_APP_VERSION: u8 = 0x24; // 2 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_APP_ERASE` is never used [INFO] [stdout] --> src/ccs811.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | pub const CCS811_APP_ERASE: u8 = 0xF1; // 4 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_APP_DATA` is never used [INFO] [stdout] --> src/ccs811.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | pub const CCS811_APP_DATA: u8 = 0xF2; // 9 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_APP_VERIFY` is never used [INFO] [stdout] --> src/ccs811.rs:34:11 [INFO] [stdout] | [INFO] [stdout] 34 | pub const CCS811_APP_VERIFY: u8 = 0xF3; // 0 bytes [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_STATUS_APP_ERASE` is never used [INFO] [stdout] --> src/ccs811.rs:39:11 [INFO] [stdout] | [INFO] [stdout] 39 | pub const CCS811_STATUS_APP_ERASE: u8 = 0b01000000; // Else no erase completed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_STATUS_APP_VALID` is never used [INFO] [stdout] --> src/ccs811.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 41 | pub const CCS811_STATUS_APP_VALID: u8 = 0b00010000; // Else no valid app firmware loaded [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_WAIT_AFTER_WAKE_US` is never used [INFO] [stdout] --> src/ccs811.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub const CCS811_WAIT_AFTER_WAKE_US: Duration = Duration::from_micros(50); // The CCS811 needs a wait after WAKE signal [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_WAIT_AFTER_APPERASE_MS` is never used [INFO] [stdout] --> src/ccs811.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 46 | pub const CCS811_WAIT_AFTER_APPERASE_MS: Duration = Duration::from_millis(500); // The CCS811 needs a wait after app erase (300ms from sp... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_WAIT_AFTER_APPVERIFY_MS` is never used [INFO] [stdout] --> src/ccs811.rs:47:11 [INFO] [stdout] | [INFO] [stdout] 47 | pub const CCS811_WAIT_AFTER_APPVERIFY_MS: Duration = Duration::from_millis(70); // The CCS811 needs a wait after app verify [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CCS811_WAIT_AFTER_APPDATA_MS` is never used [INFO] [stdout] --> src/ccs811.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | pub const CCS811_WAIT_AFTER_APPDATA_MS: Duration = Duration::from_millis(50); // The CCS811 needs a wait after writing app data [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `float_to_bytes` is never used [INFO] [stdout] --> src/ccs811.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn float_to_bytes(value: f32) -> [u8; 2] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `raw` is never read [INFO] [stdout] --> src/ccs811.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Ccs811Data { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 69 | pub raw: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.12s [INFO] running `Command { std: "docker" "inspect" "25a748a50329ae017d24130ad49139f28dfe9a9df0dbf1b90f66d1d780969558", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25a748a50329ae017d24130ad49139f28dfe9a9df0dbf1b90f66d1d780969558", kill_on_drop: false }` [INFO] [stdout] 25a748a50329ae017d24130ad49139f28dfe9a9df0dbf1b90f66d1d780969558