[INFO] fetching crate sk-cbor 0.1.2... [INFO] linting sk-cbor-0.1.2 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate sk-cbor 0.1.2 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate sk-cbor 0.1.2 [INFO] finished tweaking crates.io crate sk-cbor 0.1.2 [INFO] tweaked toml for crates.io crate sk-cbor 0.1.2 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate sk-cbor 0.1.2 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] crate crates.io crate sk-cbor 0.1.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 577571d0141f03b2eef1e1c4e72a9efc0fccd14780fdd3087b80354924f17bd3 [INFO] running `Command { std: "docker" "start" "-a" "577571d0141f03b2eef1e1c4e72a9efc0fccd14780fdd3087b80354924f17bd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "577571d0141f03b2eef1e1c4e72a9efc0fccd14780fdd3087b80354924f17bd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "577571d0141f03b2eef1e1c4e72a9efc0fccd14780fdd3087b80354924f17bd3", kill_on_drop: false }` [INFO] [stdout] 577571d0141f03b2eef1e1c4e72a9efc0fccd14780fdd3087b80354924f17bd3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 1f400969a1c79db6a56ce94b0770e340a93451aef6af93dd04b0c2d9b8ba83c8 [INFO] running `Command { std: "docker" "start" "-a" "1f400969a1c79db6a56ce94b0770e340a93451aef6af93dd04b0c2d9b8ba83c8", kill_on_drop: false }` [INFO] [stderr] Checking sk-cbor v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/reader.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 73 - if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] 73 + if remaining_depth.is_some_and(|d| d < 0) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/writer.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 59 - if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] 59 + if remaining_depth.is_some_and(|d| d < 0) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/writer.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new(encoded_cbor: &mut Vec) -> Writer { [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new(encoded_cbor: &mut Vec) -> Writer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:388:23 [INFO] [stdout] | [INFO] [stdout] 388 | cbor_int!(core::i64::MAX), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] = note: `#[warn(clippy::legacy_numeric_constants)]` on by default [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 388 - cbor_int!(core::i64::MAX), [INFO] [stdout] 388 + cbor_int!(i64::MAX), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:389:29 [INFO] [stdout] | [INFO] [stdout] 389 | Value::Unsigned(core::i64::MAX as u64) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 389 - Value::Unsigned(core::i64::MAX as u64) [INFO] [stdout] 389 + Value::Unsigned(i64::MAX as u64) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:397:30 [INFO] [stdout] | [INFO] [stdout] 397 | assert_eq!(cbor_int!(core::i64::MIN), Value::Negative(core::i64::MIN)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 397 - assert_eq!(cbor_int!(core::i64::MIN), Value::Negative(core::i64::MIN)); [INFO] [stdout] 397 + assert_eq!(cbor_int!(i64::MIN), Value::Negative(core::i64::MIN)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:397:63 [INFO] [stdout] | [INFO] [stdout] 397 | assert_eq!(cbor_int!(core::i64::MIN), Value::Negative(core::i64::MIN)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 397 - assert_eq!(cbor_int!(core::i64::MIN), Value::Negative(core::i64::MIN)); [INFO] [stdout] 397 + assert_eq!(cbor_int!(core::i64::MIN), Value::Negative(i64::MIN)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:403:13 [INFO] [stdout] | [INFO] [stdout] 403 | core::i64::MIN, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 403 - core::i64::MIN, [INFO] [stdout] 403 + i64::MIN, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:404:13 [INFO] [stdout] | [INFO] [stdout] 404 | core::i32::MIN, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 404 - core::i32::MIN, [INFO] [stdout] 404 + i32::MIN, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:410:13 [INFO] [stdout] | [INFO] [stdout] 410 | core::i32::MAX, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 410 - core::i32::MAX, [INFO] [stdout] 410 + i32::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 411 | core::i64::MAX, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 411 - core::i64::MAX, [INFO] [stdout] 411 + i64::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | core::u64::MAX, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 412 - core::u64::MAX, [INFO] [stdout] 412 + u64::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:415:29 [INFO] [stdout] | [INFO] [stdout] 415 | Value::Negative(core::i64::MIN), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 415 - Value::Negative(core::i64::MIN), [INFO] [stdout] 415 + Value::Negative(i64::MIN), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:416:29 [INFO] [stdout] | [INFO] [stdout] 416 | Value::Negative(core::i32::MIN as i64), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 416 - Value::Negative(core::i32::MIN as i64), [INFO] [stdout] 416 + Value::Negative(i32::MIN as i64), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:422:29 [INFO] [stdout] | [INFO] [stdout] 422 | Value::Unsigned(core::i32::MAX as u64), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 422 - Value::Unsigned(core::i32::MAX as u64), [INFO] [stdout] 422 + Value::Unsigned(i32::MAX as u64), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:423:29 [INFO] [stdout] | [INFO] [stdout] 423 | Value::Unsigned(core::i64::MAX as u64), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 423 - Value::Unsigned(core::i64::MAX as u64), [INFO] [stdout] 423 + Value::Unsigned(i64::MAX as u64), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:424:29 [INFO] [stdout] | [INFO] [stdout] 424 | Value::Unsigned(core::u64::MAX), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 424 - Value::Unsigned(core::u64::MAX), [INFO] [stdout] 424 + Value::Unsigned(u64::MAX), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] ... [INFO] [stdout] 441 | cbor_map! {2 => 3}, [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#vec_init_then_push [INFO] [stdout] = note: `#[warn(clippy::vec_init_then_push)]` on by default [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable [INFO] [stdout] --> src/macros.rs:454:59 [INFO] [stdout] | [INFO] [stdout] 454 | [(Value::Unsigned(2), Value::Unsigned(3))] [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 455 | | .iter() [INFO] [stdout] 456 | | .cloned() [INFO] [stdout] 457 | | .collect(), [INFO] [stdout] | |______________________________^ help: try: `.to_vec()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect [INFO] [stdout] = note: `#[warn(clippy::iter_cloned_collect)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] ... [INFO] [stdout] 516 | 10 => cbor_map!{2 => 3}, [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable [INFO] [stdout] --> src/macros.rs:547:14 [INFO] [stdout] | [INFO] [stdout] 547 | ] [INFO] [stdout] | ______________^ [INFO] [stdout] 548 | | .iter() [INFO] [stdout] 549 | | .cloned() [INFO] [stdout] 550 | | .collect(), [INFO] [stdout] | |______________________^ help: try: `.to_vec()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable [INFO] [stdout] --> src/macros.rs:541:67 [INFO] [stdout] | [INFO] [stdout] 541 | [(Value::Unsigned(2), Value::Unsigned(3))] [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 542 | | .iter() [INFO] [stdout] 543 | | .cloned() [INFO] [stdout] 544 | | .collect(), [INFO] [stdout] | |______________________________________^ help: try: `.to_vec()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] ... [INFO] [stdout] 575 | 10 => Some(cbor_map!{2 => 3}), [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable [INFO] [stdout] --> src/macros.rs:606:14 [INFO] [stdout] | [INFO] [stdout] 606 | ] [INFO] [stdout] | ______________^ [INFO] [stdout] 607 | | .iter() [INFO] [stdout] 608 | | .cloned() [INFO] [stdout] 609 | | .collect(), [INFO] [stdout] | |______________________^ help: try: `.to_vec()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `iter().cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable [INFO] [stdout] --> src/macros.rs:600:67 [INFO] [stdout] | [INFO] [stdout] 600 | [(Value::Unsigned(2), Value::Unsigned(3))] [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 601 | | .iter() [INFO] [stdout] 602 | | .cloned() [INFO] [stdout] 603 | | .collect(), [INFO] [stdout] | |______________________________________^ help: try: `.to_vec()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] ... [INFO] [stdout] 637 | let map = cbor_map! { [INFO] [stdout] | ___________________- [INFO] [stdout] 638 | | 1 => 10, [INFO] [stdout] 639 | | 2 => 20, [INFO] [stdout] 640 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] ... [INFO] [stdout] 656 | let map = cbor_map! { [INFO] [stdout] | ___________________- [INFO] [stdout] 657 | | 1 => 10, [INFO] [stdout] 658 | | 2 => 20, [INFO] [stdout] 659 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] ... [INFO] [stdout] 673 | let map = cbor_map! { [INFO] [stdout] | ___________________- [INFO] [stdout] 674 | | 1 => 10, [INFO] [stdout] 675 | | 2 => 20, [INFO] [stdout] 676 | | 3 => 30, [INFO] [stdout] ... | [INFO] [stdout] 682 | | 9 => 90, [INFO] [stdout] 683 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] ... [INFO] [stdout] 698 | let map = cbor_map! { [INFO] [stdout] | ___________________- [INFO] [stdout] 699 | | 1 => 10, [INFO] [stdout] 700 | | 3 => 30, [INFO] [stdout] 701 | | 4 => 40, [INFO] [stdout] 702 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/reader.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] = note: `#[warn(clippy::unnecessary_map_or)]` on by default [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 73 - if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] 73 + if remaining_depth.is_some_and(|d| d < 0) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/reader.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | core::i64::MAX, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 256 - core::i64::MAX, [INFO] [stdout] 256 + i64::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/reader.rs:318:17 [INFO] [stdout] | [INFO] [stdout] 318 | core::i64::MIN, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 318 - core::i64::MIN, [INFO] [stdout] 318 + i64::MIN, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/reader.rs:428:25 [INFO] [stdout] | [INFO] [stdout] 428 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 429 | | 24 => "abc", [INFO] [stdout] 430 | | "" => ".", [INFO] [stdout] 431 | | "b" => "B", [INFO] [stdout] 432 | | "aa" => "AA", [INFO] [stdout] 433 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/reader.rs:452:25 [INFO] [stdout] | [INFO] [stdout] 452 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 453 | | 1 => "a", [INFO] [stdout] 454 | | 9 => "b", [INFO] [stdout] 455 | | 999 => "c", [INFO] [stdout] 456 | | 1111 => "d", [INFO] [stdout] 457 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/reader.rs:476:25 [INFO] [stdout] | [INFO] [stdout] 476 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 477 | | -1 => 1, [INFO] [stdout] 478 | | -2 => 2, [INFO] [stdout] 479 | | -100 => 3, [INFO] [stdout] 480 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/reader.rs:515:25 [INFO] [stdout] | [INFO] [stdout] 515 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 516 | | "k" => "v", [INFO] [stdout] 517 | | "foo" => "bar", [INFO] [stdout] 518 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/reader.rs:532:25 [INFO] [stdout] | [INFO] [stdout] 532 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 533 | | b"k" => b"v", [INFO] [stdout] 534 | | b"foo" => b"bar", [INFO] [stdout] 535 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/reader.rs:551:20 [INFO] [stdout] | [INFO] [stdout] 551 | "b" => cbor_map! { [INFO] [stdout] | ____________________- [INFO] [stdout] 552 | | "c" => 2, [INFO] [stdout] 553 | | "d" => 3, [INFO] [stdout] 554 | | }, [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/values.rs:274:48 [INFO] [stdout] | [INFO] [stdout] 274 | assert!(cbor_int!(1000000) < cbor_int!(core::i64::MAX)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 274 - assert!(cbor_int!(1000000) < cbor_int!(core::i64::MAX)); [INFO] [stdout] 274 + assert!(cbor_int!(1000000) < cbor_int!(i64::MAX)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/values.rs:275:27 [INFO] [stdout] | [INFO] [stdout] 275 | assert!(cbor_int!(core::i64::MAX) < cbor_int!(-1)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 275 - assert!(cbor_int!(core::i64::MAX) < cbor_int!(-1)); [INFO] [stdout] 275 + assert!(cbor_int!(i64::MAX) < cbor_int!(-1)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/values.rs:280:49 [INFO] [stdout] | [INFO] [stdout] 280 | assert!(cbor_int!(-1000000) < cbor_int!(core::i64::MIN)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 280 - assert!(cbor_int!(-1000000) < cbor_int!(core::i64::MIN)); [INFO] [stdout] 280 + assert!(cbor_int!(-1000000) < cbor_int!(i64::MIN)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/values.rs:281:27 [INFO] [stdout] | [INFO] [stdout] 281 | assert!(cbor_int!(core::i64::MIN) < cbor_bytes!(vec![])); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 281 - assert!(cbor_int!(core::i64::MIN) < cbor_bytes!(vec![])); [INFO] [stdout] 281 + assert!(cbor_int!(i64::MIN) < cbor_bytes!(vec![])); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:300:32 [INFO] [stdout] | [INFO] [stdout] 300 | assert!(cbor_map! {} < cbor_map! {0 => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:301:17 [INFO] [stdout] | [INFO] [stdout] 301 | assert!(cbor_map! {0 => 0} < cbor_map! {0 => 1}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:301:38 [INFO] [stdout] | [INFO] [stdout] 301 | assert!(cbor_map! {0 => 0} < cbor_map! {0 => 1}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:302:17 [INFO] [stdout] | [INFO] [stdout] 302 | assert!(cbor_map! {0 => 1} < cbor_map! {1 => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:302:38 [INFO] [stdout] | [INFO] [stdout] 302 | assert!(cbor_map! {0 => 1} < cbor_map! {1 => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:303:17 [INFO] [stdout] | [INFO] [stdout] 303 | assert!(cbor_map! {1 => 0} < cbor_map! {-1 => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:303:38 [INFO] [stdout] | [INFO] [stdout] 303 | assert!(cbor_map! {1 => 0} < cbor_map! {-1 => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:304:17 [INFO] [stdout] | [INFO] [stdout] 304 | assert!(cbor_map! {-1 => 0} < cbor_map! {b"" => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:304:39 [INFO] [stdout] | [INFO] [stdout] 304 | assert!(cbor_map! {-1 => 0} < cbor_map! {b"" => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:305:17 [INFO] [stdout] | [INFO] [stdout] 305 | assert!(cbor_map! {b"" => 0} < cbor_map! {"" => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:305:40 [INFO] [stdout] | [INFO] [stdout] 305 | assert!(cbor_map! {b"" => 0} < cbor_map! {"" => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:306:17 [INFO] [stdout] | [INFO] [stdout] 306 | assert!(cbor_map! {"" => 0} < cbor_map! {cbor_array![] => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:308:48 [INFO] [stdout] | [INFO] [stdout] 308 | assert!(cbor_map! {cbor_map!{} => 0} < cbor_map! {false => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:309:17 [INFO] [stdout] | [INFO] [stdout] 309 | assert!(cbor_map! {false => 0} < cbor_map! {0 => 0, 0 => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:309:42 [INFO] [stdout] | [INFO] [stdout] 309 | assert!(cbor_map! {false => 0} < cbor_map! {0 => 0, 0 => 0}); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:310:17 [INFO] [stdout] | [INFO] [stdout] 310 | assert!(cbor_map! {0 => 0} < cbor_tagged!(2, cbor_int!(0))); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:311:17 [INFO] [stdout] | [INFO] [stdout] 311 | assert!(cbor_map! {0 => 0, 0 => 0} < cbor_bool!(false)); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/values.rs:338:33 [INFO] [stdout] | [INFO] [stdout] 338 | assert!(cbor_array![] < cbor_map!(0 => 1)); [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/writer.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or [INFO] [stdout] help: use `is_some_and` instead [INFO] [stdout] | [INFO] [stdout] 59 - if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] 59 + if remaining_depth.is_some_and(|d| d < 0) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/writer.rs:155:17 [INFO] [stdout] | [INFO] [stdout] 155 | core::i64::MAX, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 155 - core::i64::MAX, [INFO] [stdout] 155 + i64::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/writer.rs:180:17 [INFO] [stdout] | [INFO] [stdout] 180 | core::i64::MIN, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 180 - core::i64::MIN, [INFO] [stdout] 180 + i64::MIN, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/writer.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | core::u8::MAX as i64 => "d", [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 243 - core::u8::MAX as i64 => "d", [INFO] [stdout] 243 + u8::MAX as i64 => "d", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/writer.rs:245:13 [INFO] [stdout] | [INFO] [stdout] 245 | core::u16::MAX as i64 => "f", [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 245 - core::u16::MAX as i64 => "f", [INFO] [stdout] 245 + u16::MAX as i64 => "f", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/writer.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | core::u32::MAX as i64 => "h", [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 247 - core::u32::MAX as i64 => "h", [INFO] [stdout] 247 + u32::MAX as i64 => "h", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/writer.rs:249:13 [INFO] [stdout] | [INFO] [stdout] 249 | core::i64::MAX => "j", [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 249 - core::i64::MAX => "j", [INFO] [stdout] 249 + i64::MAX => "j", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/writer.rs:258:13 [INFO] [stdout] | [INFO] [stdout] 258 | core::i64::MIN => "s", [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants [INFO] [stdout] help: use the associated constant instead [INFO] [stdout] | [INFO] [stdout] 258 - core::i64::MIN => "s", [INFO] [stdout] 258 + i64::MIN => "s", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/writer.rs:239:25 [INFO] [stdout] | [INFO] [stdout] 239 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 240 | | 0 => "a", [INFO] [stdout] 241 | | 23 => "b", [INFO] [stdout] 242 | | 24 => "c", [INFO] [stdout] ... | [INFO] [stdout] 264 | | "aa" => "AA", [INFO] [stdout] 265 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/writer.rs:321:26 [INFO] [stdout] | [INFO] [stdout] 321 | let sorted_map = cbor_map! { [INFO] [stdout] | __________________________- [INFO] [stdout] 322 | | 0 => "a", [INFO] [stdout] 323 | | 1 => "b", [INFO] [stdout] 324 | | -1 => "c", [INFO] [stdout] ... | [INFO] [stdout] 329 | | "c" => "h", [INFO] [stdout] 330 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/writer.rs:331:28 [INFO] [stdout] | [INFO] [stdout] 331 | let unsorted_map = cbor_map! { [INFO] [stdout] | ____________________________- [INFO] [stdout] 332 | | 1 => "b", [INFO] [stdout] 333 | | -2 => "d", [INFO] [stdout] 334 | | b"b" => "f", [INFO] [stdout] ... | [INFO] [stdout] 339 | | 0 => "a", [INFO] [stdout] 340 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/writer.rs:346:26 [INFO] [stdout] | [INFO] [stdout] 346 | let duplicate0 = cbor_map! { [INFO] [stdout] | __________________________- [INFO] [stdout] 347 | | 0 => "a", [INFO] [stdout] 348 | | -1 => "c", [INFO] [stdout] 349 | | b"a" => "e", [INFO] [stdout] 350 | | "c" => "g", [INFO] [stdout] 351 | | 0 => "b", [INFO] [stdout] 352 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/writer.rs:354:26 [INFO] [stdout] | [INFO] [stdout] 354 | let duplicate1 = cbor_map! { [INFO] [stdout] | __________________________- [INFO] [stdout] 355 | | 0 => "a", [INFO] [stdout] 356 | | -1 => "c", [INFO] [stdout] 357 | | b"a" => "e", [INFO] [stdout] 358 | | "c" => "g", [INFO] [stdout] 359 | | -1 => "d", [INFO] [stdout] 360 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/writer.rs:362:26 [INFO] [stdout] | [INFO] [stdout] 362 | let duplicate2 = cbor_map! { [INFO] [stdout] | __________________________- [INFO] [stdout] 363 | | 0 => "a", [INFO] [stdout] 364 | | -1 => "c", [INFO] [stdout] 365 | | b"a" => "e", [INFO] [stdout] 366 | | "c" => "g", [INFO] [stdout] 367 | | b"a" => "f", [INFO] [stdout] 368 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/writer.rs:370:26 [INFO] [stdout] | [INFO] [stdout] 370 | let duplicate3 = cbor_map! { [INFO] [stdout] | __________________________- [INFO] [stdout] 371 | | 0 => "a", [INFO] [stdout] 372 | | -1 => "c", [INFO] [stdout] 373 | | b"a" => "e", [INFO] [stdout] 374 | | "c" => "g", [INFO] [stdout] 375 | | "c" => "h", [INFO] [stdout] 376 | | }; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/writer.rs:400:20 [INFO] [stdout] | [INFO] [stdout] 400 | "b" => cbor_map! { [INFO] [stdout] | ____________________- [INFO] [stdout] 401 | | "c" => 2, [INFO] [stdout] 402 | | "d" => 3, [INFO] [stdout] 403 | | }, [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/writer.rs:479:21 [INFO] [stdout] | [INFO] [stdout] 479 | assert!(!writer.encode_cbor(value, Some(level)).is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `writer.encode_cbor(value, Some(level)).is_err()` [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] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/writer.rs:460:33 [INFO] [stdout] | [INFO] [stdout] 460 | let simple_map: Value = cbor_map! {"b" => 3}; [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/writer.rs:487:20 [INFO] [stdout] | [INFO] [stdout] 487 | "b" => cbor_map! { [INFO] [stdout] | ____________________- [INFO] [stdout] 488 | | "c" => 2, [INFO] [stdout] 489 | | "d" => 3, [INFO] [stdout] 490 | | }, [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `push` immediately after creation [INFO] [stdout] --> src/macros.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | / let mut _map = ::alloc::vec::Vec::new(); [INFO] [stdout] 168 | | $( [INFO] [stdout] 169 | | _map.push(($key.into_cbor_value(), $value.into_cbor_value())); [INFO] [stdout] | |______________________________________________________________________________^ help: consider using the `vec![]` macro: `let _map = vec![..];` [INFO] [stdout] | [INFO] [stdout] ::: src/writer.rs:509:24 [INFO] [stdout] | [INFO] [stdout] 509 | "b" => cbor_map! { [INFO] [stdout] | ________________________- [INFO] [stdout] 510 | | "c" => 2, [INFO] [stdout] 511 | | "d" => 3, [INFO] [stdout] 512 | | }, [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#vec_init_then_push [INFO] [stdout] = note: this warning originates in the macro `cbor_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> src/reader.rs:408:18 [INFO] [stdout] | [INFO] [stdout] 408 | read(&vec![0x63, 0x00, 0x00, 0xA6]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[0x63, 0x00, 0x00, 0xA6]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/writer.rs:50:30 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new(encoded_cbor: &mut Vec) -> Writer { [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | pub fn new(encoded_cbor: &mut Vec) -> Writer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.92s [INFO] running `Command { std: "docker" "inspect" "1f400969a1c79db6a56ce94b0770e340a93451aef6af93dd04b0c2d9b8ba83c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f400969a1c79db6a56ce94b0770e340a93451aef6af93dd04b0c2d9b8ba83c8", kill_on_drop: false }` [INFO] [stdout] 1f400969a1c79db6a56ce94b0770e340a93451aef6af93dd04b0c2d9b8ba83c8