[INFO] cloning repository https://github.com/manuelinfosec/bitcoin-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/manuelinfosec/bitcoin-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanuelinfosec%2Fbitcoin-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanuelinfosec%2Fbitcoin-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 12a9e4a59b9af54598ec4daa364d69a07f2ecd6a [INFO] checking manuelinfosec/bitcoin-rs against master#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmanuelinfosec%2Fbitcoin-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/manuelinfosec/bitcoin-rs [INFO] finished tweaking git repo https://github.com/manuelinfosec/bitcoin-rs [INFO] tweaked toml for git repo https://github.com/manuelinfosec/bitcoin-rs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/manuelinfosec/bitcoin-rs on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/manuelinfosec/bitcoin-rs 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" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "fetch" "--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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded jsonrpsee-core v0.20.2 [INFO] [stderr] Downloaded jsonrpsee-types v0.20.2 [INFO] [stderr] Downloaded jsonrpsee v0.20.2 [INFO] [stderr] Downloaded jsonrpc v0.16.0 [INFO] [stderr] Downloaded jsonrpsee-server v0.20.2 [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 21fd4a28878c24ed20ead2918daaaceed7bdcbda6bf306f36d30e5589c81c96b [INFO] running `Command { std: "docker" "start" "-a" "21fd4a28878c24ed20ead2918daaaceed7bdcbda6bf306f36d30e5589c81c96b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21fd4a28878c24ed20ead2918daaaceed7bdcbda6bf306f36d30e5589c81c96b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21fd4a28878c24ed20ead2918daaaceed7bdcbda6bf306f36d30e5589c81c96b", kill_on_drop: false }` [INFO] [stdout] 21fd4a28878c24ed20ead2918daaaceed7bdcbda6bf306f36d30e5589c81c96b [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08a1c8c9fa214e6770fac800853e68780c1b1884cb800a1601d44118dcaaaf2b [INFO] running `Command { std: "docker" "start" "-a" "08a1c8c9fa214e6770fac800853e68780c1b1884cb800a1601d44118dcaaaf2b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Compiling serde v1.0.189 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling thiserror v1.0.49 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking cpufeatures v0.2.9 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Checking route-recognizer v0.3.1 [INFO] [stderr] Checking jsonrpsee v0.20.2 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.189 [INFO] [stderr] Compiling thiserror-impl v1.0.49 [INFO] [stderr] Checking tokio v1.33.0 [INFO] [stderr] Checking tracing v0.1.39 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-util v0.7.9 [INFO] [stderr] Checking tokio-stream v0.1.14 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking soketto v0.7.1 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking beef v0.5.2 [INFO] [stderr] Checking jsonrpsee-types v0.20.2 [INFO] [stderr] Checking jsonrpc v0.16.0 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking jsonrpsee-core v0.20.2 [INFO] [stderr] Checking jsonrpsee-server v0.20.2 [INFO] [stderr] Checking bitcoin-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/p2p.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let addr: IpAddr = address_split[0].parse().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/p2p.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | let port: u16 = address_split[1].parse::().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Account` is never constructed [INFO] [stdout] --> src/modules/account.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/modules/blockchain.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 14 | pub fn default() -> Block { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `HasHashField` is never used [INFO] [stdout] --> src/modules/generics.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait HasHashField { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/modules/transactions.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Transaction { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 26 | pub fn default() -> Transaction { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ACCOUNTDB` is never used [INFO] [stdout] --> src/database.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const ACCOUNTDB: &str = "accounts.json"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash_insert` is never used [INFO] [stdout] --> src/database.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait BaseDB { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 102 | fn hash_insert(&self, item: T) -> io::Result<()> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccountDB` is never constructed [INFO] [stdout] --> src/database.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct AccountDB { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find` and `insert` are never used [INFO] [stdout] --> src/database.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 170 | impl BlockchainDB { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | fn find(&self, hash: String) -> Block { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn insert(&self, item: Block) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `find_one` are never used [INFO] [stdout] --> src/database.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 204 | impl AccountDB { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 205 | // create an instance of the Account database [INFO] [stdout] 206 | pub fn new() -> AccountDB { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn find_one(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find` and `insert` are never used [INFO] [stdout] --> src/database.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 224 | impl TransactionDB { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 234 | fn find(&self, hash: String) -> Transaction { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn insert(&self, txn: Transaction) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `all_hashes` is never used [INFO] [stdout] --> src/database.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 268 | impl UnTransactionDB { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 278 | fn all_hashes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node` is never read [INFO] [stdout] --> src/p2p.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct RPCClient { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 27 | // server address [INFO] [stdout] 28 | node: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BroadCast` is never constructed [INFO] [stdout] --> src/p2p.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct BroadCast {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/p2p.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl BroadCast { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 36 | pub fn ping(args: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn get_blockchain(args: Vec) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn new_block(block: Block) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn add_node(address: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn get_transactions(args: Vec) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn new_untransaction(args: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn block_transaction(txn: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `new_untransaction` and `block_transaction` are never used [INFO] [stdout] --> src/p2p.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 136 | impl RPCServer { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | fn new_untransaction(&self, untxns: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | fn block_transaction(&self, txns: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ping`, `get_blockchain`, `new_block`, `add_node`, `new_untransaction`, and `block_transaction` are never used [INFO] [stdout] --> src/p2p.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 194 | impl RPCClient { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn ping(&self, args: Vec) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | fn get_blockchain(&self, args: Vec) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn new_block(&self, block: Block) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn add_node(&self, address: String) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | fn new_untransaction(&self, args: T) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | fn block_transaction(&self, txn: T) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_clients` is never used [INFO] [stdout] --> src/p2p.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn get_clients() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/p2p.rs:203:13 [INFO] [stdout] | [INFO] [stdout] 203 | let addr: IpAddr = address_split[0].parse().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/p2p.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | let port: u16 = address_split[1].parse::().unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Account` is never constructed [INFO] [stdout] --> src/modules/account.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Account { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/modules/blockchain.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Block { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 14 | pub fn default() -> Block { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `HasHashField` is never used [INFO] [stdout] --> src/modules/generics.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait HasHashField { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/modules/transactions.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Transaction { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 26 | pub fn default() -> Transaction { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ACCOUNTDB` is never used [INFO] [stdout] --> src/database.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const ACCOUNTDB: &str = "accounts.json"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `hash_insert` is never used [INFO] [stdout] --> src/database.rs:102:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait BaseDB { [INFO] [stdout] | ------ method in this trait [INFO] [stdout] ... [INFO] [stdout] 102 | fn hash_insert(&self, item: T) -> io::Result<()> [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccountDB` is never constructed [INFO] [stdout] --> src/database.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub struct AccountDB { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find` and `insert` are never used [INFO] [stdout] --> src/database.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 170 | impl BlockchainDB { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | fn find(&self, hash: String) -> Block { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn insert(&self, item: Block) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `find_one` are never used [INFO] [stdout] --> src/database.rs:206:12 [INFO] [stdout] | [INFO] [stdout] 204 | impl AccountDB { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 205 | // create an instance of the Account database [INFO] [stdout] 206 | pub fn new() -> AccountDB { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn find_one(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `find` and `insert` are never used [INFO] [stdout] --> src/database.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 224 | impl TransactionDB { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 234 | fn find(&self, hash: String) -> Transaction { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 253 | pub fn insert(&self, txn: Transaction) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `all_hashes` is never used [INFO] [stdout] --> src/database.rs:278:8 [INFO] [stdout] | [INFO] [stdout] 268 | impl UnTransactionDB { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 278 | fn all_hashes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `node` is never read [INFO] [stdout] --> src/p2p.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct RPCClient { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 27 | // server address [INFO] [stdout] 28 | node: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BroadCast` is never constructed [INFO] [stdout] --> src/p2p.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct BroadCast {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/p2p.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl BroadCast { [INFO] [stdout] | -------------- associated functions in this implementation [INFO] [stdout] 36 | pub fn ping(args: Vec) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | fn get_blockchain(args: Vec) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn new_block(block: Block) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | fn add_node(address: String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn get_transactions(args: Vec) -> Result>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | fn new_untransaction(args: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | fn block_transaction(txn: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `new_untransaction` and `block_transaction` are never used [INFO] [stdout] --> src/p2p.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 136 | impl RPCServer { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 180 | fn new_untransaction(&self, untxns: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 186 | fn block_transaction(&self, txns: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ping`, `get_blockchain`, `new_block`, `add_node`, `new_untransaction`, and `block_transaction` are never used [INFO] [stdout] --> src/p2p.rs:216:12 [INFO] [stdout] | [INFO] [stdout] 194 | impl RPCClient { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn ping(&self, args: Vec) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 231 | fn get_blockchain(&self, args: Vec) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | fn new_block(&self, block: Block) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn add_node(&self, address: String) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | fn new_untransaction(&self, args: T) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 299 | fn block_transaction(&self, txn: T) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_clients` is never used [INFO] [stdout] --> src/p2p.rs:313:4 [INFO] [stdout] | [INFO] [stdout] 313 | fn get_clients() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 50.02s [INFO] running `Command { std: "docker" "inspect" "08a1c8c9fa214e6770fac800853e68780c1b1884cb800a1601d44118dcaaaf2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08a1c8c9fa214e6770fac800853e68780c1b1884cb800a1601d44118dcaaaf2b", kill_on_drop: false }` [INFO] [stdout] 08a1c8c9fa214e6770fac800853e68780c1b1884cb800a1601d44118dcaaaf2b