[INFO] fetching crate sths34pf80 0.1.13...
[INFO] testing sths34pf80-0.1.13 against master#ec6f9a5b4413f74386267ef8efc93712c2ce6db6 for pr-155739-1
[INFO] extracting crate sths34pf80 0.1.13 into /workspace/builds/worker-0-tc1/source
[INFO] started tweaking crates.io crate sths34pf80 0.1.13
[INFO] removed 0 missing examples
[INFO] finished tweaking crates.io crate sths34pf80 0.1.13
[INFO] tweaked toml for crates.io crate sths34pf80 0.1.13 written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate sths34pf80 0.1.13 on toolchain ec6f9a5b4413f74386267ef8efc93712c2ce6db6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate sths34pf80 0.1.13 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" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded pulldown-cmark v0.11.2
[INFO] [stderr]   Downloaded thiserror-impl v1.0.52
[INFO] [stderr]   Downloaded embedded-hal-async v1.0.0
[INFO] [stderr]   Downloaded shlex v1.2.0
[INFO] [stderr]   Downloaded windows-targets v0.52.0
[INFO] [stderr]   Downloaded bitfield v0.14.0
[INFO] [stderr]   Downloaded thiserror v1.0.52
[INFO] [stderr]   Downloaded embedded-hal v1.0.0
[INFO] [stderr]   Downloaded maybe-async-cfg v0.2.4
[INFO] [stderr]   Downloaded proc-macro2 v1.0.71
[INFO] [stderr]   Downloaded num-traits v0.2.17
[INFO] [stderr]   Downloaded anyhow v1.0.77
[INFO] [stderr]   Downloaded syn v2.0.43
[INFO] [stderr]   Downloaded windows_aarch64_gnullvm v0.52.0
[INFO] [stderr]   Downloaded windows_x86_64_gnullvm v0.52.0
[INFO] [stderr]   Downloaded embuild v0.31.4
[INFO] [stderr]   Downloaded libc v0.2.151
[INFO] [stderr]   Downloaded windows_aarch64_msvc v0.52.0
[INFO] [stderr]   Downloaded windows_x86_64_gnu v0.52.0
[INFO] [stderr]   Downloaded windows_i686_gnu v0.52.0
[INFO] [stderr]   Downloaded windows_x86_64_msvc v0.52.0
[INFO] [stderr]   Downloaded windows_i686_msvc v0.52.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b230effa44f2bc05ec3425ac96f989205e9f0b5c571f4ee8d552a7dfc55dff23
[INFO] running `Command { std: "docker" "start" "-a" "b230effa44f2bc05ec3425ac96f989205e9f0b5c571f4ee8d552a7dfc55dff23", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b230effa44f2bc05ec3425ac96f989205e9f0b5c571f4ee8d552a7dfc55dff23", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b230effa44f2bc05ec3425ac96f989205e9f0b5c571f4ee8d552a7dfc55dff23", kill_on_drop: false }`
[INFO] [stdout] b230effa44f2bc05ec3425ac96f989205e9f0b5c571f4ee8d552a7dfc55dff23
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b4167d1247b7a28b5ce4db4fcfcf2b3c96c63587beb7f267faf087d6a6bd282a
[INFO] running `Command { std: "docker" "start" "-a" "b4167d1247b7a28b5ce4db4fcfcf2b3c96c63587beb7f267faf087d6a6bd282a", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.71
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling pulldown-cmark v0.11.2
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]    Compiling bitfield v0.14.0
[INFO] [stderr]    Compiling unicase v2.7.0
[INFO] [stderr]    Compiling embedded-hal v1.0.0
[INFO] [stderr]    Compiling num-traits v0.2.17
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling maybe-async-cfg v0.2.4
[INFO] [stderr]    Compiling sths34pf80 v0.1.13 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variant `AVG_T8` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 |     AVG_T8 = 0x00,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT8`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_T4` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 31 |     AVG_T4 = 0x01,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT4`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_T2` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 32 |     AVG_T2 = 0x02,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_T1` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 33 |     AVG_T1 = 0x03,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS2` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 54 |     AVG_TMOS2 = 0x00,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS8` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:55:5
[INFO] [stdout]    |
[INFO] [stdout] 55 |     AVG_TMOS8 = 0x01,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos8`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS32` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:56:5
[INFO] [stdout]    |
[INFO] [stdout] 56 |     AVG_TMOS32 = 0x02,
[INFO] [stdout]    |     ^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS128` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:57:5
[INFO] [stdout]    |
[INFO] [stdout] 57 |     AVG_TMOS128 = 0x03,  // default
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos128`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS256` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 58 |     AVG_TMOS256 = 0x04,
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos256`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS512` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 59 |     AVG_TMOS512 = 0x05,
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos512`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS1024` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 60 |     AVG_TMOS1024 = 0x06,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos1024`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS2048` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     AVG_TMOS2048 = 0x07,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos2048`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Avg_trim` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:83:16
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub struct Avg_trim(u8);
[INFO] [stdout]    |                ^^^^^^^^ help: convert the identifier to upper camel case: `AvgTrim`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_POWERDOWN` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:98:5
[INFO] [stdout]    |
[INFO] [stdout] 98 |     ODR_POWERDOWN = 0x00,
[INFO] [stdout]    |     ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OdrPowerdown`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ025` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:99:5
[INFO] [stdout]    |
[INFO] [stdout] 99 |     ODR_HZ025 = 0x01,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz025`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ050` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:100:5
[INFO] [stdout]     |
[INFO] [stdout] 100 |     ODR_HZ050 = 0x02,
[INFO] [stdout]     |     ^^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz050`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ1` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:101:5
[INFO] [stdout]     |
[INFO] [stdout] 101 |     ODR_HZ1 = 0x03,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ2` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:102:5
[INFO] [stdout]     |
[INFO] [stdout] 102 |     ODR_HZ2 = 0x04,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ4` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:103:5
[INFO] [stdout]     |
[INFO] [stdout] 103 |     ODR_HZ4 = 0x05,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz4`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ8` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:104:5
[INFO] [stdout]     |
[INFO] [stdout] 104 |     ODR_HZ8 = 0x06,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz8`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ15` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:105:5
[INFO] [stdout]     |
[INFO] [stdout] 105 |     ODR_HZ15 = 0x07,
[INFO] [stdout]     |     ^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz15`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ30` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:106:5
[INFO] [stdout]     |
[INFO] [stdout] 106 |     ODR_HZ30 = 0x08,
[INFO] [stdout]     |     ^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz30`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `LPF_DIV` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:187:10
[INFO] [stdout]     |
[INFO] [stdout] 187 | pub enum LPF_DIV {
[INFO] [stdout]     |          ^^^^^^^ help: convert the identifier to upper camel case: `LpfDiv`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_9` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:188:5
[INFO] [stdout]     |
[INFO] [stdout] 188 |     STHS34PF80_LPF_ODR_DIV_9   = 0x00,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv9`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_20` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:189:5
[INFO] [stdout]     |
[INFO] [stdout] 189 |     STHS34PF80_LPF_ODR_DIV_20  = 0x01,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv20`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_50` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:190:5
[INFO] [stdout]     |
[INFO] [stdout] 190 |     STHS34PF80_LPF_ODR_DIV_50  = 0x02,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv50`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_100` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:191:5
[INFO] [stdout]     |
[INFO] [stdout] 191 |     STHS34PF80_LPF_ODR_DIV_100 = 0x03,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv100`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_200` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:192:5
[INFO] [stdout]     |
[INFO] [stdout] 192 |     STHS34PF80_LPF_ODR_DIV_200 = 0x04,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv200`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_400` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:193:5
[INFO] [stdout]     |
[INFO] [stdout] 193 |     STHS34PF80_LPF_ODR_DIV_400 = 0x05,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv400`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_800` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:194:5
[INFO] [stdout]     |
[INFO] [stdout] 194 |     STHS34PF80_LPF_ODR_DIV_800 = 0x06,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv800`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DeviceAddress` and `STHS34PF80_TPRESENCE_H`
[INFO] [stdout]   --> src/lib.rs:14:17
[INFO] [stdout]    |
[INFO] [stdout] 14 | ...::{DeviceAddress, STHS34PF80_CTRL0, STHS34PF80_HYST_MOTION, STHS34PF80_HYST_PRESENCE, STHS34PF80_HYST_TAMB_SHOCK, STHS34PF80_LPF2, STHS34PF80_MOTION_THS, STHS34PF80_PRESENCE_THS, STHS34PF80_TAMB_SHOCK_L, STHS34PF80_TAMB_SHOCK_THS, STHS34PF80_TMOTION_L, STHS34PF80_TOBJECT_L, STHS34PF80_TPRESENCE_H, S...
[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: `info`
[INFO] [stdout]   --> src/lib.rs:34:18
[INFO] [stdout]    |
[INFO] [stdout] 34 | use log::{debug, info};
[INFO] [stdout]    |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:134:12
[INFO] [stdout]     |
[INFO] [stdout] 134 |         if (result_buf[0] == STHS34PF80_PART_ID) {
[INFO] [stdout]     |            ^                                   ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 134 -         if (result_buf[0] == STHS34PF80_PART_ID) {
[INFO] [stdout] 134 +         if result_buf[0] == STHS34PF80_PART_ID {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:145:12
[INFO] [stdout]     |
[INFO] [stdout] 145 |         if ((result_buf[0] & 0x04) != 0x00) {
[INFO] [stdout]     |            ^                              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 145 -         if ((result_buf[0] & 0x04) != 0x00) {
[INFO] [stdout] 145 +         if (result_buf[0] & 0x04) != 0x00 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:322:12
[INFO] [stdout]     |
[INFO] [stdout] 322 |         if (len == 1) {
[INFO] [stdout]     |            ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 322 -         if (len == 1) {
[INFO] [stdout] 322 +         if len == 1 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:324:19
[INFO] [stdout]     |
[INFO] [stdout] 324 |         } else if (len == 2) {
[INFO] [stdout]     |                   ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 324 -         } else if (len == 2) {
[INFO] [stdout] 324 +         } else if len == 2 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:351:12
[INFO] [stdout]     |
[INFO] [stdout] 351 |         if (new_odr != Odr::ODR_POWERDOWN) {
[INFO] [stdout]     |            ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 351 -         if (new_odr != Odr::ODR_POWERDOWN) {
[INFO] [stdout] 351 +         if new_odr != Odr::ODR_POWERDOWN {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/lib.rs:401:12
[INFO] [stdout]     |
[INFO] [stdout] 401 |         Ok((false))
[INFO] [stdout]     |            ^     ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 401 -         Ok((false))
[INFO] [stdout] 401 +         Ok(false)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:406:12
[INFO] [stdout]     |
[INFO] [stdout] 406 |         if (!self.is_connected().await?) {
[INFO] [stdout]     |            ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 406 -         if (!self.is_connected().await?) {
[INFO] [stdout] 406 +         if !self.is_connected().await? {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:508:12
[INFO] [stdout]     |
[INFO] [stdout] 508 |         if (odr_new > odr_max) {
[INFO] [stdout]     |            ^                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 508 -         if (odr_new > odr_max) {
[INFO] [stdout] 508 +         if odr_new > odr_max {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:721:12
[INFO] [stdout]     |
[INFO] [stdout] 721 |         if ( (write_value < -128.0) || (write_value > 127.0) ) {
[INFO] [stdout]     |            ^^                                               ^^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 721 -         if ( (write_value < -128.0) || (write_value > 127.0) ) {
[INFO] [stdout] 721 +         if (write_value < -128.0) || (write_value > 127.0) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:761:12
[INFO] [stdout]     |
[INFO] [stdout] 761 |         if ((result_buf[0] & 0x01) != 0x00) {
[INFO] [stdout]     |            ^                              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 761 -         if ((result_buf[0] & 0x01) != 0x00) {
[INFO] [stdout] 761 +         if (result_buf[0] & 0x01) != 0x00 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:773:12
[INFO] [stdout]     |
[INFO] [stdout] 773 |         if (trigger) {
[INFO] [stdout]     |            ^       ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 773 -         if (trigger) {
[INFO] [stdout] 773 +         if trigger {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/lib.rs:902:15
[INFO] [stdout]     |
[INFO] [stdout] 902 |         while (forever) {
[INFO] [stdout]     |               ^       ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 902 -         while (forever) {
[INFO] [stdout] 902 +         while forever {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:904:20
[INFO] [stdout]     |
[INFO] [stdout] 904 |                 if (data_ready) {
[INFO] [stdout]     |                    ^          ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 904 -                 if (data_ready) {
[INFO] [stdout] 904 +                 if data_ready {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:908:28
[INFO] [stdout]     |
[INFO] [stdout] 908 |                         if (func_status.presence_flag()) {
[INFO] [stdout]     |                            ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 908 -                         if (func_status.presence_flag()) {
[INFO] [stdout] 908 +                         if func_status.presence_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:913:28
[INFO] [stdout]     |
[INFO] [stdout] 913 |                         if (func_status.mot_flag()) {
[INFO] [stdout]     |                            ^                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 913 -                         if (func_status.mot_flag()) {
[INFO] [stdout] 913 +                         if func_status.mot_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:918:28
[INFO] [stdout]     |
[INFO] [stdout] 918 |                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 918 -                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout] 918 +                         if func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:923:28
[INFO] [stdout]     |
[INFO] [stdout] 923 |                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                                                                                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 923 -                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout] 923 +                         if func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/lib.rs:952:15
[INFO] [stdout]     |
[INFO] [stdout] 952 |         while (!timeout) {
[INFO] [stdout]     |               ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 952 -         while (!timeout) {
[INFO] [stdout] 952 +         while !timeout {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:954:20
[INFO] [stdout]     |
[INFO] [stdout] 954 |                 if (data_ready) {
[INFO] [stdout]     |                    ^          ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 954 -                 if (data_ready) {
[INFO] [stdout] 954 +                 if data_ready {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:958:28
[INFO] [stdout]     |
[INFO] [stdout] 958 |                         if (func_status.presence_flag()) {
[INFO] [stdout]     |                            ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 958 -                         if (func_status.presence_flag()) {
[INFO] [stdout] 958 +                         if func_status.presence_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:963:28
[INFO] [stdout]     |
[INFO] [stdout] 963 |                         if (func_status.mot_flag()) {
[INFO] [stdout]     |                            ^                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 963 -                         if (func_status.mot_flag()) {
[INFO] [stdout] 963 +                         if func_status.mot_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:968:28
[INFO] [stdout]     |
[INFO] [stdout] 968 |                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 968 -                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout] 968 +                         if func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:973:28
[INFO] [stdout]     |
[INFO] [stdout] 973 |                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                                                                                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 973 -                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout] 973 +                         if func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:980:21
[INFO] [stdout]     |
[INFO] [stdout] 980 |                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout]     |                        ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 980 -                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout] 980 +                     if loop_count >= timeouts_50ms {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:991:24
[INFO] [stdout]     |
[INFO] [stdout] 991 |                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout]     |                        ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 991 -                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout] 991 +                     if loop_count >= timeouts_50ms {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `command_buffer` is never read
[INFO] [stdout]    --> src/lib.rs:226:9
[INFO] [stdout]     |
[INFO] [stdout] 226 |         command_buffer[0] = register_address;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `index` is never read
[INFO] [stdout]    --> src/lib.rs:247:32
[INFO] [stdout]     |
[INFO] [stdout] 247 |         let mut index: usize = 0;
[INFO] [stdout]     |                                ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 250 |             index = register_address as usize +i;
[INFO] [stdout]     |             ------------------------------------ `index` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `odr_max` is never read
[INFO] [stdout]    --> src/lib.rs:497:32
[INFO] [stdout]     |
[INFO] [stdout] 497 |         let mut odr_max: Odr = Odr::ODR_HZ1;
[INFO] [stdout]     |                                ^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] 498 |         match avg_trim.average_trim_tmos_flag() {
[INFO] [stdout] 499 |             AverageTrimTMOSFlag::AVG_TMOS2 => odr_max = Odr::ODR_HZ30,
[INFO] [stdout]     |                                               ----------------------- `odr_max` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `new_value` is never read
[INFO] [stdout]    --> src/lib.rs:772:33
[INFO] [stdout]     |
[INFO] [stdout] 772 |         let mut new_value: u8 = 0x00;
[INFO] [stdout]     |                                 ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 776 |             new_value = result_buf[0] & 0xfe;  // bit 0 reset for idle mode
[INFO] [stdout]     |             -------------------------------- `new_value` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.90s
[INFO] running `Command { std: "docker" "inspect" "b4167d1247b7a28b5ce4db4fcfcf2b3c96c63587beb7f267faf087d6a6bd282a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b4167d1247b7a28b5ce4db4fcfcf2b3c96c63587beb7f267faf087d6a6bd282a", kill_on_drop: false }`
[INFO] [stdout] b4167d1247b7a28b5ce4db4fcfcf2b3c96c63587beb7f267faf087d6a6bd282a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ec6f9a5b4413f74386267ef8efc93712c2ce6db6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 23500d3788b8c7c1e2ea1df8c8491a989e09ce0b8f9291d0c94cecc8c9d5f152
[INFO] running `Command { std: "docker" "start" "-a" "23500d3788b8c7c1e2ea1df8c8491a989e09ce0b8f9291d0c94cecc8c9d5f152", kill_on_drop: false }`
[INFO] [stdout] warning: variant `AVG_T8` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 |     AVG_T8 = 0x00,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT8`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_T4` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 31 |     AVG_T4 = 0x01,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT4`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_T2` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 32 |     AVG_T2 = 0x02,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_T1` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 33 |     AVG_T1 = 0x03,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS2` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 54 |     AVG_TMOS2 = 0x00,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS8` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:55:5
[INFO] [stdout]    |
[INFO] [stdout] 55 |     AVG_TMOS8 = 0x01,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos8`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS32` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:56:5
[INFO] [stdout]    |
[INFO] [stdout] 56 |     AVG_TMOS32 = 0x02,
[INFO] [stdout]    |     ^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS128` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:57:5
[INFO] [stdout]    |
[INFO] [stdout] 57 |     AVG_TMOS128 = 0x03,  // default
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos128`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS256` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 58 |     AVG_TMOS256 = 0x04,
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos256`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS512` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 59 |     AVG_TMOS512 = 0x05,
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos512`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS1024` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 60 |     AVG_TMOS1024 = 0x06,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos1024`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS2048` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     AVG_TMOS2048 = 0x07,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos2048`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Avg_trim` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:83:16
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub struct Avg_trim(u8);
[INFO] [stdout]    |                ^^^^^^^^ help: convert the identifier to upper camel case: `AvgTrim`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_POWERDOWN` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:98:5
[INFO] [stdout]    |
[INFO] [stdout] 98 |     ODR_POWERDOWN = 0x00,
[INFO] [stdout]    |     ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OdrPowerdown`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ025` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:99:5
[INFO] [stdout]    |
[INFO] [stdout] 99 |     ODR_HZ025 = 0x01,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz025`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ050` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:100:5
[INFO] [stdout]     |
[INFO] [stdout] 100 |     ODR_HZ050 = 0x02,
[INFO] [stdout]     |     ^^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz050`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ1` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:101:5
[INFO] [stdout]     |
[INFO] [stdout] 101 |     ODR_HZ1 = 0x03,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ2` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:102:5
[INFO] [stdout]     |
[INFO] [stdout] 102 |     ODR_HZ2 = 0x04,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ4` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:103:5
[INFO] [stdout]     |
[INFO] [stdout] 103 |     ODR_HZ4 = 0x05,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz4`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ8` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:104:5
[INFO] [stdout]     |
[INFO] [stdout] 104 |     ODR_HZ8 = 0x06,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz8`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ15` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:105:5
[INFO] [stdout]     |
[INFO] [stdout] 105 |     ODR_HZ15 = 0x07,
[INFO] [stdout]     |     ^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz15`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ30` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:106:5
[INFO] [stdout]     |
[INFO] [stdout] 106 |     ODR_HZ30 = 0x08,
[INFO] [stdout]     |     ^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz30`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `LPF_DIV` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:187:10
[INFO] [stdout]     |
[INFO] [stdout] 187 | pub enum LPF_DIV {
[INFO] [stdout]     |          ^^^^^^^ help: convert the identifier to upper camel case: `LpfDiv`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_9` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:188:5
[INFO] [stdout]     |
[INFO] [stdout] 188 |     STHS34PF80_LPF_ODR_DIV_9   = 0x00,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv9`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_20` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:189:5
[INFO] [stdout]     |
[INFO] [stdout] 189 |     STHS34PF80_LPF_ODR_DIV_20  = 0x01,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv20`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_50` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:190:5
[INFO] [stdout]     |
[INFO] [stdout] 190 |     STHS34PF80_LPF_ODR_DIV_50  = 0x02,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv50`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_100` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:191:5
[INFO] [stdout]     |
[INFO] [stdout] 191 |     STHS34PF80_LPF_ODR_DIV_100 = 0x03,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv100`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_200` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:192:5
[INFO] [stdout]     |
[INFO] [stdout] 192 |     STHS34PF80_LPF_ODR_DIV_200 = 0x04,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv200`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_400` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:193:5
[INFO] [stdout]     |
[INFO] [stdout] 193 |     STHS34PF80_LPF_ODR_DIV_400 = 0x05,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv400`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_800` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:194:5
[INFO] [stdout]     |
[INFO] [stdout] 194 |     STHS34PF80_LPF_ODR_DIV_800 = 0x06,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv800`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DeviceAddress` and `STHS34PF80_TPRESENCE_H`
[INFO] [stdout]   --> src/lib.rs:14:17
[INFO] [stdout]    |
[INFO] [stdout] 14 | ...::{DeviceAddress, STHS34PF80_CTRL0, STHS34PF80_HYST_MOTION, STHS34PF80_HYST_PRESENCE, STHS34PF80_HYST_TAMB_SHOCK, STHS34PF80_LPF2, STHS34PF80_MOTION_THS, STHS34PF80_PRESENCE_THS, STHS34PF80_TAMB_SHOCK_L, STHS34PF80_TAMB_SHOCK_THS, STHS34PF80_TMOTION_L, STHS34PF80_TOBJECT_L, STHS34PF80_TPRESENCE_H, S...
[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: `info`
[INFO] [stdout]   --> src/lib.rs:34:18
[INFO] [stdout]    |
[INFO] [stdout] 34 | use log::{debug, info};
[INFO] [stdout]    |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:134:12
[INFO] [stdout]     |
[INFO] [stdout] 134 |         if (result_buf[0] == STHS34PF80_PART_ID) {
[INFO] [stdout]     |            ^                                   ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 134 -         if (result_buf[0] == STHS34PF80_PART_ID) {
[INFO] [stdout] 134 +         if result_buf[0] == STHS34PF80_PART_ID {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:145:12
[INFO] [stdout]     |
[INFO] [stdout] 145 |         if ((result_buf[0] & 0x04) != 0x00) {
[INFO] [stdout]     |            ^                              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 145 -         if ((result_buf[0] & 0x04) != 0x00) {
[INFO] [stdout] 145 +         if (result_buf[0] & 0x04) != 0x00 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:322:12
[INFO] [stdout]     |
[INFO] [stdout] 322 |         if (len == 1) {
[INFO] [stdout]     |            ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 322 -         if (len == 1) {
[INFO] [stdout] 322 +         if len == 1 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:324:19
[INFO] [stdout]     |
[INFO] [stdout] 324 |         } else if (len == 2) {
[INFO] [stdout]     |                   ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 324 -         } else if (len == 2) {
[INFO] [stdout] 324 +         } else if len == 2 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:351:12
[INFO] [stdout]     |
[INFO] [stdout] 351 |         if (new_odr != Odr::ODR_POWERDOWN) {
[INFO] [stdout]     |            ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 351 -         if (new_odr != Odr::ODR_POWERDOWN) {
[INFO] [stdout] 351 +         if new_odr != Odr::ODR_POWERDOWN {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/lib.rs:401:12
[INFO] [stdout]     |
[INFO] [stdout] 401 |         Ok((false))
[INFO] [stdout]     |            ^     ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 401 -         Ok((false))
[INFO] [stdout] 401 +         Ok(false)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:406:12
[INFO] [stdout]     |
[INFO] [stdout] 406 |         if (!self.is_connected().await?) {
[INFO] [stdout]     |            ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 406 -         if (!self.is_connected().await?) {
[INFO] [stdout] 406 +         if !self.is_connected().await? {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:508:12
[INFO] [stdout]     |
[INFO] [stdout] 508 |         if (odr_new > odr_max) {
[INFO] [stdout]     |            ^                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 508 -         if (odr_new > odr_max) {
[INFO] [stdout] 508 +         if odr_new > odr_max {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:721:12
[INFO] [stdout]     |
[INFO] [stdout] 721 |         if ( (write_value < -128.0) || (write_value > 127.0) ) {
[INFO] [stdout]     |            ^^                                               ^^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 721 -         if ( (write_value < -128.0) || (write_value > 127.0) ) {
[INFO] [stdout] 721 +         if (write_value < -128.0) || (write_value > 127.0) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:761:12
[INFO] [stdout]     |
[INFO] [stdout] 761 |         if ((result_buf[0] & 0x01) != 0x00) {
[INFO] [stdout]     |            ^                              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 761 -         if ((result_buf[0] & 0x01) != 0x00) {
[INFO] [stdout] 761 +         if (result_buf[0] & 0x01) != 0x00 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:773:12
[INFO] [stdout]     |
[INFO] [stdout] 773 |         if (trigger) {
[INFO] [stdout]     |            ^       ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 773 -         if (trigger) {
[INFO] [stdout] 773 +         if trigger {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/lib.rs:902:15
[INFO] [stdout]     |
[INFO] [stdout] 902 |         while (forever) {
[INFO] [stdout]     |               ^       ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 902 -         while (forever) {
[INFO] [stdout] 902 +         while forever {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:904:20
[INFO] [stdout]     |
[INFO] [stdout] 904 |                 if (data_ready) {
[INFO] [stdout]     |                    ^          ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 904 -                 if (data_ready) {
[INFO] [stdout] 904 +                 if data_ready {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:908:28
[INFO] [stdout]     |
[INFO] [stdout] 908 |                         if (func_status.presence_flag()) {
[INFO] [stdout]     |                            ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 908 -                         if (func_status.presence_flag()) {
[INFO] [stdout] 908 +                         if func_status.presence_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:913:28
[INFO] [stdout]     |
[INFO] [stdout] 913 |                         if (func_status.mot_flag()) {
[INFO] [stdout]     |                            ^                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 913 -                         if (func_status.mot_flag()) {
[INFO] [stdout] 913 +                         if func_status.mot_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:918:28
[INFO] [stdout]     |
[INFO] [stdout] 918 |                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 918 -                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout] 918 +                         if func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:923:28
[INFO] [stdout]     |
[INFO] [stdout] 923 |                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                                                                                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 923 -                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout] 923 +                         if func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/lib.rs:952:15
[INFO] [stdout]     |
[INFO] [stdout] 952 |         while (!timeout) {
[INFO] [stdout]     |               ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 952 -         while (!timeout) {
[INFO] [stdout] 952 +         while !timeout {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:954:20
[INFO] [stdout]     |
[INFO] [stdout] 954 |                 if (data_ready) {
[INFO] [stdout]     |                    ^          ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 954 -                 if (data_ready) {
[INFO] [stdout] 954 +                 if data_ready {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:958:28
[INFO] [stdout]     |
[INFO] [stdout] 958 |                         if (func_status.presence_flag()) {
[INFO] [stdout]     |                            ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 958 -                         if (func_status.presence_flag()) {
[INFO] [stdout] 958 +                         if func_status.presence_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:963:28
[INFO] [stdout]     |
[INFO] [stdout] 963 |                         if (func_status.mot_flag()) {
[INFO] [stdout]     |                            ^                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 963 -                         if (func_status.mot_flag()) {
[INFO] [stdout] 963 +                         if func_status.mot_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:968:28
[INFO] [stdout]     |
[INFO] [stdout] 968 |                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 968 -                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout] 968 +                         if func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling sths34pf80 v0.1.13 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:973:28
[INFO] [stdout]     |
[INFO] [stdout] 973 |                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                                                                                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 973 -                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout] 973 +                         if func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:980:21
[INFO] [stdout]     |
[INFO] [stdout] 980 |                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout]     |                        ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 980 -                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout] 980 +                     if loop_count >= timeouts_50ms {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:991:24
[INFO] [stdout]     |
[INFO] [stdout] 991 |                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout]     |                        ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 991 -                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout] 991 +                     if loop_count >= timeouts_50ms {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `command_buffer` is never read
[INFO] [stdout]    --> src/lib.rs:226:9
[INFO] [stdout]     |
[INFO] [stdout] 226 |         command_buffer[0] = register_address;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `index` is never read
[INFO] [stdout]    --> src/lib.rs:247:32
[INFO] [stdout]     |
[INFO] [stdout] 247 |         let mut index: usize = 0;
[INFO] [stdout]     |                                ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 250 |             index = register_address as usize +i;
[INFO] [stdout]     |             ------------------------------------ `index` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `odr_max` is never read
[INFO] [stdout]    --> src/lib.rs:497:32
[INFO] [stdout]     |
[INFO] [stdout] 497 |         let mut odr_max: Odr = Odr::ODR_HZ1;
[INFO] [stdout]     |                                ^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] 498 |         match avg_trim.average_trim_tmos_flag() {
[INFO] [stdout] 499 |             AverageTrimTMOSFlag::AVG_TMOS2 => odr_max = Odr::ODR_HZ30,
[INFO] [stdout]     |                                               ----------------------- `odr_max` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `new_value` is never read
[INFO] [stdout]    --> src/lib.rs:772:33
[INFO] [stdout]     |
[INFO] [stdout] 772 |         let mut new_value: u8 = 0x00;
[INFO] [stdout]     |                                 ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 776 |             new_value = result_buf[0] & 0xfe;  // bit 0 reset for idle mode
[INFO] [stdout]     |             -------------------------------- `new_value` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `esp_idf_hal` in this scope
[INFO] [stdout]   --> examples/presence_motion_shock.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use esp_idf_hal::{
[INFO] [stdout]    |     ^^^^^^^^^^^ use of unresolved module or unlinked crate `esp_idf_hal`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `esp_idf_hal`, use `cargo add esp_idf_hal` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `esp_idf_hal` in this scope
[INFO] [stdout]   --> examples/presence_motion_shock.rs:23:5
[INFO] [stdout]    |
[INFO] [stdout] 23 | use esp_idf_hal::{gpio::PinDriver, prelude::Peripherals};
[INFO] [stdout]    |     ^^^^^^^^^^^ use of unresolved module or unlinked crate `esp_idf_hal`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `esp_idf_hal`, use `cargo add esp_idf_hal` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `anyhow`
[INFO] [stdout]   --> examples/presence_motion_shock.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use anyhow::Result;
[INFO] [stdout]    |     ^^^^^^ use of unresolved module or unlinked crate `anyhow`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `anyhow`, use `cargo add anyhow` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `esp_idf_sys`
[INFO] [stdout]   --> examples/presence_motion_shock.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use esp_idf_sys::{self as _};
[INFO] [stdout]    |     ^^^^^^^^^^^ use of unresolved module or unlinked crate `esp_idf_sys`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `esp_idf_sys`, use `cargo add esp_idf_sys` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_T8` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 |     AVG_T8 = 0x00,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT8`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_T4` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 31 |     AVG_T4 = 0x01,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT4`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_T2` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 32 |     AVG_T2 = 0x02,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_T1` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 33 |     AVG_T1 = 0x03,
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `AvgT1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS2` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:54:5
[INFO] [stdout]    |
[INFO] [stdout] 54 |     AVG_TMOS2 = 0x00,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS8` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:55:5
[INFO] [stdout]    |
[INFO] [stdout] 55 |     AVG_TMOS8 = 0x01,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos8`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS32` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:56:5
[INFO] [stdout]    |
[INFO] [stdout] 56 |     AVG_TMOS32 = 0x02,
[INFO] [stdout]    |     ^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos32`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS128` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:57:5
[INFO] [stdout]    |
[INFO] [stdout] 57 |     AVG_TMOS128 = 0x03,  // default
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos128`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS256` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:58:5
[INFO] [stdout]    |
[INFO] [stdout] 58 |     AVG_TMOS256 = 0x04,
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos256`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS512` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 59 |     AVG_TMOS512 = 0x05,
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos512`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS1024` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:60:5
[INFO] [stdout]    |
[INFO] [stdout] 60 |     AVG_TMOS1024 = 0x06,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos1024`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `AVG_TMOS2048` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 61 |     AVG_TMOS2048 = 0x07,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AvgTmos2048`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Avg_trim` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:83:16
[INFO] [stdout]    |
[INFO] [stdout] 83 |     pub struct Avg_trim(u8);
[INFO] [stdout]    |                ^^^^^^^^ help: convert the identifier to upper camel case: `AvgTrim`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_POWERDOWN` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:98:5
[INFO] [stdout]    |
[INFO] [stdout] 98 |     ODR_POWERDOWN = 0x00,
[INFO] [stdout]    |     ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OdrPowerdown`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ025` should have an upper camel case name
[INFO] [stdout]   --> src/data.rs:99:5
[INFO] [stdout]    |
[INFO] [stdout] 99 |     ODR_HZ025 = 0x01,
[INFO] [stdout]    |     ^^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz025`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ050` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:100:5
[INFO] [stdout]     |
[INFO] [stdout] 100 |     ODR_HZ050 = 0x02,
[INFO] [stdout]     |     ^^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz050`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ1` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:101:5
[INFO] [stdout]     |
[INFO] [stdout] 101 |     ODR_HZ1 = 0x03,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ2` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:102:5
[INFO] [stdout]     |
[INFO] [stdout] 102 |     ODR_HZ2 = 0x04,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ4` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:103:5
[INFO] [stdout]     |
[INFO] [stdout] 103 |     ODR_HZ4 = 0x05,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz4`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ8` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:104:5
[INFO] [stdout]     |
[INFO] [stdout] 104 |     ODR_HZ8 = 0x06,
[INFO] [stdout]     |     ^^^^^^^ help: convert the identifier to upper camel case: `OdrHz8`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ15` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:105:5
[INFO] [stdout]     |
[INFO] [stdout] 105 |     ODR_HZ15 = 0x07,
[INFO] [stdout]     |     ^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz15`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ODR_HZ30` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:106:5
[INFO] [stdout]     |
[INFO] [stdout] 106 |     ODR_HZ30 = 0x08,
[INFO] [stdout]     |     ^^^^^^^^ help: convert the identifier to upper camel case: `OdrHz30`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `LPF_DIV` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:187:10
[INFO] [stdout]     |
[INFO] [stdout] 187 | pub enum LPF_DIV {
[INFO] [stdout]     |          ^^^^^^^ help: convert the identifier to upper camel case: `LpfDiv`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_9` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:188:5
[INFO] [stdout]     |
[INFO] [stdout] 188 |     STHS34PF80_LPF_ODR_DIV_9   = 0x00,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv9`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_20` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:189:5
[INFO] [stdout]     |
[INFO] [stdout] 189 |     STHS34PF80_LPF_ODR_DIV_20  = 0x01,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv20`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_50` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:190:5
[INFO] [stdout]     |
[INFO] [stdout] 190 |     STHS34PF80_LPF_ODR_DIV_50  = 0x02,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv50`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_100` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:191:5
[INFO] [stdout]     |
[INFO] [stdout] 191 |     STHS34PF80_LPF_ODR_DIV_100 = 0x03,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv100`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_200` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:192:5
[INFO] [stdout]     |
[INFO] [stdout] 192 |     STHS34PF80_LPF_ODR_DIV_200 = 0x04,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv200`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_400` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:193:5
[INFO] [stdout]     |
[INFO] [stdout] 193 |     STHS34PF80_LPF_ODR_DIV_400 = 0x05,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv400`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `STHS34PF80_LPF_ODR_DIV_800` should have an upper camel case name
[INFO] [stdout]    --> src/data.rs:194:5
[INFO] [stdout]     |
[INFO] [stdout] 194 |     STHS34PF80_LPF_ODR_DIV_800 = 0x06,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `Sths34pf80LpfOdrDiv800`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DeviceAddress` and `STHS34PF80_TPRESENCE_H`
[INFO] [stdout]   --> src/lib.rs:14:17
[INFO] [stdout]    |
[INFO] [stdout] 14 | ...::{DeviceAddress, STHS34PF80_CTRL0, STHS34PF80_HYST_MOTION, STHS34PF80_HYST_PRESENCE, STHS34PF80_HYST_TAMB_SHOCK, STHS34PF80_LPF2, STHS34PF80_MOTION_THS, STHS34PF80_PRESENCE_THS, STHS34PF80_TAMB_SHOCK_L, STHS34PF80_TAMB_SHOCK_THS, STHS34PF80_TMOTION_L, STHS34PF80_TOBJECT_L, STHS34PF80_TPRESENCE_H, S...
[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: `info`
[INFO] [stdout]   --> src/lib.rs:34:18
[INFO] [stdout]    |
[INFO] [stdout] 34 | use log::{debug, info};
[INFO] [stdout]    |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:134:12
[INFO] [stdout]     |
[INFO] [stdout] 134 |         if (result_buf[0] == STHS34PF80_PART_ID) {
[INFO] [stdout]     |            ^                                   ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 134 -         if (result_buf[0] == STHS34PF80_PART_ID) {
[INFO] [stdout] 134 +         if result_buf[0] == STHS34PF80_PART_ID {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:145:12
[INFO] [stdout]     |
[INFO] [stdout] 145 |         if ((result_buf[0] & 0x04) != 0x00) {
[INFO] [stdout]     |            ^                              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 145 -         if ((result_buf[0] & 0x04) != 0x00) {
[INFO] [stdout] 145 +         if (result_buf[0] & 0x04) != 0x00 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:322:12
[INFO] [stdout]     |
[INFO] [stdout] 322 |         if (len == 1) {
[INFO] [stdout]     |            ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 322 -         if (len == 1) {
[INFO] [stdout] 322 +         if len == 1 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:324:19
[INFO] [stdout]     |
[INFO] [stdout] 324 |         } else if (len == 2) {
[INFO] [stdout]     |                   ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 324 -         } else if (len == 2) {
[INFO] [stdout] 324 +         } else if len == 2 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:351:12
[INFO] [stdout]     |
[INFO] [stdout] 351 |         if (new_odr != Odr::ODR_POWERDOWN) {
[INFO] [stdout]     |            ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 351 -         if (new_odr != Odr::ODR_POWERDOWN) {
[INFO] [stdout] 351 +         if new_odr != Odr::ODR_POWERDOWN {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/lib.rs:401:12
[INFO] [stdout]     |
[INFO] [stdout] 401 |         Ok((false))
[INFO] [stdout]     |            ^     ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 401 -         Ok((false))
[INFO] [stdout] 401 +         Ok(false)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:406:12
[INFO] [stdout]     |
[INFO] [stdout] 406 |         if (!self.is_connected().await?) {
[INFO] [stdout]     |            ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 406 -         if (!self.is_connected().await?) {
[INFO] [stdout] 406 +         if !self.is_connected().await? {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:508:12
[INFO] [stdout]     |
[INFO] [stdout] 508 |         if (odr_new > odr_max) {
[INFO] [stdout]     |            ^                 ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 508 -         if (odr_new > odr_max) {
[INFO] [stdout] 508 +         if odr_new > odr_max {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:721:12
[INFO] [stdout]     |
[INFO] [stdout] 721 |         if ( (write_value < -128.0) || (write_value > 127.0) ) {
[INFO] [stdout]     |            ^^                                               ^^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 721 -         if ( (write_value < -128.0) || (write_value > 127.0) ) {
[INFO] [stdout] 721 +         if (write_value < -128.0) || (write_value > 127.0) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:761:12
[INFO] [stdout]     |
[INFO] [stdout] 761 |         if ((result_buf[0] & 0x01) != 0x00) {
[INFO] [stdout]     |            ^                              ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 761 -         if ((result_buf[0] & 0x01) != 0x00) {
[INFO] [stdout] 761 +         if (result_buf[0] & 0x01) != 0x00 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:773:12
[INFO] [stdout]     |
[INFO] [stdout] 773 |         if (trigger) {
[INFO] [stdout]     |            ^       ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 773 -         if (trigger) {
[INFO] [stdout] 773 +         if trigger {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/lib.rs:902:15
[INFO] [stdout]     |
[INFO] [stdout] 902 |         while (forever) {
[INFO] [stdout]     |               ^       ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 902 -         while (forever) {
[INFO] [stdout] 902 +         while forever {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:904:20
[INFO] [stdout]     |
[INFO] [stdout] 904 |                 if (data_ready) {
[INFO] [stdout]     |                    ^          ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 904 -                 if (data_ready) {
[INFO] [stdout] 904 +                 if data_ready {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:908:28
[INFO] [stdout]     |
[INFO] [stdout] 908 |                         if (func_status.presence_flag()) {
[INFO] [stdout]     |                            ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 908 -                         if (func_status.presence_flag()) {
[INFO] [stdout] 908 +                         if func_status.presence_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:913:28
[INFO] [stdout]     |
[INFO] [stdout] 913 |                         if (func_status.mot_flag()) {
[INFO] [stdout]     |                            ^                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 913 -                         if (func_status.mot_flag()) {
[INFO] [stdout] 913 +                         if func_status.mot_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:918:28
[INFO] [stdout]     |
[INFO] [stdout] 918 |                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 918 -                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout] 918 +                         if func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:923:28
[INFO] [stdout]     |
[INFO] [stdout] 923 |                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                                                                                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 923 -                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout] 923 +                         if func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/lib.rs:952:15
[INFO] [stdout]     |
[INFO] [stdout] 952 |         while (!timeout) {
[INFO] [stdout]     |               ^        ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 952 -         while (!timeout) {
[INFO] [stdout] 952 +         while !timeout {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:954:20
[INFO] [stdout]     |
[INFO] [stdout] 954 |                 if (data_ready) {
[INFO] [stdout]     |                    ^          ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 954 -                 if (data_ready) {
[INFO] [stdout] 954 +                 if data_ready {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:958:28
[INFO] [stdout]     |
[INFO] [stdout] 958 |                         if (func_status.presence_flag()) {
[INFO] [stdout]     |                            ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 958 -                         if (func_status.presence_flag()) {
[INFO] [stdout] 958 +                         if func_status.presence_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:963:28
[INFO] [stdout]     |
[INFO] [stdout] 963 |                         if (func_status.mot_flag()) {
[INFO] [stdout]     |                            ^                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 963 -                         if (func_status.mot_flag()) {
[INFO] [stdout] 963 +                         if func_status.mot_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:968:28
[INFO] [stdout]     |
[INFO] [stdout] 968 |                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 968 -                         if (func_status.tamb_shock_flag()) {
[INFO] [stdout] 968 +                         if func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:973:28
[INFO] [stdout]     |
[INFO] [stdout] 973 |                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout]     |                            ^                                                                                      ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 973 -                         if (func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag()) {
[INFO] [stdout] 973 +                         if func_status.presence_flag() || func_status.mot_flag() || func_status.tamb_shock_flag() {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:980:21
[INFO] [stdout]     |
[INFO] [stdout] 980 |                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout]     |                        ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 980 -                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout] 980 +                     if loop_count >= timeouts_50ms {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/lib.rs:991:24
[INFO] [stdout]     |
[INFO] [stdout] 991 |                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout]     |                        ^                           ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 991 -                     if (loop_count >= timeouts_50ms) {
[INFO] [stdout] 991 +                     if loop_count >= timeouts_50ms {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `esp_idf_svc` in this scope
[INFO] [stdout]   --> examples/presence_motion_shock.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 33 |     esp_idf_svc::sys::link_patches();
[INFO] [stdout]    |     ^^^^^^^^^^^ use of unresolved module or unlinked crate `esp_idf_svc`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `esp_idf_svc`, use `cargo add esp_idf_svc` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `esp_idf_svc` in this scope
[INFO] [stdout]   --> examples/presence_motion_shock.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 |     esp_idf_svc::log::EspLogger::initialize_default();
[INFO] [stdout]    |     ^^^^^^^^^^^ use of unresolved module or unlinked crate `esp_idf_svc`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `esp_idf_svc`, use `cargo add esp_idf_svc` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `AverageTrimT1Flag`, `AverageTrimTMOSFlag`, `Gain`, and `Measurements`
[INFO] [stdout]   --> examples/presence_motion_shock.rs:28:25
[INFO] [stdout]    |
[INFO] [stdout] 28 | use sths34pf80::{data::{AverageTrimT1Flag, AverageTrimTMOSFlag, Gain, InterruptPinConfig, Measurements}, Sths34pf80};
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^  ^^^^                      ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> examples/presence_motion_shock.rs:104:12
[INFO] [stdout]     |
[INFO] [stdout] 104 |         if (new_int_config.get_u8_value() == int_pin_config) {
[INFO] [stdout]     |            ^                                               ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 104 -         if (new_int_config.get_u8_value() == int_pin_config) {
[INFO] [stdout] 104 +         if new_int_config.get_u8_value() == int_pin_config {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `kHz` found for type `{integer}` in the current scope
[INFO] [stdout]   --> examples/presence_motion_shock.rs:48:48
[INFO] [stdout]    |
[INFO] [stdout] 48 |     let config = I2cConfig::new().baudrate(100.kHz().into());
[INFO] [stdout]    |                                                ^^^ method not found in `{integer}`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `sths34pf80` (example "presence_motion_shock") due to 7 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: value assigned to `command_buffer` is never read
[INFO] [stdout]    --> src/lib.rs:226:9
[INFO] [stdout]     |
[INFO] [stdout] 226 |         command_buffer[0] = register_address;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `index` is never read
[INFO] [stdout]    --> src/lib.rs:247:32
[INFO] [stdout]     |
[INFO] [stdout] 247 |         let mut index: usize = 0;
[INFO] [stdout]     |                                ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 250 |             index = register_address as usize +i;
[INFO] [stdout]     |             ------------------------------------ `index` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `odr_max` is never read
[INFO] [stdout]    --> src/lib.rs:497:32
[INFO] [stdout]     |
[INFO] [stdout] 497 |         let mut odr_max: Odr = Odr::ODR_HZ1;
[INFO] [stdout]     |                                ^^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] 498 |         match avg_trim.average_trim_tmos_flag() {
[INFO] [stdout] 499 |             AverageTrimTMOSFlag::AVG_TMOS2 => odr_max = Odr::ODR_HZ30,
[INFO] [stdout]     |                                               ----------------------- `odr_max` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `new_value` is never read
[INFO] [stdout]    --> src/lib.rs:772:33
[INFO] [stdout]     |
[INFO] [stdout] 772 |         let mut new_value: u8 = 0x00;
[INFO] [stdout]     |                                 ^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 776 |             new_value = result_buf[0] & 0xfe;  // bit 0 reset for idle mode
[INFO] [stdout]     |             -------------------------------- `new_value` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "23500d3788b8c7c1e2ea1df8c8491a989e09ce0b8f9291d0c94cecc8c9d5f152", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "23500d3788b8c7c1e2ea1df8c8491a989e09ce0b8f9291d0c94cecc8c9d5f152", kill_on_drop: false }`
[INFO] [stdout] 23500d3788b8c7c1e2ea1df8c8491a989e09ce0b8f9291d0c94cecc8c9d5f152
