[INFO] fetching crate mender_artifact 0.1.3...
[INFO] checking mender_artifact-0.1.3 against try#0611f7de057c584b8771102fde7aed6c70c71d3b for pr-146440
[INFO] extracting crate mender_artifact 0.1.3 into /workspace/builds/worker-5-tc2/source
[INFO] started tweaking crates.io crate mender_artifact 0.1.3
[INFO] finished tweaking crates.io crate mender_artifact 0.1.3
[INFO] tweaked toml for crates.io crate mender_artifact 0.1.3 written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate mender_artifact 0.1.3 on toolchain 0611f7de057c584b8771102fde7aed6c70c71d3b
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate mender_artifact 0.1.3 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" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c406d86acb6273dac3169cf1d665e9854c0e2192c38ea73278876f40e743804c
[INFO] running `Command { std: "docker" "start" "-a" "c406d86acb6273dac3169cf1d665e9854c0e2192c38ea73278876f40e743804c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c406d86acb6273dac3169cf1d665e9854c0e2192c38ea73278876f40e743804c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c406d86acb6273dac3169cf1d665e9854c0e2192c38ea73278876f40e743804c", kill_on_drop: false }`
[INFO] [stdout] c406d86acb6273dac3169cf1d665e9854c0e2192c38ea73278876f40e743804c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 81c911ada9c83bcabeef91f4d571c75b079a391176c3e25987cca1349cd9f240
[INFO] running `Command { std: "docker" "start" "-a" "81c911ada9c83bcabeef91f4d571c75b079a391176c3e25987cca1349cd9f240", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.62
[INFO] [stderr]    Compiling autocfg v0.1.6
[INFO] [stderr]    Compiling proc-macro2 v1.0.4
[INFO] [stderr]     Checking cfg-if v0.1.9
[INFO] [stderr]    Compiling syn v1.0.5
[INFO] [stderr]    Compiling cgmath v0.16.1
[INFO] [stderr]    Compiling winapi v0.3.8
[INFO] [stderr]     Checking approx v0.1.1
[INFO] [stderr]    Compiling cc v1.0.45
[INFO] [stderr]    Compiling serde v1.0.101
[INFO] [stderr]    Compiling ryu v1.0.0
[INFO] [stderr]    Compiling log v0.4.8
[INFO] [stderr]     Checking rgb v0.8.14
[INFO] [stderr]     Checking itoa v0.4.4
[INFO] [stderr]     Checking crc32fast v1.2.0
[INFO] [stderr]    Compiling num-traits v0.2.8
[INFO] [stderr]    Compiling num-integer v0.1.41
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking time v0.1.42
[INFO] [stderr]     Checking xattr v0.2.2
[INFO] [stderr]     Checking filetime v0.2.7
[INFO] [stderr]    Compiling quote v1.0.2
[INFO] [stderr]    Compiling miniz-sys v0.1.12
[INFO] [stderr]     Checking tar v0.4.26
[INFO] [stderr]     Checking num-traits v0.1.43
[INFO] [stderr]     Checking chrono v0.4.9
[INFO] [stderr]     Checking flate2 v1.0.11
[INFO] [stderr]     Checking winconsole v0.10.0
[INFO] [stderr]     Checking colored v1.8.0
[INFO] [stderr]     Checking simple_logger v1.3.0
[INFO] [stderr]    Compiling serde_derive v1.0.101
[INFO] [stderr]     Checking serde_json v1.0.40
[INFO] [stderr]     Checking mender_artifact v0.1.3 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `info`, `trace`, and `warn`
[INFO] [stdout]  --> src/lib.rs:2:18
[INFO] [stdout]   |
[INFO] [stdout] 2 | use log::{debug, info, trace, warn};
[INFO] [stdout]   |                  ^^^^  ^^^^^  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Serialize`
[INFO] [stdout]  --> src/lib.rs:3:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde::{Deserialize, Serialize};
[INFO] [stdout]   |                          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/lib.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]   --> src/lib.rs:51:10
[INFO] [stdout]    |
[INFO] [stdout] 51 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]   --> src/lib.rs:84:10
[INFO] [stdout]    |
[INFO] [stdout] 84 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]   --> src/lib.rs:91:10
[INFO] [stdout]    |
[INFO] [stdout] 91 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]   --> src/lib.rs:97:10
[INFO] [stdout]    |
[INFO] [stdout] 97 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]    --> src/lib.rs:113:10
[INFO] [stdout]     |
[INFO] [stdout] 113 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]     = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]    --> src/lib.rs:120:10
[INFO] [stdout]     |
[INFO] [stdout] 120 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]     = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]    --> src/lib.rs:125:10
[INFO] [stdout]     |
[INFO] [stdout] 125 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]     = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]    --> src/lib.rs:130:10
[INFO] [stdout]     |
[INFO] [stdout] 130 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]     = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:272:35
[INFO] [stdout]     |
[INFO] [stdout] 272 |     archive: tar::Archive<&'a mut std::io::Read>,
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 272 |     archive: tar::Archive<&'a mut dyn std::io::Read>,
[INFO] [stdout]     |                                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:276:32
[INFO] [stdout]     |
[INFO] [stdout] 276 |     pub fn new(reader: &'a mut std::io::Read) -> MenderArtifact {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 276 |     pub fn new(reader: &'a mut dyn std::io::Read) -> MenderArtifact {
[INFO] [stdout]     |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `info`, `trace`, and `warn`
[INFO] [stdout]  --> src/lib.rs:2:18
[INFO] [stdout]   |
[INFO] [stdout] 2 | use log::{debug, info, trace, warn};
[INFO] [stdout]   |                  ^^^^  ^^^^^  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Serialize`
[INFO] [stdout]  --> src/lib.rs:3:26
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde::{Deserialize, Serialize};
[INFO] [stdout]   |                          ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/lib.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fs::File;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]   --> src/lib.rs:51:10
[INFO] [stdout]    |
[INFO] [stdout] 51 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]   --> src/lib.rs:84:10
[INFO] [stdout]    |
[INFO] [stdout] 84 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]   --> src/lib.rs:91:10
[INFO] [stdout]    |
[INFO] [stdout] 91 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]   --> src/lib.rs:97:10
[INFO] [stdout]    |
[INFO] [stdout] 97 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]    --> src/lib.rs:113:10
[INFO] [stdout]     |
[INFO] [stdout] 113 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]     = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]    --> src/lib.rs:120:10
[INFO] [stdout]     |
[INFO] [stdout] 120 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]     = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]    --> src/lib.rs:125:10
[INFO] [stdout]     |
[INFO] [stdout] 125 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]     = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy`
[INFO] [stdout]    --> src/lib.rs:130:10
[INFO] [stdout]     |
[INFO] [stdout] 130 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]     = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:293:47
[INFO] [stdout]     |
[INFO] [stdout] 293 |         let mut entry: tar::Entry<'a, &'a mut std::io::Read> = entries.next().unwrap().unwrap();
[INFO] [stdout]     |                                               ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 293 |         let mut entry: tar::Entry<'a, &'a mut dyn std::io::Read> = entries.next().unwrap().unwrap();
[INFO] [stdout]     |                                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:272:35
[INFO] [stdout]     |
[INFO] [stdout] 272 |     archive: tar::Archive<&'a mut std::io::Read>,
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]     = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 272 |     archive: tar::Archive<&'a mut dyn std::io::Read>,
[INFO] [stdout]     |                                   +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:276:32
[INFO] [stdout]     |
[INFO] [stdout] 276 |     pub fn new(reader: &'a mut std::io::Read) -> MenderArtifact {
[INFO] [stdout]     |                                ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 276 |     pub fn new(reader: &'a mut dyn std::io::Read) -> MenderArtifact {
[INFO] [stdout]     |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:26:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             &IOError => "IOError",
[INFO] [stdout]    |             -------- matches any value
[INFO] [stdout] 26 |             &ParseError => "ParseError",
[INFO] [stdout]    |             ^^^^^^^^^^^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             &IOError => "IOError",
[INFO] [stdout]    |             -------- matches any value
[INFO] [stdout] 26 |             &ParseError => "ParseError",
[INFO] [stdout] 27 |             &JSONParseError => "JSONParrseError",
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `IOError`
[INFO] [stdout]   --> src/lib.rs:25:14
[INFO] [stdout]    |
[INFO] [stdout] 25 |             &IOError => "IOError",
[INFO] [stdout]    |              ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_IOError`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ParseError`
[INFO] [stdout]   --> src/lib.rs:26:14
[INFO] [stdout]    |
[INFO] [stdout] 26 |             &ParseError => "ParseError",
[INFO] [stdout]    |              ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ParseError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `JSONParseError`
[INFO] [stdout]   --> src/lib.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 |             &JSONParseError => "JSONParrseError",
[INFO] [stdout]    |              ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_JSONParseError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |             &IOError => None,
[INFO] [stdout]    |             -------- matches any value
[INFO] [stdout] 34 |             &ParseError => None,
[INFO] [stdout]    |             ^^^^^^^^^^^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:35:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |             &IOError => None,
[INFO] [stdout]    |             -------- matches any value
[INFO] [stdout] 34 |             &ParseError => None,
[INFO] [stdout] 35 |             &JSONParseError => None,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `IOError`
[INFO] [stdout]   --> src/lib.rs:33:14
[INFO] [stdout]    |
[INFO] [stdout] 33 |             &IOError => None,
[INFO] [stdout]    |              ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_IOError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ParseError`
[INFO] [stdout]   --> src/lib.rs:34:14
[INFO] [stdout]    |
[INFO] [stdout] 34 |             &ParseError => None,
[INFO] [stdout]    |              ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ParseError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `JSONParseError`
[INFO] [stdout]   --> src/lib.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 |             &JSONParseError => None,
[INFO] [stdout]    |              ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_JSONParseError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/lib.rs:293:47
[INFO] [stdout]     |
[INFO] [stdout] 293 |         let mut entry: tar::Entry<'a, &'a mut std::io::Read> = entries.next().unwrap().unwrap();
[INFO] [stdout]     |                                               ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 293 |         let mut entry: tar::Entry<'a, &'a mut dyn std::io::Read> = entries.next().unwrap().unwrap();
[INFO] [stdout]     |                                               +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:245:13
[INFO] [stdout]     |
[INFO] [stdout] 245 |         let mut n: usize = 0;
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `buf`
[INFO] [stdout]    --> src/lib.rs:242:24
[INFO] [stdout]     |
[INFO] [stdout] 242 |     fn read(&mut self, buf: &mut [u8]) -> Result<usize, std::io::Error> {
[INFO] [stdout]     |                        ^^^ help: if this is intentional, prefix it with an underscore: `_buf`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:277:13
[INFO] [stdout]     |
[INFO] [stdout] 277 |         let mut archive = Archive::new(reader);
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:278:13
[INFO] [stdout]     |
[INFO] [stdout] 278 |         let mut m = MenderArtifact {
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:343:13
[INFO] [stdout]     |
[INFO] [stdout] 343 |         let mut decoder = GzDecoder::new(&mut entry);
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:26:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             &IOError => "IOError",
[INFO] [stdout]    |             -------- matches any value
[INFO] [stdout] 26 |             &ParseError => "ParseError",
[INFO] [stdout]    |             ^^^^^^^^^^^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             &IOError => "IOError",
[INFO] [stdout]    |             -------- matches any value
[INFO] [stdout] 26 |             &ParseError => "ParseError",
[INFO] [stdout] 27 |             &JSONParseError => "JSONParrseError",
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `IOError`
[INFO] [stdout]   --> src/lib.rs:25:14
[INFO] [stdout]    |
[INFO] [stdout] 25 |             &IOError => "IOError",
[INFO] [stdout]    |              ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_IOError`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ParseError`
[INFO] [stdout]   --> src/lib.rs:26:14
[INFO] [stdout]    |
[INFO] [stdout] 26 |             &ParseError => "ParseError",
[INFO] [stdout]    |              ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ParseError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `JSONParseError`
[INFO] [stdout]   --> src/lib.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 |             &JSONParseError => "JSONParrseError",
[INFO] [stdout]    |              ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_JSONParseError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |             &IOError => None,
[INFO] [stdout]    |             -------- matches any value
[INFO] [stdout] 34 |             &ParseError => None,
[INFO] [stdout]    |             ^^^^^^^^^^^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/lib.rs:35:13
[INFO] [stdout]    |
[INFO] [stdout] 33 |             &IOError => None,
[INFO] [stdout]    |             -------- matches any value
[INFO] [stdout] 34 |             &ParseError => None,
[INFO] [stdout] 35 |             &JSONParseError => None,
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `IOError`
[INFO] [stdout]   --> src/lib.rs:33:14
[INFO] [stdout]    |
[INFO] [stdout] 33 |             &IOError => None,
[INFO] [stdout]    |              ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_IOError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ParseError`
[INFO] [stdout]   --> src/lib.rs:34:14
[INFO] [stdout]    |
[INFO] [stdout] 34 |             &ParseError => None,
[INFO] [stdout]    |              ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ParseError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `JSONParseError`
[INFO] [stdout]   --> src/lib.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 |             &JSONParseError => None,
[INFO] [stdout]    |              ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_JSONParseError`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `Payload` is never constructed
[INFO] [stdout]    --> src/lib.rs:190:12
[INFO] [stdout]     |
[INFO] [stdout] 190 | pub struct Payload<'a> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout]     = note: `#[deny(unused_unconstructable_pub_struct)]` (part of `#[deny(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `format` and `version` are never read
[INFO] [stdout]   --> src/lib.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct Version {
[INFO] [stdout]    |            ------- fields in this struct
[INFO] [stdout] 53 |     format: String,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 54 |     version: i32,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Version` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `artifact_name`, `device_type`, and `artifact_group` are never read
[INFO] [stdout]   --> src/lib.rs:86:5
[INFO] [stdout]    |
[INFO] [stdout] 85 | pub struct ArtifactDepends {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout] 86 |     artifact_name: Option<Vec<String>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 87 |     device_type: Vec<String>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 88 |     artifact_group: Option<String>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ArtifactDepends` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `artifact_name` and `artifact_group` are never read
[INFO] [stdout]   --> src/lib.rs:93:5
[INFO] [stdout]    |
[INFO] [stdout] 92 | pub struct ArtifactProvides {
[INFO] [stdout]    |            ---------------- fields in this struct
[INFO] [stdout] 93 |     artifact_name: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 94 |     artifact_group: Option<String>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ArtifactProvides` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `payloads`, `artifact_provides`, and `artifact_depends` are never read
[INFO] [stdout]    --> src/lib.rs:99:5
[INFO] [stdout]     |
[INFO] [stdout]  98 | pub struct HeaderInfo {
[INFO] [stdout]     |            ---------- fields in this struct
[INFO] [stdout]  99 |     payloads: Vec<std::collections::HashMap<String, String>>,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 100 |     artifact_provides: ArtifactProvides,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 101 |     artifact_depends: ArtifactDepends,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `HeaderInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `type`, `artifact_provides`, and `artifact_depends` are never read
[INFO] [stdout]    --> src/lib.rs:115:5
[INFO] [stdout]     |
[INFO] [stdout] 114 | pub struct TypeInfo {
[INFO] [stdout]     |            -------- fields in this struct
[INFO] [stdout] 115 |     r#type: String,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 116 |     artifact_provides: Option<TypeInfoArtifactProvides>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 117 |     artifact_depends: Option<TypeInfoArtifactDepends>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `TypeInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rootfs_image_checksum` is never read
[INFO] [stdout]    --> src/lib.rs:122:5
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub struct TypeInfoArtifactProvides {
[INFO] [stdout]     |            ------------------------ field in this struct
[INFO] [stdout] 122 |     rootfs_image_checksum: String,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `TypeInfoArtifactProvides` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rootfs_image_checksum` is never read
[INFO] [stdout]    --> src/lib.rs:127:5
[INFO] [stdout]     |
[INFO] [stdout] 126 | pub struct TypeInfoArtifactDepends {
[INFO] [stdout]     |            ----------------------- field in this struct
[INFO] [stdout] 127 |     rootfs_image_checksum: String,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `TypeInfoArtifactDepends` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `type_info` and `meta_data` are never read
[INFO] [stdout]    --> src/lib.rs:132:5
[INFO] [stdout]     |
[INFO] [stdout] 131 | pub struct SubHeader {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 132 |     type_info: TypeInfo,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 133 |     meta_data: Option<std::collections::HashMap<String, String>>,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `SubHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `header_info` is never read
[INFO] [stdout]    --> src/lib.rs:138:5
[INFO] [stdout]     |
[INFO] [stdout] 137 | pub struct Header {
[INFO] [stdout]     |            ------ field in this struct
[INFO] [stdout] 138 |     header_info: HeaderInfo,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `cur_archive` and `entry` are never read
[INFO] [stdout]    --> src/lib.rs:194:5
[INFO] [stdout]     |
[INFO] [stdout] 190 | pub struct Payload<'a> {
[INFO] [stdout]     |            ------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 194 |     cur_archive: tar::Archive<flate2::read::GzDecoder<&'a mut tar::Entry<'a, &'a mut (dyn std::io::Read + 'a)>>>,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 198 |     entry: tar::Entry<'a, flate2::read::GzDecoder<&'a mut tar::Entry<'a, &'a mut (dyn std::io::Read + 'a)>>>,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `version`, `manifest`, and `header` are never read
[INFO] [stdout]    --> src/lib.rs:269:5
[INFO] [stdout]     |
[INFO] [stdout] 268 | pub struct MenderArtifact<'a> {
[INFO] [stdout]     |            -------------- fields in this struct
[INFO] [stdout] 269 |     version: Option<Version>,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 270 |     manifest: Option<Manifest>,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 271 |     header: Option<Header>,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `IOError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:25:14
[INFO] [stdout]    |
[INFO] [stdout] 25 |             &IOError => "IOError",
[INFO] [stdout]    |              ^^^^^^^ help: convert the identifier to snake case: `ioerror`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ParseError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:26:14
[INFO] [stdout]    |
[INFO] [stdout] 26 |             &ParseError => "ParseError",
[INFO] [stdout]    |              ^^^^^^^^^^ help: convert the identifier to snake case: `parse_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `JSONParseError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 |             &JSONParseError => "JSONParrseError",
[INFO] [stdout]    |              ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `jsonparse_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `IOError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:33:14
[INFO] [stdout]    |
[INFO] [stdout] 33 |             &IOError => None,
[INFO] [stdout]    |              ^^^^^^^ help: convert the identifier to snake case: `ioerror`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ParseError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:34:14
[INFO] [stdout]    |
[INFO] [stdout] 34 |             &ParseError => None,
[INFO] [stdout]    |              ^^^^^^^^^^ help: convert the identifier to snake case: `parse_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `JSONParseError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 |             &JSONParseError => None,
[INFO] [stdout]    |              ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `jsonparse_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/lib.rs:51:10
[INFO] [stdout]    |
[INFO] [stdout] 51 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^----------
[INFO] [stdout]    |          |
[INFO] [stdout]    |          `Deserialize` is not local
[INFO] [stdout]    |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Version`
[INFO] [stdout] 52 | pub struct Version {
[INFO] [stdout]    |            ------- `Version` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/lib.rs:84:10
[INFO] [stdout]    |
[INFO] [stdout] 84 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^----------
[INFO] [stdout]    |          |
[INFO] [stdout]    |          `Deserialize` is not local
[INFO] [stdout]    |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ArtifactDepends`
[INFO] [stdout] 85 | pub struct ArtifactDepends {
[INFO] [stdout]    |            --------------- `ArtifactDepends` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/lib.rs:91:10
[INFO] [stdout]    |
[INFO] [stdout] 91 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^----------
[INFO] [stdout]    |          |
[INFO] [stdout]    |          `Deserialize` is not local
[INFO] [stdout]    |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ArtifactProvides`
[INFO] [stdout] 92 | pub struct ArtifactProvides {
[INFO] [stdout]    |            ---------------- `ArtifactProvides` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/lib.rs:97:10
[INFO] [stdout]    |
[INFO] [stdout] 97 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^----------
[INFO] [stdout]    |          |
[INFO] [stdout]    |          `Deserialize` is not local
[INFO] [stdout]    |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_HeaderInfo`
[INFO] [stdout] 98 | pub struct HeaderInfo {
[INFO] [stdout]    |            ---------- `HeaderInfo` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/lib.rs:113:10
[INFO] [stdout]     |
[INFO] [stdout] 113 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^----------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `Deserialize` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_TypeInfo`
[INFO] [stdout] 114 | pub struct TypeInfo {
[INFO] [stdout]     |            -------- `TypeInfo` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/lib.rs:120:10
[INFO] [stdout]     |
[INFO] [stdout] 120 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^----------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `Deserialize` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_TypeInfoArtifactProvides`
[INFO] [stdout] 121 | pub struct TypeInfoArtifactProvides {
[INFO] [stdout]     |            ------------------------ `TypeInfoArtifactProvides` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/lib.rs:125:10
[INFO] [stdout]     |
[INFO] [stdout] 125 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^----------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `Deserialize` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_TypeInfoArtifactDepends`
[INFO] [stdout] 126 | pub struct TypeInfoArtifactDepends {
[INFO] [stdout]     |            ----------------------- `TypeInfoArtifactDepends` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/lib.rs:130:10
[INFO] [stdout]     |
[INFO] [stdout] 130 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^----------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `Deserialize` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_SubHeader`
[INFO] [stdout] 131 | pub struct SubHeader {
[INFO] [stdout]     |            --------- `SubHeader` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]    --> src/lib.rs:276:50
[INFO] [stdout]     |
[INFO] [stdout] 276 |     pub fn new(reader: &'a mut std::io::Read) -> MenderArtifact {
[INFO] [stdout]     |                         --                       ^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         the lifetime is named 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: consistently use `'a`
[INFO] [stdout]     |
[INFO] [stdout] 276 |     pub fn new(reader: &'a mut std::io::Read) -> MenderArtifact<'a> {
[INFO] [stdout]     |                                                                ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mender_artifact` (lib) due to 1 previous error; 55 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:245:13
[INFO] [stdout]     |
[INFO] [stdout] 245 |         let mut n: usize = 0;
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `buf`
[INFO] [stdout]    --> src/lib.rs:242:24
[INFO] [stdout]     |
[INFO] [stdout] 242 |     fn read(&mut self, buf: &mut [u8]) -> Result<usize, std::io::Error> {
[INFO] [stdout]     |                        ^^^ help: if this is intentional, prefix it with an underscore: `_buf`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:277:13
[INFO] [stdout]     |
[INFO] [stdout] 277 |         let mut archive = Archive::new(reader);
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:278:13
[INFO] [stdout]     |
[INFO] [stdout] 278 |         let mut m = MenderArtifact {
[INFO] [stdout]     |             ----^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/lib.rs:343:13
[INFO] [stdout]     |
[INFO] [stdout] 343 |         let mut decoder = GzDecoder::new(&mut entry);
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `Payload` is never constructed
[INFO] [stdout]    --> src/lib.rs:190:12
[INFO] [stdout]     |
[INFO] [stdout] 190 | pub struct Payload<'a> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout]     = note: `#[deny(unused_unconstructable_pub_struct)]` (part of `#[deny(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `format` and `version` are never read
[INFO] [stdout]   --> src/lib.rs:53:5
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct Version {
[INFO] [stdout]    |            ------- fields in this struct
[INFO] [stdout] 53 |     format: String,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 54 |     version: i32,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Version` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `artifact_name`, `device_type`, and `artifact_group` are never read
[INFO] [stdout]   --> src/lib.rs:86:5
[INFO] [stdout]    |
[INFO] [stdout] 85 | pub struct ArtifactDepends {
[INFO] [stdout]    |            --------------- fields in this struct
[INFO] [stdout] 86 |     artifact_name: Option<Vec<String>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 87 |     device_type: Vec<String>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 88 |     artifact_group: Option<String>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ArtifactDepends` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `artifact_name` and `artifact_group` are never read
[INFO] [stdout]   --> src/lib.rs:93:5
[INFO] [stdout]    |
[INFO] [stdout] 92 | pub struct ArtifactProvides {
[INFO] [stdout]    |            ---------------- fields in this struct
[INFO] [stdout] 93 |     artifact_name: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 94 |     artifact_group: Option<String>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ArtifactProvides` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `payloads`, `artifact_provides`, and `artifact_depends` are never read
[INFO] [stdout]    --> src/lib.rs:99:5
[INFO] [stdout]     |
[INFO] [stdout]  98 | pub struct HeaderInfo {
[INFO] [stdout]     |            ---------- fields in this struct
[INFO] [stdout]  99 |     payloads: Vec<std::collections::HashMap<String, String>>,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 100 |     artifact_provides: ArtifactProvides,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 101 |     artifact_depends: ArtifactDepends,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `HeaderInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `type`, `artifact_provides`, and `artifact_depends` are never read
[INFO] [stdout]    --> src/lib.rs:115:5
[INFO] [stdout]     |
[INFO] [stdout] 114 | pub struct TypeInfo {
[INFO] [stdout]     |            -------- fields in this struct
[INFO] [stdout] 115 |     r#type: String,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 116 |     artifact_provides: Option<TypeInfoArtifactProvides>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 117 |     artifact_depends: Option<TypeInfoArtifactDepends>,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `TypeInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rootfs_image_checksum` is never read
[INFO] [stdout]    --> src/lib.rs:122:5
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub struct TypeInfoArtifactProvides {
[INFO] [stdout]     |            ------------------------ field in this struct
[INFO] [stdout] 122 |     rootfs_image_checksum: String,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `TypeInfoArtifactProvides` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `rootfs_image_checksum` is never read
[INFO] [stdout]    --> src/lib.rs:127:5
[INFO] [stdout]     |
[INFO] [stdout] 126 | pub struct TypeInfoArtifactDepends {
[INFO] [stdout]     |            ----------------------- field in this struct
[INFO] [stdout] 127 |     rootfs_image_checksum: String,
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `TypeInfoArtifactDepends` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `type_info` and `meta_data` are never read
[INFO] [stdout]    --> src/lib.rs:132:5
[INFO] [stdout]     |
[INFO] [stdout] 131 | pub struct SubHeader {
[INFO] [stdout]     |            --------- fields in this struct
[INFO] [stdout] 132 |     type_info: TypeInfo,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout] 133 |     meta_data: Option<std::collections::HashMap<String, String>>,
[INFO] [stdout]     |     ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `SubHeader` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `header_info` is never read
[INFO] [stdout]    --> src/lib.rs:138:5
[INFO] [stdout]     |
[INFO] [stdout] 137 | pub struct Header {
[INFO] [stdout]     |            ------ field in this struct
[INFO] [stdout] 138 |     header_info: HeaderInfo,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Header` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `cur_archive` and `entry` are never read
[INFO] [stdout]    --> src/lib.rs:194:5
[INFO] [stdout]     |
[INFO] [stdout] 190 | pub struct Payload<'a> {
[INFO] [stdout]     |            ------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 194 |     cur_archive: tar::Archive<flate2::read::GzDecoder<&'a mut tar::Entry<'a, &'a mut (dyn std::io::Read + 'a)>>>,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 198 |     entry: tar::Entry<'a, flate2::read::GzDecoder<&'a mut tar::Entry<'a, &'a mut (dyn std::io::Read + 'a)>>>,
[INFO] [stdout]     |     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `version`, `manifest`, and `header` are never read
[INFO] [stdout]    --> src/lib.rs:269:5
[INFO] [stdout]     |
[INFO] [stdout] 268 | pub struct MenderArtifact<'a> {
[INFO] [stdout]     |            -------------- fields in this struct
[INFO] [stdout] 269 |     version: Option<Version>,
[INFO] [stdout]     |     ^^^^^^^
[INFO] [stdout] 270 |     manifest: Option<Manifest>,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 271 |     header: Option<Header>,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `IOError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:25:14
[INFO] [stdout]    |
[INFO] [stdout] 25 |             &IOError => "IOError",
[INFO] [stdout]    |              ^^^^^^^ help: convert the identifier to snake case: `ioerror`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ParseError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:26:14
[INFO] [stdout]    |
[INFO] [stdout] 26 |             &ParseError => "ParseError",
[INFO] [stdout]    |              ^^^^^^^^^^ help: convert the identifier to snake case: `parse_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `JSONParseError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 |             &JSONParseError => "JSONParrseError",
[INFO] [stdout]    |              ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `jsonparse_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `IOError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:33:14
[INFO] [stdout]    |
[INFO] [stdout] 33 |             &IOError => None,
[INFO] [stdout]    |              ^^^^^^^ help: convert the identifier to snake case: `ioerror`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `ParseError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:34:14
[INFO] [stdout]    |
[INFO] [stdout] 34 |             &ParseError => None,
[INFO] [stdout]    |              ^^^^^^^^^^ help: convert the identifier to snake case: `parse_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `JSONParseError` should have a snake case name
[INFO] [stdout]   --> src/lib.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 |             &JSONParseError => None,
[INFO] [stdout]    |              ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `jsonparse_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/lib.rs:51:10
[INFO] [stdout]    |
[INFO] [stdout] 51 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^----------
[INFO] [stdout]    |          |
[INFO] [stdout]    |          `Deserialize` is not local
[INFO] [stdout]    |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Version`
[INFO] [stdout] 52 | pub struct Version {
[INFO] [stdout]    |            ------- `Version` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: `#[warn(non_local_definitions)]` on by default
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/lib.rs:84:10
[INFO] [stdout]    |
[INFO] [stdout] 84 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^----------
[INFO] [stdout]    |          |
[INFO] [stdout]    |          `Deserialize` is not local
[INFO] [stdout]    |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ArtifactDepends`
[INFO] [stdout] 85 | pub struct ArtifactDepends {
[INFO] [stdout]    |            --------------- `ArtifactDepends` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/lib.rs:91:10
[INFO] [stdout]    |
[INFO] [stdout] 91 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^----------
[INFO] [stdout]    |          |
[INFO] [stdout]    |          `Deserialize` is not local
[INFO] [stdout]    |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ArtifactProvides`
[INFO] [stdout] 92 | pub struct ArtifactProvides {
[INFO] [stdout]    |            ---------------- `ArtifactProvides` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]   --> src/lib.rs:97:10
[INFO] [stdout]    |
[INFO] [stdout] 97 | #[derive(Deserialize, Debug)]
[INFO] [stdout]    |          ^----------
[INFO] [stdout]    |          |
[INFO] [stdout]    |          `Deserialize` is not local
[INFO] [stdout]    |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_HeaderInfo`
[INFO] [stdout] 98 | pub struct HeaderInfo {
[INFO] [stdout]    |            ---------- `HeaderInfo` is not local
[INFO] [stdout]    |
[INFO] [stdout]    = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]    = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]    = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]    = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]    = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/lib.rs:113:10
[INFO] [stdout]     |
[INFO] [stdout] 113 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^----------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `Deserialize` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_TypeInfo`
[INFO] [stdout] 114 | pub struct TypeInfo {
[INFO] [stdout]     |            -------- `TypeInfo` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/lib.rs:120:10
[INFO] [stdout]     |
[INFO] [stdout] 120 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^----------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `Deserialize` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_TypeInfoArtifactProvides`
[INFO] [stdout] 121 | pub struct TypeInfoArtifactProvides {
[INFO] [stdout]     |            ------------------------ `TypeInfoArtifactProvides` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/lib.rs:125:10
[INFO] [stdout]     |
[INFO] [stdout] 125 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^----------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `Deserialize` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_TypeInfoArtifactDepends`
[INFO] [stdout] 126 | pub struct TypeInfoArtifactDepends {
[INFO] [stdout]     |            ----------------------- `TypeInfoArtifactDepends` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item
[INFO] [stdout]    --> src/lib.rs:130:10
[INFO] [stdout]     |
[INFO] [stdout] 130 | #[derive(Deserialize, Debug)]
[INFO] [stdout]     |          ^----------
[INFO] [stdout]     |          |
[INFO] [stdout]     |          `Deserialize` is not local
[INFO] [stdout]     |          move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_SubHeader`
[INFO] [stdout] 131 | pub struct SubHeader {
[INFO] [stdout]     |            --------- `SubHeader` is not local
[INFO] [stdout]     |
[INFO] [stdout]     = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed
[INFO] [stdout]     = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive`
[INFO] [stdout]     = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl`
[INFO] [stdout]     = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint
[INFO] [stdout]     = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]    --> src/lib.rs:276:50
[INFO] [stdout]     |
[INFO] [stdout] 276 |     pub fn new(reader: &'a mut std::io::Read) -> MenderArtifact {
[INFO] [stdout]     |                         --                       ^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         the lifetime is named 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: consistently use `'a`
[INFO] [stdout]     |
[INFO] [stdout] 276 |     pub fn new(reader: &'a mut std::io::Read) -> MenderArtifact<'a> {
[INFO] [stdout]     |                                                                ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mender_artifact` (lib test) due to 1 previous error; 55 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "81c911ada9c83bcabeef91f4d571c75b079a391176c3e25987cca1349cd9f240", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "81c911ada9c83bcabeef91f4d571c75b079a391176c3e25987cca1349cd9f240", kill_on_drop: false }`
[INFO] [stdout] 81c911ada9c83bcabeef91f4d571c75b079a391176c3e25987cca1349cd9f240
