[INFO] cloning repository https://github.com/ivanrad10/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/ivanrad10/rust-blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivanrad10%2Frust-blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivanrad10%2Frust-blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a13fa7746dc3bf0e69786392830afa03a045bd26 [INFO] checking ivanrad10/rust-blockchain against master#a9e7b30487235621751cc628f170c0f15fb215c4 for pr-136539 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivanrad10%2Frust-blockchain" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ivanrad10/rust-blockchain on toolchain a9e7b30487235621751cc628f170c0f15fb215c4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a9e7b30487235621751cc628f170c0f15fb215c4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ivanrad10/rust-blockchain [INFO] finished tweaking git repo https://github.com/ivanrad10/rust-blockchain [INFO] tweaked toml for git repo https://github.com/ivanrad10/rust-blockchain written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ivanrad10/rust-blockchain already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a9e7b30487235621751cc628f170c0f15fb215c4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+a9e7b30487235621751cc628f170c0f15fb215c4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a1f98db9f272bd5fd9d822d9605483776ae1c0ed38c7088f459d91900ae7bf62 [INFO] running `Command { std: "docker" "start" "-a" "a1f98db9f272bd5fd9d822d9605483776ae1c0ed38c7088f459d91900ae7bf62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a1f98db9f272bd5fd9d822d9605483776ae1c0ed38c7088f459d91900ae7bf62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1f98db9f272bd5fd9d822d9605483776ae1c0ed38c7088f459d91900ae7bf62", kill_on_drop: false }` [INFO] [stdout] a1f98db9f272bd5fd9d822d9605483776ae1c0ed38c7088f459d91900ae7bf62 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+a9e7b30487235621751cc628f170c0f15fb215c4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9fe934ef2700db886e970dc488064636da31a00f261efc166a06d5d98188aba1 [INFO] running `Command { std: "docker" "start" "-a" "9fe934ef2700db886e970dc488064636da31a00f261efc166a06d5d98188aba1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Compiling bitcoin-internals v0.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling cc v1.2.10 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking gimli v0.31.1 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking log v0.4.25 [INFO] [stderr] Checking miniz_oxide v0.8.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking hex-conservative v0.1.2 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking clap_builder v4.5.27 [INFO] [stderr] Checking bitcoin_hashes v0.13.0 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking bitcoin_hashes v0.7.6 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking merkle-cbt v0.3.2 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling secp256k1-sys v0.9.2 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking addr2line v0.24.2 [INFO] [stderr] Checking clap v4.5.27 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking env_logger v0.11.6 [INFO] [stderr] Checking backtrace v0.3.74 [INFO] [stderr] Checking failure v0.1.8 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking secp256k1 v0.28.2 [INFO] [stderr] Checking bitcoincash-addr v0.5.2 [INFO] [stderr] Checking rust-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `vec` [INFO] [stdout] --> src/block.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{time::SystemTime, vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::builder::Str` [INFO] [stdout] --> src/block.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::builder::Str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/blockchain.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/blockchain.rs:21:33 [INFO] [stdout] | [INFO] [stdout] 21 | utxo_pool: Arc::new((Mutex::new((HashMap::new())))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - utxo_pool: Arc::new((Mutex::new((HashMap::new())))) [INFO] [stdout] 21 + utxo_pool: Arc::new(Mutex::new((HashMap::new()))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/blockchain.rs:21:45 [INFO] [stdout] | [INFO] [stdout] 21 | utxo_pool: Arc::new((Mutex::new((HashMap::new())))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - utxo_pool: Arc::new((Mutex::new((HashMap::new())))) [INFO] [stdout] 21 + utxo_pool: Arc::new((Mutex::new(HashMap::new()))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec` [INFO] [stdout] --> src/block.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{time::SystemTime, vec}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `clap::builder::Str` [INFO] [stdout] --> src/block.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use clap::builder::Str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/blockchain.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/blockchain.rs:21:33 [INFO] [stdout] | [INFO] [stdout] 21 | utxo_pool: Arc::new((Mutex::new((HashMap::new())))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - utxo_pool: Arc::new((Mutex::new((HashMap::new())))) [INFO] [stdout] 21 + utxo_pool: Arc::new(Mutex::new((HashMap::new()))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/blockchain.rs:21:45 [INFO] [stdout] | [INFO] [stdout] 21 | utxo_pool: Arc::new((Mutex::new((HashMap::new())))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 21 - utxo_pool: Arc::new((Mutex::new((HashMap::new())))) [INFO] [stdout] 21 + utxo_pool: Arc::new((Mutex::new(HashMap::new()))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::block::Block` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::block::Block; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/block.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `utxo_pool` is never read [INFO] [stdout] --> src/blockchain.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Blockchain { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 13 | blocks: Vec, [INFO] [stdout] 14 | utxo_pool: Arc>>>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blockchain` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `initiate_tx` is never used [INFO] [stdout] --> src/blockchain.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Blockchain { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn initiate_tx(&self, from: String, to: String, amount: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mempool` is never constructed [INFO] [stdout] --> src/mempool.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Mempool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Miner` is never constructed [INFO] [stdout] --> src/miner.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Miner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/transaction.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_public_key`, and `sign_transaction` are never used [INFO] [stdout] --> src/wallet.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Wallet { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_public_key(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn sign_transaction(&self, tx_data: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/blockchain.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | b.add_block("data1".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 100 | let _ = b.add_block("data1".to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/blockchain.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 101 | b.add_block("data2".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 101 | let _ = b.add_block("data2".to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/blockchain.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | b.add_block("data3".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 102 | let _ = b.add_block("data3".to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `minerId` should have a snake case name [INFO] [stdout] --> src/mempool.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | minerId: u64, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `miner_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `height` is never read [INFO] [stdout] --> src/block.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Block { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `utxo_pool` is never read [INFO] [stdout] --> src/blockchain.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Blockchain { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 13 | blocks: Vec, [INFO] [stdout] 14 | utxo_pool: Arc>>>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blockchain` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `initiate_tx` is never used [INFO] [stdout] --> src/blockchain.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Blockchain { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn initiate_tx(&self, from: String, to: String, amount: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mempool` is never constructed [INFO] [stdout] --> src/mempool.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Mempool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Miner` is never constructed [INFO] [stdout] --> src/miner.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Miner { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Transaction` is never constructed [INFO] [stdout] --> src/transaction.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Transaction { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_public_key`, and `sign_transaction` are never used [INFO] [stdout] --> src/wallet.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Wallet { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn get_public_key(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn sign_transaction(&self, tx_data: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `minerId` should have a snake case name [INFO] [stdout] --> src/mempool.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | minerId: u64, [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `miner_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.38s [INFO] running `Command { std: "docker" "inspect" "9fe934ef2700db886e970dc488064636da31a00f261efc166a06d5d98188aba1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9fe934ef2700db886e970dc488064636da31a00f261efc166a06d5d98188aba1", kill_on_drop: false }` [INFO] [stdout] 9fe934ef2700db886e970dc488064636da31a00f261efc166a06d5d98188aba1