[INFO] fetching crate cryptnox_rs 0.1.0... [INFO] testing cryptnox_rs-0.1.0 against master#d7bd9cd469ff6871420007f091ef52fc32d2ca99 for pr-121417 [INFO] extracting crate cryptnox_rs 0.1.0 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate cryptnox_rs 0.1.0 on toolchain d7bd9cd469ff6871420007f091ef52fc32d2ca99 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d7bd9cd469ff6871420007f091ef52fc32d2ca99" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cryptnox_rs 0.1.0 [INFO] finished tweaking crates.io crate cryptnox_rs 0.1.0 [INFO] tweaked toml for crates.io crate cryptnox_rs 0.1.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d7bd9cd469ff6871420007f091ef52fc32d2ca99" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d7bd9cd469ff6871420007f091ef52fc32d2ca99" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded env_logger v0.8.4 [INFO] [stderr] Downloaded sha256 v1.5.0 [INFO] [stderr] Downloaded cexpr v0.4.0 [INFO] [stderr] Downloaded aliasable v0.1.3 [INFO] [stderr] Downloaded ouroboros v0.13.0 [INFO] [stderr] Downloaded pcsc-sys v1.2.0 [INFO] [stderr] Downloaded stable_deref_trait v1.2.0 [INFO] [stderr] Downloaded pcsc v2.8.2 [INFO] [stderr] Downloaded ouroboros_macro v0.13.0 [INFO] [stderr] Downloaded usb-compat-01-sys v0.2.4 [INFO] [stderr] Downloaded bindgen v0.58.1 [INFO] [stderr] Downloaded libusb1-sys v0.5.0 [INFO] [stderr] Downloaded nfc1 v0.4.1 [INFO] [stderr] Downloaded nfc1-sys v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d7bd9cd469ff6871420007f091ef52fc32d2ca99" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 730122c07057df6114c9f150d69ab9a0b4f966b00e1e86a22a10c8b786802d0d [INFO] running `Command { std: "docker" "start" "-a" "730122c07057df6114c9f150d69ab9a0b4f966b00e1e86a22a10c8b786802d0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "730122c07057df6114c9f150d69ab9a0b4f966b00e1e86a22a10c8b786802d0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "730122c07057df6114c9f150d69ab9a0b4f966b00e1e86a22a10c8b786802d0d", kill_on_drop: false }` [INFO] [stdout] 730122c07057df6114c9f150d69ab9a0b4f966b00e1e86a22a10c8b786802d0d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d7bd9cd469ff6871420007f091ef52fc32d2ca99" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e412e6f1ea3420f920937c1db32c7d4f72c6b853ae9c8c54dae40e77d4d55bd [INFO] running `Command { std: "docker" "start" "-a" "0e412e6f1ea3420f920937c1db32c7d4f72c6b853ae9c8c54dae40e77d4d55bd", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling prettyplease v0.2.16 [INFO] [stderr] Compiling libloading v0.8.2 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling nom v5.1.3 [INFO] [stderr] Compiling bindgen v0.65.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling libusb1-sys v0.5.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling clang-sys v1.7.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling bindgen v0.58.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling pcsc-sys v1.2.0 [INFO] [stderr] Compiling http v0.2.11 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling openssl-sys v0.9.101 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling ouroboros_macro v0.13.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling aliasable v0.1.3 [INFO] [stderr] Compiling regex-automata v0.4.5 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling pcsc v2.8.2 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] error: could not compile `clang-sys` (lib) [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/d7bd9cd469ff6871420007f091ef52fc32d2ca99/bin/rustc --crate-name clang_sys /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/clang-sys-1.7.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no --cfg 'feature="clang_3_5"' --cfg 'feature="clang_3_6"' --cfg 'feature="clang_3_7"' --cfg 'feature="clang_3_8"' --cfg 'feature="clang_3_9"' --cfg 'feature="clang_4_0"' --cfg 'feature="clang_5_0"' --cfg 'feature="clang_6_0"' --cfg 'feature="libloading"' --cfg 'feature="runtime"' -C metadata=0bd7925cc1c54060 -C extra-filename=-0bd7925cc1c54060 --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern glob=/opt/rustwide/target/debug/deps/libglob-ead686df6db2d0d2.rmeta --extern libc=/opt/rustwide/target/debug/deps/liblibc-6d8946442dcf11ac.rmeta --extern libloading=/opt/rustwide/target/debug/deps/liblibloading-acb0ad4ea8ef6ca1.rmeta --cap-lints allow --cap-lints=forbid` (signal: 9, SIGKILL: kill) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "0e412e6f1ea3420f920937c1db32c7d4f72c6b853ae9c8c54dae40e77d4d55bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e412e6f1ea3420f920937c1db32c7d4f72c6b853ae9c8c54dae40e77d4d55bd", kill_on_drop: false }` [INFO] [stdout] 0e412e6f1ea3420f920937c1db32c7d4f72c6b853ae9c8c54dae40e77d4d55bd [INFO] testing cryptnox_rs-0.1.0 against try#393ef12c970fbc7f294cd96c35cb76f9591bc1d6 for pr-121417 [INFO] extracting crate cryptnox_rs 0.1.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate cryptnox_rs 0.1.0 on toolchain 393ef12c970fbc7f294cd96c35cb76f9591bc1d6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cryptnox_rs 0.1.0 [INFO] finished tweaking crates.io crate cryptnox_rs 0.1.0 [INFO] tweaked toml for crates.io crate cryptnox_rs 0.1.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d3118d26d916e189efe648a378c443f22a3bb40fceb5a48419454c2ff1ff9223 [INFO] running `Command { std: "docker" "start" "-a" "d3118d26d916e189efe648a378c443f22a3bb40fceb5a48419454c2ff1ff9223", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d3118d26d916e189efe648a378c443f22a3bb40fceb5a48419454c2ff1ff9223", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3118d26d916e189efe648a378c443f22a3bb40fceb5a48419454c2ff1ff9223", kill_on_drop: false }` [INFO] [stdout] d3118d26d916e189efe648a378c443f22a3bb40fceb5a48419454c2ff1ff9223 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 16a3f82d05ff12abaea3e8cb165e06fe23368d9adbc51742380db68ad9bbbc31 [INFO] running `Command { std: "docker" "start" "-a" "16a3f82d05ff12abaea3e8cb165e06fe23368d9adbc51742380db68ad9bbbc31", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling prettyplease v0.2.16 [INFO] [stderr] Compiling libloading v0.8.2 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling nom v5.1.3 [INFO] [stderr] Compiling bindgen v0.65.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling libusb1-sys v0.5.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling bindgen v0.58.1 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling clang-sys v1.7.0 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling which v3.1.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling http v0.2.11 [INFO] [stderr] Compiling pcsc-sys v1.2.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling openssl-sys v0.9.101 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling ouroboros_macro v0.13.0 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling regex-automata v0.4.5 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling aliasable v0.1.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling pcsc v2.8.2 [INFO] [stderr] Compiling cexpr v0.4.0 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling ouroboros v0.13.0 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling tokio v1.36.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling nfc1-sys v0.2.1 [INFO] [stderr] Compiling usb-compat-01-sys v0.2.4 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling sha256 v1.5.0 [INFO] [stderr] Compiling h2 v0.3.24 [INFO] [stderr] Compiling hyper v0.14.28 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.24 [INFO] [stderr] Compiling nfc1 v0.4.1 [INFO] [stderr] Compiling cryptnox_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/card/basic/gen1.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `utils` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `utils` is already imported here [INFO] [stdout] 2 | use crate::utils::{self, decode_hex}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `decode_hex` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `decode_hex` is already imported here [INFO] [stdout] 2 | use crate::utils::{self, decode_hex}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Connection` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Connection` is already imported here [INFO] [stdout] 2 | use crate::utils::{self, decode_hex}; [INFO] [stdout] 3 | use crate::connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BASIC_PAIRING_SECRET` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BASIC_PAIRING_SECRET` is already imported here [INFO] [stdout] ... [INFO] [stdout] 4 | use crate::consts::BASIC_PAIRING_SECRET; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BytesMut` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BytesMut` is already imported here [INFO] [stdout] ... [INFO] [stdout] 5 | use bytes::BytesMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ec` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `ec` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BigNumContext` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BigNumContext` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `EcKey` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:67 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `EcKey` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `EcGroup` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:73 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `EcGroup` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `EcPoint` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:82 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `EcPoint` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Deriver` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Deriver` is already imported here [INFO] [stdout] ... [INFO] [stdout] 7 | derive::Deriver,pkey::PKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PKey` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `PKey` is already imported here [INFO] [stdout] ... [INFO] [stdout] 7 | derive::Deriver,pkey::PKey}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PathBuf` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `PathBuf` is already imported here [INFO] [stdout] ... [INFO] [stdout] 8 | use std::path::{PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Basic` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Basic` is already imported here [INFO] [stdout] ... [INFO] [stdout] 9 | use super::Basic; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Bytes` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Bytes` is already imported here [INFO] [stdout] ... [INFO] [stdout] 13 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Error` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Error` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AuthType` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `AuthType` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Derivation` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:44 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Derivation` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SeedSource` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:56 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `SeedSource` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `CardOrigin` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:68 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `CardOrigin` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `CardUser` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:80 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `CardUser` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `KeyType` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:90 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `KeyType` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BasePriv` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:99 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BasePriv` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Base` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:109 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Base` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/card.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `futures` is imported redundantly [INFO] [stdout] --> src/genuineness.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{self, future::try_join_all}; [INFO] [stdout] | ^^^^ the item `futures` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Iterator` is imported redundantly [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Iterator` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead [INFO] [stdout] --> src/genuineness.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | let hashed_certificate = decode_hex(&sha256::digest_bytes(&certificate)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead [INFO] [stdout] --> src/genuineness.rs:54:40 [INFO] [stdout] | [INFO] [stdout] 54 | let hashed_card_cert_msg = sha256::digest_bytes(&decode_hex(&card_cert_msg).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `active_connection` is never used [INFO] [stdout] --> src/reader.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Reader { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn active_connection(self: &mut Self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/gen1.rs:108:28 [INFO] [stdout] | [INFO] [stdout] 108 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/gen1.rs:122:28 [INFO] [stdout] | [INFO] [stdout] 122 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/nft.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/nft.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.25s [INFO] running `Command { std: "docker" "inspect" "16a3f82d05ff12abaea3e8cb165e06fe23368d9adbc51742380db68ad9bbbc31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16a3f82d05ff12abaea3e8cb165e06fe23368d9adbc51742380db68ad9bbbc31", kill_on_drop: false }` [INFO] [stdout] 16a3f82d05ff12abaea3e8cb165e06fe23368d9adbc51742380db68ad9bbbc31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f0dacebd9579845c76a3046963d790416bfb2e9d5aac1360a832dad2c97a937e [INFO] running `Command { std: "docker" "start" "-a" "f0dacebd9579845c76a3046963d790416bfb2e9d5aac1360a832dad2c97a937e", kill_on_drop: false }` [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/card/basic/gen1.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `utils` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `utils` is already imported here [INFO] [stdout] 2 | use crate::utils::{self, decode_hex}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `decode_hex` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `decode_hex` is already imported here [INFO] [stdout] 2 | use crate::utils::{self, decode_hex}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Connection` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Connection` is already imported here [INFO] [stdout] 2 | use crate::utils::{self, decode_hex}; [INFO] [stdout] 3 | use crate::connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BASIC_PAIRING_SECRET` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BASIC_PAIRING_SECRET` is already imported here [INFO] [stdout] ... [INFO] [stdout] 4 | use crate::consts::BASIC_PAIRING_SECRET; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BytesMut` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BytesMut` is already imported here [INFO] [stdout] ... [INFO] [stdout] 5 | use bytes::BytesMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ec` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `ec` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BigNumContext` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BigNumContext` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `EcKey` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:67 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `EcKey` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `EcGroup` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:73 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `EcGroup` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `EcPoint` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:82 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `EcPoint` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Deriver` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Deriver` is already imported here [INFO] [stdout] ... [INFO] [stdout] 7 | derive::Deriver,pkey::PKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PKey` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `PKey` is already imported here [INFO] [stdout] ... [INFO] [stdout] 7 | derive::Deriver,pkey::PKey}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PathBuf` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `PathBuf` is already imported here [INFO] [stdout] ... [INFO] [stdout] 8 | use std::path::{PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Basic` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Basic` is already imported here [INFO] [stdout] ... [INFO] [stdout] 9 | use super::Basic; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Bytes` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Bytes` is already imported here [INFO] [stdout] ... [INFO] [stdout] 13 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Error` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Error` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AuthType` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `AuthType` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Derivation` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:44 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Derivation` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SeedSource` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:56 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `SeedSource` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `CardOrigin` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:68 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `CardOrigin` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `CardUser` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:80 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `CardUser` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `KeyType` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:90 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `KeyType` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BasePriv` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:99 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BasePriv` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Base` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:109 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Base` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/card.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `futures` is imported redundantly [INFO] [stdout] --> src/genuineness.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{self, future::try_join_all}; [INFO] [stdout] | ^^^^ the item `futures` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Iterator` is imported redundantly [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Iterator` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead [INFO] [stdout] --> src/genuineness.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | let hashed_certificate = decode_hex(&sha256::digest_bytes(&certificate)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead [INFO] [stdout] --> src/genuineness.rs:54:40 [INFO] [stdout] | [INFO] [stdout] 54 | let hashed_card_cert_msg = sha256::digest_bytes(&decode_hex(&card_cert_msg).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `active_connection` is never used [INFO] [stdout] --> src/reader.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Reader { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn active_connection(self: &mut Self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/gen1.rs:108:28 [INFO] [stdout] | [INFO] [stdout] 108 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/gen1.rs:122:28 [INFO] [stdout] | [INFO] [stdout] 122 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/nft.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/nft.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling cryptnox_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/card/basic/gen1.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `utils` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `utils` is already imported here [INFO] [stdout] 2 | use crate::utils::{self, decode_hex}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `decode_hex` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `decode_hex` is already imported here [INFO] [stdout] 2 | use crate::utils::{self, decode_hex}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Connection` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Connection` is already imported here [INFO] [stdout] 2 | use crate::utils::{self, decode_hex}; [INFO] [stdout] 3 | use crate::connection::Connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BASIC_PAIRING_SECRET` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BASIC_PAIRING_SECRET` is already imported here [INFO] [stdout] ... [INFO] [stdout] 4 | use crate::consts::BASIC_PAIRING_SECRET; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BytesMut` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BytesMut` is already imported here [INFO] [stdout] ... [INFO] [stdout] 5 | use bytes::BytesMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `ec` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:41 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `ec` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BigNumContext` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:44 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BigNumContext` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `EcKey` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:67 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `EcKey` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `EcGroup` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:73 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `EcGroup` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `EcPoint` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:6:82 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `EcPoint` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Deriver` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Deriver` is already imported here [INFO] [stdout] ... [INFO] [stdout] 7 | derive::Deriver,pkey::PKey}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PKey` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `PKey` is already imported here [INFO] [stdout] ... [INFO] [stdout] 7 | derive::Deriver,pkey::PKey}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `PathBuf` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `PathBuf` is already imported here [INFO] [stdout] ... [INFO] [stdout] 8 | use std::path::{PathBuf}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Basic` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Basic` is already imported here [INFO] [stdout] ... [INFO] [stdout] 9 | use super::Basic; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryInto` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryInto` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Bytes` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Bytes` is already imported here [INFO] [stdout] ... [INFO] [stdout] 13 | use bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Error` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Error` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `AuthType` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:34 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `AuthType` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Derivation` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:44 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Derivation` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SeedSource` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:56 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `SeedSource` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `CardOrigin` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:68 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `CardOrigin` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `CardUser` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:80 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `CardUser` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `KeyType` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:90 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `KeyType` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BasePriv` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:99 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `BasePriv` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Base` is imported redundantly [INFO] [stdout] --> src/card/basic/nft.rs:15:109 [INFO] [stdout] | [INFO] [stdout] 1 | use super::*; [INFO] [stdout] | -------- the item `Base` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/card.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `futures` is imported redundantly [INFO] [stdout] --> src/genuineness.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use futures::{self, future::try_join_all}; [INFO] [stdout] | ^^^^ the item `futures` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Iterator` is imported redundantly [INFO] [stdout] --> src/utils.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::iter::Iterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Iterator` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead [INFO] [stdout] --> src/genuineness.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 22 | let hashed_certificate = decode_hex(&sha256::digest_bytes(&certificate)).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead [INFO] [stdout] --> src/genuineness.rs:54:40 [INFO] [stdout] | [INFO] [stdout] 54 | let hashed_card_cert_msg = sha256::digest_bytes(&decode_hex(&card_cert_msg).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `active_connection` is never used [INFO] [stdout] --> src/reader.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Reader { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | fn active_connection(self: &mut Self) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/gen1.rs:108:28 [INFO] [stdout] | [INFO] [stdout] 108 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/gen1.rs:122:28 [INFO] [stdout] | [INFO] [stdout] 122 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/nft.rs:161:28 [INFO] [stdout] | [INFO] [stdout] 161 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/card/basic/nft.rs:175:28 [INFO] [stdout] | [INFO] [stdout] 175 | valid_pin = pin.clone().to_string(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.06s [INFO] running `Command { std: "docker" "inspect" "f0dacebd9579845c76a3046963d790416bfb2e9d5aac1360a832dad2c97a937e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0dacebd9579845c76a3046963d790416bfb2e9d5aac1360a832dad2c97a937e", kill_on_drop: false }` [INFO] [stdout] f0dacebd9579845c76a3046963d790416bfb2e9d5aac1360a832dad2c97a937e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+393ef12c970fbc7f294cd96c35cb76f9591bc1d6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] df2083ddcc1abcea4dd1d3a2ef75527b1ccd8bbfd2249d54dc807f5b1a08215b [INFO] running `Command { std: "docker" "start" "-a" "df2083ddcc1abcea4dd1d3a2ef75527b1ccd8bbfd2249d54dc807f5b1a08215b", kill_on_drop: false }` [INFO] [stderr] warning: the item `TryInto` is imported redundantly [INFO] [stderr] --> src/card/basic/gen1.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use std::convert::TryInto; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stderr] | [INFO] [stderr] = note: the item `TryInto` is already defined here [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: the item `utils` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:2:20 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `utils` is already imported here [INFO] [stderr] 2 | use crate::utils::{self, decode_hex}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `decode_hex` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:2:26 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `decode_hex` is already imported here [INFO] [stderr] 2 | use crate::utils::{self, decode_hex}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `Connection` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `Connection` is already imported here [INFO] [stderr] 2 | use crate::utils::{self, decode_hex}; [INFO] [stderr] 3 | use crate::connection::Connection; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `BASIC_PAIRING_SECRET` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `BASIC_PAIRING_SECRET` is already imported here [INFO] [stderr] ... [INFO] [stderr] 4 | use crate::consts::BASIC_PAIRING_SECRET; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `BytesMut` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `BytesMut` is already imported here [INFO] [stderr] ... [INFO] [stderr] 5 | use bytes::BytesMut; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `ec` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:6:41 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `ec` is already imported here [INFO] [stderr] ... [INFO] [stderr] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: the item `BigNumContext` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:6:44 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `BigNumContext` is already imported here [INFO] [stderr] ... [INFO] [stderr] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `EcKey` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:6:67 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `EcKey` is already imported here [INFO] [stderr] ... [INFO] [stderr] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `EcGroup` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:6:73 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `EcGroup` is already imported here [INFO] [stderr] ... [INFO] [stderr] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `EcPoint` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:6:82 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `EcPoint` is already imported here [INFO] [stderr] ... [INFO] [stderr] 6 | use openssl::{nid::Nid as AlgorithmKind,ec,bn::BigNumContext,ec::{EcKey,EcGroup, EcPoint}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `Deriver` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `Deriver` is already imported here [INFO] [stderr] ... [INFO] [stderr] 7 | derive::Deriver,pkey::PKey}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `PKey` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:7:21 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `PKey` is already imported here [INFO] [stderr] ... [INFO] [stderr] 7 | derive::Deriver,pkey::PKey}; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `PathBuf` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:8:17 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `PathBuf` is already imported here [INFO] [stderr] ... [INFO] [stderr] 8 | use std::path::{PathBuf}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `Basic` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `Basic` is already imported here [INFO] [stderr] ... [INFO] [stderr] 9 | use super::Basic; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `TryInto` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::convert::TryInto; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stderr] | [INFO] [stderr] = note: the item `TryInto` is already defined here [INFO] [stderr] [INFO] [stderr] warning: the item `Bytes` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `Bytes` is already imported here [INFO] [stderr] ... [INFO] [stderr] 13 | use bytes::Bytes; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `Error` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `Error` is already imported here [INFO] [stderr] ... [INFO] [stderr] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `AuthType` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:15:34 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `AuthType` is already imported here [INFO] [stderr] ... [INFO] [stderr] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `Derivation` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:15:44 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `Derivation` is already imported here [INFO] [stderr] ... [INFO] [stderr] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `SeedSource` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:15:56 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `SeedSource` is already imported here [INFO] [stderr] ... [INFO] [stderr] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `CardOrigin` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:15:68 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `CardOrigin` is already imported here [INFO] [stderr] ... [INFO] [stderr] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `CardUser` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:15:80 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `CardUser` is already imported here [INFO] [stderr] ... [INFO] [stderr] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `KeyType` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:15:90 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `KeyType` is already imported here [INFO] [stderr] ... [INFO] [stderr] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `BasePriv` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:15:99 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `BasePriv` is already imported here [INFO] [stderr] ... [INFO] [stderr] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `Base` is imported redundantly [INFO] [stderr] --> src/card/basic/nft.rs:15:109 [INFO] [stderr] | [INFO] [stderr] 1 | use super::*; [INFO] [stderr] | -------- the item `Base` is already imported here [INFO] [stderr] ... [INFO] [stderr] 15 | use crate::{error::Error, card::{AuthType, Derivation, SeedSource, CardOrigin, CardUser, KeyType, BasePriv, Base}, cryptos_functions::enc... [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: the item `TryFrom` is imported redundantly [INFO] [stderr] --> src/card.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use std::convert::TryFrom; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stderr] | [INFO] [stderr] = note: the item `TryFrom` is already defined here [INFO] [stderr] [INFO] [stderr] warning: the item `futures` is imported redundantly [INFO] [stderr] --> src/genuineness.rs:8:15 [INFO] [stderr] | [INFO] [stderr] 8 | use futures::{self, future::try_join_all}; [INFO] [stderr] | ^^^^ the item `futures` is already defined here [INFO] [stderr] [INFO] [stderr] warning: the item `Iterator` is imported redundantly [INFO] [stderr] --> src/utils.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::iter::Iterator; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] --> /rustc/393ef12c970fbc7f294cd96c35cb76f9591bc1d6/library/std/src/prelude/mod.rs:129:13 [INFO] [stderr] | [INFO] [stderr] = note: the item `Iterator` is already defined here [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead [INFO] [stderr] --> src/genuineness.rs:22:50 [INFO] [stderr] | [INFO] [stderr] 22 | let hashed_certificate = decode_hex(&sha256::digest_bytes(&certificate)).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead [INFO] [stderr] --> src/genuineness.rs:54:40 [INFO] [stderr] | [INFO] [stderr] 54 | let hashed_card_cert_msg = sha256::digest_bytes(&decode_hex(&card_cert_msg).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `active_connection` is never used [INFO] [stderr] --> src/reader.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 10 | pub trait Reader { [INFO] [stderr] | ------ method in this trait [INFO] [stderr] ... [INFO] [stderr] 14 | fn active_connection(self: &mut Self) -> bool; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/card/basic/gen1.rs:108:28 [INFO] [stderr] | [INFO] [stderr] 108 | valid_pin = pin.clone().to_string(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/card/basic/gen1.rs:122:28 [INFO] [stderr] | [INFO] [stderr] 122 | valid_pin = pin.clone().to_string(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/card/basic/nft.rs:161:28 [INFO] [stderr] | [INFO] [stderr] 161 | valid_pin = pin.clone().to_string(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> src/card/basic/nft.rs:175:28 [INFO] [stderr] | [INFO] [stderr] 175 | valid_pin = pin.clone().to_string(); [INFO] [stderr] | ^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: `cryptnox_rs` (lib) generated 36 warnings (run `cargo fix --lib -p cryptnox_rs` to apply 4 suggestions) [INFO] [stderr] warning: `cryptnox_rs` (lib test) generated 36 warnings (36 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/cryptnox_rs-5c6de8acf2212f2b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests cryptnox_rs [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "df2083ddcc1abcea4dd1d3a2ef75527b1ccd8bbfd2249d54dc807f5b1a08215b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df2083ddcc1abcea4dd1d3a2ef75527b1ccd8bbfd2249d54dc807f5b1a08215b", kill_on_drop: false }` [INFO] [stdout] df2083ddcc1abcea4dd1d3a2ef75527b1ccd8bbfd2249d54dc807f5b1a08215b