[INFO] cloning repository https://github.com/rustamkulenov/keepass-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rustamkulenov/keepass-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustamkulenov%2Fkeepass-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustamkulenov%2Fkeepass-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 31635ba293ad6d36061cb8fcac635fddb0d6ca20 [INFO] testing rustamkulenov/keepass-cli against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frustamkulenov%2Fkeepass-cli" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rustamkulenov/keepass-cli on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-13/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/rustamkulenov/keepass-cli [INFO] finished tweaking git repo https://github.com/rustamkulenov/keepass-cli [INFO] tweaked toml for git repo https://github.com/rustamkulenov/keepass-cli written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/rustamkulenov/keepass-cli already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eb5f286ba17c2207dd1a56babad1f00732df49a245c915ed243c707d5bce8f2d [INFO] running `Command { std: "docker" "start" "-a" "eb5f286ba17c2207dd1a56babad1f00732df49a245c915ed243c707d5bce8f2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb5f286ba17c2207dd1a56babad1f00732df49a245c915ed243c707d5bce8f2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb5f286ba17c2207dd1a56babad1f00732df49a245c915ed243c707d5bce8f2d", kill_on_drop: false }` [INFO] [stdout] eb5f286ba17c2207dd1a56babad1f00732df49a245c915ed243c707d5bce8f2d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 795a8a97d57832a2850a6d01c640140d78a16dff715d40b344928f749f3a3ccc [INFO] running `Command { std: "docker" "start" "-a" "795a8a97d57832a2850a6d01c640140d78a16dff715d40b344928f749f3a3ccc", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling libc v0.2.103 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling hex-literal v0.3.3 [INFO] [stderr] Compiling hmac-sha256 v0.1.7 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling quick-xml v0.20.0 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling crypto-mac v0.11.1 [INFO] [stderr] Compiling block-modes v0.8.1 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling twofish v0.6.0 [INFO] [stderr] Compiling chacha20 v0.7.3 [INFO] [stderr] Compiling salsa20 v0.8.1 [INFO] [stderr] Compiling minidom v0.13.0 [INFO] [stderr] Compiling hmac v0.11.0 [INFO] [stderr] Compiling blake2b_simd v0.5.11 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rust-argon2 v0.8.3 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling flate2 v1.0.22 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling structopt v0.3.25 [INFO] [stderr] Compiling keepass-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `GZipCompression`, `NoCompression` [INFO] [stdout] --> src/kdbx/kdbx_reader.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | use super::decompress::{GZipCompression, NoCompression}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ByteOrder`, `LittleEndian` [INFO] [stdout] --> src/kdbx/variant_dictionary.rs:249:21 [INFO] [stdout] | [INFO] [stdout] 249 | use byteorder::{ByteOrder, LittleEndian}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/kdbx/variant_dictionary.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KDF_ROUNDS_KEY`, `KDF_SEED_KEY` [INFO] [stdout] --> src/kdbx/variant_dictionary.rs:252:31 [INFO] [stdout] | [INFO] [stdout] 252 | use crate::kdbx::consts::{KDF_ROUNDS_KEY, KDF_SEED_KEY}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `VariantDictionaryValue`, `VariantDictionary` [INFO] [stdout] --> src/kdbx/variant_dictionary.rs:254:17 [INFO] [stdout] | [INFO] [stdout] 254 | use super::{VariantDictionary, VariantDictionaryValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CryptoError`, `DatabaseIntegrityError`, `Error` [INFO] [stdout] --> src/kdbx/crypt/kdf.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::kdbx::result::{CryptoError, DatabaseIntegrityError, Error, Result}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `minidom::ElementBuilder` [INFO] [stdout] --> src/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | use minidom::ElementBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | mod test { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::kdbx::crypt::ciphers::AES256Cipher` [INFO] [stdout] --> src/main.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | use crate::kdbx::crypt::ciphers::AES256Cipher; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | mod test { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::kdbx::decompress::NoCompression` [INFO] [stdout] --> src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | use crate::kdbx::decompress::NoCompression; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | mod test { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::kdbx::kdbx_writer::KdbxWriter` [INFO] [stdout] --> src/main.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | use crate::kdbx::kdbx_writer::KdbxWriter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | mod test { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::kdbx::kdbx_reader::*` [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | use super::kdbx::kdbx_reader::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | mod test { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::OpenOptions` [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | use std::fs::OpenOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | mod test { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | mod test { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | payload: minidom::Element, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cipher` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | cipher: &C, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cipher` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compression` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | compression: &D, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut uid = [0u8; 16]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ZIPPED_FILE` [INFO] [stdout] --> src/main.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | const ZIPPED_FILE: &str = "testfiles/AES-256-KDF-zip-Q12345.kdbx"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `NONZIPPED_FILE` [INFO] [stdout] --> src/main.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | const NONZIPPED_FILE: &str = "testfiles/AES-256-KDF-nonzip-Q12345.kdbx"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `PASSWORD` [INFO] [stdout] --> src/main.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | const PASSWORD: &str = "Q12345"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CIPHERSUITE_TWOFISH` [INFO] [stdout] --> src/kdbx/consts.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub const CIPHERSUITE_TWOFISH: [u8; 16] = hex!("ad68f29f576f4bb9a36ad47af965346c"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CIPHERSUITE_CHACHA20` [INFO] [stdout] --> src/kdbx/consts.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub const CIPHERSUITE_CHACHA20: [u8; 16] = hex!("d6038a2b8b6f4cb5a524339a31dbb59a"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `KDF_AES_KDBX4` [INFO] [stdout] --> src/kdbx/consts.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const KDF_AES_KDBX4: [u8; 16] = hex!("7c02bb8279a74ac0927d114a00648238"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `KDF_ARGON2` [INFO] [stdout] --> src/kdbx/consts.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | const KDF_ARGON2: [u8; 16] = hex!("ef636ddf8c29444b91f7a9a403e30a0c"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AES256` [INFO] [stdout] --> src/kdbx/consts.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | AES256, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `OuterCipherSuite` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/consts.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Twofish` [INFO] [stdout] --> src/kdbx/consts.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | Twofish, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `OuterCipherSuite` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/consts.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChaCha20` [INFO] [stdout] --> src/kdbx/consts.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | ChaCha20, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `OuterCipherSuite` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/consts.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `ROUNDS` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | const ROUNDS: u64 = 100; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEED_LEN` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const SEED_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `KdbxWriter` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate) struct KdbxWriter {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:20:19 [INFO] [stdout] | [INFO] [stdout] 20 | pub(crate) fn write( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_base_signature` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:82:8 [INFO] [stdout] | [INFO] [stdout] 82 | fn write_base_signature(buf: &mut [u8], idx: &mut usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_version_signature` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn write_version_signature(buf: &mut [u8], idx: &mut usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_file_version` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | fn write_file_version(buf: &mut [u8], idx: &mut usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_SHA_HMAC` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn write_SHA_HMAC(buf: &mut [u8], idx: &mut usize, key: &impl Key) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_header_field_prefix` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 107 | fn write_header_field_prefix( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Compression` [INFO] [stdout] --> src/kdbx/result.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | Compression, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HeaderHashMismatch` [INFO] [stdout] --> src/kdbx/result.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | HeaderHashMismatch, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBXIdentifier` [INFO] [stdout] --> src/kdbx/result.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | InvalidKDBXIdentifier, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBXVersion` [INFO] [stdout] --> src/kdbx/result.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / InvalidKDBXVersion { [INFO] [stdout] 38 | | version: u32, [INFO] [stdout] 39 | | file_major_version: u16, [INFO] [stdout] 40 | | file_minor_version: u16, [INFO] [stdout] 41 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidFixedHeader` [INFO] [stdout] --> src/kdbx/result.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / InvalidFixedHeader { [INFO] [stdout] 43 | | size: usize, [INFO] [stdout] 44 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidOuterHeaderEntry` [INFO] [stdout] --> src/kdbx/result.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / InvalidOuterHeaderEntry { [INFO] [stdout] 46 | | entry_type: u8, [INFO] [stdout] 47 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IncompleteOuterHeader` [INFO] [stdout] --> src/kdbx/result.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | / IncompleteOuterHeader { [INFO] [stdout] 49 | | missing_field: String, [INFO] [stdout] 50 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidInnerHeaderEntry` [INFO] [stdout] --> src/kdbx/result.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | / InvalidInnerHeaderEntry { [INFO] [stdout] 52 | | entry_type: u8, [INFO] [stdout] 53 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IncompleteInnerHeader` [INFO] [stdout] --> src/kdbx/result.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / IncompleteInnerHeader { [INFO] [stdout] 55 | | missing_field: String, [INFO] [stdout] 56 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDFVersion` [INFO] [stdout] --> src/kdbx/result.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / InvalidKDFVersion { [INFO] [stdout] 58 | | version: u32, [INFO] [stdout] 59 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDFUUID` [INFO] [stdout] --> src/kdbx/result.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | / InvalidKDFUUID { [INFO] [stdout] 61 | | uuid: Vec, [INFO] [stdout] 62 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidFixedCipherID` [INFO] [stdout] --> src/kdbx/result.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | / InvalidFixedCipherID { [INFO] [stdout] 70 | | cid: u32, [INFO] [stdout] 71 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidOuterCipherID` [INFO] [stdout] --> src/kdbx/result.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | / InvalidOuterCipherID { [INFO] [stdout] 73 | | cid: Vec, [INFO] [stdout] 74 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidInnerCipherID` [INFO] [stdout] --> src/kdbx/result.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | / InvalidInnerCipherID { [INFO] [stdout] 76 | | cid: u32, [INFO] [stdout] 77 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidCompressionSuite` [INFO] [stdout] --> src/kdbx/result.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | / InvalidCompressionSuite { [INFO] [stdout] 79 | | cid: u32, [INFO] [stdout] 80 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBFieldLength` [INFO] [stdout] --> src/kdbx/result.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | / InvalidKDBFieldLength { [INFO] [stdout] 88 | | field_type: u16, [INFO] [stdout] 89 | | field_size: u32, [INFO] [stdout] 90 | | expected_field_size: u32, [INFO] [stdout] 91 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBGroupFieldType` [INFO] [stdout] --> src/kdbx/result.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / InvalidKDBGroupFieldType { [INFO] [stdout] 93 | | field_type: u16, [INFO] [stdout] 94 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBEntryFieldType` [INFO] [stdout] --> src/kdbx/result.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | / InvalidKDBEntryFieldType { [INFO] [stdout] 96 | | field_type: u16, [INFO] [stdout] 97 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MissingKDBGroupId` [INFO] [stdout] --> src/kdbx/result.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | MissingKDBGroupId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBGroupId` [INFO] [stdout] --> src/kdbx/result.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / InvalidKDBGroupId { [INFO] [stdout] 100 | | group_id: u32, [INFO] [stdout] 101 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MissingKDBGroupLevel` [INFO] [stdout] --> src/kdbx/result.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | MissingKDBGroupLevel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBGroupLevel` [INFO] [stdout] --> src/kdbx/result.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | / InvalidKDBGroupLevel { [INFO] [stdout] 104 | | group_level: u16, [INFO] [stdout] 105 | | current_level: u16, [INFO] [stdout] 106 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IncompleteKDBGroup` [INFO] [stdout] --> src/kdbx/result.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | IncompleteKDBGroup, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IncompleteKDBEntry` [INFO] [stdout] --> src/kdbx/result.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | IncompleteKDBEntry, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MissingKDBEntryTitle` [INFO] [stdout] --> src/kdbx/result.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | MissingKDBEntryTitle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IncorrectKey` [INFO] [stdout] --> src/kdbx/result.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | IncorrectKey, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKeyFile` [INFO] [stdout] --> src/kdbx/result.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | InvalidKeyFile, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write` [INFO] [stdout] --> src/kdbx/variant_dictionary.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 85 | pub(crate) fn write(&self, buffer: &mut [u8], idx: &mut usize) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/kdbx/variant_dictionary.rs:138:19 [INFO] [stdout] | [INFO] [stdout] 138 | pub(crate) fn add(&mut self, key: &str, value: VariantDictionaryValue) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/kdbx/crypt/ciphers.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn new(key: &[u8], iv: &[u8]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/kdbx/crypt/ciphers.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | pub(crate) fn new(key: &[u8]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/kdbx/crypt/ciphers.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | pub(crate) fn new(key: &[u8]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_key_iv` [INFO] [stdout] --> src/kdbx/crypt/ciphers.rs:117:19 [INFO] [stdout] | [INFO] [stdout] 117 | pub(crate) fn new_key_iv(key: &[u8], iv: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/kdbx/crypt/ciphers.rs:135:19 [INFO] [stdout] | [INFO] [stdout] 135 | pub(crate) fn new(_: &[u8]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_SHA_HMAC` should have a snake case name [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn write_SHA_HMAC(buf: &mut [u8], idx: &mut usize, key: &impl Key) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `write_sha_hmac` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 71 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.49s [INFO] running `Command { std: "docker" "inspect" "795a8a97d57832a2850a6d01c640140d78a16dff715d40b344928f749f3a3ccc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "795a8a97d57832a2850a6d01c640140d78a16dff715d40b344928f749f3a3ccc", kill_on_drop: false }` [INFO] [stdout] 795a8a97d57832a2850a6d01c640140d78a16dff715d40b344928f749f3a3ccc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c282ec5bd3b5e7592746055c13daabf16d19bbc85404f246017e4efef4f4414 [INFO] running `Command { std: "docker" "start" "-a" "7c282ec5bd3b5e7592746055c13daabf16d19bbc85404f246017e4efef4f4414", kill_on_drop: false }` [INFO] [stderr] Compiling keepass-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `GZipCompression`, `NoCompression` [INFO] [stdout] --> src/kdbx/kdbx_reader.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | use super::decompress::{GZipCompression, NoCompression}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ByteOrder`, `LittleEndian` [INFO] [stdout] --> src/kdbx/variant_dictionary.rs:249:21 [INFO] [stdout] | [INFO] [stdout] 249 | use byteorder::{ByteOrder, LittleEndian}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/kdbx/variant_dictionary.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CryptoError`, `DatabaseIntegrityError`, `Error` [INFO] [stdout] --> src/kdbx/crypt/kdf.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::kdbx::result::{CryptoError, DatabaseIntegrityError, Error, Result}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `minidom::ElementBuilder` [INFO] [stdout] --> src/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | use minidom::ElementBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | mod test { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:57:1 [INFO] [stdout] | [INFO] [stdout] 57 | mod test { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | payload: minidom::Element, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cipher` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | cipher: &C, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cipher` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `compression` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | compression: &D, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:54:13 [INFO] [stdout] | [INFO] [stdout] 54 | let mut uid = [0u8; 16]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CIPHERSUITE_TWOFISH` [INFO] [stdout] --> src/kdbx/consts.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub const CIPHERSUITE_TWOFISH: [u8; 16] = hex!("ad68f29f576f4bb9a36ad47af965346c"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `CIPHERSUITE_CHACHA20` [INFO] [stdout] --> src/kdbx/consts.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | pub const CIPHERSUITE_CHACHA20: [u8; 16] = hex!("d6038a2b8b6f4cb5a524339a31dbb59a"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `KDF_AES_KDBX4` [INFO] [stdout] --> src/kdbx/consts.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | const KDF_AES_KDBX4: [u8; 16] = hex!("7c02bb8279a74ac0927d114a00648238"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `KDF_ARGON2` [INFO] [stdout] --> src/kdbx/consts.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 30 | const KDF_ARGON2: [u8; 16] = hex!("ef636ddf8c29444b91f7a9a403e30a0c"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `AES256` [INFO] [stdout] --> src/kdbx/consts.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | AES256, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `OuterCipherSuite` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/consts.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Twofish` [INFO] [stdout] --> src/kdbx/consts.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | Twofish, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `OuterCipherSuite` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/consts.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `ChaCha20` [INFO] [stdout] --> src/kdbx/consts.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | ChaCha20, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `OuterCipherSuite` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/consts.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SEED_LEN` [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const SEED_LEN: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Compression` [INFO] [stdout] --> src/kdbx/result.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | Compression, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `HeaderHashMismatch` [INFO] [stdout] --> src/kdbx/result.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | HeaderHashMismatch, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBXIdentifier` [INFO] [stdout] --> src/kdbx/result.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | InvalidKDBXIdentifier, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBXVersion` [INFO] [stdout] --> src/kdbx/result.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / InvalidKDBXVersion { [INFO] [stdout] 38 | | version: u32, [INFO] [stdout] 39 | | file_major_version: u16, [INFO] [stdout] 40 | | file_minor_version: u16, [INFO] [stdout] 41 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidFixedHeader` [INFO] [stdout] --> src/kdbx/result.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / InvalidFixedHeader { [INFO] [stdout] 43 | | size: usize, [INFO] [stdout] 44 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidOuterHeaderEntry` [INFO] [stdout] --> src/kdbx/result.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | / InvalidOuterHeaderEntry { [INFO] [stdout] 46 | | entry_type: u8, [INFO] [stdout] 47 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IncompleteOuterHeader` [INFO] [stdout] --> src/kdbx/result.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | / IncompleteOuterHeader { [INFO] [stdout] 49 | | missing_field: String, [INFO] [stdout] 50 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidInnerHeaderEntry` [INFO] [stdout] --> src/kdbx/result.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | / InvalidInnerHeaderEntry { [INFO] [stdout] 52 | | entry_type: u8, [INFO] [stdout] 53 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IncompleteInnerHeader` [INFO] [stdout] --> src/kdbx/result.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | / IncompleteInnerHeader { [INFO] [stdout] 55 | | missing_field: String, [INFO] [stdout] 56 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDFVersion` [INFO] [stdout] --> src/kdbx/result.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / InvalidKDFVersion { [INFO] [stdout] 58 | | version: u32, [INFO] [stdout] 59 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDFUUID` [INFO] [stdout] --> src/kdbx/result.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | / InvalidKDFUUID { [INFO] [stdout] 61 | | uuid: Vec, [INFO] [stdout] 62 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidFixedCipherID` [INFO] [stdout] --> src/kdbx/result.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | / InvalidFixedCipherID { [INFO] [stdout] 70 | | cid: u32, [INFO] [stdout] 71 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidOuterCipherID` [INFO] [stdout] --> src/kdbx/result.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | / InvalidOuterCipherID { [INFO] [stdout] 73 | | cid: Vec, [INFO] [stdout] 74 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidInnerCipherID` [INFO] [stdout] --> src/kdbx/result.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | / InvalidInnerCipherID { [INFO] [stdout] 76 | | cid: u32, [INFO] [stdout] 77 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidCompressionSuite` [INFO] [stdout] --> src/kdbx/result.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | / InvalidCompressionSuite { [INFO] [stdout] 79 | | cid: u32, [INFO] [stdout] 80 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBFieldLength` [INFO] [stdout] --> src/kdbx/result.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | / InvalidKDBFieldLength { [INFO] [stdout] 88 | | field_type: u16, [INFO] [stdout] 89 | | field_size: u32, [INFO] [stdout] 90 | | expected_field_size: u32, [INFO] [stdout] 91 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBGroupFieldType` [INFO] [stdout] --> src/kdbx/result.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | / InvalidKDBGroupFieldType { [INFO] [stdout] 93 | | field_type: u16, [INFO] [stdout] 94 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBEntryFieldType` [INFO] [stdout] --> src/kdbx/result.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | / InvalidKDBEntryFieldType { [INFO] [stdout] 96 | | field_type: u16, [INFO] [stdout] 97 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MissingKDBGroupId` [INFO] [stdout] --> src/kdbx/result.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | MissingKDBGroupId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBGroupId` [INFO] [stdout] --> src/kdbx/result.rs:99:5 [INFO] [stdout] | [INFO] [stdout] 99 | / InvalidKDBGroupId { [INFO] [stdout] 100 | | group_id: u32, [INFO] [stdout] 101 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MissingKDBGroupLevel` [INFO] [stdout] --> src/kdbx/result.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | MissingKDBGroupLevel, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKDBGroupLevel` [INFO] [stdout] --> src/kdbx/result.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 103 | / InvalidKDBGroupLevel { [INFO] [stdout] 104 | | group_level: u16, [INFO] [stdout] 105 | | current_level: u16, [INFO] [stdout] 106 | | }, [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IncompleteKDBGroup` [INFO] [stdout] --> src/kdbx/result.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | IncompleteKDBGroup, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IncompleteKDBEntry` [INFO] [stdout] --> src/kdbx/result.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 108 | IncompleteKDBEntry, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MissingKDBEntryTitle` [INFO] [stdout] --> src/kdbx/result.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | MissingKDBEntryTitle, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `IncorrectKey` [INFO] [stdout] --> src/kdbx/result.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | IncorrectKey, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `InvalidKeyFile` [INFO] [stdout] --> src/kdbx/result.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | InvalidKeyFile, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/kdbx/result.rs:121:10 [INFO] [stdout] | [INFO] [stdout] 121 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/kdbx/crypt/ciphers.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn new(key: &[u8], iv: &[u8]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/kdbx/crypt/ciphers.rs:81:19 [INFO] [stdout] | [INFO] [stdout] 81 | pub(crate) fn new(key: &[u8]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/kdbx/crypt/ciphers.rs:105:19 [INFO] [stdout] | [INFO] [stdout] 105 | pub(crate) fn new(key: &[u8]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_key_iv` [INFO] [stdout] --> src/kdbx/crypt/ciphers.rs:117:19 [INFO] [stdout] | [INFO] [stdout] 117 | pub(crate) fn new_key_iv(key: &[u8], iv: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/kdbx/crypt/ciphers.rs:135:19 [INFO] [stdout] | [INFO] [stdout] 135 | pub(crate) fn new(_: &[u8]) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_SHA_HMAC` should have a snake case name [INFO] [stdout] --> src/kdbx/kdbx_writer.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | fn write_SHA_HMAC(buf: &mut [u8], idx: &mut usize, key: &impl Key) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `write_sha_hmac` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 51 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.39s [INFO] running `Command { std: "docker" "inspect" "7c282ec5bd3b5e7592746055c13daabf16d19bbc85404f246017e4efef4f4414", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c282ec5bd3b5e7592746055c13daabf16d19bbc85404f246017e4efef4f4414", kill_on_drop: false }` [INFO] [stdout] 7c282ec5bd3b5e7592746055c13daabf16d19bbc85404f246017e4efef4f4414 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2ae697ba7b871385bf1e37a67a19149ef7fa7578fffc51826c82924c27e4d12b [INFO] running `Command { std: "docker" "start" "-a" "2ae697ba7b871385bf1e37a67a19149ef7fa7578fffc51826c82924c27e4d12b", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `GZipCompression`, `NoCompression` [INFO] [stderr] --> src/kdbx/kdbx_reader.rs:30:25 [INFO] [stderr] | [INFO] [stderr] 30 | use super::decompress::{GZipCompression, NoCompression}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `ByteOrder`, `LittleEndian` [INFO] [stderr] --> src/kdbx/variant_dictionary.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | use byteorder::{ByteOrder, LittleEndian}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::Rng` [INFO] [stderr] --> src/kdbx/variant_dictionary.rs:250:9 [INFO] [stderr] | [INFO] [stderr] 250 | use rand::Rng; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CryptoError`, `DatabaseIntegrityError`, `Error` [INFO] [stderr] --> src/kdbx/crypt/kdf.rs:6:27 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::kdbx::result::{CryptoError, DatabaseIntegrityError, Error, Result}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `minidom::ElementBuilder` [INFO] [stderr] --> src/main.rs:59:9 [INFO] [stderr] | [INFO] [stderr] 59 | use minidom::ElementBuilder; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stderr] --> src/main.rs:57:1 [INFO] [stderr] | [INFO] [stderr] 57 | mod test { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io` [INFO] [stderr] --> src/main.rs:67:9 [INFO] [stderr] | [INFO] [stderr] 67 | use std::io; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: consider adding a `#[cfg(test)]` to the containing module [INFO] [stderr] --> src/main.rs:57:1 [INFO] [stderr] | [INFO] [stderr] 57 | mod test { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `payload` [INFO] [stderr] --> src/kdbx/kdbx_writer.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | payload: minidom::Element, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cipher` [INFO] [stderr] --> src/kdbx/kdbx_writer.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | cipher: &C, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cipher` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `compression` [INFO] [stderr] --> src/kdbx/kdbx_writer.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 25 | compression: &D, [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_compression` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/kdbx/kdbx_writer.rs:54:13 [INFO] [stderr] | [INFO] [stderr] 54 | let mut uid = [0u8; 16]; [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `CIPHERSUITE_TWOFISH` [INFO] [stderr] --> src/kdbx/consts.rs:26:1 [INFO] [stderr] | [INFO] [stderr] 26 | pub const CIPHERSUITE_TWOFISH: [u8; 16] = hex!("ad68f29f576f4bb9a36ad47af965346c"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `CIPHERSUITE_CHACHA20` [INFO] [stderr] --> src/kdbx/consts.rs:27:1 [INFO] [stderr] | [INFO] [stderr] 27 | pub const CIPHERSUITE_CHACHA20: [u8; 16] = hex!("d6038a2b8b6f4cb5a524339a31dbb59a"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `KDF_AES_KDBX4` [INFO] [stderr] --> src/kdbx/consts.rs:29:1 [INFO] [stderr] | [INFO] [stderr] 29 | const KDF_AES_KDBX4: [u8; 16] = hex!("7c02bb8279a74ac0927d114a00648238"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `KDF_ARGON2` [INFO] [stderr] --> src/kdbx/consts.rs:30:1 [INFO] [stderr] | [INFO] [stderr] 30 | const KDF_ARGON2: [u8; 16] = hex!("ef636ddf8c29444b91f7a9a403e30a0c"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `AES256` [INFO] [stderr] --> src/kdbx/consts.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | AES256, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `OuterCipherSuite` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/consts.rs:54:10 [INFO] [stderr] | [INFO] [stderr] 54 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Twofish` [INFO] [stderr] --> src/kdbx/consts.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 57 | Twofish, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `OuterCipherSuite` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/consts.rs:54:10 [INFO] [stderr] | [INFO] [stderr] 54 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `ChaCha20` [INFO] [stderr] --> src/kdbx/consts.rs:58:5 [INFO] [stderr] | [INFO] [stderr] 58 | ChaCha20, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `OuterCipherSuite` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/consts.rs:54:10 [INFO] [stderr] | [INFO] [stderr] 54 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: constant is never used: `SEED_LEN` [INFO] [stderr] --> src/kdbx/kdbx_writer.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | const SEED_LEN: usize = 32; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Compression` [INFO] [stderr] --> src/kdbx/result.rs:28:5 [INFO] [stderr] | [INFO] [stderr] 28 | Compression, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `HeaderHashMismatch` [INFO] [stderr] --> src/kdbx/result.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | HeaderHashMismatch, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidKDBXIdentifier` [INFO] [stderr] --> src/kdbx/result.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | InvalidKDBXIdentifier, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidKDBXVersion` [INFO] [stderr] --> src/kdbx/result.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | / InvalidKDBXVersion { [INFO] [stderr] 38 | | version: u32, [INFO] [stderr] 39 | | file_major_version: u16, [INFO] [stderr] 40 | | file_minor_version: u16, [INFO] [stderr] 41 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidFixedHeader` [INFO] [stderr] --> src/kdbx/result.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 42 | / InvalidFixedHeader { [INFO] [stderr] 43 | | size: usize, [INFO] [stderr] 44 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidOuterHeaderEntry` [INFO] [stderr] --> src/kdbx/result.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | / InvalidOuterHeaderEntry { [INFO] [stderr] 46 | | entry_type: u8, [INFO] [stderr] 47 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `IncompleteOuterHeader` [INFO] [stderr] --> src/kdbx/result.rs:48:5 [INFO] [stderr] | [INFO] [stderr] 48 | / IncompleteOuterHeader { [INFO] [stderr] 49 | | missing_field: String, [INFO] [stderr] 50 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidInnerHeaderEntry` [INFO] [stderr] --> src/kdbx/result.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 51 | / InvalidInnerHeaderEntry { [INFO] [stderr] 52 | | entry_type: u8, [INFO] [stderr] 53 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `IncompleteInnerHeader` [INFO] [stderr] --> src/kdbx/result.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | / IncompleteInnerHeader { [INFO] [stderr] 55 | | missing_field: String, [INFO] [stderr] 56 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidKDFVersion` [INFO] [stderr] --> src/kdbx/result.rs:57:5 [INFO] [stderr] | [INFO] [stderr] 57 | / InvalidKDFVersion { [INFO] [stderr] 58 | | version: u32, [INFO] [stderr] 59 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidKDFUUID` [INFO] [stderr] --> src/kdbx/result.rs:60:5 [INFO] [stderr] | [INFO] [stderr] 60 | / InvalidKDFUUID { [INFO] [stderr] 61 | | uuid: Vec, [INFO] [stderr] 62 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidFixedCipherID` [INFO] [stderr] --> src/kdbx/result.rs:69:5 [INFO] [stderr] | [INFO] [stderr] 69 | / InvalidFixedCipherID { [INFO] [stderr] 70 | | cid: u32, [INFO] [stderr] 71 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidOuterCipherID` [INFO] [stderr] --> src/kdbx/result.rs:72:5 [INFO] [stderr] | [INFO] [stderr] 72 | / InvalidOuterCipherID { [INFO] [stderr] 73 | | cid: Vec, [INFO] [stderr] 74 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidInnerCipherID` [INFO] [stderr] --> src/kdbx/result.rs:75:5 [INFO] [stderr] | [INFO] [stderr] 75 | / InvalidInnerCipherID { [INFO] [stderr] 76 | | cid: u32, [INFO] [stderr] 77 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidCompressionSuite` [INFO] [stderr] --> src/kdbx/result.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | / InvalidCompressionSuite { [INFO] [stderr] 79 | | cid: u32, [INFO] [stderr] 80 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidKDBFieldLength` [INFO] [stderr] --> src/kdbx/result.rs:87:5 [INFO] [stderr] | [INFO] [stderr] 87 | / InvalidKDBFieldLength { [INFO] [stderr] 88 | | field_type: u16, [INFO] [stderr] 89 | | field_size: u32, [INFO] [stderr] 90 | | expected_field_size: u32, [INFO] [stderr] 91 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidKDBGroupFieldType` [INFO] [stderr] --> src/kdbx/result.rs:92:5 [INFO] [stderr] | [INFO] [stderr] 92 | / InvalidKDBGroupFieldType { [INFO] [stderr] 93 | | field_type: u16, [INFO] [stderr] 94 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidKDBEntryFieldType` [INFO] [stderr] --> src/kdbx/result.rs:95:5 [INFO] [stderr] | [INFO] [stderr] 95 | / InvalidKDBEntryFieldType { [INFO] [stderr] 96 | | field_type: u16, [INFO] [stderr] 97 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `MissingKDBGroupId` [INFO] [stderr] --> src/kdbx/result.rs:98:5 [INFO] [stderr] | [INFO] [stderr] 98 | MissingKDBGroupId, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidKDBGroupId` [INFO] [stderr] --> src/kdbx/result.rs:99:5 [INFO] [stderr] | [INFO] [stderr] 99 | / InvalidKDBGroupId { [INFO] [stderr] 100 | | group_id: u32, [INFO] [stderr] 101 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `MissingKDBGroupLevel` [INFO] [stderr] --> src/kdbx/result.rs:102:5 [INFO] [stderr] | [INFO] [stderr] 102 | MissingKDBGroupLevel, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidKDBGroupLevel` [INFO] [stderr] --> src/kdbx/result.rs:103:5 [INFO] [stderr] | [INFO] [stderr] 103 | / InvalidKDBGroupLevel { [INFO] [stderr] 104 | | group_level: u16, [INFO] [stderr] 105 | | current_level: u16, [INFO] [stderr] 106 | | }, [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `IncompleteKDBGroup` [INFO] [stderr] --> src/kdbx/result.rs:107:5 [INFO] [stderr] | [INFO] [stderr] 107 | IncompleteKDBGroup, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `IncompleteKDBEntry` [INFO] [stderr] --> src/kdbx/result.rs:108:5 [INFO] [stderr] | [INFO] [stderr] 108 | IncompleteKDBEntry, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `MissingKDBEntryTitle` [INFO] [stderr] --> src/kdbx/result.rs:109:5 [INFO] [stderr] | [INFO] [stderr] 109 | MissingKDBEntryTitle, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `DatabaseIntegrityError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `IncorrectKey` [INFO] [stderr] --> src/kdbx/result.rs:125:5 [INFO] [stderr] | [INFO] [stderr] 125 | IncorrectKey, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:121:10 [INFO] [stderr] | [INFO] [stderr] 121 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `InvalidKeyFile` [INFO] [stderr] --> src/kdbx/result.rs:126:5 [INFO] [stderr] | [INFO] [stderr] 126 | InvalidKeyFile, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/kdbx/result.rs:121:10 [INFO] [stderr] | [INFO] [stderr] 121 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/kdbx/crypt/ciphers.rs:54:19 [INFO] [stderr] | [INFO] [stderr] 54 | pub(crate) fn new(key: &[u8], iv: &[u8]) -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/kdbx/crypt/ciphers.rs:81:19 [INFO] [stderr] | [INFO] [stderr] 81 | pub(crate) fn new(key: &[u8]) -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/kdbx/crypt/ciphers.rs:105:19 [INFO] [stderr] | [INFO] [stderr] 105 | pub(crate) fn new(key: &[u8]) -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new_key_iv` [INFO] [stderr] --> src/kdbx/crypt/ciphers.rs:117:19 [INFO] [stderr] | [INFO] [stderr] 117 | pub(crate) fn new_key_iv(key: &[u8], iv: &[u8]) -> Result { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `new` [INFO] [stderr] --> src/kdbx/crypt/ciphers.rs:135:19 [INFO] [stderr] | [INFO] [stderr] 135 | pub(crate) fn new(_: &[u8]) -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `write_SHA_HMAC` should have a snake case name [INFO] [stderr] --> src/kdbx/kdbx_writer.rs:97:8 [INFO] [stderr] | [INFO] [stderr] 97 | fn write_SHA_HMAC(buf: &mut [u8], idx: &mut usize, key: &impl Key) { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `write_sha_hmac` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `keepass-cli` (bin "keepass-cli" test) generated 51 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/keepass_cli-a35b3de8b96c9226) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test kdbx::variant_dictionary::test::variant_dictionary_write_read_test ... ok [INFO] [stdout] test kdbx::variant_dictionary::test::variant_dictionary_write_read_u64_field_test ... ok [INFO] [stdout] test test::writer_and_reader_test ... FAILED [INFO] [stdout] test test::reader_aes256_unzipped ... ok [INFO] [stdout] test test::reader_aes256_zipped ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test::writer_and_reader_test stdout ---- [INFO] [stdout] Prefix: 9AA2D903 [INFO] [stdout] Version: B54BFB67 [INFO] [stdout] File version: 4.0 [INFO] [stdout] Field: MasterSeed (32B) [INFO] [stdout] Value: [1e, d4, ac, b5, 5e, a3, f6, 1, e8, 71, a6, d8, 2a, d6, 66, 86, 3b, a6, a5, 5d, 3f, 1, f8, cc, ec, a0, 71, e3, f2, 26, b9, 77] [INFO] [stdout] Field: KdfParameters (93B) [INFO] [stdout] Value: [0, 1, 62, 5, 0, 0, 0, 24, 75, 75, 69, 64, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 1, 0, 0, 0, 72, 8, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 62, 1, 0, 0, 0, 73, 20, 0, 0, 0, ef, 12, 26, 5f, 6c, ce, 65, 32, 9d, 62, b0, 6e, d3, 30, 93, 38, 13, e6, b6, 33, e7, 13, 2e, af, 68, e5, 6c, 9d, 27, 31, 20, a6, 0] [INFO] [stdout] - $UUID (16B) [INFO] [stdout] - R (8B) [INFO] [stdout] - S (32B) [INFO] [stdout] Field: EndOfHeader (4B) [INFO] [stdout] Value: [d, a, d, a] [INFO] [stdout] Hash Diff: ∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ [INFO] [stdout] HMAC Diff: ∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙∙ [INFO] [stdout] reading hmac payload... [INFO] [stdout] thread 'test::writer_and_reader_test' panicked at 'called `Result::unwrap()` on an `Err` value: DatabaseIntegrity { e: BlockHashMismatch { block_index: 0 } }', src/main.rs:116:65 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5589a0af2e4c - std::backtrace_rs::backtrace::libunwind::trace::h02555d7ca8aa068a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x5589a0af2e4c - std::backtrace_rs::backtrace::trace_unsynchronized::h8555a46024147da8 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5589a0af2e4c - std::sys_common::backtrace::_print_fmt::h4c7f50b4f105da1e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x5589a0af2e4c - ::fmt::ha305a40dbc030444 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x5589a0b1835c - core::fmt::write::hadd15acf4d6ce273 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/fmt/mod.rs:1190:17 [INFO] [stdout] 5: 0x5589a0aee738 - std::io::Write::write_fmt::h271050faa79d27d2 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/io/mod.rs:1657:15 [INFO] [stdout] 6: 0x5589a0af5117 - std::sys_common::backtrace::_print::h0dd5c0810675bd8c [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x5589a0af5117 - std::sys_common::backtrace::print::h20a2155fa0a22ca6 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x5589a0af5117 - std::panicking::default_hook::{{closure}}::habb3b6f3ccdfe00a [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x5589a0af4e4b - std::panicking::default_hook::h1c5cf4d5063a38e4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x5589a0af586a - std::panicking::rust_panic_with_hook::hb5de7a3072d2cf59 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x5589a0af5557 - std::panicking::begin_panic_handler::{{closure}}::h5106de2f55f1a411 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x5589a0af3314 - std::sys_common::backtrace::__rust_end_short_backtrace::h5ad5c2a8a003ca72 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x5589a0af5269 - rust_begin_unwind [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x5589a0964683 - core::panicking::panic_fmt::hfb4b8460cd493e74 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panicking.rs:143:14 [INFO] [stdout] 15: 0x5589a0964773 - core::result::unwrap_failed::hf9b34e307f812de0 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/result.rs:1749:5 [INFO] [stdout] 16: 0x5589a096fdfe - core::result::Result::unwrap::h01ff1daa0a4f5c8d [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/result.rs:1065:23 [INFO] [stdout] 17: 0x5589a0992319 - keepass_cli::test::writer_and_reader_test::h2817b9ae4ef661b0 [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:116:9 [INFO] [stdout] 18: 0x5589a09920aa - keepass_cli::test::writer_and_reader_test::{{closure}}::hd6e5ad490e4bdb8a [INFO] [stdout] at /opt/rustwide/workdir/src/main.rs:106:5 [INFO] [stdout] 19: 0x5589a0984ece - core::ops::function::FnOnce::call_once::hb247cc0ed3f95568 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x5589a09d9883 - core::ops::function::FnOnce::call_once::h43953c8a8f54893f [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x5589a09d9883 - test::__rust_begin_short_backtrace::h163f55298a15df9b [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:575:5 [INFO] [stdout] 22: 0x5589a09d85b1 - as core::ops::function::FnOnce>::call_once::hc911782b3cbc7ed5 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 23: 0x5589a09d85b1 - as core::ops::function::FnOnce<()>>::call_once::hc5bb369afbf9cd4e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 24: 0x5589a09d85b1 - std::panicking::try::do_call::he60df4e3e832faff [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:492:40 [INFO] [stdout] 25: 0x5589a09d85b1 - std::panicking::try::h2633cee89a0767f3 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:456:19 [INFO] [stdout] 26: 0x5589a09d85b1 - std::panic::catch_unwind::h6e10f7b94ce38b1e [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panic.rs:137:14 [INFO] [stdout] 27: 0x5589a09d85b1 - test::run_test_in_process::h085ef39049c3b50b [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:598:18 [INFO] [stdout] 28: 0x5589a09d85b1 - test::run_test::run_test_inner::{{closure}}::h4e58ce9f68eb43e4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:492:39 [INFO] [stdout] 29: 0x5589a09e1e91 - test::run_test::run_test_inner::{{closure}}::h6d18db28c5e396ee [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/test/src/lib.rs:519:37 [INFO] [stdout] 30: 0x5589a09e1e91 - std::sys_common::backtrace::__rust_begin_short_backtrace::h32292cb2cd8be620 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 31: 0x5589a09ae5ef - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h71ee66b20f7b0482 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/thread/mod.rs:498:17 [INFO] [stdout] 32: 0x5589a09ae5ef - as core::ops::function::FnOnce<()>>::call_once::hb6046e1d1a75a4a4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 33: 0x5589a09ae5ef - std::panicking::try::do_call::h5422165a88309c77 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:492:40 [INFO] [stdout] 34: 0x5589a09ae5ef - std::panicking::try::h840a12b54e2c9f5d [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:456:19 [INFO] [stdout] 35: 0x5589a09ae5ef - std::panic::catch_unwind::h85910e437c8da180 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panic.rs:137:14 [INFO] [stdout] 36: 0x5589a09ae5ef - std::thread::Builder::spawn_unchecked_::{{closure}}::ha3af3a297bfd51d6 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/thread/mod.rs:497:30 [INFO] [stdout] 37: 0x5589a09ae5ef - core::ops::function::FnOnce::call_once{{vtable.shim}}::hff8788f58e0e06a9 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x5589a0afb513 - as core::ops::function::FnOnce>::call_once::h82a18723295373b7 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 39: 0x5589a0afb513 - as core::ops::function::FnOnce>::call_once::h4b9b8634f7a2a5a4 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stdout] 40: 0x5589a0afb513 - std::sys::unix::thread::Thread::new::thread_start::h3dc341aa024c6852 [INFO] [stdout] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 41: 0x7f7fbd880609 - start_thread [INFO] [stdout] 42: 0x7f7fbd652293 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test::writer_and_reader_test [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.45s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--bin keepass-cli' [INFO] running `Command { std: "docker" "inspect" "2ae697ba7b871385bf1e37a67a19149ef7fa7578fffc51826c82924c27e4d12b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ae697ba7b871385bf1e37a67a19149ef7fa7578fffc51826c82924c27e4d12b", kill_on_drop: false }` [INFO] [stdout] 2ae697ba7b871385bf1e37a67a19149ef7fa7578fffc51826c82924c27e4d12b