[INFO] cloning repository https://github.com/SecureDataHouse/rust-blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SecureDataHouse/rust-blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSecureDataHouse%2Frust-blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSecureDataHouse%2Frust-blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 324addb01c286884bc7039046cb82daa277c4558 [INFO] checking SecureDataHouse/rust-blockchain against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSecureDataHouse%2Frust-blockchain" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SecureDataHouse/rust-blockchain on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SecureDataHouse/rust-blockchain [INFO] finished tweaking git repo https://github.com/SecureDataHouse/rust-blockchain [INFO] tweaked toml for git repo https://github.com/SecureDataHouse/rust-blockchain written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/SecureDataHouse/rust-blockchain already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a19707244fd3e2622e3f4fe4b29d3e820786e36ef2436039c3d660b007f8636f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a19707244fd3e2622e3f4fe4b29d3e820786e36ef2436039c3d660b007f8636f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a19707244fd3e2622e3f4fe4b29d3e820786e36ef2436039c3d660b007f8636f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a19707244fd3e2622e3f4fe4b29d3e820786e36ef2436039c3d660b007f8636f", kill_on_drop: false }` [INFO] [stdout] a19707244fd3e2622e3f4fe4b29d3e820786e36ef2436039c3d660b007f8636f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d4bbe1aa5c86b4f9c0994b4fd954afa4f20d23e545cdbe2ddd65e99a1e622d81 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d4bbe1aa5c86b4f9c0994b4fd954afa4f20d23e545cdbe2ddd65e99a1e622d81", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling tiny-keccak v2.0.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking chrono v0.4.10 [INFO] [stderr] Checking rust-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/basic_prototype.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigInt` [INFO] [stdout] --> src/proof_of_work.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use num_bigint::{BigUint, BigInt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> src/proof_of_work.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use num_traits::{Zero, One}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/proof_of_work.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Numeric::Ordinal` [INFO] [stdout] --> src/proof_of_work.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::format::Numeric::Ordinal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::intrinsics::transmute` [INFO] [stdout] --> src/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/basic_prototype.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigInt` [INFO] [stdout] --> src/proof_of_work.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use num_bigint::{BigUint, BigInt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> src/proof_of_work.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use num_traits::{Zero, One}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/proof_of_work.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Numeric::Ordinal` [INFO] [stdout] --> src/proof_of_work.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::format::Numeric::Ordinal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/utils.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::intrinsics::transmute` [INFO] [stdout] --> src/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::intrinsics::transmute; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/basic_prototype.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut prev_block= self.blocks.get(self.blocks.len()-1); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hash` [INFO] [stdout] --> src/basic_prototype.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn set_hash(block: &mut Block) -> &Block { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_block` [INFO] [stdout] --> src/basic_prototype.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new_block(data: String, prev_block_hash: [u8; 32]) -> Block { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_genesis_block` [INFO] [stdout] --> src/basic_prototype.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn new_genesis_block() -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Blockchain` [INFO] [stdout] --> src/basic_prototype.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Blockchain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_block` [INFO] [stdout] --> src/basic_prototype.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn add_block(&mut self, data: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_blockchain` [INFO] [stdout] --> src/basic_prototype.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn new_blockchain(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TARGET_BITS` [INFO] [stdout] --> src/proof_of_work.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const TARGET_BITS: u32 = 24; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_NONCE` [INFO] [stdout] --> src/proof_of_work.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const MAX_NONCE: i64 = i64::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ProofOfWork` [INFO] [stdout] --> src/proof_of_work.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ProofOfWork { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_proof_of_work` [INFO] [stdout] --> src/proof_of_work.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new_proof_of_work(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `prepare_data` [INFO] [stdout] --> src/proof_of_work.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn prepare_data(&self, nonce: i64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/proof_of_work.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn run(&self) -> (i64, [u8; 32]) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate` [INFO] [stdout] --> src/proof_of_work.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn validate(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/basic_prototype.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut prev_block= self.blocks.get(self.blocks.len()-1); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hash` [INFO] [stdout] --> src/basic_prototype.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn set_hash(block: &mut Block) -> &Block { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_block` [INFO] [stdout] --> src/basic_prototype.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn new_block(data: String, prev_block_hash: [u8; 32]) -> Block { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_genesis_block` [INFO] [stdout] --> src/basic_prototype.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn new_genesis_block() -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Blockchain` [INFO] [stdout] --> src/basic_prototype.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct Blockchain { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_block` [INFO] [stdout] --> src/basic_prototype.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn add_block(&mut self, data: String) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_blockchain` [INFO] [stdout] --> src/basic_prototype.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn new_blockchain(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `TARGET_BITS` [INFO] [stdout] --> src/proof_of_work.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const TARGET_BITS: u32 = 24; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `MAX_NONCE` [INFO] [stdout] --> src/proof_of_work.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | const MAX_NONCE: i64 = i64::max_value(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ProofOfWork` [INFO] [stdout] --> src/proof_of_work.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ProofOfWork { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_proof_of_work` [INFO] [stdout] --> src/proof_of_work.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new_proof_of_work(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `prepare_data` [INFO] [stdout] --> src/proof_of_work.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn prepare_data(&self, nonce: i64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/proof_of_work.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn run(&self) -> (i64, [u8; 32]) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `validate` [INFO] [stdout] --> src/proof_of_work.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn validate(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/basic_prototype.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigInt` [INFO] [stdout] --> src/proof_of_work.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use num_bigint::{BigUint, BigInt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> src/proof_of_work.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use num_traits::{Zero, One}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/proof_of_work.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Numeric::Ordinal` [INFO] [stdout] --> src/proof_of_work.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::format::Numeric::Ordinal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/basic_prototype.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BigInt` [INFO] [stdout] --> src/proof_of_work.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use num_bigint::{BigUint, BigInt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Zero` [INFO] [stdout] --> src/proof_of_work.rs:3:18 [INFO] [stdout] | [INFO] [stdout] 3 | use num_traits::{Zero, One}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/proof_of_work.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::Numeric::Ordinal` [INFO] [stdout] --> src/proof_of_work.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use chrono::format::Numeric::Ordinal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/basic_prototype.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut prev_block= self.blocks.get(self.blocks.len()-1); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/basic_prototype.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let mut prev_block= self.blocks.get(self.blocks.len()-1); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 10.38s [INFO] running `Command { std: "docker" "inspect" "d4bbe1aa5c86b4f9c0994b4fd954afa4f20d23e545cdbe2ddd65e99a1e622d81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4bbe1aa5c86b4f9c0994b4fd954afa4f20d23e545cdbe2ddd65e99a1e622d81", kill_on_drop: false }` [INFO] [stdout] d4bbe1aa5c86b4f9c0994b4fd954afa4f20d23e545cdbe2ddd65e99a1e622d81