[INFO] fetching crate rust-cryptoauthlib 0.4.5... [INFO] linting rust-cryptoauthlib-0.4.5 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate rust-cryptoauthlib 0.4.5 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate rust-cryptoauthlib 0.4.5 [INFO] finished tweaking crates.io crate rust-cryptoauthlib 0.4.5 [INFO] tweaked toml for crates.io crate rust-cryptoauthlib 0.4.5 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rust-cryptoauthlib 0.4.5 on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 42 packages to latest compatible versions [INFO] [stderr] Adding cmake v0.1.45 (available: v0.1.57) [INFO] [stderr] Adding rand v0.8.5 (available: v0.10.0) [INFO] [stderr] Adding serial_test v0.5.1 (available: v3.4.0) [INFO] [stderr] Adding strum_macros v0.21.1 (available: v0.28.0) [INFO] [stderr] Adding toml v0.5.11 (available: v1.0.7+spec-1.1.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cmake v0.1.45 [INFO] [stderr] Downloaded cryptoauthlib-sys v0.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2fd06fcf14013d969d268a6c18ed153a067ba993fdb4f47066c19e1906173bef [INFO] running `Command { std: "docker" "start" "-a" "2fd06fcf14013d969d268a6c18ed153a067ba993fdb4f47066c19e1906173bef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fd06fcf14013d969d268a6c18ed153a067ba993fdb4f47066c19e1906173bef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fd06fcf14013d969d268a6c18ed153a067ba993fdb4f47066c19e1906173bef", kill_on_drop: false }` [INFO] [stdout] 2fd06fcf14013d969d268a6c18ed153a067ba993fdb4f47066c19e1906173bef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e674ca72ca75b2f1a6ec4b7bc3a2f6c51d64d18c952b2535c588a0fe6ab4f210 [INFO] running `Command { std: "docker" "start" "-a" "e674ca72ca75b2f1a6ec4b7bc3a2f6c51d64d18c952b2535c588a0fe6ab4f210", kill_on_drop: false }` [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling cmake v0.1.45 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking parking_lot_core v0.8.6 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling cryptoauthlib-sys v0.2.2 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling strum_macros v0.21.1 [INFO] [stderr] Compiling serial_test_derive v0.5.1 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stderr] Checking serial_test v0.5.1 [INFO] [stderr] Checking rust-cryptoauthlib v0.4.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `temp_ctx` is never read [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:339:9 [INFO] [stdout] | [INFO] [stdout] 339 | temp_ctx.ctr_ctx = self.aes_ctr_block(temp_ctx.ctr_ctx, &t, &mut u)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 51 - data: &mut Vec, [INFO] [stdout] 51 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:75:24 [INFO] [stdout] | [INFO] [stdout] 75 | || (aead_param.tag_length.unwrap() % 2 != 0))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!aead_param.tag_length.unwrap().is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | || (aead_param.tag.as_ref().unwrap().len() % 2 != 0))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!aead_param.tag.as_ref().unwrap().len().is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:135:61 [INFO] [stdout] | [INFO] [stdout] 135 | if !(3..=ATCA_AES_DATA_SIZE).contains(&tag_size) || (tag_size % 2 != 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: replace with: `!tag_size.is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:238:15 [INFO] [stdout] | [INFO] [stdout] 238 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 238 - data: &mut Vec, [INFO] [stdout] 238 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:253:16 [INFO] [stdout] | [INFO] [stdout] 253 | if 0 == (temp_ctx.data_size % (ATCA_AES_DATA_SIZE as u32)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `temp_ctx.data_size.is_multiple_of(ATCA_AES_DATA_SIZE as u32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:283:16 [INFO] [stdout] | [INFO] [stdout] 283 | if 0 == (temp_ctx.data_size % (ATCA_AES_DATA_SIZE as u32)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `temp_ctx.data_size.is_multiple_of(ATCA_AES_DATA_SIZE as u32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 22 - data: &mut Vec, [INFO] [stdout] 22 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let slot: u16; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] = note: `#[warn(clippy::needless_late_init)]` on by default [INFO] [stdout] help: move the declaration `slot` here and remove the assignments from the `match` arms [INFO] [stdout] | [INFO] [stdout] 27 ~ [INFO] [stdout] 28 ~ let slot: u16 = match self.cipher_aes_common(slot_id, data.len(), cipher_param.key) { [INFO] [stdout] 29 ~ Ok(val) => val, [INFO] [stdout] 30 | Err(err) => return err, [INFO] [stdout] 31 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | if (data.len() % ATCA_AES_DATA_SIZE) != 0x00 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!data.len().is_multiple_of(ATCA_AES_DATA_SIZE)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 65 - data: &mut Vec, [INFO] [stdout] 65 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | if (data.len() % ATCA_AES_DATA_SIZE) != 0x00 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!data.len().is_multiple_of(ATCA_AES_DATA_SIZE)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:153:15 [INFO] [stdout] | [INFO] [stdout] 153 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 153 - data: &mut Vec, [INFO] [stdout] 153 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:230:15 [INFO] [stdout] | [INFO] [stdout] 230 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 230 - data: &mut Vec, [INFO] [stdout] 230 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | let slot: u16; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `slot` here and remove the assignments from the `match` arms [INFO] [stdout] | [INFO] [stdout] 236 ~ [INFO] [stdout] 237 ~ let slot: u16 = match self.cipher_aes_common(slot_id, data.len(), cipher_param.key) { [INFO] [stdout] 238 ~ Ok(val) => val, [INFO] [stdout] 239 | Err(err) => return err, [INFO] [stdout] 240 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:96:15 [INFO] [stdout] | [INFO] [stdout] 96 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 96 - data: &mut Vec, [INFO] [stdout] 96 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/hw_impl/ecdh.rs:157:37 [INFO] [stdout] | [INFO] [stdout] 157 | / ... if ecdh_out_to_n_plus_1 { [INFO] [stdout] 158 | | ... bad_param = true; [INFO] [stdout] 159 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 156 ~ EcdhTarget::Compatibility [INFO] [stdout] 157 ~ if ecdh_out_to_n_plus_1 => { [INFO] [stdout] 158 | bad_param = true; [INFO] [stdout] 159 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> src/hw_impl/mac.rs:86:55 [INFO] [stdout] | [INFO] [stdout] 86 | let mut out_mac: Vec = vec![0x00; mac_length as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `mac_length` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> src/hw_impl/mac.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | out_mac.copy_from_slice(&mac[..mac_length as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `mac_length` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/hw_impl/mod.rs:651:12 [INFO] [stdout] | [INFO] [stdout] 651 | if !dev_type_608 && alt_key_buff [INFO] [stdout] | ____________^ [INFO] [stdout] 652 | | || alt_key_buff && no_len_32 [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 651 - if !dev_type_608 && alt_key_buff [INFO] [stdout] 652 - || alt_key_buff && no_len_32 [INFO] [stdout] 651 + if !(!alt_key_buff || dev_type_608 && !no_len_32) [INFO] [stdout] | [INFO] [stdout] 651 - if !dev_type_608 && alt_key_buff [INFO] [stdout] 652 - || alt_key_buff && no_len_32 [INFO] [stdout] 651 + if (no_len_32 || !dev_type_608) && alt_key_buff [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting raw pointers to the same type and constness is unnecessary (`*mut u8` -> `*mut u8`) [INFO] [stdout] --> src/hw_impl/mod.rs:713:59 [INFO] [stdout] | [INFO] [stdout] 713 | cryptoauthlib_sys::atcab_genkey(slot, ptr::null_mut() as *mut u8) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr::null_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/hw_impl/mod.rs:886:9 [INFO] [stdout] | [INFO] [stdout] 886 | let result: AtcaStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `result` here and remove the assignments from the `match` arms [INFO] [stdout] | [INFO] [stdout] 886 ~ [INFO] [stdout] 887 | [INFO] [stdout] 888 ~ let result: AtcaStatus = match mode { [INFO] [stdout] 889 | // Executes the Verify command, which verifies a signature (ECDSA [INFO] [stdout] ... [INFO] [stdout] 896 | } [INFO] [stdout] 897 ~ AtcaStatus::from(unsafe { [INFO] [stdout] 898 | let _guard = self [INFO] [stdout] ... [INFO] [stdout] 918 | } [INFO] [stdout] 919 ~ AtcaStatus::from(unsafe { [INFO] [stdout] 920 | let _guard = self [INFO] [stdout] ... [INFO] [stdout] 932 | _ => return Err(AtcaStatus::AtcaUnimplemented), [INFO] [stdout] 933 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/hw_impl/mod.rs:1689:9 [INFO] [stdout] | [INFO] [stdout] 1689 | let result: AtcaStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `result` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 1689 ~ [INFO] [stdout] 1690 | [INFO] [stdout] 1691 ~ let result: AtcaStatus = if slot_data.is_secret && slot_data.read_key.encrypt_read { [INFO] [stdout] 1692 | let num_in: [u8; ATCA_NONCE_NUMIN_SIZE] = [0; ATCA_NONCE_NUMIN_SIZE]; [INFO] [stdout] 1693 ~ self.read_slot_with_encryption(slot as u16, block, data, &num_in) [INFO] [stdout] 1694 | } else { [INFO] [stdout] 1695 | const OFFSET: u8 = 0; [INFO] [stdout] 1696 ~ self.read_zone(ATCA_ZONE_DATA, slot as u16, block, OFFSET, data) [INFO] [stdout] 1697 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/hw_impl/mod.rs:1693:53 [INFO] [stdout] | [INFO] [stdout] 1693 | result = self.read_slot_with_encryption(slot as u16, block, data, &num_in) [INFO] [stdout] | ^^^^^^^^^^^ help: try: `slot` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/hw_impl/mod.rs:1696:53 [INFO] [stdout] | [INFO] [stdout] 1696 | result = self.read_zone(ATCA_ZONE_DATA, slot as u16, block, OFFSET, data) [INFO] [stdout] | ^^^^^^^^^^^ help: try: `slot` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/sw_impl/mod.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | / match self.dev_type { [INFO] [stdout] 226 | | AtcaDeviceType::AtcaTestDevFailUnimplemented | AtcaDeviceType::AtcaTestDevSuccess => { [INFO] [stdout] 227 | | true [INFO] [stdout] ... | [INFO] [stdout] 230 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 225 - match self.dev_type { [INFO] [stdout] 226 - AtcaDeviceType::AtcaTestDevFailUnimplemented | AtcaDeviceType::AtcaTestDevSuccess => { [INFO] [stdout] 227 - true [INFO] [stdout] 228 - } [INFO] [stdout] 229 - _ => false, [INFO] [stdout] 230 - } [INFO] [stdout] 225 + matches!(self.dev_type, AtcaDeviceType::AtcaTestDevFailUnimplemented | AtcaDeviceType::AtcaTestDevSuccess) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/mod.rs:548:26 [INFO] [stdout] | [INFO] [stdout] 548 | unsafe { Box::from_raw(iface_cfg_raw_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 548 | unsafe { let _ = Box::from_raw(iface_cfg_raw_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/mod.rs:1238:13 [INFO] [stdout] | [INFO] [stdout] 1238 | Box::from_raw(self.iface_cfg_ptr.ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1238 | let _ = Box::from_raw(self.iface_cfg_ptr.ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:343:26 [INFO] [stdout] | [INFO] [stdout] 343 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 343 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:366:18 [INFO] [stdout] | [INFO] [stdout] 366 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 366 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:393:18 [INFO] [stdout] | [INFO] [stdout] 393 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 393 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:434:26 [INFO] [stdout] | [INFO] [stdout] 434 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 434 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:464:18 [INFO] [stdout] | [INFO] [stdout] 464 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 464 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:495:18 [INFO] [stdout] | [INFO] [stdout] 495 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 495 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:187:26 [INFO] [stdout] | [INFO] [stdout] 187 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 187 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:216:18 [INFO] [stdout] | [INFO] [stdout] 216 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 216 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 253 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 253 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:290:18 [INFO] [stdout] | [INFO] [stdout] 290 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 290 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:319:18 [INFO] [stdout] | [INFO] [stdout] 319 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 319 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:353:18 [INFO] [stdout] | [INFO] [stdout] 353 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 353 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/mac.rs:258:26 [INFO] [stdout] | [INFO] [stdout] 258 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 258 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/mac.rs:286:18 [INFO] [stdout] | [INFO] [stdout] 286 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 286 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/mac.rs:311:18 [INFO] [stdout] | [INFO] [stdout] 311 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 311 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around const expression [INFO] [stdout] --> src/unit_tests/hw_backend_aes_cipher_block.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | let data_bad_len: [u8; (ATCA_AES_DATA_SIZE - 1)] = [0x00; (ATCA_AES_DATA_SIZE - 1)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 16 - let data_bad_len: [u8; (ATCA_AES_DATA_SIZE - 1)] = [0x00; (ATCA_AES_DATA_SIZE - 1)]; [INFO] [stdout] 16 + let data_bad_len: [u8; ATCA_AES_DATA_SIZE - 1] = [0x00; (ATCA_AES_DATA_SIZE - 1)]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `temp_ctx` is never read [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:339:9 [INFO] [stdout] | [INFO] [stdout] 339 | temp_ctx.ctr_ctx = self.aes_ctr_block(temp_ctx.ctr_ctx, &t, &mut u)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 51 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 51 - data: &mut Vec, [INFO] [stdout] 51 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:75:24 [INFO] [stdout] | [INFO] [stdout] 75 | || (aead_param.tag_length.unwrap() % 2 != 0))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!aead_param.tag_length.unwrap().is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:79:24 [INFO] [stdout] | [INFO] [stdout] 79 | || (aead_param.tag.as_ref().unwrap().len() % 2 != 0))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!aead_param.tag.as_ref().unwrap().len().is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:135:61 [INFO] [stdout] | [INFO] [stdout] 135 | if !(3..=ATCA_AES_DATA_SIZE).contains(&tag_size) || (tag_size % 2 != 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: replace with: `!tag_size.is_multiple_of(2)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:238:15 [INFO] [stdout] | [INFO] [stdout] 238 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 238 - data: &mut Vec, [INFO] [stdout] 238 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:253:16 [INFO] [stdout] | [INFO] [stdout] 253 | if 0 == (temp_ctx.data_size % (ATCA_AES_DATA_SIZE as u32)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `temp_ctx.data_size.is_multiple_of(ATCA_AES_DATA_SIZE as u32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_ccm.rs:283:16 [INFO] [stdout] | [INFO] [stdout] 283 | if 0 == (temp_ctx.data_size % (ATCA_AES_DATA_SIZE as u32)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `temp_ctx.data_size.is_multiple_of(ATCA_AES_DATA_SIZE as u32)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 22 - data: &mut Vec, [INFO] [stdout] 22 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let slot: u16; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] = note: `#[warn(clippy::needless_late_init)]` on by default [INFO] [stdout] help: move the declaration `slot` here and remove the assignments from the `match` arms [INFO] [stdout] | [INFO] [stdout] 27 ~ [INFO] [stdout] 28 ~ let slot: u16 = match self.cipher_aes_common(slot_id, data.len(), cipher_param.key) { [INFO] [stdout] 29 ~ Ok(val) => val, [INFO] [stdout] 30 | Err(err) => return err, [INFO] [stdout] 31 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | if (data.len() % ATCA_AES_DATA_SIZE) != 0x00 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!data.len().is_multiple_of(ATCA_AES_DATA_SIZE)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 65 - data: &mut Vec, [INFO] [stdout] 65 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | if (data.len() % ATCA_AES_DATA_SIZE) != 0x00 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!data.len().is_multiple_of(ATCA_AES_DATA_SIZE)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:153:15 [INFO] [stdout] | [INFO] [stdout] 153 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 153 - data: &mut Vec, [INFO] [stdout] 153 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:230:15 [INFO] [stdout] | [INFO] [stdout] 230 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 230 - data: &mut Vec, [INFO] [stdout] 230 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | let slot: u16; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `slot` here and remove the assignments from the `match` arms [INFO] [stdout] | [INFO] [stdout] 236 ~ [INFO] [stdout] 237 ~ let slot: u16 = match self.cipher_aes_common(slot_id, data.len(), cipher_param.key) { [INFO] [stdout] 238 ~ Ok(val) => val, [INFO] [stdout] 239 | Err(err) => return err, [INFO] [stdout] 240 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:96:15 [INFO] [stdout] | [INFO] [stdout] 96 | data: &mut Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 96 - data: &mut Vec, [INFO] [stdout] 96 + data: &mut [u8], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` can be collapsed into the outer `match` [INFO] [stdout] --> src/hw_impl/ecdh.rs:157:37 [INFO] [stdout] | [INFO] [stdout] 157 | / ... if ecdh_out_to_n_plus_1 { [INFO] [stdout] 158 | | ... bad_param = true; [INFO] [stdout] 159 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match [INFO] [stdout] = note: `#[warn(clippy::collapsible_match)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 156 ~ EcdhTarget::Compatibility [INFO] [stdout] 157 ~ if ecdh_out_to_n_plus_1 => { [INFO] [stdout] 158 | bad_param = true; [INFO] [stdout] 159 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> src/hw_impl/mac.rs:86:55 [INFO] [stdout] | [INFO] [stdout] 86 | let mut out_mac: Vec = vec![0x00; mac_length as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `mac_length` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> src/hw_impl/mac.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | out_mac.copy_from_slice(&mac[..mac_length as usize]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `mac_length` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/hw_impl/mod.rs:651:12 [INFO] [stdout] | [INFO] [stdout] 651 | if !dev_type_608 && alt_key_buff [INFO] [stdout] | ____________^ [INFO] [stdout] 652 | | || alt_key_buff && no_len_32 [INFO] [stdout] | |________________________________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 651 - if !dev_type_608 && alt_key_buff [INFO] [stdout] 652 - || alt_key_buff && no_len_32 [INFO] [stdout] 651 + if !(!alt_key_buff || dev_type_608 && !no_len_32) [INFO] [stdout] | [INFO] [stdout] 651 - if !dev_type_608 && alt_key_buff [INFO] [stdout] 652 - || alt_key_buff && no_len_32 [INFO] [stdout] 651 + if (no_len_32 || !dev_type_608) && alt_key_buff [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting raw pointers to the same type and constness is unnecessary (`*mut u8` -> `*mut u8`) [INFO] [stdout] --> src/hw_impl/mod.rs:713:59 [INFO] [stdout] | [INFO] [stdout] 713 | cryptoauthlib_sys::atcab_genkey(slot, ptr::null_mut() as *mut u8) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr::null_mut()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/hw_impl/mod.rs:886:9 [INFO] [stdout] | [INFO] [stdout] 886 | let result: AtcaStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `result` here and remove the assignments from the `match` arms [INFO] [stdout] | [INFO] [stdout] 886 ~ [INFO] [stdout] 887 | [INFO] [stdout] 888 ~ let result: AtcaStatus = match mode { [INFO] [stdout] 889 | // Executes the Verify command, which verifies a signature (ECDSA [INFO] [stdout] ... [INFO] [stdout] 896 | } [INFO] [stdout] 897 ~ AtcaStatus::from(unsafe { [INFO] [stdout] 898 | let _guard = self [INFO] [stdout] ... [INFO] [stdout] 918 | } [INFO] [stdout] 919 ~ AtcaStatus::from(unsafe { [INFO] [stdout] 920 | let _guard = self [INFO] [stdout] ... [INFO] [stdout] 932 | _ => return Err(AtcaStatus::AtcaUnimplemented), [INFO] [stdout] 933 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/hw_impl/mod.rs:1689:9 [INFO] [stdout] | [INFO] [stdout] 1689 | let result: AtcaStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `result` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 1689 ~ [INFO] [stdout] 1690 | [INFO] [stdout] 1691 ~ let result: AtcaStatus = if slot_data.is_secret && slot_data.read_key.encrypt_read { [INFO] [stdout] 1692 | let num_in: [u8; ATCA_NONCE_NUMIN_SIZE] = [0; ATCA_NONCE_NUMIN_SIZE]; [INFO] [stdout] 1693 ~ self.read_slot_with_encryption(slot as u16, block, data, &num_in) [INFO] [stdout] 1694 | } else { [INFO] [stdout] 1695 | const OFFSET: u8 = 0; [INFO] [stdout] 1696 ~ self.read_zone(ATCA_ZONE_DATA, slot as u16, block, OFFSET, data) [INFO] [stdout] 1697 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/hw_impl/mod.rs:1693:53 [INFO] [stdout] | [INFO] [stdout] 1693 | result = self.read_slot_with_encryption(slot as u16, block, data, &num_in) [INFO] [stdout] | ^^^^^^^^^^^ help: try: `slot` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u16` -> `u16`) [INFO] [stdout] --> src/hw_impl/mod.rs:1696:53 [INFO] [stdout] | [INFO] [stdout] 1696 | result = self.read_zone(ATCA_ZONE_DATA, slot as u16, block, OFFSET, data) [INFO] [stdout] | ^^^^^^^^^^^ help: try: `slot` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> src/sw_impl/mod.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | / match self.dev_type { [INFO] [stdout] 226 | | AtcaDeviceType::AtcaTestDevFailUnimplemented | AtcaDeviceType::AtcaTestDevSuccess => { [INFO] [stdout] 227 | | true [INFO] [stdout] ... | [INFO] [stdout] 230 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 225 - match self.dev_type { [INFO] [stdout] 226 - AtcaDeviceType::AtcaTestDevFailUnimplemented | AtcaDeviceType::AtcaTestDevSuccess => { [INFO] [stdout] 227 - true [INFO] [stdout] 228 - } [INFO] [stdout] 229 - _ => false, [INFO] [stdout] 230 - } [INFO] [stdout] 225 + matches!(self.dev_type, AtcaDeviceType::AtcaTestDevFailUnimplemented | AtcaDeviceType::AtcaTestDevSuccess) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> src/unit_tests/hw_backend.rs:678:5 [INFO] [stdout] | [INFO] [stdout] 678 | let device_cmp_config_zone: AtcaStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `device_cmp_config_zone` here and remove the assignments from the `match` arms [INFO] [stdout] | [INFO] [stdout] 678 ~ [INFO] [stdout] 679 | let mut same_config: bool = false; [INFO] [stdout] 680 ~ let device_cmp_config_zone: AtcaStatus = match device.cmp_config_zone(&mut config_data) { [INFO] [stdout] 681 | Ok(val) => { [INFO] [stdout] 682 | same_config = val; [INFO] [stdout] 683 ~ AtcaStatus::AtcaSuccess [INFO] [stdout] 684 | } [INFO] [stdout] 685 ~ Err(err) => err, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`usize` -> `usize`) [INFO] [stdout] --> src/unit_tests/hw_backend_common.rs:66:31 [INFO] [stdout] | [INFO] [stdout] 66 | let loops: usize = max(1, (message.len() / ATCA_BLOCK_SIZE) as usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `((message.len() / ATCA_BLOCK_SIZE))` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] = note: `#[warn(clippy::unnecessary_to_owned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 137 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | &plain_text[..DATA_20_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..DATA_20_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | &plain_text[..DATA_16_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..DATA_16_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | &plain_text[..DATA_16_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..DATA_16_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:173:9 [INFO] [stdout] | [INFO] [stdout] 173 | &plain_text[..DATA_0_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..DATA_0_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:529:9 [INFO] [stdout] | [INFO] [stdout] 529 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:538:9 [INFO] [stdout] | [INFO] [stdout] 538 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:547:9 [INFO] [stdout] | [INFO] [stdout] 547 | &plain_text[..DATA_20_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..DATA_20_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:556:9 [INFO] [stdout] | [INFO] [stdout] 556 | &plain_text[..DATA_16_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..DATA_16_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:565:9 [INFO] [stdout] | [INFO] [stdout] 565 | &plain_text[..DATA_16_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..DATA_16_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:574:9 [INFO] [stdout] | [INFO] [stdout] 574 | &plain_text[..DATA_0_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..DATA_0_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:874:9 [INFO] [stdout] | [INFO] [stdout] 874 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:883:9 [INFO] [stdout] | [INFO] [stdout] 883 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:892:9 [INFO] [stdout] | [INFO] [stdout] 892 | &plain_text[..DATA_16_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..DATA_16_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:1213:9 [INFO] [stdout] | [INFO] [stdout] 1213 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:1222:9 [INFO] [stdout] | [INFO] [stdout] 1222 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:1231:9 [INFO] [stdout] | [INFO] [stdout] 1231 | &plain_text[..DATA_16_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..DATA_16_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:1562:9 [INFO] [stdout] | [INFO] [stdout] 1562 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:1571:9 [INFO] [stdout] | [INFO] [stdout] 1571 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:1580:9 [INFO] [stdout] | [INFO] [stdout] 1580 | &plain_text[..SHORT_TEXT_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..SHORT_TEXT_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:1589:9 [INFO] [stdout] | [INFO] [stdout] 1589 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:1932:9 [INFO] [stdout] | [INFO] [stdout] 1932 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:1941:9 [INFO] [stdout] | [INFO] [stdout] 1941 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:1950:9 [INFO] [stdout] | [INFO] [stdout] 1950 | &plain_text[..SHORT_TEXT_SIZE].to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `&plain_text[..SHORT_TEXT_SIZE]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_vec` [INFO] [stdout] --> src/unit_tests/hw_backend_mac.rs:1959:9 [INFO] [stdout] | [INFO] [stdout] 1959 | &plain_text.to_vec(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: use: `plain_text.as_ref()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/mod.rs:548:26 [INFO] [stdout] | [INFO] [stdout] 548 | unsafe { Box::from_raw(iface_cfg_raw_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 548 | unsafe { let _ = Box::from_raw(iface_cfg_raw_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/mod.rs:1238:13 [INFO] [stdout] | [INFO] [stdout] 1238 | Box::from_raw(self.iface_cfg_ptr.ptr); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 1238 | let _ = Box::from_raw(self.iface_cfg_ptr.ptr); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:343:26 [INFO] [stdout] | [INFO] [stdout] 343 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 343 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:366:18 [INFO] [stdout] | [INFO] [stdout] 366 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 366 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:393:18 [INFO] [stdout] | [INFO] [stdout] 393 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 393 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:434:26 [INFO] [stdout] | [INFO] [stdout] 434 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 434 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:464:18 [INFO] [stdout] | [INFO] [stdout] 464 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 464 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_cipher.rs:495:18 [INFO] [stdout] | [INFO] [stdout] 495 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 495 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:187:26 [INFO] [stdout] | [INFO] [stdout] 187 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 187 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:216:18 [INFO] [stdout] | [INFO] [stdout] 216 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 216 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 253 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 253 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:290:18 [INFO] [stdout] | [INFO] [stdout] 290 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 290 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:319:18 [INFO] [stdout] | [INFO] [stdout] 319 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 319 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/aes_gcm.rs:353:18 [INFO] [stdout] | [INFO] [stdout] 353 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 353 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/mac.rs:258:26 [INFO] [stdout] | [INFO] [stdout] 258 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 258 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/mac.rs:286:18 [INFO] [stdout] | [INFO] [stdout] 286 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 286 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::boxed::Box::::from_raw` that must be used [INFO] [stdout] --> src/hw_impl/mac.rs:311:18 [INFO] [stdout] | [INFO] [stdout] 311 | unsafe { Box::from_raw(ctx_ptr) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 311 | unsafe { let _ = Box::from_raw(ctx_ptr); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.88s [INFO] running `Command { std: "docker" "inspect" "e674ca72ca75b2f1a6ec4b7bc3a2f6c51d64d18c952b2535c588a0fe6ab4f210", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e674ca72ca75b2f1a6ec4b7bc3a2f6c51d64d18c952b2535c588a0fe6ab4f210", kill_on_drop: false }` [INFO] [stdout] e674ca72ca75b2f1a6ec4b7bc3a2f6c51d64d18c952b2535c588a0fe6ab4f210