[INFO] cloning repository https://github.com/RaVierma/mini-blockchain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RaVierma/mini-blockchain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRaVierma%2Fmini-blockchain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRaVierma%2Fmini-blockchain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 51ffcb9c55891e71804ff91b76cf5ec53928d975 [INFO] checking RaVierma/mini-blockchain/51ffcb9c55891e71804ff91b76cf5ec53928d975 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRaVierma%2Fmini-blockchain" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RaVierma/mini-blockchain on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/RaVierma/mini-blockchain [INFO] finished tweaking git repo https://github.com/RaVierma/mini-blockchain [INFO] tweaked toml for git repo https://github.com/RaVierma/mini-blockchain written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/RaVierma/mini-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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b0cbe72539c0259726a81eef713ebff4846855b87e4e83438ece265801f18dc2 [INFO] running `Command { std: "docker" "start" "-a" "b0cbe72539c0259726a81eef713ebff4846855b87e4e83438ece265801f18dc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b0cbe72539c0259726a81eef713ebff4846855b87e4e83438ece265801f18dc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0cbe72539c0259726a81eef713ebff4846855b87e4e83438ece265801f18dc2", kill_on_drop: false }` [INFO] [stdout] b0cbe72539c0259726a81eef713ebff4846855b87e4e83438ece265801f18dc2 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b54a59cb345f00b8ba4c6f2dcdcfcdbc809d5b6621a455a762a6e73d4ee1152d [INFO] running `Command { std: "docker" "start" "-a" "b54a59cb345f00b8ba4c6f2dcdcfcdbc809d5b6621a455a762a6e73d4ee1152d", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Compiling cc v1.1.5 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling syn v2.0.71 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking clap_builder v4.5.10 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking rustc-serialize v0.3.25 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking data-encoding v2.6.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Checking clap v4.5.10 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Checking env_filter v0.1.1 [INFO] [stderr] Checking env_logger v0.11.4 [INFO] [stderr] Checking structopt v0.3.26 [INFO] [stderr] Checking serde v1.0.204 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking mini-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Wallet` [INFO] [stdout] --> src/main.rs:1:233 [INFO] [stdout] | [INFO] [stdout] 1 | ...Set, wallets::{convert_address, hash_pub_key, validate_address, Wallet, Wallets, ADDRESS_CHECK_SUM_LEN}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/components/server.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | blockchain::{self, Blockchain}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Wallet` [INFO] [stdout] --> src/main.rs:1:233 [INFO] [stdout] | [INFO] [stdout] 1 | ...Set, wallets::{convert_address, hash_pub_key, validate_address, Wallet, Wallets, ADDRESS_CHECK_SUM_LEN}}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/components/server.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | blockchain::{self, Blockchain}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/components/server.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | let blockchain = self.blockchain.clone(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/components/server.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | Ok(stream) => {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/components/server.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/components/server.rs:59:17 [INFO] [stdout] | [INFO] [stdout] 59 | let blockchain = self.blockchain.clone(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/components/server.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 61 | Ok(stream) => {} [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/components/server.rs:62:21 [INFO] [stdout] | [INFO] [stdout] 62 | Err(e) => {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_mining_addr` and `is_miner` are never used [INFO] [stdout] --> src/components/config.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Config { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn get_mining_addr(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn is_miner(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MemoryPool` is never constructed [INFO] [stdout] --> src/components/memory_pool.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MemoryPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/components/memory_pool.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl MemoryPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn contains(&self, txid_hex: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn add(&self, tx: Transaction) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get(&self, txid_hex: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn remove(&self, txid_hex: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_all(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockInTransit` is never constructed [INFO] [stdout] --> src/components/memory_pool.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct BlockInTransit { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_blocks`, `first`, `remove`, `clear`, and `len` are never used [INFO] [stdout] --> src/components/memory_pool.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl BlockInTransit { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 58 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn add_blocks(&self, blocks: &[Vec]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn first(&self) -> Option> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn remove(&self, block_hash: &[u8]) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn clear(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_socket_addr` is never used [INFO] [stdout] --> src/components/node.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn parse_socket_addr(&self) -> SocketAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `first`, `get_nodes`, `len`, and `node_is_known` are never used [INFO] [stdout] --> src/components/node.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Nodes { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn first(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_nodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn node_is_known(&self, addr: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRANSACTION_THRESHOLD` is never used [INFO] [stdout] --> src/components/server.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub const TRANSACTION_THRESHOLD: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GLOBAL_MEMORY_POOL` is never used [INFO] [stdout] --> src/components/server.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | static GLOBAL_MEMORY_POOL: Lazy = Lazy::new(|| MemoryPool::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GLOBAL_BLOCKS_IN_TRANSIT` is never used [INFO] [stdout] --> src/components/server.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | static GLOBAL_BLOCKS_IN_TRANSIT: Lazy = Lazy::new(|| BlockInTransit::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_get_data` is never used [INFO] [stdout] --> src/components/server.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn send_get_data(addr: &str, op_type: OpType, id: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_inv` is never used [INFO] [stdout] --> src/components/server.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn send_inv(addr: &str, op_type: OpType, blocks: &[Vec]) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_block` is never used [INFO] [stdout] --> src/components/server.rs:131:4 [INFO] [stdout] | [INFO] [stdout] 131 | fn send_block(addr: &str, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_get_blocks` is never used [INFO] [stdout] --> src/components/server.rs:171:4 [INFO] [stdout] | [INFO] [stdout] 171 | fn send_get_blocks(addr: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve` is never used [INFO] [stdout] --> src/components/server.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn serve(blockchain: Blockchain, stream: TcpStream) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_mining_addr` and `is_miner` are never used [INFO] [stdout] --> src/components/config.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Config { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn get_mining_addr(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn is_miner(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MemoryPool` is never constructed [INFO] [stdout] --> src/components/memory_pool.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct MemoryPool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/components/memory_pool.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl MemoryPool { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn contains(&self, txid_hex: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn add(&self, tx: Transaction) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get(&self, txid_hex: &str) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn remove(&self, txid_hex: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_all(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BlockInTransit` is never constructed [INFO] [stdout] --> src/components/memory_pool.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct BlockInTransit { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_blocks`, `first`, `remove`, `clear`, and `len` are never used [INFO] [stdout] --> src/components/memory_pool.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl BlockInTransit { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 58 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn add_blocks(&self, blocks: &[Vec]) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn first(&self) -> Option> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn remove(&self, block_hash: &[u8]) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn clear(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_socket_addr` is never used [INFO] [stdout] --> src/components/node.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn parse_socket_addr(&self) -> SocketAddr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `first`, `get_nodes`, `len`, and `node_is_known` are never used [INFO] [stdout] --> src/components/node.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Nodes { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn first(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_nodes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn node_is_known(&self, addr: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TRANSACTION_THRESHOLD` is never used [INFO] [stdout] --> src/components/server.rs:26:11 [INFO] [stdout] | [INFO] [stdout] 26 | pub const TRANSACTION_THRESHOLD: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GLOBAL_MEMORY_POOL` is never used [INFO] [stdout] --> src/components/server.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | static GLOBAL_MEMORY_POOL: Lazy = Lazy::new(|| MemoryPool::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `GLOBAL_BLOCKS_IN_TRANSIT` is never used [INFO] [stdout] --> src/components/server.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | static GLOBAL_BLOCKS_IN_TRANSIT: Lazy = Lazy::new(|| BlockInTransit::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_get_data` is never used [INFO] [stdout] --> src/components/server.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn send_get_data(addr: &str, op_type: OpType, id: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_inv` is never used [INFO] [stdout] --> src/components/server.rs:117:4 [INFO] [stdout] | [INFO] [stdout] 117 | fn send_inv(addr: &str, op_type: OpType, blocks: &[Vec]) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_block` is never used [INFO] [stdout] --> src/components/server.rs:131:4 [INFO] [stdout] | [INFO] [stdout] 131 | fn send_block(addr: &str, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `send_get_blocks` is never used [INFO] [stdout] --> src/components/server.rs:171:4 [INFO] [stdout] | [INFO] [stdout] 171 | fn send_get_blocks(addr: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serve` is never used [INFO] [stdout] --> src/components/server.rs:200:4 [INFO] [stdout] | [INFO] [stdout] 200 | fn serve(blockchain: Blockchain, stream: TcpStream) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.68s [INFO] running `Command { std: "docker" "inspect" "b54a59cb345f00b8ba4c6f2dcdcfcdbc809d5b6621a455a762a6e73d4ee1152d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b54a59cb345f00b8ba4c6f2dcdcfcdbc809d5b6621a455a762a6e73d4ee1152d", kill_on_drop: false }` [INFO] [stdout] b54a59cb345f00b8ba4c6f2dcdcfcdbc809d5b6621a455a762a6e73d4ee1152d