[INFO] cloning repository https://github.com/DimensionDev/ntge [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DimensionDev/ntge" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDimensionDev%2Fntge", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDimensionDev%2Fntge'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 386f4e6133e42f5b260af5dcc870f4318b1e2453 [INFO] linting DimensionDev/ntge against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDimensionDev%2Fntge" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/DimensionDev/ntge [INFO] finished tweaking git repo https://github.com/DimensionDev/ntge [INFO] tweaked toml for git repo https://github.com/DimensionDev/ntge written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/DimensionDev/ntge on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/DimensionDev/ntge already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zeroize_derive v1.0.0 [INFO] [stderr] Downloaded synstructure v0.12.3 [INFO] [stderr] Downloaded subtle v2.2.2 [INFO] [stderr] Downloaded zeroize v1.1.0 [INFO] [stderr] Downloaded serde_derive v1.0.106 [INFO] [stderr] Downloaded linked-hash-map v0.5.2 [INFO] [stderr] Downloaded md5 v0.6.1 [INFO] [stderr] Downloaded poly1305 v0.5.2 [INFO] [stderr] Downloaded base58-monero v0.2.0 [INFO] [stderr] Downloaded chacha20poly1305 v0.4.1 [INFO] [stderr] Downloaded arrayvec v0.5.1 [INFO] [stderr] Downloaded redox_users v0.3.4 [INFO] [stderr] Downloaded x25519-dalek v0.6.0 [INFO] [stderr] Downloaded serde_bytes v0.11.3 [INFO] [stderr] Downloaded proc-macro-nested v0.1.5 [INFO] [stderr] Downloaded proc-macro-hack v0.5.16 [INFO] [stderr] Downloaded rust-argon2 v0.7.0 [INFO] [stderr] Downloaded blake2b_simd v0.5.10 [INFO] [stderr] Downloaded byteorder v1.3.4 [INFO] [stderr] Downloaded cc v1.0.50 [INFO] [stderr] Downloaded base64 v0.11.0 [INFO] [stderr] Downloaded pin-project v0.4.20 [INFO] [stderr] Downloaded futures-util v0.3.5 [INFO] [stderr] Downloaded cbindgen v0.14.1 [INFO] [stderr] Downloaded base64 v0.12.1 [INFO] [stderr] Downloaded indexmap v1.3.2 [INFO] [stderr] Downloaded serde_json v1.0.51 [INFO] [stderr] Downloaded rmp v0.8.9 [INFO] [stderr] Downloaded half v1.5.0 [INFO] [stderr] Downloaded once_cell v1.4.0 [INFO] [stderr] Downloaded chrono v0.4.11 [INFO] [stderr] Downloaded pin-project-lite v0.1.7 [INFO] [stderr] Downloaded bson v0.14.1 [INFO] [stderr] Downloaded toml v0.5.6 [INFO] [stderr] Downloaded ed25519-dalek v1.0.0-pre.3 [INFO] [stderr] Downloaded libc v0.2.69 [INFO] [stderr] Downloaded sha2 v0.8.1 [INFO] [stderr] Downloaded dirs v2.0.2 [INFO] [stderr] Downloaded tokio v0.2.21 [INFO] [stderr] Downloaded futures-macro v0.3.5 [INFO] [stderr] Downloaded curve25519-dalek v2.0.0 [INFO] [stderr] Downloaded pin-project-internal v0.4.20 [INFO] [stderr] Downloaded crypto-mac v0.7.0 [INFO] [stderr] Downloaded rmp-serde v0.14.3 [INFO] [stderr] Downloaded secrecy v0.6.0 [INFO] [stderr] Downloaded bytes v0.5.4 [INFO] [stderr] Downloaded bs58 v0.3.0 [INFO] [stderr] Downloaded typenum v1.11.2 [INFO] [stderr] Downloaded generic-array v0.12.3 [INFO] [stderr] Downloaded bech32 v0.7.2 [INFO] [stderr] Downloaded sha3 v0.8.2 [INFO] [stderr] Downloaded itoa v0.4.5 [INFO] [stderr] Downloaded aead v0.2.0 [INFO] [stderr] Downloaded chacha20 v0.3.4 [INFO] [stderr] Downloaded hmac v0.7.1 [INFO] [stderr] Downloaded keccak v0.1.0 [INFO] [stderr] Downloaded async-stream-impl v0.2.1 [INFO] [stderr] Downloaded futures-task v0.3.5 [INFO] [stderr] Downloaded ryu v1.0.3 [INFO] [stderr] Downloaded universal-hash v0.3.0 [INFO] [stderr] Downloaded stream-cipher v0.3.2 [INFO] [stderr] Downloaded num-integer v0.1.42 [INFO] [stderr] Downloaded hex v0.4.2 [INFO] [stderr] Downloaded dirs-sys v0.3.4 [INFO] [stderr] Downloaded async-stream v0.2.1 [INFO] [stderr] Downloaded futures-core v0.3.5 [INFO] [stderr] Downloaded clear_on_drop v0.2.3 [INFO] [stderr] Downloaded hkdf v0.8.0 [INFO] [stderr] Downloaded serde v1.0.106 [INFO] [stderr] Downloaded subtle v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0a39b30f9ccd1318e967912a5d1101761ce9ea2060b626da8d1b24264a713298 [INFO] running `Command { std: "docker" "start" "-a" "0a39b30f9ccd1318e967912a5d1101761ce9ea2060b626da8d1b24264a713298", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0a39b30f9ccd1318e967912a5d1101761ce9ea2060b626da8d1b24264a713298", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a39b30f9ccd1318e967912a5d1101761ce9ea2060b626da8d1b24264a713298", kill_on_drop: false }` [INFO] [stdout] 0a39b30f9ccd1318e967912a5d1101761ce9ea2060b626da8d1b24264a713298 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 103884de59bebe33422905942843d047d4f018fdd2e31ecec89a2881f6a571cd [INFO] running `Command { std: "docker" "start" "-a" "103884de59bebe33422905942843d047d4f018fdd2e31ecec89a2881f6a571cd", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.17 [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Compiling serde v1.0.106 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling ryu v1.0.3 [INFO] [stderr] Checking subtle v2.2.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling itoa v0.4.5 [INFO] [stderr] Compiling cbindgen v0.14.1 [INFO] [stderr] Compiling remove_dir_all v0.5.2 [INFO] [stderr] Checking futures-core v0.3.5 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling proc-macro-nested v0.1.5 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking subtle v1.0.0 [INFO] [stderr] Checking once_cell v1.4.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Checking futures-task v0.3.5 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Checking pin-project-lite v0.1.7 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking half v1.5.0 [INFO] [stderr] Checking keccak v0.1.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Checking linked-hash-map v0.5.2 [INFO] [stderr] Checking md5 v0.6.1 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Checking bech32 v0.7.2 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking tokio v0.2.21 [INFO] [stderr] Checking rmp v0.8.9 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Checking bs58 v0.3.0 [INFO] [stderr] Checking base64 v0.12.1 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking dirs v2.0.2 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Compiling clear_on_drop v0.2.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking stream-cipher v0.3.2 [INFO] [stderr] Checking universal-hash v0.3.0 [INFO] [stderr] Checking aead v0.2.0 [INFO] [stderr] Checking poly1305 v0.5.2 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking hkdf v0.8.0 [INFO] [stderr] Checking sha2 v0.8.1 [INFO] [stderr] Checking sha3 v0.8.2 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Compiling synstructure v0.12.3 [INFO] [stderr] Compiling serde_derive v1.0.106 [INFO] [stderr] Compiling zeroize_derive v1.0.0 [INFO] [stderr] Compiling pin-project-internal v0.4.20 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling async-stream-impl v0.2.1 [INFO] [stderr] Checking zeroize v1.1.0 [INFO] [stderr] Checking chacha20 v0.3.4 [INFO] [stderr] Checking secrecy v0.6.0 [INFO] [stderr] Checking async-stream v0.2.1 [INFO] [stderr] Checking chacha20poly1305 v0.4.1 [INFO] [stderr] Checking pin-project v0.4.20 [INFO] [stderr] Checking futures-util v0.3.5 [INFO] [stderr] Checking base58-monero v0.2.0 [INFO] [stderr] Checking curve25519-dalek v2.0.0 [INFO] [stderr] Checking serde_json v1.0.51 [INFO] [stderr] Checking rmp-serde v0.14.3 [INFO] [stderr] Checking serde_bytes v0.11.3 [INFO] [stderr] Checking serde_cbor v0.11.1 [INFO] [stderr] Checking ed25519-dalek v1.0.0-pre.3 [INFO] [stderr] Checking x25519-dalek v0.6.0 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Checking bson v0.14.1 [INFO] [stderr] Compiling ntge-core v0.1.0 (/opt/rustwide/workdir/ntge-core) [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/recipient.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/recipient.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:20:35 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:32:24 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> ntge-core/src/error.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> ntge-core/src/error.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/recipient.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/recipient.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:20:35 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:32:24 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> ntge-core/src/message/mod.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> ntge-core/src/error.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `std` [INFO] [stdout] --> ntge-core/src/error.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | #[cfg(feature = "std")] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cbindgen-enable` and `drop-log-enable` [INFO] [stdout] = help: consider adding `std` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/keypair.rs:36:58 [INFO] [stdout] | [INFO] [stdout] 36 | let keypair: Keypair = construct_from_secret_key(&secret_key); [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `secret_key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/private.rs:27:66 [INFO] [stdout] | [INFO] [stdout] 27 | let keypair = Ed25519Keypair::construct_from_private_key(&self); [INFO] [stdout] | ^^^^^ help: change this to: `self` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/private.rs:71:62 [INFO] [stdout] | [INFO] [stdout] 71 | let (hrp, base32_encoded) = match bech32::decode(&bech32_encoded) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `bech32_encoded` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/public.rs:53:62 [INFO] [stdout] | [INFO] [stdout] 53 | let (hrp, base32_encoded) = match bech32::decode(&bech32_encoded) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `bech32_encoded` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/public.rs:116:64 [INFO] [stdout] | [INFO] [stdout] 116 | let signature: Signature = match Signature::from_bytes(&signature_bytes) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `signature_bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> ntge-core/src/ed25519/public.rs:140:6 [INFO] [stdout] | [INFO] [stdout] 140 | impl<'a> From<&'a Ed25519PrivateKey> for Ed25519PublicKey { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 140 - impl<'a> From<&'a Ed25519PrivateKey> for Ed25519PublicKey { [INFO] [stdout] 140 + impl From<&Ed25519PrivateKey> for Ed25519PublicKey { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/hmac_utils.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | hasher.input(&data); [INFO] [stdout] | ^^^^^ help: change this to: `data` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | &file_key, [INFO] [stdout] | ^^^^^^^^^ help: change this to: `file_key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | match FileKey::unwrap(&header, &private_key) { [INFO] [stdout] | ^^^^^^^ help: change this to: `header` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 42 | match FileKey::unwrap(&header, &private_key) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `private_key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:58:34 [INFO] [stdout] | [INFO] [stdout] 58 | Hkdf::::new(Some(&nonce), file_key.0.expose_secret()) [INFO] [stdout] | ^^^^^^ help: change this to: `nonce` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `ok` [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | / match aead::aead_decrypt(&payload_key, &self.message.payload.ciphertext) { [INFO] [stdout] 62 | | Ok(plaintext) => Some(plaintext), [INFO] [stdout] 63 | | Err(_) => None, [INFO] [stdout] 64 | | } [INFO] [stdout] | |_________^ help: replace with: `aead::aead_decrypt(&payload_key, &self.message.payload.ciphertext).ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_err [INFO] [stdout] = note: `#[warn(clippy::manual_ok_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | Hkdf::::new(Some(&nonce), file_key.0.expose_secret()) [INFO] [stdout] | ^^^^^^ help: change this to: `nonce` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `ok` [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | / match aead::aead_decrypt_with_nonce(&payload_key, &nonce, &extra_ciphertext) { [INFO] [stdout] 81 | | Ok(plaintext) => Some(plaintext), [INFO] [stdout] 82 | | Err(_) => None, [INFO] [stdout] 83 | | } [INFO] [stdout] | |_________^ help: replace with: `aead::aead_decrypt_with_nonce(&payload_key, &nonce, &extra_ciphertext).ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:80:67 [INFO] [stdout] | [INFO] [stdout] 80 | match aead::aead_decrypt_with_nonce(&payload_key, &nonce, &extra_ciphertext) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `extra_ciphertext` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:95:50 [INFO] [stdout] | [INFO] [stdout] 95 | .verify(&message.payload.ciphertext, &signature_bytes) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `signature_bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 67 | .map(|public_key| file_key.wrap(&public_key)) [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `public_key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:78:59 [INFO] [stdout] | [INFO] [stdout] 78 | let ciphertext = aead::aead_encrypt(&payload_key, &plaintext); [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `plaintext` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:97:86 [INFO] [stdout] | [INFO] [stdout] 97 | let ciphertext = aead::aead_encrypt_with_nonce(&payload_key, &nonce, &plaintext); [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `plaintext` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/keypair.rs:36:58 [INFO] [stdout] | [INFO] [stdout] 36 | let keypair: Keypair = construct_from_secret_key(&secret_key); [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `secret_key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> ntge-core/src/ed25519/keypair.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | assert_eq!(deserialized_private_key.is_ok(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] = note: `#[warn(clippy::bool_assert_comparison)]` on by default [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 118 - assert_eq!(deserialized_private_key.is_ok(), true); [INFO] [stdout] 118 + assert!(deserialized_private_key.is_ok()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> ntge-core/src/ed25519/keypair.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | assert_eq!(deserialized_public_key.is_ok(), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 126 - assert_eq!(deserialized_public_key.is_ok(), true); [INFO] [stdout] 126 + assert!(deserialized_public_key.is_ok()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> ntge-core/src/ed25519/keypair.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | assert_eq!(verify_result, true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 142 - assert_eq!(verify_result, true); [INFO] [stdout] 142 + assert!(verify_result); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/private.rs:27:66 [INFO] [stdout] | [INFO] [stdout] 27 | let keypair = Ed25519Keypair::construct_from_private_key(&self); [INFO] [stdout] | ^^^^^ help: change this to: `self` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/private.rs:71:62 [INFO] [stdout] | [INFO] [stdout] 71 | let (hrp, base32_encoded) = match bech32::decode(&bech32_encoded) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `bech32_encoded` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/private.rs:219:62 [INFO] [stdout] | [INFO] [stdout] 219 | ed25519::private::Ed25519PrivateKey::deserialize(&encoded_private_key); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: change this to: `encoded_private_key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> ntge-core/src/ed25519/private.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | assert_eq!(true, deserialized_private_key.is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 220 - assert_eq!(true, deserialized_private_key.is_ok()); [INFO] [stdout] 220 + assert!(deserialized_private_key.is_ok()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> ntge-core/src/strings.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let r_str = match c_str.to_str() { [INFO] [stdout] | _________________^ [INFO] [stdout] 20 | | Err(_) => "", [INFO] [stdout] 21 | | Ok(string) => string, [INFO] [stdout] 22 | | }; [INFO] [stdout] | |_____^ help: replace it with: `c_str.to_str().unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/public.rs:53:62 [INFO] [stdout] | [INFO] [stdout] 53 | let (hrp, base32_encoded) = match bech32::decode(&bech32_encoded) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: change this to: `bech32_encoded` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/public.rs:116:64 [INFO] [stdout] | [INFO] [stdout] 116 | let signature: Signature = match Signature::from_bytes(&signature_bytes) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `signature_bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the following explicit lifetimes could be elided: 'a [INFO] [stdout] --> ntge-core/src/ed25519/public.rs:140:6 [INFO] [stdout] | [INFO] [stdout] 140 | impl<'a> From<&'a Ed25519PrivateKey> for Ed25519PublicKey { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stdout] = note: `#[warn(clippy::needless_lifetimes)]` on by default [INFO] [stdout] help: elide the lifetimes [INFO] [stdout] | [INFO] [stdout] 140 - impl<'a> From<&'a Ed25519PrivateKey> for Ed25519PublicKey { [INFO] [stdout] 140 + impl From<&Ed25519PrivateKey> for Ed25519PublicKey { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/ed25519/public.rs:229:60 [INFO] [stdout] | [INFO] [stdout] 229 | ed25519::public::Ed25519PublicKey::deserialize(&encoded_public_key); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: change this to: `encoded_public_key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> ntge-core/src/ed25519/public.rs:230:9 [INFO] [stdout] | [INFO] [stdout] 230 | assert_eq!(true, deserialized_public_key.is_ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 230 - assert_eq!(true, deserialized_public_key.is_ok()); [INFO] [stdout] 230 + assert!(deserialized_public_key.is_ok()); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> ntge-core/src/ed25519/public.rs:252:17 [INFO] [stdout] | [INFO] [stdout] 252 | assert!(key_id.len() > 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!key_id.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MessageMeta` [INFO] [stdout] 21 | pub struct MessageMeta { [INFO] [stdout] | ----------- `MessageMeta` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:20:35 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MessageMeta` [INFO] [stdout] 21 | pub struct MessageMeta { [INFO] [stdout] | ----------- `MessageMeta` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MessageMac` [INFO] [stdout] 27 | pub struct MessageMac { [INFO] [stdout] | ---------- `MessageMac` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MessageMac` [INFO] [stdout] 27 | pub struct MessageMac { [INFO] [stdout] | ---------- `MessageMac` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:32:24 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MessageExtra` [INFO] [stdout] 33 | pub struct MessageExtra { [INFO] [stdout] | ------------ `MessageExtra` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MessageExtra` [INFO] [stdout] 33 | pub struct MessageExtra { [INFO] [stdout] | ------------ `MessageExtra` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MessagePayload` [INFO] [stdout] 39 | pub struct MessagePayload { [INFO] [stdout] | -------------- `MessagePayload` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MessagePayload` [INFO] [stdout] 39 | pub struct MessagePayload { [INFO] [stdout] | -------------- `MessagePayload` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Message` [INFO] [stdout] 48 | pub struct Message { [INFO] [stdout] | ------- `Message` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Message` [INFO] [stdout] 48 | pub struct Message { [INFO] [stdout] | ------- `Message` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Signature` [INFO] [stdout] 34 | pub struct Signature { [INFO] [stdout] | --------- `Signature` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Signature` [INFO] [stdout] 34 | pub struct Signature { [INFO] [stdout] | --------- `Signature` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/recipient.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MessageRecipientHeader` [INFO] [stdout] 5 | pub struct MessageRecipientHeader { [INFO] [stdout] | ---------------------- `MessageRecipientHeader` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/recipient.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MessageRecipientHeader` [INFO] [stdout] 5 | pub struct MessageRecipientHeader { [INFO] [stdout] | ---------------------- `MessageRecipientHeader` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/hmac_utils.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | hasher.input(&data); [INFO] [stdout] | ^^^^^ help: change this to: `data` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> ntge-core/src/key_utils.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | / !(key_utils::keypair_validation( [INFO] [stdout] 123 | | &keypair1.get_private_key().raw, [INFO] [stdout] 124 | | &keypair2.get_public_key().raw [INFO] [stdout] 125 | | ) [INFO] [stdout] 126 | | .is_ok()) [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 122 ~ key_utils::keypair_validation( [INFO] [stdout] 123 + &keypair1.get_private_key().raw, [INFO] [stdout] 124 + &keypair2.get_public_key().raw [INFO] [stdout] 125 + ).is_err() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | &file_key, [INFO] [stdout] | ^^^^^^^^^ help: change this to: `file_key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking ntge v0.1.0 (/opt/rustwide/workdir/ntge) [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:42:35 [INFO] [stdout] | [INFO] [stdout] 42 | match FileKey::unwrap(&header, &private_key) { [INFO] [stdout] | ^^^^^^^ help: change this to: `header` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:42:44 [INFO] [stdout] | [INFO] [stdout] 42 | match FileKey::unwrap(&header, &private_key) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `private_key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:58:34 [INFO] [stdout] | [INFO] [stdout] 58 | Hkdf::::new(Some(&nonce), file_key.0.expose_secret()) [INFO] [stdout] | ^^^^^^ help: change this to: `nonce` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `ok` [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | / match aead::aead_decrypt(&payload_key, &self.message.payload.ciphertext) { [INFO] [stdout] 62 | | Ok(plaintext) => Some(plaintext), [INFO] [stdout] 63 | | Err(_) => None, [INFO] [stdout] 64 | | } [INFO] [stdout] | |_________^ help: replace with: `aead::aead_decrypt(&payload_key, &self.message.payload.ciphertext).ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_err [INFO] [stdout] = note: `#[warn(clippy::manual_ok_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | Hkdf::::new(Some(&nonce), file_key.0.expose_secret()) [INFO] [stdout] | ^^^^^^ help: change this to: `nonce` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `ok` [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | / match aead::aead_decrypt_with_nonce(&payload_key, &nonce, &extra_ciphertext) { [INFO] [stdout] 81 | | Ok(plaintext) => Some(plaintext), [INFO] [stdout] 82 | | Err(_) => None, [INFO] [stdout] 83 | | } [INFO] [stdout] | |_________^ help: replace with: `aead::aead_decrypt_with_nonce(&payload_key, &nonce, &extra_ciphertext).ok()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_ok_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:80:67 [INFO] [stdout] | [INFO] [stdout] 80 | match aead::aead_decrypt_with_nonce(&payload_key, &nonce, &extra_ciphertext) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: change this to: `extra_ciphertext` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/decryptor.rs:95:50 [INFO] [stdout] | [INFO] [stdout] 95 | .verify(&message.payload.ciphertext, &signature_bytes) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: change this to: `signature_bytes` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 67 | .map(|public_key| file_key.wrap(&public_key)) [INFO] [stdout] | ^^^^^^^^^^^ help: change this to: `public_key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:78:59 [INFO] [stdout] | [INFO] [stdout] 78 | let ciphertext = aead::aead_encrypt(&payload_key, &plaintext); [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `plaintext` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:97:86 [INFO] [stdout] | [INFO] [stdout] 97 | let ciphertext = aead::aead_encrypt_with_nonce(&payload_key, &nonce, &plaintext); [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `plaintext` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/create.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | .args(&["run", "--bin", "ntge-keygen"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["run", "--bin", "ntge-keygen"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/create.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | .args(&["--", "-f", "example_key"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["--", "-f", "example_key"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: statics have by default a `'static` lifetime [INFO] [stdout] --> ntge/examples/encrypt_sign.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | static TESTSTRING: &'static str = "Welcome to use NTGE!"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/encrypt_sign.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | .args(&["run", "--bin", "ntge"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["run", "--bin", "ntge"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/encrypt_sign.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | .args(&["-r", "example_key"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-r", "example_key"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/encrypt_sign.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | .args(&["-i", "example_key"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-i", "example_key"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> ntge/examples/encrypt_sign.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / match output.stdin.unwrap().write_all(TESTSTRING.as_bytes()) { [INFO] [stdout] 21 | | Err(_) => panic!("couldn't write to stdin"), [INFO] [stdout] 22 | | Ok(_) => (), [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____^ help: try: `if let Err(_) = output.stdin.unwrap().write_all(TESTSTRING.as_bytes()) { panic!("couldn't write to stdin") }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/message/mod.rs:241:42 [INFO] [stdout] | [INFO] [stdout] 241 | aead::aead_encrypt(&payload_key, &plaintext) [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `plaintext` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> ntge-core/src/message/mod.rs:313:9 [INFO] [stdout] | [INFO] [stdout] 313 | assert_eq!(decryptor.verify_message_mac(&file_key), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 313 - assert_eq!(decryptor.verify_message_mac(&file_key), true); [INFO] [stdout] 313 + assert!(decryptor.verify_message_mac(&file_key)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: statics have by default a `'static` lifetime [INFO] [stdout] --> ntge/examples/encrypt.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | static TESTSTRING: &'static str = "Welcome to use NTGE!"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: statics have by default a `'static` lifetime [INFO] [stdout] --> ntge/examples/verify.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | static TESTSTRING: &'static str = "Decrypt Succeeds! Welcome to use NTGE!"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/encrypt.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | .args(&["run", "--bin", "ntge"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["run", "--bin", "ntge"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/encrypt.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | .args(&["-r", "example_key"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-r", "example_key"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> ntge/examples/encrypt.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | / match output.stdin.unwrap().write_all(TESTSTRING.as_bytes()) { [INFO] [stdout] 20 | | Err(_) => panic!("couldn't write to stdin"), [INFO] [stdout] 21 | | Ok(_) => (), [INFO] [stdout] 22 | | } [INFO] [stdout] | |_____^ help: try: `if let Err(_) = output.stdin.unwrap().write_all(TESTSTRING.as_bytes()) { panic!("couldn't write to stdin") }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> ntge-core/src/message/mod.rs:340:9 [INFO] [stdout] | [INFO] [stdout] 340 | assert_eq!(decryptor.verify_message_mac(&file_key), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 340 - assert_eq!(decryptor.verify_message_mac(&file_key), true); [INFO] [stdout] 340 + assert!(decryptor.verify_message_mac(&file_key)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/verify.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | .args(&["run", "--bin", "ntge"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["run", "--bin", "ntge"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/verify.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | .args(&["-r", "example_key"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-r", "example_key"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/verify.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | .args(&["-i", "example_key"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-i", "example_key"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> ntge/examples/verify.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | / match output.stdin.unwrap().write_all(TESTSTRING.as_bytes()) { [INFO] [stdout] 22 | | Err(_) => panic!("couldn't write to stdin"), [INFO] [stdout] 23 | | Ok(_) => (), [INFO] [stdout] 24 | | } [INFO] [stdout] | |_____^ help: try: `if let Err(_) = output.stdin.unwrap().write_all(TESTSTRING.as_bytes()) { panic!("couldn't write to stdin") }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: spawned process is never `wait()`ed on [INFO] [stdout] --> ntge/examples/verify.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / cmd2.args(&["run", "--bin", "ntge"]) [INFO] [stdout] 28 | | .arg("verify") [INFO] [stdout] 29 | | .args(&["-i", "example_key"]) [INFO] [stdout] 30 | | .stdin(output.stdout.unwrap()) [INFO] [stdout] 31 | | .spawn() [INFO] [stdout] 32 | | .expect("You need to create a keypair with ntge-keygen first!"); [INFO] [stdout] | | ^- help: try: `.wait()` [INFO] [stdout] | |_______________________________________________________________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: not doing so might leave behind zombie processes [INFO] [stdout] = note: see https://doc.rust-lang.org/stable/std/process/struct.Child.html#warning [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zombie_processes [INFO] [stdout] = note: `#[warn(clippy::zombie_processes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/verify.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | cmd2.args(&["run", "--bin", "ntge"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["run", "--bin", "ntge"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/verify.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | .args(&["-i", "example_key"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-i", "example_key"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> ntge-core/src/message/mod.rs:394:9 [INFO] [stdout] | [INFO] [stdout] 394 | assert_eq!(decryptor.verify_message_mac(&file_key), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 394 - assert_eq!(decryptor.verify_message_mac(&file_key), true); [INFO] [stdout] 394 + assert!(decryptor.verify_message_mac(&file_key)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> ntge-core/src/message/mod.rs:423:9 [INFO] [stdout] | [INFO] [stdout] 423 | assert_eq!(decryptor.verify_message_mac(&file_key), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 423 - assert_eq!(decryptor.verify_message_mac(&file_key), true); [INFO] [stdout] 423 + assert!(decryptor.verify_message_mac(&file_key)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: used `assert_eq!` with a literal bool [INFO] [stdout] --> ntge-core/src/message/mod.rs:482:9 [INFO] [stdout] | [INFO] [stdout] 482 | assert_eq!(decryptor.verify_message_mac(&file_key), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison [INFO] [stdout] help: replace it with `assert!(..)` [INFO] [stdout] | [INFO] [stdout] 482 - assert_eq!(decryptor.verify_message_mac(&file_key), true); [INFO] [stdout] 482 + assert!(decryptor.verify_message_mac(&file_key)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> ntge-core/src/strings.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | let r_str = match c_str.to_str() { [INFO] [stdout] | _________________^ [INFO] [stdout] 20 | | Err(_) => "", [INFO] [stdout] 21 | | Ok(string) => string, [INFO] [stdout] 22 | | }; [INFO] [stdout] | |_____^ help: replace it with: `c_str.to_str().unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge-core/src/x25519/filekey.rs:149:51 [INFO] [stdout] | [INFO] [stdout] 149 | let ciphertext = aead::aead_encrypt(&key, &plaintext.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `plaintext.as_bytes()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: statics have by default a `'static` lifetime [INFO] [stdout] --> ntge/examples/decrypt.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | static TESTSTRING: &'static str = "Decrypt Succeeds! Welcome to use NTGE!"; [INFO] [stdout] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes [INFO] [stdout] = note: `#[warn(clippy::redundant_static_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> ntge-core/src/message/mod.rs:264:51 [INFO] [stdout] | [INFO] [stdout] 264 | let encryptor = encryptor::Encryptor::new(&vec![alice_public_key]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[alice_public_key]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] = note: `#[warn(clippy::useless_vec)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> ntge-core/src/message/mod.rs:303:51 [INFO] [stdout] | [INFO] [stdout] 303 | let encryptor = encryptor::Encryptor::new(&vec![alice_public_key]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[alice_public_key]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> ntge-core/src/message/mod.rs:329:51 [INFO] [stdout] | [INFO] [stdout] 329 | let encryptor = encryptor::Encryptor::new(&vec![alice_public_key]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[alice_public_key]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> ntge-core/src/message/mod.rs:361:51 [INFO] [stdout] | [INFO] [stdout] 361 | let encryptor = encryptor::Encryptor::new(&vec![alice_public_key]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[alice_public_key]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: useless use of `vec!` [INFO] [stdout] --> ntge-core/src/message/mod.rs:384:51 [INFO] [stdout] | [INFO] [stdout] 384 | let encryptor = encryptor::Encryptor::new(&vec![alice_public_key_x25519]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use a slice directly: `&[alice_public_key_x25519]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MessageMeta` [INFO] [stdout] 21 | pub struct MessageMeta { [INFO] [stdout] | ----------- `MessageMeta` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:20:35 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MessageMeta` [INFO] [stdout] 21 | pub struct MessageMeta { [INFO] [stdout] | ----------- `MessageMeta` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MessageMac` [INFO] [stdout] 27 | pub struct MessageMac { [INFO] [stdout] | ---------- `MessageMac` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:26:35 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MessageMac` [INFO] [stdout] 27 | pub struct MessageMac { [INFO] [stdout] | ---------- `MessageMac` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:32:24 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MessageExtra` [INFO] [stdout] 33 | pub struct MessageExtra { [INFO] [stdout] | ------------ `MessageExtra` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MessageExtra` [INFO] [stdout] 33 | pub struct MessageExtra { [INFO] [stdout] | ------------ `MessageExtra` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MessagePayload` [INFO] [stdout] 39 | pub struct MessagePayload { [INFO] [stdout] | -------------- `MessagePayload` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:38:35 [INFO] [stdout] | [INFO] [stdout] 38 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MessagePayload` [INFO] [stdout] 39 | pub struct MessagePayload { [INFO] [stdout] | -------------- `MessagePayload` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:47:24 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Message` [INFO] [stdout] 48 | pub struct Message { [INFO] [stdout] | ------- `Message` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/mod.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 47 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Message` [INFO] [stdout] 48 | pub struct Message { [INFO] [stdout] | ------- `Message` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_Signature` [INFO] [stdout] 34 | pub struct Signature { [INFO] [stdout] | --------- `Signature` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/encryptor.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Signature` [INFO] [stdout] 34 | pub struct Signature { [INFO] [stdout] | --------- `Signature` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/recipient.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_MessageRecipientHeader` [INFO] [stdout] 5 | pub struct MessageRecipientHeader { [INFO] [stdout] | ---------------------- `MessageRecipientHeader` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> ntge-core/src/message/recipient.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | #[derive(Debug, Clone, Serialize, Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_MessageRecipientHeader` [INFO] [stdout] 5 | pub struct MessageRecipientHeader { [INFO] [stdout] | ---------------------- `MessageRecipientHeader` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/decrypt.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | .args(&["run", "--bin", "ntge"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["run", "--bin", "ntge"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/decrypt.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | .args(&["-r", "example_key"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-r", "example_key"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> ntge/examples/decrypt.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / match output.stdin.unwrap().write_all(TESTSTRING.as_bytes()) { [INFO] [stdout] 21 | | Err(_) => panic!("couldn't write to stdin"), [INFO] [stdout] 22 | | Ok(_) => (), [INFO] [stdout] 23 | | } [INFO] [stdout] | |_____^ help: try: `if let Err(_) = output.stdin.unwrap().write_all(TESTSTRING.as_bytes()) { panic!("couldn't write to stdin") }` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/decrypt.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 27 | .args(&["run", "--bin", "ntge"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["run", "--bin", "ntge"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/examples/decrypt.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | .args(&["-i", "example_key"]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-i", "example_key"]` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path` and `key_content` are never read [INFO] [stdout] --> ntge/src/bin/ntge/encrypt/recipient.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) struct Recipient { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 10 | pub(crate) path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | pub(crate) name: String, [INFO] [stdout] 12 | pub(crate) key_content: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Recipient` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> ntge/src/bin/ntge/util.rs:97:16 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct Identity { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 97 | pub(crate) path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Identity` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/decrypt.rs:57:49 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(_) => match identity::fetch_identity(&arg_matches) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/src/bin/ntge/encrypt/recipient.rs:29:56 [INFO] [stdout] | [INFO] [stdout] 29 | let key_content = match fs::read_to_string(&path) { [INFO] [stdout] | ^^^^^ help: change this to: `path` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/signature.rs:11:49 [INFO] [stdout] | [INFO] [stdout] 11 | Ok(_) => match identity::fetch_identity(&arg_matches) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/signature.rs:24:49 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(_) => match identity::fetch_identity(&arg_matches) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/signature.rs:55:62 [INFO] [stdout] | [INFO] [stdout] 55 | if Decryptor::verify_signature(&message, &key) { [INFO] [stdout] | ^^^^ help: change this to: `key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/src/bin/ntge/util.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | match fs::read(&file_path) { [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `file_path` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/src/bin/ntge/util.rs:39:34 [INFO] [stdout] | [INFO] [stdout] 39 | match fs::read_to_string(&file_path) { [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `file_path` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/src/bin/ntge/util.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | let mut file = match fs::File::create(&file_path) { [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `file_path` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/src/bin/ntge/util.rs:160:48 [INFO] [stdout] | [INFO] [stdout] 160 | let key_content = match fs::read_to_string(&path) { [INFO] [stdout] | ^^^^^ help: change this to: `path` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:116:66 [INFO] [stdout] | [INFO] [stdout] 116 | let recipients = encrypt::recipient::fetch_recipient(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:117:52 [INFO] [stdout] | [INFO] [stdout] 117 | let plaintext = util::read_input_bytes(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:118:52 [INFO] [stdout] | [INFO] [stdout] 118 | let identity = signature::fetch_signer(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:127:35 [INFO] [stdout] | [INFO] [stdout] 127 | util::write_to_output(&arg_matches, &content.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:127:49 [INFO] [stdout] | [INFO] [stdout] 127 | util::write_to_output(&arg_matches, &content.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: change this to: `content.as_bytes()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:131:51 [INFO] [stdout] | [INFO] [stdout] 131 | let ciphertext = util::read_input_str(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:132:55 [INFO] [stdout] | [INFO] [stdout] 132 | let identities = decrypt::fetch_decryptor(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:140:35 [INFO] [stdout] | [INFO] [stdout] 140 | util::write_to_output(&arg_matches, &content); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:144:50 [INFO] [stdout] | [INFO] [stdout] 144 | let plaintext = util::read_input_str(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:145:56 [INFO] [stdout] | [INFO] [stdout] 145 | let identities = signature::fetch_verifier(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:157:54 [INFO] [stdout] | [INFO] [stdout] 157 | let input_bytes = util::read_input_bytes(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `path` and `key_content` are never read [INFO] [stdout] --> ntge/src/bin/ntge/encrypt/recipient.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) struct Recipient { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 10 | pub(crate) path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | pub(crate) name: String, [INFO] [stdout] 12 | pub(crate) key_content: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Recipient` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `path` is never read [INFO] [stdout] --> ntge/src/bin/ntge/util.rs:97:16 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct Identity { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 97 | pub(crate) path: PathBuf, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Identity` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/decrypt.rs:57:49 [INFO] [stdout] | [INFO] [stdout] 57 | Ok(_) => match identity::fetch_identity(&arg_matches) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] = note: `#[warn(clippy::needless_borrow)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/src/bin/ntge/encrypt/recipient.rs:29:56 [INFO] [stdout] | [INFO] [stdout] 29 | let key_content = match fs::read_to_string(&path) { [INFO] [stdout] | ^^^^^ help: change this to: `path` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/signature.rs:11:49 [INFO] [stdout] | [INFO] [stdout] 11 | Ok(_) => match identity::fetch_identity(&arg_matches) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/signature.rs:24:49 [INFO] [stdout] | [INFO] [stdout] 24 | Ok(_) => match identity::fetch_identity(&arg_matches) { [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/signature.rs:55:62 [INFO] [stdout] | [INFO] [stdout] 55 | if Decryptor::verify_signature(&message, &key) { [INFO] [stdout] | ^^^^ help: change this to: `key` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/src/bin/ntge/util.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | match fs::read(&file_path) { [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `file_path` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/src/bin/ntge/util.rs:39:34 [INFO] [stdout] | [INFO] [stdout] 39 | match fs::read_to_string(&file_path) { [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `file_path` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/src/bin/ntge/util.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | let mut file = match fs::File::create(&file_path) { [INFO] [stdout] | ^^^^^^^^^^ help: change this to: `file_path` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> ntge/src/bin/ntge/util.rs:160:48 [INFO] [stdout] | [INFO] [stdout] 160 | let key_content = match fs::read_to_string(&path) { [INFO] [stdout] | ^^^^^ help: change this to: `path` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:116:66 [INFO] [stdout] | [INFO] [stdout] 116 | let recipients = encrypt::recipient::fetch_recipient(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:117:52 [INFO] [stdout] | [INFO] [stdout] 117 | let plaintext = util::read_input_bytes(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:118:52 [INFO] [stdout] | [INFO] [stdout] 118 | let identity = signature::fetch_signer(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:127:35 [INFO] [stdout] | [INFO] [stdout] 127 | util::write_to_output(&arg_matches, &content.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:127:49 [INFO] [stdout] | [INFO] [stdout] 127 | util::write_to_output(&arg_matches, &content.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: change this to: `content.as_bytes()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:131:51 [INFO] [stdout] | [INFO] [stdout] 131 | let ciphertext = util::read_input_str(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:132:55 [INFO] [stdout] | [INFO] [stdout] 132 | let identities = decrypt::fetch_decryptor(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:140:35 [INFO] [stdout] | [INFO] [stdout] 140 | util::write_to_output(&arg_matches, &content); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:144:50 [INFO] [stdout] | [INFO] [stdout] 144 | let plaintext = util::read_input_str(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:145:56 [INFO] [stdout] | [INFO] [stdout] 145 | let identities = signature::fetch_verifier(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this expression creates a reference which is immediately dereferenced by the compiler [INFO] [stdout] --> ntge/src/bin/ntge/main.rs:157:54 [INFO] [stdout] | [INFO] [stdout] 157 | let input_bytes = util::read_input_bytes(&arg_matches); [INFO] [stdout] | ^^^^^^^^^^^^ help: change this to: `arg_matches` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.26s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bson v0.14.1, x25519-dalek v0.6.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "103884de59bebe33422905942843d047d4f018fdd2e31ecec89a2881f6a571cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "103884de59bebe33422905942843d047d4f018fdd2e31ecec89a2881f6a571cd", kill_on_drop: false }` [INFO] [stdout] 103884de59bebe33422905942843d047d4f018fdd2e31ecec89a2881f6a571cd