[INFO] fetching crate ieee802154 0.6.1... [INFO] linting ieee802154-0.6.1 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate ieee802154 0.6.1 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate ieee802154 0.6.1 [INFO] finished tweaking crates.io crate ieee802154 0.6.1 [INFO] tweaked toml for crates.io crate ieee802154 0.6.1 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate ieee802154 0.6.1 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 aes v0.7.5 (available: v0.8.4) [INFO] [stderr] Adding ccm v0.4.4 (available: v0.5.0) [INFO] [stderr] Adding cipher v0.3.0 (available: v0.5.1) [INFO] [stderr] Adding defmt v0.3.100 (available: v1.0.1) [INFO] [stderr] Adding hash32 v0.2.1 (available: v1.0.0) [INFO] [stderr] Adding rand v0.8.5 (available: v0.10.0) [INFO] [stderr] Adding subtle v2.4.1 (available: v2.6.1) [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 hash32-derive v0.1.1 [INFO] [stderr] Downloaded ctr v0.8.0 [INFO] [stderr] Downloaded byte v0.2.7 [INFO] [stderr] Downloaded ccm v0.4.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 68cb52928e13272985b23a66820d2e80559b51cbf4eeb43b0b0ded3e09cbfe56 [INFO] running `Command { std: "docker" "start" "-a" "68cb52928e13272985b23a66820d2e80559b51cbf4eeb43b0b0ded3e09cbfe56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "68cb52928e13272985b23a66820d2e80559b51cbf4eeb43b0b0ded3e09cbfe56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "68cb52928e13272985b23a66820d2e80559b51cbf4eeb43b0b0ded3e09cbfe56", kill_on_drop: false }` [INFO] [stdout] 68cb52928e13272985b23a66820d2e80559b51cbf4eeb43b0b0ded3e09cbfe56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] a896fd55ab9d6e50c78b5ae214ccf896b397c40fda9764382d51ca57825b97e1 [INFO] running `Command { std: "docker" "start" "-a" "a896fd55ab9d6e50c78b5ae214ccf896b397c40fda9764382d51ca57825b97e1", kill_on_drop: false }` [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking byte v0.2.7 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking aead v0.4.3 [INFO] [stderr] Checking ctr v0.8.0 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking ccm v0.4.4 [INFO] [stderr] Compiling hash32-derive v0.1.1 [INFO] [stderr] Checking ieee802154 v0.6.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/mac/frame/frame_control.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / #[cfg_attr(feature = "defmt", derive(defmt::Format))] [INFO] [stdout] 110 | | [INFO] [stdout] | |_^ [INFO] [stdout] 111 | pub enum AddressMode { [INFO] [stdout] | -------------------- the attribute applies to this enum [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/mac/frame/header.rs:361:1 [INFO] [stdout] | [INFO] [stdout] 361 | / #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] [INFO] [stdout] 362 | | [INFO] [stdout] | |_^ [INFO] [stdout] 363 | pub struct ShortAddress(pub u16); [INFO] [stdout] | ----------------------- the attribute applies to this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/mac/frame/header.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | / #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] [INFO] [stdout] 404 | | [INFO] [stdout] | |_^ [INFO] [stdout] 405 | pub struct ExtendedAddress(pub u64); [INFO] [stdout] | -------------------------- the attribute applies to this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `cipher::generic_array::ArrayLength`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | ArrayLength, GenericArray, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | ArrayLength, GenericArray, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `cipher::generic_array::ArrayLength`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | N: ArrayLength, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:34 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | / do_secure!( [INFO] [stdout] 463 | | U4, [INFO] [stdout] 464 | | SecurityLevel::MIC32, [INFO] [stdout] 465 | | SecurityLevel::ENCMIC32 [INFO] [stdout] 466 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:34 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | / do_secure!( [INFO] [stdout] 463 | | U4, [INFO] [stdout] 464 | | SecurityLevel::MIC32, [INFO] [stdout] 465 | | SecurityLevel::ENCMIC32 [INFO] [stdout] 466 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:34 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | / do_secure!( [INFO] [stdout] 470 | | U8, [INFO] [stdout] 471 | | SecurityLevel::MIC64, [INFO] [stdout] 472 | | SecurityLevel::ENCMIC64 [INFO] [stdout] 473 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:34 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | / do_secure!( [INFO] [stdout] 470 | | U8, [INFO] [stdout] 471 | | SecurityLevel::MIC64, [INFO] [stdout] 472 | | SecurityLevel::ENCMIC64 [INFO] [stdout] 473 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:34 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | / do_secure!( [INFO] [stdout] 477 | | CcmU16, [INFO] [stdout] 478 | | SecurityLevel::MIC128, [INFO] [stdout] 479 | | SecurityLevel::ENCMIC128 [INFO] [stdout] 480 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:34 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | / do_secure!( [INFO] [stdout] 477 | | CcmU16, [INFO] [stdout] 478 | | SecurityLevel::MIC128, [INFO] [stdout] 479 | | SecurityLevel::ENCMIC128 [INFO] [stdout] 480 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:39 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:38 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:38 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:39 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:38 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:38 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:39 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:38 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/mac/frame/frame_control.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / #[cfg_attr(feature = "defmt", derive(defmt::Format))] [INFO] [stdout] 110 | | [INFO] [stdout] | |_^ [INFO] [stdout] 111 | pub enum AddressMode { [INFO] [stdout] | -------------------- the attribute applies to this enum [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_outer_attr)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:38 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:231:23 [INFO] [stdout] | [INFO] [stdout] 231 | ) -> Option<(u64, GenericArray)>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/default.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | GenericArray, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/default.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | ) -> Option<(u64, GenericArray)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:808:27 [INFO] [stdout] | [INFO] [stdout] 808 | ) -> Option<(u64, GenericArray)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:809:23 [INFO] [stdout] | [INFO] [stdout] 809 | let key = GenericArray::default(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/mac/frame/header.rs:361:1 [INFO] [stdout] | [INFO] [stdout] 361 | / #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] [INFO] [stdout] 362 | | [INFO] [stdout] | |_^ [INFO] [stdout] 363 | pub struct ShortAddress(pub u16); [INFO] [stdout] | ----------------------- the attribute applies to this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after outer attribute [INFO] [stdout] --> src/mac/frame/header.rs:403:1 [INFO] [stdout] | [INFO] [stdout] 403 | / #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] [INFO] [stdout] 404 | | [INFO] [stdout] | |_^ [INFO] [stdout] 405 | pub struct ExtendedAddress(pub u64); [INFO] [stdout] | -------------------------- the attribute applies to this struct [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_outer_attr [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `cipher::generic_array::ArrayLength`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | ArrayLength, GenericArray, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:175:26 [INFO] [stdout] | [INFO] [stdout] 175 | ArrayLength, GenericArray, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated trait `cipher::generic_array::ArrayLength`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:213:8 [INFO] [stdout] | [INFO] [stdout] 213 | N: ArrayLength, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:34 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | / do_secure!( [INFO] [stdout] 463 | | U4, [INFO] [stdout] 464 | | SecurityLevel::MIC32, [INFO] [stdout] 465 | | SecurityLevel::ENCMIC32 [INFO] [stdout] 466 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:34 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | / do_secure!( [INFO] [stdout] 463 | | U4, [INFO] [stdout] 464 | | SecurityLevel::MIC32, [INFO] [stdout] 465 | | SecurityLevel::ENCMIC32 [INFO] [stdout] 466 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:34 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | / do_secure!( [INFO] [stdout] 470 | | U8, [INFO] [stdout] 471 | | SecurityLevel::MIC64, [INFO] [stdout] 472 | | SecurityLevel::ENCMIC64 [INFO] [stdout] 473 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:34 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | / do_secure!( [INFO] [stdout] 470 | | U8, [INFO] [stdout] 471 | | SecurityLevel::MIC64, [INFO] [stdout] 472 | | SecurityLevel::ENCMIC64 [INFO] [stdout] 473 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:34 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | / do_secure!( [INFO] [stdout] 477 | | CcmU16, [INFO] [stdout] 478 | | SecurityLevel::MIC128, [INFO] [stdout] 479 | | SecurityLevel::ENCMIC128 [INFO] [stdout] 480 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:34 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | / do_secure!( [INFO] [stdout] 477 | | CcmU16, [INFO] [stdout] 478 | | SecurityLevel::MIC128, [INFO] [stdout] 479 | | SecurityLevel::ENCMIC128 [INFO] [stdout] 480 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:39 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:38 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:38 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:39 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:38 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:38 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:39 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:38 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:38 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:231:23 [INFO] [stdout] | [INFO] [stdout] 231 | ) -> Option<(u64, GenericArray)>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/default.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | GenericArray, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `cipher::generic_array::GenericArray`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/default.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 28 | ) -> Option<(u64, GenericArray)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:48 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | / do_secure!( [INFO] [stdout] 463 | | U4, [INFO] [stdout] 464 | | SecurityLevel::MIC32, [INFO] [stdout] 465 | | SecurityLevel::ENCMIC32 [INFO] [stdout] 466 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:48 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | / do_secure!( [INFO] [stdout] 463 | | U4, [INFO] [stdout] 464 | | SecurityLevel::MIC32, [INFO] [stdout] 465 | | SecurityLevel::ENCMIC32 [INFO] [stdout] 466 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cipher::generic_array::GenericArray::::as_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:445:63 [INFO] [stdout] | [INFO] [stdout] 445 | buffer.write(&mut offset, tag.as_slice()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | / do_secure!( [INFO] [stdout] 463 | | U4, [INFO] [stdout] 464 | | SecurityLevel::MIC32, [INFO] [stdout] 465 | | SecurityLevel::ENCMIC32 [INFO] [stdout] 466 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:48 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | / do_secure!( [INFO] [stdout] 470 | | U8, [INFO] [stdout] 471 | | SecurityLevel::MIC64, [INFO] [stdout] 472 | | SecurityLevel::ENCMIC64 [INFO] [stdout] 473 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:48 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | / do_secure!( [INFO] [stdout] 470 | | U8, [INFO] [stdout] 471 | | SecurityLevel::MIC64, [INFO] [stdout] 472 | | SecurityLevel::ENCMIC64 [INFO] [stdout] 473 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cipher::generic_array::GenericArray::::as_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:445:63 [INFO] [stdout] | [INFO] [stdout] 445 | buffer.write(&mut offset, tag.as_slice()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | / do_secure!( [INFO] [stdout] 470 | | U8, [INFO] [stdout] 471 | | SecurityLevel::MIC64, [INFO] [stdout] 472 | | SecurityLevel::ENCMIC64 [INFO] [stdout] 473 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:48 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | / do_secure!( [INFO] [stdout] 477 | | CcmU16, [INFO] [stdout] 478 | | SecurityLevel::MIC128, [INFO] [stdout] 479 | | SecurityLevel::ENCMIC128 [INFO] [stdout] 480 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:48 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | / do_secure!( [INFO] [stdout] 477 | | CcmU16, [INFO] [stdout] 478 | | SecurityLevel::MIC128, [INFO] [stdout] 479 | | SecurityLevel::ENCMIC128 [INFO] [stdout] 480 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cipher::generic_array::GenericArray::::as_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:445:63 [INFO] [stdout] | [INFO] [stdout] 445 | buffer.write(&mut offset, tag.as_slice()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | / do_secure!( [INFO] [stdout] 477 | | CcmU16, [INFO] [stdout] 478 | | SecurityLevel::MIC128, [INFO] [stdout] 479 | | SecurityLevel::ENCMIC128 [INFO] [stdout] 480 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:53 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:52 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:52 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:53 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:52 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:52 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:53 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:52 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:52 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:48 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | / do_secure!( [INFO] [stdout] 463 | | U4, [INFO] [stdout] 464 | | SecurityLevel::MIC32, [INFO] [stdout] 465 | | SecurityLevel::ENCMIC32 [INFO] [stdout] 466 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:48 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | / do_secure!( [INFO] [stdout] 463 | | U4, [INFO] [stdout] 464 | | SecurityLevel::MIC32, [INFO] [stdout] 465 | | SecurityLevel::ENCMIC32 [INFO] [stdout] 466 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cipher::generic_array::GenericArray::::as_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:445:63 [INFO] [stdout] | [INFO] [stdout] 445 | buffer.write(&mut offset, tag.as_slice()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 462 | / do_secure!( [INFO] [stdout] 463 | | U4, [INFO] [stdout] 464 | | SecurityLevel::MIC32, [INFO] [stdout] 465 | | SecurityLevel::ENCMIC32 [INFO] [stdout] 466 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:48 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | / do_secure!( [INFO] [stdout] 470 | | U8, [INFO] [stdout] 471 | | SecurityLevel::MIC64, [INFO] [stdout] 472 | | SecurityLevel::ENCMIC64 [INFO] [stdout] 473 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:48 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | / do_secure!( [INFO] [stdout] 470 | | U8, [INFO] [stdout] 471 | | SecurityLevel::MIC64, [INFO] [stdout] 472 | | SecurityLevel::ENCMIC64 [INFO] [stdout] 473 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cipher::generic_array::GenericArray::::as_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:445:63 [INFO] [stdout] | [INFO] [stdout] 445 | buffer.write(&mut offset, tag.as_slice()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 469 | / do_secure!( [INFO] [stdout] 470 | | U8, [INFO] [stdout] 471 | | SecurityLevel::MIC64, [INFO] [stdout] 472 | | SecurityLevel::ENCMIC64 [INFO] [stdout] 473 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:429:48 [INFO] [stdout] | [INFO] [stdout] 429 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | / do_secure!( [INFO] [stdout] 477 | | CcmU16, [INFO] [stdout] 478 | | SecurityLevel::MIC128, [INFO] [stdout] 479 | | SecurityLevel::ENCMIC128 [INFO] [stdout] 480 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:434:48 [INFO] [stdout] | [INFO] [stdout] 434 | &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | / do_secure!( [INFO] [stdout] 477 | | CcmU16, [INFO] [stdout] 478 | | SecurityLevel::MIC128, [INFO] [stdout] 479 | | SecurityLevel::ENCMIC128 [INFO] [stdout] 480 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `cipher::generic_array::GenericArray::::as_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:445:63 [INFO] [stdout] | [INFO] [stdout] 445 | buffer.write(&mut offset, tag.as_slice()) [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 476 | / do_secure!( [INFO] [stdout] 477 | | CcmU16, [INFO] [stdout] 478 | | SecurityLevel::MIC128, [INFO] [stdout] 479 | | SecurityLevel::ENCMIC128 [INFO] [stdout] 480 | | ); [INFO] [stdout] | |_________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_secure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:53 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:52 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:52 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 644 | / ... do_unsecure!( [INFO] [stdout] 645 | | ... U4, [INFO] [stdout] 646 | | ... SecurityLevel::MIC32, [INFO] [stdout] 647 | | ... SecurityLevel::ENCMIC32 [INFO] [stdout] 648 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:53 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:52 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:52 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 651 | / ... do_unsecure!( [INFO] [stdout] 652 | | ... U8, [INFO] [stdout] 653 | | ... SecurityLevel::MIC64, [INFO] [stdout] 654 | | ... SecurityLevel::ENCMIC64 [INFO] [stdout] 655 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:604:53 [INFO] [stdout] | [INFO] [stdout] 604 | ... let tag = GenericArray::from_slice( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:614:52 [INFO] [stdout] | [INFO] [stdout] 614 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `cipher::generic_array::GenericArray::::from_slice`: please upgrade to generic-array 1.x [INFO] [stdout] --> src/mac/frame/security/mod.rs:620:52 [INFO] [stdout] | [INFO] [stdout] 620 | ... &GenericArray::from_slice(&nonce), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 658 | / ... do_unsecure!( [INFO] [stdout] 659 | | ... U16, [INFO] [stdout] 660 | | ... SecurityLevel::MIC128, [INFO] [stdout] 661 | | ... SecurityLevel::ENCMIC128 [INFO] [stdout] 662 | | ... ); [INFO] [stdout] | |_______________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `do_unsecure` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mac/beacon.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | check_len(&bytes, 2)?; [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `BeaconOrder` which implements the `Copy` trait [INFO] [stdout] --> src/mac/beacon.rs:133:27 [INFO] [stdout] | [INFO] [stdout] 133 | let bo = u8::from(self.beacon_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.beacon_order` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `SuperframeOrder` which implements the `Copy` trait [INFO] [stdout] --> src/mac/beacon.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | let so = u8::from(self.superframe_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.superframe_order` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `GuaranteedTimeSlotDescriptor` [INFO] [stdout] --> src/mac/beacon.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | / pub fn new() -> Self { [INFO] [stdout] 183 | | GuaranteedTimeSlotDescriptor { [INFO] [stdout] 184 | | short_address: ShortAddress::broadcast(), [INFO] [stdout] 185 | | starting_slot: 0, [INFO] [stdout] ... | [INFO] [stdout] 189 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 180 + impl Default for GuaranteedTimeSlotDescriptor { [INFO] [stdout] 181 + fn default() -> Self { [INFO] [stdout] 182 + Self::new() [INFO] [stdout] 183 + } [INFO] [stdout] 184 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mac/beacon.rs:195:19 [INFO] [stdout] | [INFO] [stdout] 195 | check_len(&bytes, 3)?; [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `GuaranteedTimeSlotInformation` [INFO] [stdout] --> src/mac/beacon.rs:248:5 [INFO] [stdout] | [INFO] [stdout] 248 | / pub fn new() -> Self { [INFO] [stdout] 249 | | GuaranteedTimeSlotInformation { [INFO] [stdout] 250 | | permit: false, [INFO] [stdout] 251 | | slot_count: 0, [INFO] [stdout] ... | [INFO] [stdout] 254 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 246 + impl Default for GuaranteedTimeSlotInformation { [INFO] [stdout] 247 + fn default() -> Self { [INFO] [stdout] 248 + Self::new() [INFO] [stdout] 249 + } [INFO] [stdout] 250 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/beacon.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | direction_mask = direction_mask | dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `direction_mask |= dir` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/beacon.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | dir = dir << 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `dir <<= 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `n` is only used to index `slots` [INFO] [stdout] --> src/mac/beacon.rs:310:22 [INFO] [stdout] | [INFO] [stdout] 310 | for n in 0..slot_count { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 310 - for n in 0..slot_count { [INFO] [stdout] 310 + for in slots.iter_mut().take(slot_count) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/beacon.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | direction_mask = direction_mask >> 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `direction_mask >>= 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `PendingAddress` [INFO] [stdout] --> src/mac/beacon.rs:367:5 [INFO] [stdout] | [INFO] [stdout] 367 | / pub fn new() -> Self { [INFO] [stdout] 368 | | PendingAddress { [INFO] [stdout] 369 | | short_address_count: 0, [INFO] [stdout] 370 | | short_addresses: [ShortAddress::broadcast(); 7], [INFO] [stdout] ... | [INFO] [stdout] 374 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 365 + impl Default for PendingAddress { [INFO] [stdout] 366 + fn default() -> Self { [INFO] [stdout] 367 + Self::new() [INFO] [stdout] 368 + } [INFO] [stdout] 369 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `n` is only used to index `short_addresses` [INFO] [stdout] --> src/mac/beacon.rs:396:18 [INFO] [stdout] | [INFO] [stdout] 396 | for n in 0..sl { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 396 - for n in 0..sl { [INFO] [stdout] 396 + for in short_addresses.iter_mut().take(sl) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `n` is only used to index `extended_addresses` [INFO] [stdout] --> src/mac/beacon.rs:400:18 [INFO] [stdout] | [INFO] [stdout] 400 | for n in 0..el { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 400 - for n in 0..el { [INFO] [stdout] 400 + for in extended_addresses.iter_mut().take(el) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/utils.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | fn ne(&self, other: &$name) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/mac/command.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / extended_enum!( [INFO] [stdout] 13 | | /// MAC command identifiers [INFO] [stdout] 14 | | CommandId, u8, [INFO] [stdout] 15 | | /// Association request, request association to PAN [INFO] [stdout] ... | [INFO] [stdout] 32 | | GuaranteedTimeSlotRequest => 9, [INFO] [stdout] 33 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] = note: `#[warn(clippy::partialeq_ne_impl)]` on by default [INFO] [stdout] = note: this warning originates in the macro `extended_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | byte = byte | CAP_FFD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= CAP_FFD` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | byte = byte | CAP_MAINS_POWER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= CAP_MAINS_POWER` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | byte = byte | CAP_IDLE_RECEIVE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= CAP_IDLE_RECEIVE` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | byte = byte | CAP_FRAME_PROTECTION; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= CAP_FRAME_PROTECTION` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | byte = byte | CAP_ALLOCATE_ADDRESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= CAP_ALLOCATE_ADDRESS` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/utils.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | fn ne(&self, other: &$name) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/mac/command.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | / extended_enum!( [INFO] [stdout] 102 | | /// Association Status [INFO] [stdout] 103 | | AssociationStatus, u8, [INFO] [stdout] 104 | | /// Successful [INFO] [stdout] ... | [INFO] [stdout] 113 | | FastAssociationSuccesful => 0x80, [INFO] [stdout] 114 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] = note: this warning originates in the macro `extended_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/utils.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | fn ne(&self, other: &$name) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/mac/command.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | / extended_enum!( [INFO] [stdout] 117 | | /// Disassociation Reason [INFO] [stdout] 118 | | DisassociationReason, u8, [INFO] [stdout] 119 | | /// Coordinator requested device to leave [INFO] [stdout] ... | [INFO] [stdout] 122 | | DeviceLeave => 2, [INFO] [stdout] 123 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] = note: this warning originates in the macro `extended_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mac/command.rs:160:19 [INFO] [stdout] | [INFO] [stdout] 160 | check_len(&bytes, 7)?; [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | byte = byte | GTSC_RECEIVE_ONLY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= GTSC_RECEIVE_ONLY` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | byte = byte | GTSC_ALLOCATION; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= GTSC_ALLOCATION` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/mac/frame/header.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | / match i { [INFO] [stdout] 93 | | Some(addr) => { [INFO] [stdout] 94 | | // pan ID [INFO] [stdout] 95 | | len += 2; [INFO] [stdout] ... | [INFO] [stdout] 102 | | _ => {} [INFO] [stdout] 103 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 92 ~ if let Some(addr) = i { [INFO] [stdout] 93 + // pan ID [INFO] [stdout] 94 + len += 2; [INFO] [stdout] 95 + // Address length [INFO] [stdout] 96 + match addr { [INFO] [stdout] 97 + Address::Short(..) => len += 2, [INFO] [stdout] 98 + Address::Extended(..) => len += 8, [INFO] [stdout] 99 + } [INFO] [stdout] 100 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mac/frame/header.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 118 | check_len(&bytes, 3)?; [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/mac/frame/security/auxiliary_security_header.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 28 | / let length = 1 [INFO] [stdout] 29 | | + 4 [INFO] [stdout] 30 | | + match self.key_identifier { [INFO] [stdout] 31 | | Some(key_id) => match key_id.key_source { [INFO] [stdout] ... | [INFO] [stdout] 38 | | None => 0, [INFO] [stdout] 39 | | }; [INFO] [stdout] | |______________- unnecessary `let` binding [INFO] [stdout] 40 | length [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 28 ~ [INFO] [stdout] 29 ~ 1 [INFO] [stdout] 30 + + 4 [INFO] [stdout] 31 + + match self.key_identifier { [INFO] [stdout] 32 + Some(key_id) => match key_id.key_source { [INFO] [stdout] 33 + Some(source) => match source { [INFO] [stdout] 34 + KeySource::Short(_) => 5, [INFO] [stdout] 35 + KeySource::Long(_) => 9, [INFO] [stdout] 36 + }, [INFO] [stdout] 37 + None => 1, [INFO] [stdout] 38 + }, [INFO] [stdout] 39 + None => 0, [INFO] [stdout] 40 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/mac/frame/security/auxiliary_security_header.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / pub unsafe fn new_unsafe( [INFO] [stdout] 60 | | control: SecurityControl, [INFO] [stdout] 61 | | key_identifier: Option, [INFO] [stdout] 62 | | frame_counter: u32, [INFO] [stdout] 63 | | ) -> Self { [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] = note: `#[warn(clippy::missing_safety_doc)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/mac/frame/security/auxiliary_security_header.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | / match self.key_identifier { [INFO] [stdout] 147 | | Some(key_identifier) => { [INFO] [stdout] 148 | | bytes.write(offset, key_identifier)?; [INFO] [stdout] ... | [INFO] [stdout] 151 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 146 ~ if let Some(key_identifier) = self.key_identifier { [INFO] [stdout] 147 + bytes.write(offset, key_identifier)?; [INFO] [stdout] 148 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/mac/frame/security/auxiliary_security_header.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | / match self.key_source { [INFO] [stdout] 170 | | Some(source) => match source { [INFO] [stdout] 171 | | KeySource::Short(src) => bytes.write(offset, src)?, [INFO] [stdout] 172 | | KeySource::Long(src) => bytes.write(offset, src)?, [INFO] [stdout] 173 | | }, [INFO] [stdout] 174 | | _ => {} [INFO] [stdout] 175 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 169 ~ if let Some(source) = self.key_source { match source { [INFO] [stdout] 170 + KeySource::Short(src) => bytes.write(offset, src)?, [INFO] [stdout] 171 + KeySource::Long(src) => bytes.write(offset, src)?, [INFO] [stdout] 172 + } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/mac/frame/security/security_control.rs:104:27 [INFO] [stdout] | [INFO] [stdout] 104 | pub(crate) fn to_bits(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] = note: `#[warn(clippy::wrong_self_convention)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/mac/frame/security/security_control.rs:153:16 [INFO] [stdout] | [INFO] [stdout] 153 | fn to_bits(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `output` [INFO] [stdout] --> src/mac/frame/security/mod.rs:306:14 [INFO] [stdout] | [INFO] [stdout] 306 | for i in 0..8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 306 - for i in 0..8 { [INFO] [stdout] 306 + for (i, ) in output.iter_mut().enumerate().take(8) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/mac/frame/security/mod.rs:329:28 [INFO] [stdout] | [INFO] [stdout] 329 | pub(crate) fn secure_frame<'a, AEADBLKCIPH, KEYDESCLO>( [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/mac/frame/security/mod.rs:371:16 [INFO] [stdout] | [INFO] [stdout] 371 | if !(frame.payload.len() [INFO] [stdout] | ________________^ [INFO] [stdout] 372 | | + frame.header.get_octet_size() [INFO] [stdout] 373 | | + aux_len [INFO] [stdout] 374 | | + auth_len [INFO] [stdout] 375 | | + 2 [INFO] [stdout] 376 | | <= 127) [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] 371 ~ if (frame.payload.len() [INFO] [stdout] 372 + + frame.header.get_octet_size() [INFO] [stdout] 373 + + aux_len [INFO] [stdout] 374 + + auth_len [INFO] [stdout] 375 + + 2 > 127) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:485:17 [INFO] [stdout] | [INFO] [stdout] 485 | return Ok(offset); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 485 - return Ok(offset); [INFO] [stdout] 485 + Ok(offset) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:487:17 [INFO] [stdout] | [INFO] [stdout] 487 | return Err(SecurityError::UnavailableKey); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 487 - return Err(SecurityError::UnavailableKey); [INFO] [stdout] 487 + Err(SecurityError::UnavailableKey) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:490:13 [INFO] [stdout] | [INFO] [stdout] 490 | return Err(SecurityError::AuxSecHeaderAbsent); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 490 - return Err(SecurityError::AuxSecHeaderAbsent); [INFO] [stdout] 490 + Err(SecurityError::AuxSecHeaderAbsent) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:493:9 [INFO] [stdout] | [INFO] [stdout] 493 | return Err(SecurityError::SecurityNotEnabled); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 493 - return Err(SecurityError::SecurityNotEnabled); [INFO] [stdout] 493 + Err(SecurityError::SecurityNotEnabled) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `usize` is unnecessary [INFO] [stdout] --> src/mac/frame/security/mod.rs:350:22 [INFO] [stdout] | [INFO] [stdout] 350 | let mut offset = 0 as usize; [INFO] [stdout] | ^^^^^^^^^^ help: try: `0_usize` [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: this lifetime isn't used in the function definition [INFO] [stdout] --> src/mac/frame/security/mod.rs:513:30 [INFO] [stdout] | [INFO] [stdout] 513 | pub(crate) fn unsecure_frame<'a, AEADBLKCIPH, KEYDESCLO, DEVDESCLO>( [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:673:9 [INFO] [stdout] | [INFO] [stdout] 673 | return Ok(taglen); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 673 - return Ok(taglen); [INFO] [stdout] 673 + Ok(taglen) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:675:9 [INFO] [stdout] | [INFO] [stdout] 675 | return Err(SecurityError::SecurityNotEnabled); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 675 - return Err(SecurityError::SecurityNotEnabled); [INFO] [stdout] 675 + Err(SecurityError::SecurityNotEnabled) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/mac/frame/mod.rs:391:1 [INFO] [stdout] | [INFO] [stdout] 391 | / impl Default for FooterMode { [INFO] [stdout] 392 | | fn default() -> Self { [INFO] [stdout] 393 | | Self::None [INFO] [stdout] 394 | | } [INFO] [stdout] 395 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 384 + #[derive(Default)] [INFO] [stdout] 385 | pub enum FooterMode { [INFO] [stdout] 386 | /// Don't read/write the footer [INFO] [stdout] 387 ~ #[default] [INFO] [stdout] 388 ~ None, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/mac/frame/header.rs:320:40 [INFO] [stdout] | [INFO] [stdout] 320 | #[derive(Clone, Copy, Debug, Eq, Hash, Hash32, PartialEq)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Hash` is not local [INFO] [stdout] | move the `impl` block outside of this constant `__IMPL_HASH32_FOR_PanId` [INFO] [stdout] ... [INFO] [stdout] 323 | pub struct PanId(pub u16); [INFO] [stdout] | ----- `PanId` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Hash32` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Hash32` may come from an old version of the `hash32_derive` crate, try updating your dependency with `cargo update -p hash32_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Hash32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/mac/frame/header.rs:359:40 [INFO] [stdout] | [INFO] [stdout] 359 | #[derive(Clone, Copy, Debug, Eq, Hash, Hash32, PartialEq)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Hash` is not local [INFO] [stdout] | move the `impl` block outside of this constant `__IMPL_HASH32_FOR_ShortAddress` [INFO] [stdout] ... [INFO] [stdout] 363 | pub struct ShortAddress(pub u16); [INFO] [stdout] | ------------ `ShortAddress` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Hash32` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Hash32` may come from an old version of the `hash32_derive` crate, try updating your dependency with `cargo update -p hash32_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Hash32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/mac/frame/header.rs:401:40 [INFO] [stdout] | [INFO] [stdout] 401 | #[derive(Clone, Copy, Debug, Eq, Hash, Hash32, PartialEq)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Hash` is not local [INFO] [stdout] | move the `impl` block outside of this constant `__IMPL_HASH32_FOR_ExtendedAddress` [INFO] [stdout] ... [INFO] [stdout] 405 | pub struct ExtendedAddress(pub u64); [INFO] [stdout] | --------------- `ExtendedAddress` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Hash32` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Hash32` may come from an old version of the `hash32_derive` crate, try updating your dependency with `cargo update -p hash32_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Hash32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mac/beacon.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | check_len(&bytes, 2)?; [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `BeaconOrder` which implements the `Copy` trait [INFO] [stdout] --> src/mac/beacon.rs:133:27 [INFO] [stdout] | [INFO] [stdout] 133 | let bo = u8::from(self.beacon_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.beacon_order` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `SuperframeOrder` which implements the `Copy` trait [INFO] [stdout] --> src/mac/beacon.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | let so = u8::from(self.superframe_order.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.superframe_order` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `GuaranteedTimeSlotDescriptor` [INFO] [stdout] --> src/mac/beacon.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 182 | / pub fn new() -> Self { [INFO] [stdout] 183 | | GuaranteedTimeSlotDescriptor { [INFO] [stdout] 184 | | short_address: ShortAddress::broadcast(), [INFO] [stdout] 185 | | starting_slot: 0, [INFO] [stdout] ... | [INFO] [stdout] 189 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] = note: `#[warn(clippy::new_without_default)]` on by default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 180 + impl Default for GuaranteedTimeSlotDescriptor { [INFO] [stdout] 181 + fn default() -> Self { [INFO] [stdout] 182 + Self::new() [INFO] [stdout] 183 + } [INFO] [stdout] 184 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mac/beacon.rs:195:19 [INFO] [stdout] | [INFO] [stdout] 195 | check_len(&bytes, 3)?; [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `GuaranteedTimeSlotInformation` [INFO] [stdout] --> src/mac/beacon.rs:248:5 [INFO] [stdout] | [INFO] [stdout] 248 | / pub fn new() -> Self { [INFO] [stdout] 249 | | GuaranteedTimeSlotInformation { [INFO] [stdout] 250 | | permit: false, [INFO] [stdout] 251 | | slot_count: 0, [INFO] [stdout] ... | [INFO] [stdout] 254 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 246 + impl Default for GuaranteedTimeSlotInformation { [INFO] [stdout] 247 + fn default() -> Self { [INFO] [stdout] 248 + Self::new() [INFO] [stdout] 249 + } [INFO] [stdout] 250 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/beacon.rs:278:25 [INFO] [stdout] | [INFO] [stdout] 278 | direction_mask = direction_mask | dir; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `direction_mask |= dir` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] = note: `#[warn(clippy::assign_op_pattern)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/beacon.rs:280:21 [INFO] [stdout] | [INFO] [stdout] 280 | dir = dir << 1; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `dir <<= 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `n` is only used to index `slots` [INFO] [stdout] --> src/mac/beacon.rs:310:22 [INFO] [stdout] | [INFO] [stdout] 310 | for n in 0..slot_count { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] = note: `#[warn(clippy::needless_range_loop)]` on by default [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 310 - for n in 0..slot_count { [INFO] [stdout] 310 + for in slots.iter_mut().take(slot_count) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/beacon.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 319 | direction_mask = direction_mask >> 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `direction_mask >>= 1` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you should consider adding a `Default` implementation for `PendingAddress` [INFO] [stdout] --> src/mac/beacon.rs:367:5 [INFO] [stdout] | [INFO] [stdout] 367 | / pub fn new() -> Self { [INFO] [stdout] 368 | | PendingAddress { [INFO] [stdout] 369 | | short_address_count: 0, [INFO] [stdout] 370 | | short_addresses: [ShortAddress::broadcast(); 7], [INFO] [stdout] ... | [INFO] [stdout] 374 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stdout] help: try adding this [INFO] [stdout] | [INFO] [stdout] 365 + impl Default for PendingAddress { [INFO] [stdout] 366 + fn default() -> Self { [INFO] [stdout] 367 + Self::new() [INFO] [stdout] 368 + } [INFO] [stdout] 369 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `n` is only used to index `short_addresses` [INFO] [stdout] --> src/mac/beacon.rs:396:18 [INFO] [stdout] | [INFO] [stdout] 396 | for n in 0..sl { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 396 - for n in 0..sl { [INFO] [stdout] 396 + for in short_addresses.iter_mut().take(sl) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `n` is only used to index `extended_addresses` [INFO] [stdout] --> src/mac/beacon.rs:400:18 [INFO] [stdout] | [INFO] [stdout] 400 | for n in 0..el { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator [INFO] [stdout] | [INFO] [stdout] 400 - for n in 0..el { [INFO] [stdout] 400 + for in extended_addresses.iter_mut().take(el) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:491:9 [INFO] [stdout] | [INFO] [stdout] 491 | assert_eq!(ss.battery_life_extension, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 491 - assert_eq!(ss.battery_life_extension, false); [INFO] [stdout] 491 + assert!(!ss.battery_life_extension); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:492:9 [INFO] [stdout] | [INFO] [stdout] 492 | assert_eq!(ss.pan_coordinator, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 492 - assert_eq!(ss.pan_coordinator, false); [INFO] [stdout] 492 + assert!(!ss.pan_coordinator); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:493:9 [INFO] [stdout] | [INFO] [stdout] 493 | assert_eq!(ss.association_permit, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 493 - assert_eq!(ss.association_permit, false); [INFO] [stdout] 493 + assert!(!ss.association_permit); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:502:9 [INFO] [stdout] | [INFO] [stdout] 502 | assert_eq!(gts.permit, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 502 - assert_eq!(gts.permit, false); [INFO] [stdout] 502 + assert!(!gts.permit); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:529:9 [INFO] [stdout] | [INFO] [stdout] 529 | assert_eq!(beacon.superframe_spec.battery_life_extension, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 529 - assert_eq!(beacon.superframe_spec.battery_life_extension, false); [INFO] [stdout] 529 + assert!(!beacon.superframe_spec.battery_life_extension); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:530:9 [INFO] [stdout] | [INFO] [stdout] 530 | assert_eq!(beacon.superframe_spec.pan_coordinator, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 530 - assert_eq!(beacon.superframe_spec.pan_coordinator, false); [INFO] [stdout] 530 + assert!(!beacon.superframe_spec.pan_coordinator); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:531:9 [INFO] [stdout] | [INFO] [stdout] 531 | assert_eq!(beacon.superframe_spec.association_permit, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 531 - assert_eq!(beacon.superframe_spec.association_permit, false); [INFO] [stdout] 531 + assert!(!beacon.superframe_spec.association_permit); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:533:9 [INFO] [stdout] | [INFO] [stdout] 533 | assert_eq!(beacon.guaranteed_time_slot_info.permit, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 533 - assert_eq!(beacon.guaranteed_time_slot_info.permit, false); [INFO] [stdout] 533 + assert!(!beacon.guaranteed_time_slot_info.permit); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:555:9 [INFO] [stdout] | [INFO] [stdout] 555 | assert_eq!(beacon.superframe_spec.battery_life_extension, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 555 - assert_eq!(beacon.superframe_spec.battery_life_extension, false); [INFO] [stdout] 555 + assert!(!beacon.superframe_spec.battery_life_extension); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:556:9 [INFO] [stdout] | [INFO] [stdout] 556 | assert_eq!(beacon.superframe_spec.pan_coordinator, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 556 - assert_eq!(beacon.superframe_spec.pan_coordinator, true); [INFO] [stdout] 556 + assert!(beacon.superframe_spec.pan_coordinator); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:557:9 [INFO] [stdout] | [INFO] [stdout] 557 | assert_eq!(beacon.superframe_spec.association_permit, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 557 - assert_eq!(beacon.superframe_spec.association_permit, true); [INFO] [stdout] 557 + assert!(beacon.superframe_spec.association_permit); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 559 | assert_eq!(beacon.guaranteed_time_slot_info.permit, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 559 - assert_eq!(beacon.guaranteed_time_slot_info.permit, true); [INFO] [stdout] 559 + assert!(beacon.guaranteed_time_slot_info.permit); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:592:9 [INFO] [stdout] | [INFO] [stdout] 592 | assert_eq!(beacon.superframe_spec.battery_life_extension, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 592 - assert_eq!(beacon.superframe_spec.battery_life_extension, false); [INFO] [stdout] 592 + assert!(!beacon.superframe_spec.battery_life_extension); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:593:9 [INFO] [stdout] | [INFO] [stdout] 593 | assert_eq!(beacon.superframe_spec.pan_coordinator, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 593 - assert_eq!(beacon.superframe_spec.pan_coordinator, true); [INFO] [stdout] 593 + assert!(beacon.superframe_spec.pan_coordinator); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:594:9 [INFO] [stdout] | [INFO] [stdout] 594 | assert_eq!(beacon.superframe_spec.association_permit, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 594 - assert_eq!(beacon.superframe_spec.association_permit, true); [INFO] [stdout] 594 + assert!(beacon.superframe_spec.association_permit); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/beacon.rs:596:9 [INFO] [stdout] | [INFO] [stdout] 596 | assert_eq!(beacon.guaranteed_time_slot_info.permit, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 596 - assert_eq!(beacon.guaranteed_time_slot_info.permit, true); [INFO] [stdout] 596 + assert!(beacon.guaranteed_time_slot_info.permit); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/utils.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | fn ne(&self, other: &$name) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/mac/command.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / extended_enum!( [INFO] [stdout] 13 | | /// MAC command identifiers [INFO] [stdout] 14 | | CommandId, u8, [INFO] [stdout] 15 | | /// Association request, request association to PAN [INFO] [stdout] ... | [INFO] [stdout] 32 | | GuaranteedTimeSlotRequest => 9, [INFO] [stdout] 33 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] = note: `#[warn(clippy::partialeq_ne_impl)]` on by default [INFO] [stdout] = note: this warning originates in the macro `extended_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | byte = byte | CAP_FFD; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= CAP_FFD` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | byte = byte | CAP_MAINS_POWER; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= CAP_MAINS_POWER` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | byte = byte | CAP_IDLE_RECEIVE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= CAP_IDLE_RECEIVE` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | byte = byte | CAP_FRAME_PROTECTION; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= CAP_FRAME_PROTECTION` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | byte = byte | CAP_ALLOCATE_ADDRESS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= CAP_ALLOCATE_ADDRESS` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/utils.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | fn ne(&self, other: &$name) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/mac/command.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | / extended_enum!( [INFO] [stdout] 102 | | /// Association Status [INFO] [stdout] 103 | | AssociationStatus, u8, [INFO] [stdout] 104 | | /// Successful [INFO] [stdout] ... | [INFO] [stdout] 113 | | FastAssociationSuccesful => 0x80, [INFO] [stdout] 114 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] = note: this warning originates in the macro `extended_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stdout] --> src/utils.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | fn ne(&self, other: &$name) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/mac/command.rs:116:1 [INFO] [stdout] | [INFO] [stdout] 116 | / extended_enum!( [INFO] [stdout] 117 | | /// Disassociation Reason [INFO] [stdout] 118 | | DisassociationReason, u8, [INFO] [stdout] 119 | | /// Coordinator requested device to leave [INFO] [stdout] ... | [INFO] [stdout] 122 | | DeviceLeave => 2, [INFO] [stdout] 123 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stdout] = note: this warning originates in the macro `extended_enum` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mac/command.rs:160:19 [INFO] [stdout] | [INFO] [stdout] 160 | check_len(&bytes, 7)?; [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:216:13 [INFO] [stdout] | [INFO] [stdout] 216 | byte = byte | GTSC_RECEIVE_ONLY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= GTSC_RECEIVE_ONLY` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of an assign operation [INFO] [stdout] --> src/mac/command.rs:219:13 [INFO] [stdout] | [INFO] [stdout] 219 | byte = byte | GTSC_ALLOCATION; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `byte |= GTSC_ALLOCATION` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/mac/frame/header.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | / match i { [INFO] [stdout] 93 | | Some(addr) => { [INFO] [stdout] 94 | | // pan ID [INFO] [stdout] 95 | | len += 2; [INFO] [stdout] ... | [INFO] [stdout] 102 | | _ => {} [INFO] [stdout] 103 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 92 ~ if let Some(addr) = i { [INFO] [stdout] 93 + // pan ID [INFO] [stdout] 94 + len += 2; [INFO] [stdout] 95 + // Address length [INFO] [stdout] 96 + match addr { [INFO] [stdout] 97 + Address::Short(..) => len += 2, [INFO] [stdout] 98 + Address::Extended(..) => len += 8, [INFO] [stdout] 99 + } [INFO] [stdout] 100 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> src/mac/frame/header.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 118 | check_len(&bytes, 3)?; [INFO] [stdout] | ^^^^^^ help: change this to: `bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/mac/frame/security/auxiliary_security_header.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 28 | / let length = 1 [INFO] [stdout] 29 | | + 4 [INFO] [stdout] 30 | | + match self.key_identifier { [INFO] [stdout] 31 | | Some(key_id) => match key_id.key_source { [INFO] [stdout] ... | [INFO] [stdout] 38 | | None => 0, [INFO] [stdout] 39 | | }; [INFO] [stdout] | |______________- unnecessary `let` binding [INFO] [stdout] 40 | length [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 28 ~ [INFO] [stdout] 29 ~ 1 [INFO] [stdout] 30 + + 4 [INFO] [stdout] 31 + + match self.key_identifier { [INFO] [stdout] 32 + Some(key_id) => match key_id.key_source { [INFO] [stdout] 33 + Some(source) => match source { [INFO] [stdout] 34 + KeySource::Short(_) => 5, [INFO] [stdout] 35 + KeySource::Long(_) => 9, [INFO] [stdout] 36 + }, [INFO] [stdout] 37 + None => 1, [INFO] [stdout] 38 + }, [INFO] [stdout] 39 + None => 0, [INFO] [stdout] 40 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe function's docs are missing a `# Safety` section [INFO] [stdout] --> src/mac/frame/security/auxiliary_security_header.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / pub unsafe fn new_unsafe( [INFO] [stdout] 60 | | control: SecurityControl, [INFO] [stdout] 61 | | key_identifier: Option, [INFO] [stdout] 62 | | frame_counter: u32, [INFO] [stdout] 63 | | ) -> Self { [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc [INFO] [stdout] = note: `#[warn(clippy::missing_safety_doc)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/mac/frame/security/auxiliary_security_header.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | / match self.key_identifier { [INFO] [stdout] 147 | | Some(key_identifier) => { [INFO] [stdout] 148 | | bytes.write(offset, key_identifier)?; [INFO] [stdout] ... | [INFO] [stdout] 151 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 146 ~ if let Some(key_identifier) = self.key_identifier { [INFO] [stdout] 147 + bytes.write(offset, key_identifier)?; [INFO] [stdout] 148 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/mac/frame/security/auxiliary_security_header.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | / match self.key_source { [INFO] [stdout] 170 | | Some(source) => match source { [INFO] [stdout] 171 | | KeySource::Short(src) => bytes.write(offset, src)?, [INFO] [stdout] 172 | | KeySource::Long(src) => bytes.write(offset, src)?, [INFO] [stdout] 173 | | }, [INFO] [stdout] 174 | | _ => {} [INFO] [stdout] 175 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 169 ~ if let Some(source) = self.key_source { match source { [INFO] [stdout] 170 + KeySource::Short(src) => bytes.write(offset, src)?, [INFO] [stdout] 171 + KeySource::Long(src) => bytes.write(offset, src)?, [INFO] [stdout] 172 + } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/mac/frame/security/security_control.rs:104:27 [INFO] [stdout] | [INFO] [stdout] 104 | pub(crate) fn to_bits(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] = note: `#[warn(clippy::wrong_self_convention)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods with the following characteristics: (`to_*` and `self` type is `Copy`) usually take `self` by value [INFO] [stdout] --> src/mac/frame/security/security_control.rs:153:16 [INFO] [stdout] | [INFO] [stdout] 153 | fn to_bits(&self) -> u8 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider choosing a less ambiguous name [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the loop variable `i` is used to index `output` [INFO] [stdout] --> src/mac/frame/security/mod.rs:306:14 [INFO] [stdout] | [INFO] [stdout] 306 | for i in 0..8 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stdout] help: consider using an iterator and enumerate() [INFO] [stdout] | [INFO] [stdout] 306 - for i in 0..8 { [INFO] [stdout] 306 + for (i, ) in output.iter_mut().enumerate().take(8) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/mac/frame/security/mod.rs:329:28 [INFO] [stdout] | [INFO] [stdout] 329 | pub(crate) fn secure_frame<'a, AEADBLKCIPH, KEYDESCLO>( [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] = note: `#[warn(clippy::extra_unused_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/mac/frame/security/mod.rs:371:16 [INFO] [stdout] | [INFO] [stdout] 371 | if !(frame.payload.len() [INFO] [stdout] | ________________^ [INFO] [stdout] 372 | | + frame.header.get_octet_size() [INFO] [stdout] 373 | | + aux_len [INFO] [stdout] 374 | | + auth_len [INFO] [stdout] 375 | | + 2 [INFO] [stdout] 376 | | <= 127) [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] 371 ~ if (frame.payload.len() [INFO] [stdout] 372 + + frame.header.get_octet_size() [INFO] [stdout] 373 + + aux_len [INFO] [stdout] 374 + + auth_len [INFO] [stdout] 375 + + 2 > 127) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:485:17 [INFO] [stdout] | [INFO] [stdout] 485 | return Ok(offset); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 485 - return Ok(offset); [INFO] [stdout] 485 + Ok(offset) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:487:17 [INFO] [stdout] | [INFO] [stdout] 487 | return Err(SecurityError::UnavailableKey); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 487 - return Err(SecurityError::UnavailableKey); [INFO] [stdout] 487 + Err(SecurityError::UnavailableKey) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:490:13 [INFO] [stdout] | [INFO] [stdout] 490 | return Err(SecurityError::AuxSecHeaderAbsent); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 490 - return Err(SecurityError::AuxSecHeaderAbsent); [INFO] [stdout] 490 + Err(SecurityError::AuxSecHeaderAbsent) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:493:9 [INFO] [stdout] | [INFO] [stdout] 493 | return Err(SecurityError::SecurityNotEnabled); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 493 - return Err(SecurityError::SecurityNotEnabled); [INFO] [stdout] 493 + Err(SecurityError::SecurityNotEnabled) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting integer literal to `usize` is unnecessary [INFO] [stdout] --> src/mac/frame/security/mod.rs:350:22 [INFO] [stdout] | [INFO] [stdout] 350 | let mut offset = 0 as usize; [INFO] [stdout] | ^^^^^^^^^^ help: try: `0_usize` [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: this lifetime isn't used in the function definition [INFO] [stdout] --> src/mac/frame/security/mod.rs:513:30 [INFO] [stdout] | [INFO] [stdout] 513 | pub(crate) fn unsecure_frame<'a, AEADBLKCIPH, KEYDESCLO, DEVDESCLO>( [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:673:9 [INFO] [stdout] | [INFO] [stdout] 673 | return Ok(taglen); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 673 - return Ok(taglen); [INFO] [stdout] 673 + Ok(taglen) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/mac/frame/security/mod.rs:675:9 [INFO] [stdout] | [INFO] [stdout] 675 | return Err(SecurityError::SecurityNotEnabled); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 675 - return Err(SecurityError::SecurityNotEnabled); [INFO] [stdout] 675 + Err(SecurityError::SecurityNotEnabled) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this lifetime isn't used in the function definition [INFO] [stdout] --> src/mac/frame/security/mod.rs:842:20 [INFO] [stdout] | [INFO] [stdout] 842 | fn aes_sec_ctx<'a>( [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:979:21 [INFO] [stdout] | [INFO] [stdout] 979 | / assert!( [INFO] [stdout] 980 | | false, [INFO] [stdout] 981 | | "Security was not enabled, but securing payload succeeded!" [INFO] [stdout] 982 | | ) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] = note: `#[warn(clippy::assertions_on_constants)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `[u8; 6]` which implements the `Copy` trait [INFO] [stdout] --> src/mac/frame/security/mod.rs:1037:31 [INFO] [stdout] | [INFO] [stdout] 1037 | let plaintext_clone = plaintext_payload.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*plaintext_payload` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1049:9 [INFO] [stdout] | [INFO] [stdout] 1049 | / match frame.try_write( [INFO] [stdout] 1050 | | &mut buf, [INFO] [stdout] 1051 | | &mut FrameSerDesContext::no_security(FooterMode::None), [INFO] [stdout] 1052 | | ) { [INFO] [stdout] ... | [INFO] [stdout] 1057 | | Err(_) => {} [INFO] [stdout] 1058 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 1049 ~ if let Ok(_) = frame.try_write( [INFO] [stdout] 1050 + &mut buf, [INFO] [stdout] 1051 + &mut FrameSerDesContext::no_security(FooterMode::None), [INFO] [stdout] 1052 + ) { assert!( [INFO] [stdout] 1053 + false, [INFO] [stdout] 1054 + "Successfully wrote frame with security enabled, but missing security context!" [INFO] [stdout] 1055 + ) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1053:22 [INFO] [stdout] | [INFO] [stdout] 1053 | Ok(_) => assert!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 1054 | | false, [INFO] [stdout] 1055 | | "Successfully wrote frame with security enabled, but missing security context!" [INFO] [stdout] 1056 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1066:17 [INFO] [stdout] | [INFO] [stdout] 1066 | assert!(false, "Failed to write secured frame! {:?}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1096:17 [INFO] [stdout] | [INFO] [stdout] 1096 | assert!(false, "Could not unsecure frame! {:?}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1116:29 [INFO] [stdout] | [INFO] [stdout] 1116 | / ... assert!( [INFO] [stdout] 1117 | | ... false, [INFO] [stdout] 1118 | | ... "Did not parse key identifier correctly" [INFO] [stdout] 1119 | | ... ) [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1123:25 [INFO] [stdout] | [INFO] [stdout] 1123 | assert!(false, "Did not parse key identifier correctly") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1127:21 [INFO] [stdout] | [INFO] [stdout] 1127 | None => assert!(false, "Did not parse key identifier correctly"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1166:17 [INFO] [stdout] | [INFO] [stdout] 1166 | assert!(false, "Failed to write secured frame! {:?}", e); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this operation has no effect [INFO] [stdout] --> src/mac/frame/security/mod.rs:1173:25 [INFO] [stdout] | [INFO] [stdout] 1173 | assert_eq!(len, 2 + 1 + 2 + 8 + 2 + 8 + 1 + 4 + 0 + plaintext_len + 16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider reducing it to: `(2 + 1 + 2 + 8 + 2 + 8 + 1 + 4)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stdout] = note: `#[warn(clippy::identity_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1193:22 [INFO] [stdout] | [INFO] [stdout] 1193 | Ok(_) => assert!(false, "Successfully unsecured an altered frame!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1197:21 [INFO] [stdout] | [INFO] [stdout] 1197 | / assert!( [INFO] [stdout] 1198 | | false, [INFO] [stdout] 1199 | | "Got an error different from TransformationError" [INFO] [stdout] 1200 | | ); [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1223:22 [INFO] [stdout] | [INFO] [stdout] 1223 | Ok(_) => assert!(false, "Successfully unsecured a replayed frame!"), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1227:21 [INFO] [stdout] | [INFO] [stdout] 1227 | assert!(false, "Got an error different from CounterError"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1244:22 [INFO] [stdout] | [INFO] [stdout] 1244 | Ok(_) => assert!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 1245 | | false, [INFO] [stdout] 1246 | | "Successfully unsecured a frame with overflowing counter!" [INFO] [stdout] 1247 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this assertion is always `false` [INFO] [stdout] --> src/mac/frame/security/mod.rs:1251:21 [INFO] [stdout] | [INFO] [stdout] 1251 | assert!(false, "Got an error different from CounterError"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: replace this with `panic!()` or `unreachable!()` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assertions_on_constants [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> src/mac/frame/mod.rs:391:1 [INFO] [stdout] | [INFO] [stdout] 391 | / impl Default for FooterMode { [INFO] [stdout] 392 | | fn default() -> Self { [INFO] [stdout] 393 | | Self::None [INFO] [stdout] 394 | | } [INFO] [stdout] 395 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] help: replace the manual implementation with a derive attribute and mark the default variant [INFO] [stdout] | [INFO] [stdout] 384 + #[derive(Default)] [INFO] [stdout] 385 | pub enum FooterMode { [INFO] [stdout] 386 | /// Don't read/write the footer [INFO] [stdout] 387 ~ #[default] [INFO] [stdout] 388 ~ None, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/frame/mod.rs:573:9 [INFO] [stdout] | [INFO] [stdout] 573 | assert_eq!(hdr.has_security(), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 573 - assert_eq!(hdr.has_security(), false); [INFO] [stdout] 573 + assert!(!hdr.has_security()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/frame/mod.rs:574:9 [INFO] [stdout] | [INFO] [stdout] 574 | assert_eq!(hdr.frame_pending, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 574 - assert_eq!(hdr.frame_pending, false); [INFO] [stdout] 574 + assert!(!hdr.frame_pending); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/frame/mod.rs:575:9 [INFO] [stdout] | [INFO] [stdout] 575 | assert_eq!(hdr.ack_request, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 575 - assert_eq!(hdr.ack_request, false); [INFO] [stdout] 575 + assert!(!hdr.ack_request); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/frame/mod.rs:576:9 [INFO] [stdout] | [INFO] [stdout] 576 | assert_eq!(hdr.pan_id_compress, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 576 - assert_eq!(hdr.pan_id_compress, true); [INFO] [stdout] 576 + assert!(hdr.pan_id_compress); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/frame/mod.rs:610:9 [INFO] [stdout] | [INFO] [stdout] 610 | assert_eq!(hdr.has_security(), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 610 - assert_eq!(hdr.has_security(), false); [INFO] [stdout] 610 + assert!(!hdr.has_security()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/frame/mod.rs:611:9 [INFO] [stdout] | [INFO] [stdout] 611 | assert_eq!(hdr.frame_pending, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 611 - assert_eq!(hdr.frame_pending, false); [INFO] [stdout] 611 + assert!(!hdr.frame_pending); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/frame/mod.rs:612:9 [INFO] [stdout] | [INFO] [stdout] 612 | assert_eq!(hdr.ack_request, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 612 - assert_eq!(hdr.ack_request, true); [INFO] [stdout] 612 + assert!(hdr.ack_request); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> src/mac/frame/mod.rs:613:9 [INFO] [stdout] | [INFO] [stdout] 613 | assert_eq!(hdr.pan_id_compress, false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 613 - assert_eq!(hdr.pan_id_compress, false); [INFO] [stdout] 613 + assert!(!hdr.pan_id_compress); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/mac/frame/header.rs:320:40 [INFO] [stdout] | [INFO] [stdout] 320 | #[derive(Clone, Copy, Debug, Eq, Hash, Hash32, PartialEq)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Hash` is not local [INFO] [stdout] | move the `impl` block outside of this constant `__IMPL_HASH32_FOR_PanId` [INFO] [stdout] ... [INFO] [stdout] 323 | pub struct PanId(pub u16); [INFO] [stdout] | ----- `PanId` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Hash32` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Hash32` may come from an old version of the `hash32_derive` crate, try updating your dependency with `cargo update -p hash32_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Hash32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/mac/frame/header.rs:359:40 [INFO] [stdout] | [INFO] [stdout] 359 | #[derive(Clone, Copy, Debug, Eq, Hash, Hash32, PartialEq)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Hash` is not local [INFO] [stdout] | move the `impl` block outside of this constant `__IMPL_HASH32_FOR_ShortAddress` [INFO] [stdout] ... [INFO] [stdout] 363 | pub struct ShortAddress(pub u16); [INFO] [stdout] | ------------ `ShortAddress` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Hash32` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Hash32` may come from an old version of the `hash32_derive` crate, try updating your dependency with `cargo update -p hash32_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Hash32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/mac/frame/header.rs:401:40 [INFO] [stdout] | [INFO] [stdout] 401 | #[derive(Clone, Copy, Debug, Eq, Hash, Hash32, PartialEq)] [INFO] [stdout] | ^----- [INFO] [stdout] | | [INFO] [stdout] | `Hash` is not local [INFO] [stdout] | move the `impl` block outside of this constant `__IMPL_HASH32_FOR_ExtendedAddress` [INFO] [stdout] ... [INFO] [stdout] 405 | pub struct ExtendedAddress(pub u64); [INFO] [stdout] | --------------- `ExtendedAddress` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Hash32` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Hash32` may come from an old version of the `hash32_derive` crate, try updating your dependency with `cargo update -p hash32_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Hash32` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.60s [INFO] running `Command { std: "docker" "inspect" "a896fd55ab9d6e50c78b5ae214ccf896b397c40fda9764382d51ca57825b97e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a896fd55ab9d6e50c78b5ae214ccf896b397c40fda9764382d51ca57825b97e1", kill_on_drop: false }` [INFO] [stdout] a896fd55ab9d6e50c78b5ae214ccf896b397c40fda9764382d51ca57825b97e1