[INFO] fetching crate oasis-cbor-value 0.5.1... [INFO] linting oasis-cbor-value-0.5.1 against nightly for clippy-nonminimal_bool-denied [INFO] extracting crate oasis-cbor-value 0.5.1 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate oasis-cbor-value 0.5.1 [INFO] finished tweaking crates.io crate oasis-cbor-value 0.5.1 [INFO] tweaked toml for crates.io crate oasis-cbor-value 0.5.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate oasis-cbor-value 0.5.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] 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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] e64c1b9b7cafdac7a921cd2879c19e777136bf38fe447aea06ff119e28994860 [INFO] running `Command { std: "docker" "start" "-a" "e64c1b9b7cafdac7a921cd2879c19e777136bf38fe447aea06ff119e28994860", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e64c1b9b7cafdac7a921cd2879c19e777136bf38fe447aea06ff119e28994860", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e64c1b9b7cafdac7a921cd2879c19e777136bf38fe447aea06ff119e28994860", kill_on_drop: false }` [INFO] [stdout] e64c1b9b7cafdac7a921cd2879c19e777136bf38fe447aea06ff119e28994860 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 9fb93a39c95b2d8690639a7cb47e660159bcc86c3af6a9d8860e80953f310167 [INFO] running `Command { std: "docker" "start" "-a" "9fb93a39c95b2d8690639a7cb47e660159bcc86c3af6a9d8860e80953f310167", kill_on_drop: false }` [INFO] [stderr] Checking oasis-cbor-value v0.5.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: this `map_or` can be simplified [INFO] [stdout] --> src/reader.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | 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] 94 - if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] 94 + 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:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | 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] 61 - if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] 61 + 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:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | 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] 52 | 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:389:23 [INFO] [stdout] | [INFO] [stdout] 389 | 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] 389 - cbor_int!(core::i64::MAX), [INFO] [stdout] 389 + cbor_int!(i64::MAX), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:390:29 [INFO] [stdout] | [INFO] [stdout] 390 | 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] 390 - Value::Unsigned(core::i64::MAX as u64) [INFO] [stdout] 390 + 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:399:23 [INFO] [stdout] | [INFO] [stdout] 399 | 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] 399 - cbor_int!(core::i64::MIN), [INFO] [stdout] 399 + cbor_int!(i64::MIN), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:400:29 [INFO] [stdout] | [INFO] [stdout] 400 | Value::Negative(core::i64::MIN as i128) [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] 400 - Value::Negative(core::i64::MIN as i128) [INFO] [stdout] 400 + Value::Negative(i64::MIN as i128) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:407:13 [INFO] [stdout] | [INFO] [stdout] 407 | 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] 407 - core::i64::MIN, [INFO] [stdout] 407 + i64::MIN, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:408:13 [INFO] [stdout] | [INFO] [stdout] 408 | 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] 408 - core::i32::MIN, [INFO] [stdout] 408 + i32::MIN, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:414:13 [INFO] [stdout] | [INFO] [stdout] 414 | 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] 414 - core::i32::MAX, [INFO] [stdout] 414 + i32::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:415:13 [INFO] [stdout] | [INFO] [stdout] 415 | 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] 415 - core::i64::MAX, [INFO] [stdout] 415 + i64::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:416:13 [INFO] [stdout] | [INFO] [stdout] 416 | 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] 416 - core::u64::MAX, [INFO] [stdout] 416 + u64::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:419:29 [INFO] [stdout] | [INFO] [stdout] 419 | Value::Negative(core::i64::MIN as i128), [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] 419 - Value::Negative(core::i64::MIN as i128), [INFO] [stdout] 419 + Value::Negative(i64::MIN as i128), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:420:29 [INFO] [stdout] | [INFO] [stdout] 420 | Value::Negative(core::i32::MIN as i128), [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] 420 - Value::Negative(core::i32::MIN as i128), [INFO] [stdout] 420 + Value::Negative(i32::MIN as i128), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/macros.rs:426:29 [INFO] [stdout] | [INFO] [stdout] 426 | 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] 426 - Value::Unsigned(core::i32::MAX as u64), [INFO] [stdout] 426 + 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:427:29 [INFO] [stdout] | [INFO] [stdout] 427 | 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] 427 - Value::Unsigned(core::i64::MAX as u64), [INFO] [stdout] 427 + 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:428:29 [INFO] [stdout] | [INFO] [stdout] 428 | 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] 428 - Value::Unsigned(core::u64::MAX), [INFO] [stdout] 428 + 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] 445 | 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:458:59 [INFO] [stdout] | [INFO] [stdout] 458 | [(Value::Unsigned(2), Value::Unsigned(3))] [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 459 | | .iter() [INFO] [stdout] 460 | | .cloned() [INFO] [stdout] 461 | | .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] 520 | 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:551:14 [INFO] [stdout] | [INFO] [stdout] 551 | ] [INFO] [stdout] | ______________^ [INFO] [stdout] 552 | | .iter() [INFO] [stdout] 553 | | .cloned() [INFO] [stdout] 554 | | .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:545:67 [INFO] [stdout] | [INFO] [stdout] 545 | [(Value::Unsigned(2), Value::Unsigned(3))] [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 546 | | .iter() [INFO] [stdout] 547 | | .cloned() [INFO] [stdout] 548 | | .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] 579 | 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:610:14 [INFO] [stdout] | [INFO] [stdout] 610 | ] [INFO] [stdout] | ______________^ [INFO] [stdout] 611 | | .iter() [INFO] [stdout] 612 | | .cloned() [INFO] [stdout] 613 | | .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:604:67 [INFO] [stdout] | [INFO] [stdout] 604 | [(Value::Unsigned(2), Value::Unsigned(3))] [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 605 | | .iter() [INFO] [stdout] 606 | | .cloned() [INFO] [stdout] 607 | | .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] 641 | let map = cbor_map! { [INFO] [stdout] | ___________________- [INFO] [stdout] 642 | | 1 => 10, [INFO] [stdout] 643 | | 2 => 20, [INFO] [stdout] 644 | | }; [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] 660 | let map = cbor_map! { [INFO] [stdout] | ___________________- [INFO] [stdout] 661 | | 1 => 10, [INFO] [stdout] 662 | | 2 => 20, [INFO] [stdout] 663 | | }; [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] 677 | let map = cbor_map! { [INFO] [stdout] | ___________________- [INFO] [stdout] 678 | | 1 => 10, [INFO] [stdout] 679 | | 2 => 20, [INFO] [stdout] 680 | | 3 => 30, [INFO] [stdout] ... | [INFO] [stdout] 686 | | 9 => 90, [INFO] [stdout] 687 | | }; [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] 702 | let map = cbor_map! { [INFO] [stdout] | ___________________- [INFO] [stdout] 703 | | 1 => 10, [INFO] [stdout] 704 | | 3 => 30, [INFO] [stdout] 705 | | 4 => 40, [INFO] [stdout] 706 | | }; [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:94:12 [INFO] [stdout] | [INFO] [stdout] 94 | 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] 94 - if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] 94 + 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:276:17 [INFO] [stdout] | [INFO] [stdout] 276 | 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] 276 - core::i64::MAX, [INFO] [stdout] 276 + i64::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/reader.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 338 | 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] 338 - core::i64::MIN, [INFO] [stdout] 338 + 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:448:25 [INFO] [stdout] | [INFO] [stdout] 448 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 449 | | 24 => "abc", [INFO] [stdout] 450 | | "" => ".", [INFO] [stdout] 451 | | "b" => "B", [INFO] [stdout] 452 | | "aa" => "AA", [INFO] [stdout] 453 | | }; [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:472:25 [INFO] [stdout] | [INFO] [stdout] 472 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 473 | | 1 => "a", [INFO] [stdout] 474 | | 9 => "b", [INFO] [stdout] 475 | | 999 => "c", [INFO] [stdout] 476 | | 1111 => "d", [INFO] [stdout] 477 | | }; [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:496:25 [INFO] [stdout] | [INFO] [stdout] 496 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 497 | | -1 => 1, [INFO] [stdout] 498 | | -2 => 2, [INFO] [stdout] 499 | | -100 => 3, [INFO] [stdout] 500 | | }; [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:535:25 [INFO] [stdout] | [INFO] [stdout] 535 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 536 | | "k" => "v", [INFO] [stdout] 537 | | "foo" => "bar", [INFO] [stdout] 538 | | }; [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:552:25 [INFO] [stdout] | [INFO] [stdout] 552 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 553 | | b"k" => b"v", [INFO] [stdout] 554 | | b"foo" => b"bar", [INFO] [stdout] 555 | | }; [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:571:20 [INFO] [stdout] | [INFO] [stdout] 571 | "b" => cbor_map! { [INFO] [stdout] | ____________________- [INFO] [stdout] 572 | | "c" => 2, [INFO] [stdout] 573 | | "d" => 3, [INFO] [stdout] 574 | | }, [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:300:48 [INFO] [stdout] | [INFO] [stdout] 300 | 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] 300 - assert!(cbor_int!(1000000) < cbor_int!(core::i64::MAX)); [INFO] [stdout] 300 + 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:301:27 [INFO] [stdout] | [INFO] [stdout] 301 | 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] 301 - assert!(cbor_int!(core::i64::MAX) < cbor_int!(-1)); [INFO] [stdout] 301 + 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:306:49 [INFO] [stdout] | [INFO] [stdout] 306 | 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] 306 - assert!(cbor_int!(-1000000) < cbor_int!(core::i64::MIN)); [INFO] [stdout] 306 + 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:307:27 [INFO] [stdout] | [INFO] [stdout] 307 | 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] 307 - assert!(cbor_int!(core::i64::MIN) < cbor_bytes!(vec![])); [INFO] [stdout] 307 + 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:326:32 [INFO] [stdout] | [INFO] [stdout] 326 | 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:327:17 [INFO] [stdout] | [INFO] [stdout] 327 | 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:327:38 [INFO] [stdout] | [INFO] [stdout] 327 | 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:328:17 [INFO] [stdout] | [INFO] [stdout] 328 | 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:328:38 [INFO] [stdout] | [INFO] [stdout] 328 | 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:329:17 [INFO] [stdout] | [INFO] [stdout] 329 | 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:329:38 [INFO] [stdout] | [INFO] [stdout] 329 | 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:330:17 [INFO] [stdout] | [INFO] [stdout] 330 | 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:330:39 [INFO] [stdout] | [INFO] [stdout] 330 | 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:331:17 [INFO] [stdout] | [INFO] [stdout] 331 | 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:331:40 [INFO] [stdout] | [INFO] [stdout] 331 | 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:332:17 [INFO] [stdout] | [INFO] [stdout] 332 | 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:334:48 [INFO] [stdout] | [INFO] [stdout] 334 | 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:335:17 [INFO] [stdout] | [INFO] [stdout] 335 | 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:335:42 [INFO] [stdout] | [INFO] [stdout] 335 | 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:336:17 [INFO] [stdout] | [INFO] [stdout] 336 | 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:337:17 [INFO] [stdout] | [INFO] [stdout] 337 | 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:364:33 [INFO] [stdout] | [INFO] [stdout] 364 | 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:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | 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] 61 - if remaining_depth.map_or(false, |d| d < 0) { [INFO] [stdout] 61 + 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:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | 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] 158 - core::i64::MAX, [INFO] [stdout] 158 + i64::MAX, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/writer.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | 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] 183 - core::i64::MIN, [INFO] [stdout] 183 + i64::MIN, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/writer.rs:246:13 [INFO] [stdout] | [INFO] [stdout] 246 | 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] 246 - core::u8::MAX as i64 => "d", [INFO] [stdout] 246 + 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:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | 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] 248 - core::u16::MAX as i64 => "f", [INFO] [stdout] 248 + 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:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | 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] 250 - core::u32::MAX as i64 => "h", [INFO] [stdout] 250 + 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:252:13 [INFO] [stdout] | [INFO] [stdout] 252 | 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] 252 - core::i64::MAX => "j", [INFO] [stdout] 252 + i64::MAX => "j", [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: usage of a legacy numeric constant [INFO] [stdout] --> src/writer.rs:261:13 [INFO] [stdout] | [INFO] [stdout] 261 | 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] 261 - core::i64::MIN => "s", [INFO] [stdout] 261 + 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:242:25 [INFO] [stdout] | [INFO] [stdout] 242 | let value_map = cbor_map! { [INFO] [stdout] | _________________________- [INFO] [stdout] 243 | | 0 => "a", [INFO] [stdout] 244 | | 23 => "b", [INFO] [stdout] 245 | | 24 => "c", [INFO] [stdout] ... | [INFO] [stdout] 267 | | "aa" => "AA", [INFO] [stdout] 268 | | }; [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:324:26 [INFO] [stdout] | [INFO] [stdout] 324 | let sorted_map = cbor_map! { [INFO] [stdout] | __________________________- [INFO] [stdout] 325 | | 0 => "a", [INFO] [stdout] 326 | | 1 => "b", [INFO] [stdout] 327 | | -1 => "c", [INFO] [stdout] ... | [INFO] [stdout] 332 | | "c" => "h", [INFO] [stdout] 333 | | }; [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:334:28 [INFO] [stdout] | [INFO] [stdout] 334 | let unsorted_map = cbor_map! { [INFO] [stdout] | ____________________________- [INFO] [stdout] 335 | | 1 => "b", [INFO] [stdout] 336 | | -2 => "d", [INFO] [stdout] 337 | | b"b" => "f", [INFO] [stdout] ... | [INFO] [stdout] 342 | | 0 => "a", [INFO] [stdout] 343 | | }; [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:349:26 [INFO] [stdout] | [INFO] [stdout] 349 | let duplicate0 = cbor_map! { [INFO] [stdout] | __________________________- [INFO] [stdout] 350 | | 0 => "a", [INFO] [stdout] 351 | | -1 => "c", [INFO] [stdout] 352 | | b"a" => "e", [INFO] [stdout] 353 | | "c" => "g", [INFO] [stdout] 354 | | 0 => "b", [INFO] [stdout] 355 | | }; [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:357:26 [INFO] [stdout] | [INFO] [stdout] 357 | let duplicate1 = cbor_map! { [INFO] [stdout] | __________________________- [INFO] [stdout] 358 | | 0 => "a", [INFO] [stdout] 359 | | -1 => "c", [INFO] [stdout] 360 | | b"a" => "e", [INFO] [stdout] 361 | | "c" => "g", [INFO] [stdout] 362 | | -1 => "d", [INFO] [stdout] 363 | | }; [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:365:26 [INFO] [stdout] | [INFO] [stdout] 365 | let duplicate2 = cbor_map! { [INFO] [stdout] | __________________________- [INFO] [stdout] 366 | | 0 => "a", [INFO] [stdout] 367 | | -1 => "c", [INFO] [stdout] 368 | | b"a" => "e", [INFO] [stdout] 369 | | "c" => "g", [INFO] [stdout] 370 | | b"a" => "f", [INFO] [stdout] 371 | | }; [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:373:26 [INFO] [stdout] | [INFO] [stdout] 373 | let duplicate3 = cbor_map! { [INFO] [stdout] | __________________________- [INFO] [stdout] 374 | | 0 => "a", [INFO] [stdout] 375 | | -1 => "c", [INFO] [stdout] 376 | | b"a" => "e", [INFO] [stdout] 377 | | "c" => "g", [INFO] [stdout] 378 | | "c" => "h", [INFO] [stdout] 379 | | }; [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:403:20 [INFO] [stdout] | [INFO] [stdout] 403 | "b" => cbor_map! { [INFO] [stdout] | ____________________- [INFO] [stdout] 404 | | "c" => 2, [INFO] [stdout] 405 | | "d" => 3, [INFO] [stdout] 406 | | }, [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:482:21 [INFO] [stdout] | [INFO] [stdout] 482 | 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:463:33 [INFO] [stdout] | [INFO] [stdout] 463 | 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:490:20 [INFO] [stdout] | [INFO] [stdout] 490 | "b" => cbor_map! { [INFO] [stdout] | ____________________- [INFO] [stdout] 491 | | "c" => 2, [INFO] [stdout] 492 | | "d" => 3, [INFO] [stdout] 493 | | }, [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:512:24 [INFO] [stdout] | [INFO] [stdout] 512 | "b" => cbor_map! { [INFO] [stdout] | ________________________- [INFO] [stdout] 513 | | "c" => 2, [INFO] [stdout] 514 | | "d" => 3, [INFO] [stdout] 515 | | }, [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:428:18 [INFO] [stdout] | [INFO] [stdout] 428 | 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:52:30 [INFO] [stdout] | [INFO] [stdout] 52 | 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] 52 | pub fn new(encoded_cbor: &mut Vec) -> Writer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.06s [INFO] running `Command { std: "docker" "inspect" "9fb93a39c95b2d8690639a7cb47e660159bcc86c3af6a9d8860e80953f310167", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fb93a39c95b2d8690639a7cb47e660159bcc86c3af6a9d8860e80953f310167", kill_on_drop: false }` [INFO] [stdout] 9fb93a39c95b2d8690639a7cb47e660159bcc86c3af6a9d8860e80953f310167