[INFO] fetching crate sx1262 0.3.0... [INFO] checking sx1262-0.3.0 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate sx1262 0.3.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate sx1262 0.3.0 [INFO] finished tweaking crates.io crate sx1262 0.3.0 [INFO] tweaked toml for crates.io crate sx1262 0.3.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate sx1262 0.3.0 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate sx1262 0.3.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4a46417461f93fdb3bd474bb7f850a3afd76ac1327cf4e70a37bac935d88b03 [INFO] running `Command { std: "docker" "start" "-a" "a4a46417461f93fdb3bd474bb7f850a3afd76ac1327cf4e70a37bac935d88b03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4a46417461f93fdb3bd474bb7f850a3afd76ac1327cf4e70a37bac935d88b03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4a46417461f93fdb3bd474bb7f850a3afd76ac1327cf4e70a37bac935d88b03", kill_on_drop: false }` [INFO] [stdout] a4a46417461f93fdb3bd474bb7f850a3afd76ac1327cf4e70a37bac935d88b03 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9040e18824bb064522e1cb85610c6e66708b311bc40dcec9b9f32e863b7f8985 [INFO] running `Command { std: "docker" "start" "-a" "9040e18824bb064522e1cb85610c6e66708b311bc40dcec9b9f32e863b7f8985", kill_on_drop: false }` [INFO] [stderr] Compiling embedded-hal-async v1.0.0 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Compiling regiface-macros v0.2.0 [INFO] [stderr] Checking regiface v0.2.5 [INFO] [stderr] Checking sx1262 v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/dio.rs:47:59 [INFO] [stdout] | [INFO] [stdout] 47 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 48 | | Ok(self.bits().to_be_bytes()) [INFO] [stdout] 49 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/dio.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | Ok(self.bits().to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/dio.rs:56:68 [INFO] [stdout] | [INFO] [stdout] 56 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 57 | | Ok(IrqMask::from_bits_truncate(u16::from_be_bytes(bytes))) [INFO] [stdout] 58 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/dio.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(IrqMask::from_bits_truncate(u16::from_be_bytes(bytes))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/dio.rs:89:59 [INFO] [stdout] | [INFO] [stdout] 89 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 90 | | let mut bytes = [0u8; 8]; [INFO] [stdout] 91 | | bytes[0..2].copy_from_slice(&self.irq_mask.bits().to_be_bytes()); [INFO] [stdout] 92 | | bytes[2..4].copy_from_slice(&self.dio1_mask.bits().to_be_bytes()); [INFO] [stdout] ... | [INFO] [stdout] 95 | | Ok(bytes) [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/dio.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/dio.rs:143:68 [INFO] [stdout] | [INFO] [stdout] 143 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 144 | | Ok(Self { [INFO] [stdout] 145 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 146 | | irq_mask: IrqMask::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 147 | | }) [INFO] [stdout] 148 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/dio.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | / Ok(Self { [INFO] [stdout] 145 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 146 | | irq_mask: IrqMask::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 147 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/dio.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 146 | irq_mask: IrqMask::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/dio.rs:219:59 [INFO] [stdout] | [INFO] [stdout] 219 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 220 | | Ok([self.enable as u8]) [INFO] [stdout] 221 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/dio.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | Ok([self.enable as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 5], Infallible> [INFO] [stdout] --> src/commands/dio.rs:293:59 [INFO] [stdout] | [INFO] [stdout] 293 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 294 | | let mut bytes = [0u8; 5]; [INFO] [stdout] 295 | | bytes[0] = self.voltage as u8; [INFO] [stdout] 296 | | bytes[1..5].copy_from_slice(&self.delay.to_be_bytes()); [INFO] [stdout] 297 | | Ok(bytes) [INFO] [stdout] 298 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 5], Infallible> [INFO] [stdout] --> src/commands/dio.rs:297:9 [INFO] [stdout] | [INFO] [stdout] 297 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:41:59 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 42 | | Ok([self.bits()]) [INFO] [stdout] 43 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | Ok([self.bits()]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:94:59 [INFO] [stdout] | [INFO] [stdout] 94 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 95 | | Ok([self as u8]) [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | Ok([self as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 3], Infallible> [INFO] [stdout] --> src/commands/operational.rs:166:59 [INFO] [stdout] | [INFO] [stdout] 166 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 167 | | let mut bytes = [0u8; 3]; [INFO] [stdout] 168 | | bytes.copy_from_slice(&self.0.to_be_bytes()[1..4]); [INFO] [stdout] 169 | | Ok(bytes) [INFO] [stdout] 170 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 3], Infallible> [INFO] [stdout] --> src/commands/operational.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:273:59 [INFO] [stdout] | [INFO] [stdout] 273 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 274 | | Ok([self.bits()]) [INFO] [stdout] 275 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | Ok([self.bits()]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/operational.rs:324:59 [INFO] [stdout] | [INFO] [stdout] 324 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 325 | | let mut bytes = [0u8; 8]; [INFO] [stdout] 326 | | bytes[0..4].copy_from_slice(&self.rx_period.to_be_bytes()); [INFO] [stdout] 327 | | bytes[4..8].copy_from_slice(&self.sleep_period.to_be_bytes()); [INFO] [stdout] 328 | | Ok(bytes) [INFO] [stdout] 329 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/operational.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:462:59 [INFO] [stdout] | [INFO] [stdout] 462 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 463 | | Ok([self as u8]) [INFO] [stdout] 464 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:463:9 [INFO] [stdout] | [INFO] [stdout] 463 | Ok([self as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:523:59 [INFO] [stdout] | [INFO] [stdout] 523 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 524 | | Ok([self.bits()]) [INFO] [stdout] 525 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | Ok([self.bits()]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/operational.rs:573:59 [INFO] [stdout] | [INFO] [stdout] 573 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 574 | | Ok([self.freq1, self.freq2]) [INFO] [stdout] 575 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/operational.rs:574:9 [INFO] [stdout] | [INFO] [stdout] 574 | Ok([self.freq1, self.freq2]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 4], Infallible> [INFO] [stdout] --> src/commands/operational.rs:640:59 [INFO] [stdout] | [INFO] [stdout] 640 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 641 | | Ok([ [INFO] [stdout] 642 | | self.duty_cycle, [INFO] [stdout] 643 | | self.hp_max, [INFO] [stdout] ... | [INFO] [stdout] 646 | | ]) [INFO] [stdout] 647 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 4], Infallible> [INFO] [stdout] --> src/commands/operational.rs:641:9 [INFO] [stdout] | [INFO] [stdout] 641 | / Ok([ [INFO] [stdout] 642 | | self.duty_cycle, [INFO] [stdout] 643 | | self.hp_max, [INFO] [stdout] 644 | | self.device_sel as u8, [INFO] [stdout] 645 | | self.pa_lut, [INFO] [stdout] 646 | | ]) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:702:59 [INFO] [stdout] | [INFO] [stdout] 702 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 703 | | Ok([self as u8]) [INFO] [stdout] 704 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:703:9 [INFO] [stdout] | [INFO] [stdout] 703 | Ok([self as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 4], Infallible> [INFO] [stdout] --> src/commands/rf.rs:37:59 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 38 | | // Frequency register = (Frequency * 2^25) / FXTAL [INFO] [stdout] 39 | | let f = ((self.frequency as u64 * (1_u64 << 25)) / 32_000_000) as u32; [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 4], Infallible> [INFO] [stdout] --> src/commands/rf.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | Ok(f.to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/rf.rs:90:68 [INFO] [stdout] | [INFO] [stdout] 90 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 91 | | Ok(match bytes[0] { [INFO] [stdout] 92 | | 0x00 => Self::Gfsk, [INFO] [stdout] 93 | | 0x01 => Self::LoRa, [INFO] [stdout] 94 | | _ => Self::LoRa, [INFO] [stdout] 95 | | }) [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/rf.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | / Ok(match bytes[0] { [INFO] [stdout] 92 | | 0x00 => Self::Gfsk, [INFO] [stdout] 93 | | 0x01 => Self::LoRa, [INFO] [stdout] 94 | | _ => Self::LoRa, [INFO] [stdout] 95 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/rf.rs:103:59 [INFO] [stdout] | [INFO] [stdout] 103 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 104 | | Ok([self as u8]) [INFO] [stdout] 105 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/rf.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | Ok([self as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/rf.rs:198:59 [INFO] [stdout] | [INFO] [stdout] 198 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 199 | | Ok([self.power as u8, self.ramp_time as u8]) [INFO] [stdout] 200 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/rf.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | Ok([self.power as u8, self.ramp_time as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/rf.rs:502:59 [INFO] [stdout] | [INFO] [stdout] 502 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 503 | | let mut bytes = [0u8; 8]; [INFO] [stdout] 504 | | match self { [INFO] [stdout] 505 | | ModulationParams::Gfsk(params) => { [INFO] [stdout] ... | [INFO] [stdout] 522 | | Ok(bytes) [INFO] [stdout] 523 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/rf.rs:522:9 [INFO] [stdout] | [INFO] [stdout] 522 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 9], Infallible> [INFO] [stdout] --> src/commands/rf.rs:586:59 [INFO] [stdout] | [INFO] [stdout] 586 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 587 | | Ok(self.params) [INFO] [stdout] 588 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 9], Infallible> [INFO] [stdout] --> src/commands/rf.rs:587:9 [INFO] [stdout] | [INFO] [stdout] 587 | Ok(self.params) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/rf.rs:641:59 [INFO] [stdout] | [INFO] [stdout] 641 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 642 | | let mut bytes = [0u8; 8]; [INFO] [stdout] 643 | | bytes[0] = self.cad_symbol_num; [INFO] [stdout] 644 | | bytes[1] = self.cad_detect_peak; [INFO] [stdout] ... | [INFO] [stdout] 648 | | Ok(bytes) [INFO] [stdout] 649 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/rf.rs:648:9 [INFO] [stdout] | [INFO] [stdout] 648 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/rf.rs:694:59 [INFO] [stdout] | [INFO] [stdout] 694 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 695 | | Ok([self.tx_base_addr, self.rx_base_addr]) [INFO] [stdout] 696 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/rf.rs:695:9 [INFO] [stdout] | [INFO] [stdout] 695 | Ok([self.tx_base_addr, self.rx_base_addr]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/rf.rs:740:59 [INFO] [stdout] | [INFO] [stdout] 740 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 741 | | Ok([self.symb_num]) [INFO] [stdout] 742 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/rf.rs:741:9 [INFO] [stdout] | [INFO] [stdout] 741 | Ok([self.symb_num]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:183:68 [INFO] [stdout] | [INFO] [stdout] 183 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 184 | | Ok(Self { [INFO] [stdout] 185 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 186 | | rssi: bytes[1], [INFO] [stdout] 187 | | }) [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | / Ok(Self { [INFO] [stdout] 185 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 186 | | rssi: bytes[1], [INFO] [stdout] 187 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:236:68 [INFO] [stdout] | [INFO] [stdout] 236 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 237 | | Ok(Self { [INFO] [stdout] 238 | | payload_length: bytes[0], [INFO] [stdout] 239 | | buffer_pointer: bytes[1], [INFO] [stdout] 240 | | }) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:237:9 [INFO] [stdout] | [INFO] [stdout] 237 | / Ok(Self { [INFO] [stdout] 238 | | payload_length: bytes[0], [INFO] [stdout] 239 | | buffer_pointer: bytes[1], [INFO] [stdout] 240 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:259:68 [INFO] [stdout] | [INFO] [stdout] 259 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 260 | | Ok(Self { [INFO] [stdout] 261 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 262 | | buffer_status: RxBufferStatus::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 263 | | }) [INFO] [stdout] 264 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | / Ok(Self { [INFO] [stdout] 261 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 262 | | buffer_status: RxBufferStatus::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 263 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:262:28 [INFO] [stdout] | [INFO] [stdout] 262 | buffer_status: RxBufferStatus::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:324:68 [INFO] [stdout] | [INFO] [stdout] 324 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 325 | | Ok(Self { status: bytes }) [INFO] [stdout] 326 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:325:9 [INFO] [stdout] | [INFO] [stdout] 325 | Ok(Self { status: bytes }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:344:68 [INFO] [stdout] | [INFO] [stdout] 344 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 345 | | Ok(Self { [INFO] [stdout] 346 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 347 | | packet_status: PacketStatus::from_bytes([bytes[1], bytes[2], bytes[3]]).unwrap(), [INFO] [stdout] 348 | | }) [INFO] [stdout] 349 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | / Ok(Self { [INFO] [stdout] 346 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 347 | | packet_status: PacketStatus::from_bytes([bytes[1], bytes[2], bytes[3]]).unwrap(), [INFO] [stdout] 348 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:347:28 [INFO] [stdout] | [INFO] [stdout] 347 | packet_status: PacketStatus::from_bytes([bytes[1], bytes[2], bytes[3]]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:407:68 [INFO] [stdout] | [INFO] [stdout] 407 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 408 | | Ok(Self { [INFO] [stdout] 409 | | rc64k_calib_err: bytes[1] & 0b1 != 0, [INFO] [stdout] 410 | | rc13m_calib_err: bytes[1] & 0b10 != 0, [INFO] [stdout] ... | [INFO] [stdout] 417 | | }) [INFO] [stdout] 418 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:408:9 [INFO] [stdout] | [INFO] [stdout] 408 | / Ok(Self { [INFO] [stdout] 409 | | rc64k_calib_err: bytes[1] & 0b1 != 0, [INFO] [stdout] 410 | | rc13m_calib_err: bytes[1] & 0b10 != 0, [INFO] [stdout] 411 | | pll_calib_err: bytes[1] & 0b100 != 0, [INFO] [stdout] ... | [INFO] [stdout] 416 | | pa_ramp_err: bytes[0] & 0b1 != 0, [INFO] [stdout] 417 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:436:68 [INFO] [stdout] | [INFO] [stdout] 436 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 437 | | Ok(Self { [INFO] [stdout] 438 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 439 | | errors: DeviceErrors::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 440 | | }) [INFO] [stdout] 441 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:437:9 [INFO] [stdout] | [INFO] [stdout] 437 | / Ok(Self { [INFO] [stdout] 438 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 439 | | errors: DeviceErrors::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 440 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:439:21 [INFO] [stdout] | [INFO] [stdout] 439 | errors: DeviceErrors::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:518:68 [INFO] [stdout] | [INFO] [stdout] 518 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 519 | | Ok(Self { [INFO] [stdout] 520 | | packets_received: u16::from_be_bytes(bytes[0..2].try_into().unwrap()), [INFO] [stdout] 521 | | packets_crc_error: u16::from_be_bytes(bytes[2..4].try_into().unwrap()), [INFO] [stdout] 522 | | packets_header_error: u16::from_be_bytes(bytes[4..6].try_into().unwrap()), [INFO] [stdout] 523 | | }) [INFO] [stdout] 524 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:519:9 [INFO] [stdout] | [INFO] [stdout] 519 | / Ok(Self { [INFO] [stdout] 520 | | packets_received: u16::from_be_bytes(bytes[0..2].try_into().unwrap()), [INFO] [stdout] 521 | | packets_crc_error: u16::from_be_bytes(bytes[2..4].try_into().unwrap()), [INFO] [stdout] 522 | | packets_header_error: u16::from_be_bytes(bytes[4..6].try_into().unwrap()), [INFO] [stdout] 523 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:542:68 [INFO] [stdout] | [INFO] [stdout] 542 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 543 | | Ok(Self { [INFO] [stdout] 544 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 545 | | stats: Stats::from_bytes([bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6]]) [INFO] [stdout] 546 | | .unwrap(), [INFO] [stdout] 547 | | }) [INFO] [stdout] 548 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:543:9 [INFO] [stdout] | [INFO] [stdout] 543 | / Ok(Self { [INFO] [stdout] 544 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 545 | | stats: Stats::from_bytes([bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6]]) [INFO] [stdout] 546 | | .unwrap(), [INFO] [stdout] 547 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:545:20 [INFO] [stdout] | [INFO] [stdout] 545 | stats: Stats::from_bytes([bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6]]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<::Array, Infallible> [INFO] [stdout] --> src/device.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | let raw_value = register.to_bytes().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<<::CommandParameters as regiface::ToByteArray>::Array, Infallible> [INFO] [stdout] --> src/device.rs:175:23 [INFO] [stdout] | [INFO] [stdout] 175 | let request = command.invoking_parameters().to_bytes().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<::Array, Infallible> [INFO] [stdout] --> src/device.rs:228:25 [INFO] [stdout] | [INFO] [stdout] 228 | let raw_value = register.to_bytes().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<<::CommandParameters as regiface::ToByteArray>::Array, Infallible> [INFO] [stdout] --> src/device.rs:288:23 [INFO] [stdout] | [INFO] [stdout] 288 | let request = command.invoking_parameters().to_bytes().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:156:68 [INFO] [stdout] | [INFO] [stdout] 156 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 157 | | Ok(Self { [INFO] [stdout] 158 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 159 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 160 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 161 | | }) [INFO] [stdout] 162 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | / Ok(Self { [INFO] [stdout] 158 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 159 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 160 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 161 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:169:59 [INFO] [stdout] | [INFO] [stdout] 169 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 170 | | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] 171 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:178:68 [INFO] [stdout] | [INFO] [stdout] 178 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 179 | | Ok(Self { [INFO] [stdout] 180 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 181 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 182 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 183 | | }) [INFO] [stdout] 184 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | / Ok(Self { [INFO] [stdout] 180 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 181 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 182 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 183 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:191:59 [INFO] [stdout] | [INFO] [stdout] 191 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 192 | | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] 193 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:200:68 [INFO] [stdout] | [INFO] [stdout] 200 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 201 | | Ok(Self { [INFO] [stdout] 202 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 203 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 204 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 205 | | }) [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | / Ok(Self { [INFO] [stdout] 202 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 203 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 204 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 205 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:213:59 [INFO] [stdout] | [INFO] [stdout] 213 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 214 | | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] 215 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:222:68 [INFO] [stdout] | [INFO] [stdout] 222 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 223 | | Ok(Self { [INFO] [stdout] 224 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 225 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 226 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 227 | | }) [INFO] [stdout] 228 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | / Ok(Self { [INFO] [stdout] 224 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 225 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 226 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 227 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:235:59 [INFO] [stdout] | [INFO] [stdout] 235 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 236 | | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] 237 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:263:59 [INFO] [stdout] | [INFO] [stdout] 263 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 264 | | Ok([self as u8]) [INFO] [stdout] 265 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | Ok([self as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:194:68 [INFO] [stdout] | [INFO] [stdout] 194 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 195 | | Ok(Self { [INFO] [stdout] 196 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 197 | | }) [INFO] [stdout] 198 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | / Ok(Self { [INFO] [stdout] 196 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 197 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:205:59 [INFO] [stdout] | [INFO] [stdout] 205 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 206 | | Ok(self.value.to_be_bytes()) [INFO] [stdout] 207 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | Ok(self.value.to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:214:68 [INFO] [stdout] | [INFO] [stdout] 214 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 215 | | Ok(Self { [INFO] [stdout] 216 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 217 | | }) [INFO] [stdout] 218 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | / Ok(Self { [INFO] [stdout] 216 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 217 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:225:59 [INFO] [stdout] | [INFO] [stdout] 225 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 226 | | Ok(self.value.to_be_bytes()) [INFO] [stdout] 227 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | Ok(self.value.to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:234:68 [INFO] [stdout] | [INFO] [stdout] 234 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 235 | | Ok(Self { [INFO] [stdout] 236 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 237 | | }) [INFO] [stdout] 238 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | / Ok(Self { [INFO] [stdout] 236 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 237 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:245:59 [INFO] [stdout] | [INFO] [stdout] 245 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 246 | | Ok(self.value.to_be_bytes()) [INFO] [stdout] 247 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | Ok(self.value.to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:254:68 [INFO] [stdout] | [INFO] [stdout] 254 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 255 | | Ok(Self { value: bytes }) [INFO] [stdout] 256 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | Ok(Self { value: bytes }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/registers/packet.rs:263:59 [INFO] [stdout] | [INFO] [stdout] 263 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 264 | | Ok(self.value) [INFO] [stdout] 265 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/registers/packet.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | Ok(self.value) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:272:68 [INFO] [stdout] | [INFO] [stdout] 272 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 273 | | Ok(Self { address: bytes[0] }) [INFO] [stdout] 274 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 273 | Ok(Self { address: bytes[0] }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:281:59 [INFO] [stdout] | [INFO] [stdout] 281 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 282 | | Ok([self.address]) [INFO] [stdout] 283 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | Ok([self.address]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:290:68 [INFO] [stdout] | [INFO] [stdout] 290 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 291 | | Ok(Self { address: bytes[0] }) [INFO] [stdout] 292 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | Ok(Self { address: bytes[0] }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:299:59 [INFO] [stdout] | [INFO] [stdout] 299 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 300 | | Ok([self.address]) [INFO] [stdout] 301 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:300:9 [INFO] [stdout] | [INFO] [stdout] 300 | Ok([self.address]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:308:68 [INFO] [stdout] | [INFO] [stdout] 308 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 309 | | Ok(Self { [INFO] [stdout] 310 | | inverted_iq: bytes[0] & 0x01 != 0, [INFO] [stdout] 311 | | }) [INFO] [stdout] 312 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | / Ok(Self { [INFO] [stdout] 310 | | inverted_iq: bytes[0] & 0x01 != 0, [INFO] [stdout] 311 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:319:59 [INFO] [stdout] | [INFO] [stdout] 319 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 320 | | Ok([self.inverted_iq as u8]) [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 320 | Ok([self.inverted_iq as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:328:68 [INFO] [stdout] | [INFO] [stdout] 328 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 329 | | Ok(Self { [INFO] [stdout] 330 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 331 | | }) [INFO] [stdout] 332 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | / Ok(Self { [INFO] [stdout] 330 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 331 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:339:59 [INFO] [stdout] | [INFO] [stdout] 339 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 340 | | Ok(self.value.to_be_bytes()) [INFO] [stdout] 341 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | Ok(self.value.to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:173:68 [INFO] [stdout] | [INFO] [stdout] 173 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 174 | | Ok(Self { [INFO] [stdout] 175 | | value: u32::from_be_bytes(bytes), [INFO] [stdout] 176 | | }) [INFO] [stdout] 177 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | / Ok(Self { [INFO] [stdout] 175 | | value: u32::from_be_bytes(bytes), [INFO] [stdout] 176 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:184:68 [INFO] [stdout] | [INFO] [stdout] 184 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 185 | | Ok(Self { [INFO] [stdout] 186 | | bw_500khz_opt: bytes[0] & 0x04 != 0, [INFO] [stdout] 187 | | }) [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | / Ok(Self { [INFO] [stdout] 186 | | bw_500khz_opt: bytes[0] & 0x04 != 0, [INFO] [stdout] 187 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:195:59 [INFO] [stdout] | [INFO] [stdout] 195 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 196 | | Ok([if self.bw_500khz_opt { 0x04 } else { 0x00 }]) [INFO] [stdout] 197 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | Ok([if self.bw_500khz_opt { 0x04 } else { 0x00 }]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:213:59 [INFO] [stdout] | [INFO] [stdout] 213 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 214 | | Ok([self.to_byte()]) [INFO] [stdout] 215 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | Ok([self.to_byte()]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:222:68 [INFO] [stdout] | [INFO] [stdout] 222 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 223 | | Ok(Self { [INFO] [stdout] 224 | | threshold: (bytes[0] >> 1) & 0x0F, [INFO] [stdout] 225 | | }) [INFO] [stdout] 226 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | / Ok(Self { [INFO] [stdout] 224 | | threshold: (bytes[0] >> 1) & 0x0F, [INFO] [stdout] 225 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:233:59 [INFO] [stdout] | [INFO] [stdout] 233 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 234 | | Ok([(self.threshold & 0x0F) << 1]) [INFO] [stdout] 235 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | Ok([(self.threshold & 0x0F) << 1]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:242:68 [INFO] [stdout] | [INFO] [stdout] 242 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 243 | | Ok(Self { [INFO] [stdout] 244 | | threshold: bytes[0], [INFO] [stdout] 245 | | }) [INFO] [stdout] 246 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | / Ok(Self { [INFO] [stdout] 244 | | threshold: bytes[0], [INFO] [stdout] 245 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:253:59 [INFO] [stdout] | [INFO] [stdout] 253 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 254 | | Ok([self.threshold]) [INFO] [stdout] 255 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | Ok([self.threshold]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:121:68 [INFO] [stdout] | [INFO] [stdout] 121 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 122 | | Ok(Self { [INFO] [stdout] 123 | | enabled: bytes[0] & 0x01 != 0, [INFO] [stdout] 124 | | }) [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | / Ok(Self { [INFO] [stdout] 123 | | enabled: bytes[0] & 0x01 != 0, [INFO] [stdout] 124 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:132:59 [INFO] [stdout] | [INFO] [stdout] 132 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 133 | | Ok([self.enabled as u8]) [INFO] [stdout] 134 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | Ok([self.enabled as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:141:68 [INFO] [stdout] | [INFO] [stdout] 141 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 142 | | Ok(Self { [INFO] [stdout] 143 | | value: bytes[0] & 0x2F, [INFO] [stdout] 144 | | }) [INFO] [stdout] 145 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | / Ok(Self { [INFO] [stdout] 143 | | value: bytes[0] & 0x2F, [INFO] [stdout] 144 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:152:59 [INFO] [stdout] | [INFO] [stdout] 152 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 153 | | Ok([self.value & 0x2F]) [INFO] [stdout] 154 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | Ok([self.value & 0x2F]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:161:68 [INFO] [stdout] | [INFO] [stdout] 161 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 162 | | Ok(Self { [INFO] [stdout] 163 | | value: bytes[0] & 0x2F, [INFO] [stdout] 164 | | }) [INFO] [stdout] 165 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | / Ok(Self { [INFO] [stdout] 163 | | value: bytes[0] & 0x2F, [INFO] [stdout] 164 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:172:59 [INFO] [stdout] | [INFO] [stdout] 172 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 173 | | Ok([self.value & 0x2F]) [INFO] [stdout] 174 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | Ok([self.value & 0x2F]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:181:68 [INFO] [stdout] | [INFO] [stdout] 181 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 182 | | Ok(Self { mask: bytes[0] }) [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | Ok(Self { mask: bytes[0] }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:190:59 [INFO] [stdout] | [INFO] [stdout] 190 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 191 | | Ok([self.mask]) [INFO] [stdout] 192 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | Ok([self.mask]) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sx1262` (lib) due to 159 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/dio.rs:47:59 [INFO] [stdout] | [INFO] [stdout] 47 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 48 | | Ok(self.bits().to_be_bytes()) [INFO] [stdout] 49 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/dio.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | Ok(self.bits().to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/dio.rs:56:68 [INFO] [stdout] | [INFO] [stdout] 56 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 57 | | Ok(IrqMask::from_bits_truncate(u16::from_be_bytes(bytes))) [INFO] [stdout] 58 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/dio.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(IrqMask::from_bits_truncate(u16::from_be_bytes(bytes))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/dio.rs:89:59 [INFO] [stdout] | [INFO] [stdout] 89 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 90 | | let mut bytes = [0u8; 8]; [INFO] [stdout] 91 | | bytes[0..2].copy_from_slice(&self.irq_mask.bits().to_be_bytes()); [INFO] [stdout] 92 | | bytes[2..4].copy_from_slice(&self.dio1_mask.bits().to_be_bytes()); [INFO] [stdout] ... | [INFO] [stdout] 95 | | Ok(bytes) [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/dio.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/dio.rs:143:68 [INFO] [stdout] | [INFO] [stdout] 143 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 144 | | Ok(Self { [INFO] [stdout] 145 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 146 | | irq_mask: IrqMask::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 147 | | }) [INFO] [stdout] 148 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/dio.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 144 | / Ok(Self { [INFO] [stdout] 145 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 146 | | irq_mask: IrqMask::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 147 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/dio.rs:146:23 [INFO] [stdout] | [INFO] [stdout] 146 | irq_mask: IrqMask::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/dio.rs:219:59 [INFO] [stdout] | [INFO] [stdout] 219 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 220 | | Ok([self.enable as u8]) [INFO] [stdout] 221 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/dio.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | Ok([self.enable as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 5], Infallible> [INFO] [stdout] --> src/commands/dio.rs:293:59 [INFO] [stdout] | [INFO] [stdout] 293 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 294 | | let mut bytes = [0u8; 5]; [INFO] [stdout] 295 | | bytes[0] = self.voltage as u8; [INFO] [stdout] 296 | | bytes[1..5].copy_from_slice(&self.delay.to_be_bytes()); [INFO] [stdout] 297 | | Ok(bytes) [INFO] [stdout] 298 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 5], Infallible> [INFO] [stdout] --> src/commands/dio.rs:297:9 [INFO] [stdout] | [INFO] [stdout] 297 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:41:59 [INFO] [stdout] | [INFO] [stdout] 41 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 42 | | Ok([self.bits()]) [INFO] [stdout] 43 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | Ok([self.bits()]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:94:59 [INFO] [stdout] | [INFO] [stdout] 94 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 95 | | Ok([self as u8]) [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | Ok([self as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 3], Infallible> [INFO] [stdout] --> src/commands/operational.rs:166:59 [INFO] [stdout] | [INFO] [stdout] 166 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 167 | | let mut bytes = [0u8; 3]; [INFO] [stdout] 168 | | bytes.copy_from_slice(&self.0.to_be_bytes()[1..4]); [INFO] [stdout] 169 | | Ok(bytes) [INFO] [stdout] 170 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 3], Infallible> [INFO] [stdout] --> src/commands/operational.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:273:59 [INFO] [stdout] | [INFO] [stdout] 273 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 274 | | Ok([self.bits()]) [INFO] [stdout] 275 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | Ok([self.bits()]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/operational.rs:324:59 [INFO] [stdout] | [INFO] [stdout] 324 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 325 | | let mut bytes = [0u8; 8]; [INFO] [stdout] 326 | | bytes[0..4].copy_from_slice(&self.rx_period.to_be_bytes()); [INFO] [stdout] 327 | | bytes[4..8].copy_from_slice(&self.sleep_period.to_be_bytes()); [INFO] [stdout] 328 | | Ok(bytes) [INFO] [stdout] 329 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/operational.rs:328:9 [INFO] [stdout] | [INFO] [stdout] 328 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:462:59 [INFO] [stdout] | [INFO] [stdout] 462 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 463 | | Ok([self as u8]) [INFO] [stdout] 464 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:463:9 [INFO] [stdout] | [INFO] [stdout] 463 | Ok([self as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:523:59 [INFO] [stdout] | [INFO] [stdout] 523 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 524 | | Ok([self.bits()]) [INFO] [stdout] 525 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:524:9 [INFO] [stdout] | [INFO] [stdout] 524 | Ok([self.bits()]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/operational.rs:573:59 [INFO] [stdout] | [INFO] [stdout] 573 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 574 | | Ok([self.freq1, self.freq2]) [INFO] [stdout] 575 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/operational.rs:574:9 [INFO] [stdout] | [INFO] [stdout] 574 | Ok([self.freq1, self.freq2]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 4], Infallible> [INFO] [stdout] --> src/commands/operational.rs:640:59 [INFO] [stdout] | [INFO] [stdout] 640 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 641 | | Ok([ [INFO] [stdout] 642 | | self.duty_cycle, [INFO] [stdout] 643 | | self.hp_max, [INFO] [stdout] ... | [INFO] [stdout] 646 | | ]) [INFO] [stdout] 647 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 4], Infallible> [INFO] [stdout] --> src/commands/operational.rs:641:9 [INFO] [stdout] | [INFO] [stdout] 641 | / Ok([ [INFO] [stdout] 642 | | self.duty_cycle, [INFO] [stdout] 643 | | self.hp_max, [INFO] [stdout] 644 | | self.device_sel as u8, [INFO] [stdout] 645 | | self.pa_lut, [INFO] [stdout] 646 | | ]) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:702:59 [INFO] [stdout] | [INFO] [stdout] 702 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 703 | | Ok([self as u8]) [INFO] [stdout] 704 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/operational.rs:703:9 [INFO] [stdout] | [INFO] [stdout] 703 | Ok([self as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 4], Infallible> [INFO] [stdout] --> src/commands/rf.rs:37:59 [INFO] [stdout] | [INFO] [stdout] 37 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 38 | | // Frequency register = (Frequency * 2^25) / FXTAL [INFO] [stdout] 39 | | let f = ((self.frequency as u64 * (1_u64 << 25)) / 32_000_000) as u32; [INFO] [stdout] ... | [INFO] [stdout] 42 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 4], Infallible> [INFO] [stdout] --> src/commands/rf.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | Ok(f.to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/rf.rs:90:68 [INFO] [stdout] | [INFO] [stdout] 90 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 91 | | Ok(match bytes[0] { [INFO] [stdout] 92 | | 0x00 => Self::Gfsk, [INFO] [stdout] 93 | | 0x01 => Self::LoRa, [INFO] [stdout] 94 | | _ => Self::LoRa, [INFO] [stdout] 95 | | }) [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/rf.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | / Ok(match bytes[0] { [INFO] [stdout] 92 | | 0x00 => Self::Gfsk, [INFO] [stdout] 93 | | 0x01 => Self::LoRa, [INFO] [stdout] 94 | | _ => Self::LoRa, [INFO] [stdout] 95 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/rf.rs:103:59 [INFO] [stdout] | [INFO] [stdout] 103 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 104 | | Ok([self as u8]) [INFO] [stdout] 105 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/rf.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | Ok([self as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/rf.rs:198:59 [INFO] [stdout] | [INFO] [stdout] 198 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 199 | | Ok([self.power as u8, self.ramp_time as u8]) [INFO] [stdout] 200 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/rf.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | Ok([self.power as u8, self.ramp_time as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/rf.rs:502:59 [INFO] [stdout] | [INFO] [stdout] 502 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 503 | | let mut bytes = [0u8; 8]; [INFO] [stdout] 504 | | match self { [INFO] [stdout] 505 | | ModulationParams::Gfsk(params) => { [INFO] [stdout] ... | [INFO] [stdout] 522 | | Ok(bytes) [INFO] [stdout] 523 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/rf.rs:522:9 [INFO] [stdout] | [INFO] [stdout] 522 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 9], Infallible> [INFO] [stdout] --> src/commands/rf.rs:586:59 [INFO] [stdout] | [INFO] [stdout] 586 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 587 | | Ok(self.params) [INFO] [stdout] 588 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 9], Infallible> [INFO] [stdout] --> src/commands/rf.rs:587:9 [INFO] [stdout] | [INFO] [stdout] 587 | Ok(self.params) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/rf.rs:641:59 [INFO] [stdout] | [INFO] [stdout] 641 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 642 | | let mut bytes = [0u8; 8]; [INFO] [stdout] 643 | | bytes[0] = self.cad_symbol_num; [INFO] [stdout] 644 | | bytes[1] = self.cad_detect_peak; [INFO] [stdout] ... | [INFO] [stdout] 648 | | Ok(bytes) [INFO] [stdout] 649 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/commands/rf.rs:648:9 [INFO] [stdout] | [INFO] [stdout] 648 | Ok(bytes) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/rf.rs:694:59 [INFO] [stdout] | [INFO] [stdout] 694 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 695 | | Ok([self.tx_base_addr, self.rx_base_addr]) [INFO] [stdout] 696 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/commands/rf.rs:695:9 [INFO] [stdout] | [INFO] [stdout] 695 | Ok([self.tx_base_addr, self.rx_base_addr]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/rf.rs:740:59 [INFO] [stdout] | [INFO] [stdout] 740 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 741 | | Ok([self.symb_num]) [INFO] [stdout] 742 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/commands/rf.rs:741:9 [INFO] [stdout] | [INFO] [stdout] 741 | Ok([self.symb_num]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:183:68 [INFO] [stdout] | [INFO] [stdout] 183 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 184 | | Ok(Self { [INFO] [stdout] 185 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 186 | | rssi: bytes[1], [INFO] [stdout] 187 | | }) [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:184:9 [INFO] [stdout] | [INFO] [stdout] 184 | / Ok(Self { [INFO] [stdout] 185 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 186 | | rssi: bytes[1], [INFO] [stdout] 187 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:236:68 [INFO] [stdout] | [INFO] [stdout] 236 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 237 | | Ok(Self { [INFO] [stdout] 238 | | payload_length: bytes[0], [INFO] [stdout] 239 | | buffer_pointer: bytes[1], [INFO] [stdout] 240 | | }) [INFO] [stdout] 241 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:237:9 [INFO] [stdout] | [INFO] [stdout] 237 | / Ok(Self { [INFO] [stdout] 238 | | payload_length: bytes[0], [INFO] [stdout] 239 | | buffer_pointer: bytes[1], [INFO] [stdout] 240 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:259:68 [INFO] [stdout] | [INFO] [stdout] 259 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 260 | | Ok(Self { [INFO] [stdout] 261 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 262 | | buffer_status: RxBufferStatus::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 263 | | }) [INFO] [stdout] 264 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | / Ok(Self { [INFO] [stdout] 261 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 262 | | buffer_status: RxBufferStatus::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 263 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:262:28 [INFO] [stdout] | [INFO] [stdout] 262 | buffer_status: RxBufferStatus::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:324:68 [INFO] [stdout] | [INFO] [stdout] 324 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 325 | | Ok(Self { status: bytes }) [INFO] [stdout] 326 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:325:9 [INFO] [stdout] | [INFO] [stdout] 325 | Ok(Self { status: bytes }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:344:68 [INFO] [stdout] | [INFO] [stdout] 344 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 345 | | Ok(Self { [INFO] [stdout] 346 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 347 | | packet_status: PacketStatus::from_bytes([bytes[1], bytes[2], bytes[3]]).unwrap(), [INFO] [stdout] 348 | | }) [INFO] [stdout] 349 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | / Ok(Self { [INFO] [stdout] 346 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 347 | | packet_status: PacketStatus::from_bytes([bytes[1], bytes[2], bytes[3]]).unwrap(), [INFO] [stdout] 348 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:347:28 [INFO] [stdout] | [INFO] [stdout] 347 | packet_status: PacketStatus::from_bytes([bytes[1], bytes[2], bytes[3]]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:407:68 [INFO] [stdout] | [INFO] [stdout] 407 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 408 | | Ok(Self { [INFO] [stdout] 409 | | rc64k_calib_err: bytes[1] & 0b1 != 0, [INFO] [stdout] 410 | | rc13m_calib_err: bytes[1] & 0b10 != 0, [INFO] [stdout] ... | [INFO] [stdout] 417 | | }) [INFO] [stdout] 418 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:408:9 [INFO] [stdout] | [INFO] [stdout] 408 | / Ok(Self { [INFO] [stdout] 409 | | rc64k_calib_err: bytes[1] & 0b1 != 0, [INFO] [stdout] 410 | | rc13m_calib_err: bytes[1] & 0b10 != 0, [INFO] [stdout] 411 | | pll_calib_err: bytes[1] & 0b100 != 0, [INFO] [stdout] ... | [INFO] [stdout] 416 | | pa_ramp_err: bytes[0] & 0b1 != 0, [INFO] [stdout] 417 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:436:68 [INFO] [stdout] | [INFO] [stdout] 436 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 437 | | Ok(Self { [INFO] [stdout] 438 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 439 | | errors: DeviceErrors::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 440 | | }) [INFO] [stdout] 441 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:437:9 [INFO] [stdout] | [INFO] [stdout] 437 | / Ok(Self { [INFO] [stdout] 438 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 439 | | errors: DeviceErrors::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] 440 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:439:21 [INFO] [stdout] | [INFO] [stdout] 439 | errors: DeviceErrors::from_bytes([bytes[1], bytes[2]]).unwrap(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:518:68 [INFO] [stdout] | [INFO] [stdout] 518 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 519 | | Ok(Self { [INFO] [stdout] 520 | | packets_received: u16::from_be_bytes(bytes[0..2].try_into().unwrap()), [INFO] [stdout] 521 | | packets_crc_error: u16::from_be_bytes(bytes[2..4].try_into().unwrap()), [INFO] [stdout] 522 | | packets_header_error: u16::from_be_bytes(bytes[4..6].try_into().unwrap()), [INFO] [stdout] 523 | | }) [INFO] [stdout] 524 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:519:9 [INFO] [stdout] | [INFO] [stdout] 519 | / Ok(Self { [INFO] [stdout] 520 | | packets_received: u16::from_be_bytes(bytes[0..2].try_into().unwrap()), [INFO] [stdout] 521 | | packets_crc_error: u16::from_be_bytes(bytes[2..4].try_into().unwrap()), [INFO] [stdout] 522 | | packets_header_error: u16::from_be_bytes(bytes[4..6].try_into().unwrap()), [INFO] [stdout] 523 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:542:68 [INFO] [stdout] | [INFO] [stdout] 542 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 543 | | Ok(Self { [INFO] [stdout] 544 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 545 | | stats: Stats::from_bytes([bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6]]) [INFO] [stdout] 546 | | .unwrap(), [INFO] [stdout] 547 | | }) [INFO] [stdout] 548 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:543:9 [INFO] [stdout] | [INFO] [stdout] 543 | / Ok(Self { [INFO] [stdout] 544 | | status: Status::from_bytes([bytes[0]]).unwrap(), [INFO] [stdout] 545 | | stats: Stats::from_bytes([bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6]]) [INFO] [stdout] 546 | | .unwrap(), [INFO] [stdout] 547 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/commands/status.rs:545:20 [INFO] [stdout] | [INFO] [stdout] 545 | stats: Stats::from_bytes([bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6]]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<::Array, Infallible> [INFO] [stdout] --> src/device.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | let raw_value = register.to_bytes().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<<::CommandParameters as regiface::ToByteArray>::Array, Infallible> [INFO] [stdout] --> src/device.rs:175:23 [INFO] [stdout] | [INFO] [stdout] 175 | let request = command.invoking_parameters().to_bytes().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<::Array, Infallible> [INFO] [stdout] --> src/device.rs:228:25 [INFO] [stdout] | [INFO] [stdout] 228 | let raw_value = register.to_bytes().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<<::CommandParameters as regiface::ToByteArray>::Array, Infallible> [INFO] [stdout] --> src/device.rs:288:23 [INFO] [stdout] | [INFO] [stdout] 288 | let request = command.invoking_parameters().to_bytes().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:156:68 [INFO] [stdout] | [INFO] [stdout] 156 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 157 | | Ok(Self { [INFO] [stdout] 158 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 159 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 160 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 161 | | }) [INFO] [stdout] 162 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | / Ok(Self { [INFO] [stdout] 158 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 159 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 160 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 161 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:169:59 [INFO] [stdout] | [INFO] [stdout] 169 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 170 | | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] 171 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:178:68 [INFO] [stdout] | [INFO] [stdout] 178 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 179 | | Ok(Self { [INFO] [stdout] 180 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 181 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 182 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 183 | | }) [INFO] [stdout] 184 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:179:9 [INFO] [stdout] | [INFO] [stdout] 179 | / Ok(Self { [INFO] [stdout] 180 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 181 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 182 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 183 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:191:59 [INFO] [stdout] | [INFO] [stdout] 191 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 192 | | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] 193 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:200:68 [INFO] [stdout] | [INFO] [stdout] 200 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 201 | | Ok(Self { [INFO] [stdout] 202 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 203 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 204 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 205 | | }) [INFO] [stdout] 206 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:201:9 [INFO] [stdout] | [INFO] [stdout] 201 | / Ok(Self { [INFO] [stdout] 202 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 203 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 204 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 205 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:213:59 [INFO] [stdout] | [INFO] [stdout] 213 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 214 | | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] 215 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:222:68 [INFO] [stdout] | [INFO] [stdout] 222 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 223 | | Ok(Self { [INFO] [stdout] 224 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 225 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 226 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 227 | | }) [INFO] [stdout] 228 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/dio.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | / Ok(Self { [INFO] [stdout] 224 | | dio1: bytes[0] & 0x01 != 0, [INFO] [stdout] 225 | | dio2: bytes[0] & 0x02 != 0, [INFO] [stdout] 226 | | dio3: bytes[0] & 0x04 != 0, [INFO] [stdout] 227 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:235:59 [INFO] [stdout] | [INFO] [stdout] 235 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 236 | | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] 237 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | Ok([(self.dio1 as u8) | ((self.dio2 as u8) << 1) | ((self.dio3 as u8) << 2)]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:263:59 [INFO] [stdout] | [INFO] [stdout] 263 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 264 | | Ok([self as u8]) [INFO] [stdout] 265 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/dio.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | Ok([self as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:194:68 [INFO] [stdout] | [INFO] [stdout] 194 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 195 | | Ok(Self { [INFO] [stdout] 196 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 197 | | }) [INFO] [stdout] 198 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:195:9 [INFO] [stdout] | [INFO] [stdout] 195 | / Ok(Self { [INFO] [stdout] 196 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 197 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:205:59 [INFO] [stdout] | [INFO] [stdout] 205 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 206 | | Ok(self.value.to_be_bytes()) [INFO] [stdout] 207 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | Ok(self.value.to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:214:68 [INFO] [stdout] | [INFO] [stdout] 214 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 215 | | Ok(Self { [INFO] [stdout] 216 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 217 | | }) [INFO] [stdout] 218 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | / Ok(Self { [INFO] [stdout] 216 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 217 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:225:59 [INFO] [stdout] | [INFO] [stdout] 225 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 226 | | Ok(self.value.to_be_bytes()) [INFO] [stdout] 227 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | Ok(self.value.to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:234:68 [INFO] [stdout] | [INFO] [stdout] 234 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 235 | | Ok(Self { [INFO] [stdout] 236 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 237 | | }) [INFO] [stdout] 238 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | / Ok(Self { [INFO] [stdout] 236 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 237 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:245:59 [INFO] [stdout] | [INFO] [stdout] 245 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 246 | | Ok(self.value.to_be_bytes()) [INFO] [stdout] 247 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:246:9 [INFO] [stdout] | [INFO] [stdout] 246 | Ok(self.value.to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:254:68 [INFO] [stdout] | [INFO] [stdout] 254 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 255 | | Ok(Self { value: bytes }) [INFO] [stdout] 256 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | Ok(Self { value: bytes }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/registers/packet.rs:263:59 [INFO] [stdout] | [INFO] [stdout] 263 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 264 | | Ok(self.value) [INFO] [stdout] 265 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 8], Infallible> [INFO] [stdout] --> src/registers/packet.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | Ok(self.value) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:272:68 [INFO] [stdout] | [INFO] [stdout] 272 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 273 | | Ok(Self { address: bytes[0] }) [INFO] [stdout] 274 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:273:9 [INFO] [stdout] | [INFO] [stdout] 273 | Ok(Self { address: bytes[0] }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:281:59 [INFO] [stdout] | [INFO] [stdout] 281 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 282 | | Ok([self.address]) [INFO] [stdout] 283 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | Ok([self.address]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:290:68 [INFO] [stdout] | [INFO] [stdout] 290 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 291 | | Ok(Self { address: bytes[0] }) [INFO] [stdout] 292 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:291:9 [INFO] [stdout] | [INFO] [stdout] 291 | Ok(Self { address: bytes[0] }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:299:59 [INFO] [stdout] | [INFO] [stdout] 299 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 300 | | Ok([self.address]) [INFO] [stdout] 301 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:300:9 [INFO] [stdout] | [INFO] [stdout] 300 | Ok([self.address]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:308:68 [INFO] [stdout] | [INFO] [stdout] 308 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 309 | | Ok(Self { [INFO] [stdout] 310 | | inverted_iq: bytes[0] & 0x01 != 0, [INFO] [stdout] 311 | | }) [INFO] [stdout] 312 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | / Ok(Self { [INFO] [stdout] 310 | | inverted_iq: bytes[0] & 0x01 != 0, [INFO] [stdout] 311 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:319:59 [INFO] [stdout] | [INFO] [stdout] 319 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 320 | | Ok([self.inverted_iq as u8]) [INFO] [stdout] 321 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/packet.rs:320:9 [INFO] [stdout] | [INFO] [stdout] 320 | Ok([self.inverted_iq as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:328:68 [INFO] [stdout] | [INFO] [stdout] 328 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 329 | | Ok(Self { [INFO] [stdout] 330 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 331 | | }) [INFO] [stdout] 332 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/packet.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | / Ok(Self { [INFO] [stdout] 330 | | value: u16::from_be_bytes(bytes), [INFO] [stdout] 331 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:339:59 [INFO] [stdout] | [INFO] [stdout] 339 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 340 | | Ok(self.value.to_be_bytes()) [INFO] [stdout] 341 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 2], Infallible> [INFO] [stdout] --> src/registers/packet.rs:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | Ok(self.value.to_be_bytes()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:173:68 [INFO] [stdout] | [INFO] [stdout] 173 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 174 | | Ok(Self { [INFO] [stdout] 175 | | value: u32::from_be_bytes(bytes), [INFO] [stdout] 176 | | }) [INFO] [stdout] 177 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | / Ok(Self { [INFO] [stdout] 175 | | value: u32::from_be_bytes(bytes), [INFO] [stdout] 176 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:184:68 [INFO] [stdout] | [INFO] [stdout] 184 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 185 | | Ok(Self { [INFO] [stdout] 186 | | bw_500khz_opt: bytes[0] & 0x04 != 0, [INFO] [stdout] 187 | | }) [INFO] [stdout] 188 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | / Ok(Self { [INFO] [stdout] 186 | | bw_500khz_opt: bytes[0] & 0x04 != 0, [INFO] [stdout] 187 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:195:59 [INFO] [stdout] | [INFO] [stdout] 195 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 196 | | Ok([if self.bw_500khz_opt { 0x04 } else { 0x00 }]) [INFO] [stdout] 197 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:196:9 [INFO] [stdout] | [INFO] [stdout] 196 | Ok([if self.bw_500khz_opt { 0x04 } else { 0x00 }]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:213:59 [INFO] [stdout] | [INFO] [stdout] 213 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 214 | | Ok([self.to_byte()]) [INFO] [stdout] 215 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | Ok([self.to_byte()]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:222:68 [INFO] [stdout] | [INFO] [stdout] 222 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 223 | | Ok(Self { [INFO] [stdout] 224 | | threshold: (bytes[0] >> 1) & 0x0F, [INFO] [stdout] 225 | | }) [INFO] [stdout] 226 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:223:9 [INFO] [stdout] | [INFO] [stdout] 223 | / Ok(Self { [INFO] [stdout] 224 | | threshold: (bytes[0] >> 1) & 0x0F, [INFO] [stdout] 225 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:233:59 [INFO] [stdout] | [INFO] [stdout] 233 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 234 | | Ok([(self.threshold & 0x0F) << 1]) [INFO] [stdout] 235 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:234:9 [INFO] [stdout] | [INFO] [stdout] 234 | Ok([(self.threshold & 0x0F) << 1]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:242:68 [INFO] [stdout] | [INFO] [stdout] 242 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 243 | | Ok(Self { [INFO] [stdout] 244 | | threshold: bytes[0], [INFO] [stdout] 245 | | }) [INFO] [stdout] 246 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/rf.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | / Ok(Self { [INFO] [stdout] 244 | | threshold: bytes[0], [INFO] [stdout] 245 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:253:59 [INFO] [stdout] | [INFO] [stdout] 253 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 254 | | Ok([self.threshold]) [INFO] [stdout] 255 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/rf.rs:254:9 [INFO] [stdout] | [INFO] [stdout] 254 | Ok([self.threshold]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:121:68 [INFO] [stdout] | [INFO] [stdout] 121 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 122 | | Ok(Self { [INFO] [stdout] 123 | | enabled: bytes[0] & 0x01 != 0, [INFO] [stdout] 124 | | }) [INFO] [stdout] 125 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:122:9 [INFO] [stdout] | [INFO] [stdout] 122 | / Ok(Self { [INFO] [stdout] 123 | | enabled: bytes[0] & 0x01 != 0, [INFO] [stdout] 124 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:132:59 [INFO] [stdout] | [INFO] [stdout] 132 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 133 | | Ok([self.enabled as u8]) [INFO] [stdout] 134 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | Ok([self.enabled as u8]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:141:68 [INFO] [stdout] | [INFO] [stdout] 141 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 142 | | Ok(Self { [INFO] [stdout] 143 | | value: bytes[0] & 0x2F, [INFO] [stdout] 144 | | }) [INFO] [stdout] 145 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | / Ok(Self { [INFO] [stdout] 143 | | value: bytes[0] & 0x2F, [INFO] [stdout] 144 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:152:59 [INFO] [stdout] | [INFO] [stdout] 152 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 153 | | Ok([self.value & 0x2F]) [INFO] [stdout] 154 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | Ok([self.value & 0x2F]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:161:68 [INFO] [stdout] | [INFO] [stdout] 161 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 162 | | Ok(Self { [INFO] [stdout] 163 | | value: bytes[0] & 0x2F, [INFO] [stdout] 164 | | }) [INFO] [stdout] 165 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | / Ok(Self { [INFO] [stdout] 163 | | value: bytes[0] & 0x2F, [INFO] [stdout] 164 | | }) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:172:59 [INFO] [stdout] | [INFO] [stdout] 172 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 173 | | Ok([self.value & 0x2F]) [INFO] [stdout] 174 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | Ok([self.value & 0x2F]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:181:68 [INFO] [stdout] | [INFO] [stdout] 181 | fn from_bytes(bytes: Self::Array) -> Result { [INFO] [stdout] | ____________________________________________________________________^ [INFO] [stdout] 182 | | Ok(Self { mask: bytes[0] }) [INFO] [stdout] 183 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/registers/system.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | Ok(Self { mask: bytes[0] }) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:190:59 [INFO] [stdout] | [INFO] [stdout] 190 | fn to_bytes(self) -> Result { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 191 | | Ok([self.mask]) [INFO] [stdout] 192 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 1], Infallible> [INFO] [stdout] --> src/registers/system.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | Ok([self.mask]) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sx1262` (lib test) due to 159 previous errors [INFO] running `Command { std: "docker" "inspect" "9040e18824bb064522e1cb85610c6e66708b311bc40dcec9b9f32e863b7f8985", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9040e18824bb064522e1cb85610c6e66708b311bc40dcec9b9f32e863b7f8985", kill_on_drop: false }` [INFO] [stdout] 9040e18824bb064522e1cb85610c6e66708b311bc40dcec9b9f32e863b7f8985