[INFO] cloning repository https://github.com/thooton/starlight-node [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thooton/starlight-node" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthooton%2Fstarlight-node", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthooton%2Fstarlight-node'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b13a2f71e902a31b2abaddc080edc4878e9b3c31 [INFO] checking thooton/starlight-node against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthooton%2Fstarlight-node" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/thooton/starlight-node on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/thooton/starlight-node [INFO] finished tweaking git repo https://github.com/thooton/starlight-node [INFO] tweaked toml for git repo https://github.com/thooton/starlight-node written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/thooton/starlight-node 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded priority-queue v2.0.2 [INFO] [stderr] Downloaded reed-solomon-erasure v6.0.0 [INFO] [stderr] Downloaded ed25519-dalek-blake2-feeless v1.0.1 [INFO] [stderr] Downloaded leapfrog v0.3.0 [INFO] [stderr] Downloaded lru v0.7.8 [INFO] [stderr] Downloaded topk v0.5.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 359d7692fabd1348a05056b201a45f38b2041c46e2c7edf7ae86372b23a3638e [INFO] running `Command { std: "docker" "start" "-a" "359d7692fabd1348a05056b201a45f38b2041c46e2c7edf7ae86372b23a3638e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "359d7692fabd1348a05056b201a45f38b2041c46e2c7edf7ae86372b23a3638e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "359d7692fabd1348a05056b201a45f38b2041c46e2c7edf7ae86372b23a3638e", kill_on_drop: false }` [INFO] [stdout] 359d7692fabd1348a05056b201a45f38b2041c46e2c7edf7ae86372b23a3638e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de4d4a074441b91242c4fbc8ee7d721db8011d9cf5bc3e974c01d62ce8fc676e [INFO] running `Command { std: "docker" "start" "-a" "de4d4a074441b91242c4fbc8ee7d721db8011d9cf5bc3e974c01d62ce8fc676e", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling static_init_macro v1.0.2 [INFO] [stderr] Compiling priority-queue v1.4.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling jobserver v0.1.28 [INFO] [stderr] Checking indexmap v2.2.5 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling static_init v1.0.3 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Compiling reed-solomon-erasure v6.0.0 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Compiling zstd-safe v7.0.0 [INFO] [stderr] Checking winnow v0.6.5 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Checking lru v0.7.8 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking blake2 v0.9.2 [INFO] [stderr] Checking ed25519 v1.5.3 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking constant_time_eq v0.3.0 [INFO] [stderr] Checking arrayref v0.3.7 [INFO] [stderr] Checking fixed-hash v0.8.0 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking chrono v0.4.35 [INFO] [stderr] Checking primitive-types v0.12.2 [INFO] [stderr] Checking priority-queue v2.0.2 [INFO] [stderr] Checking blake2b_simd v1.0.2 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Checking topk v0.5.0 [INFO] [stderr] Checking leapfrog v0.3.0 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Checking hyper v1.2.0 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking ed25519-dalek-blake2-feeless v1.0.1 [INFO] [stderr] Checking toml_edit v0.22.9 [INFO] [stderr] Checking toml v0.8.12 [INFO] [stderr] Checking starlight-node v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `log_trace` [INFO] [stdout] --> src/app/log.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | macro_rules! log_trace { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_debug` [INFO] [stdout] --> src/app/log.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | macro_rules! log_debug { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_critical` [INFO] [stdout] --> src/app/log.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | macro_rules! log_critical { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Endpoint` [INFO] [stdout] --> src/app/mod.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::network::{Endpoint, Network}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Private`, `Seed` [INFO] [stdout] --> src/app/mod.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | keys::{Identity, Private, Seed}, [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/app/mod.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::FromStr` [INFO] [stdout] --> src/app/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/keys/difficulty.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/keys/work.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Private`, `Signature`, `UninitVec`, `self` [INFO] [stdout] --> src/network/network.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | keys::{Identity, Private, Public, Signature}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 13 | protocol::{Amount, Slot, Transaction}, [INFO] [stdout] 14 | util::{self, DefaultInitVec, Error, UninitVec, Version}, [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shred` [INFO] [stdout] --> src/network/network.rs:17:67 [INFO] [stdout] | [INFO] [stdout] 17 | use super::{models::TelemetryMsg, CenterMap, Endpoint, Msg, Peer, Shred, ShredMsg}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CenterMapValue` [INFO] [stdout] --> src/network/mod.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use center_map::{CenterMap, CenterMapValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `compress`, `decompress` [INFO] [stdout] --> src/network/mod.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use compress::{compress, decompress}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TelemetryMsg` [INFO] [stdout] --> src/network/mod.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 10 | use models::{Msg, Peer, ShredMsg, TelemetryMsg}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Slot` [INFO] [stdout] --> src/node/account.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | protocol::{Amount, Slot}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Epoch` [INFO] [stdout] --> src/node/bank.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::protocol::{Amount, Epoch, Transaction, TransactionKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protocol::Amount` [INFO] [stdout] --> src/node/chain.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{error, keys::Hash, protocol::Amount, util::Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Visitable` [INFO] [stdout] --> src/node/dag.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | visit::{Dfs, Visitable, Walker}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chain::Chain` [INFO] [stdout] --> src/node/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use chain::Chain; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mempool::Mempool` [INFO] [stdout] --> src/node/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use mempool::Mempool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/protocol/slot.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{Instant, SystemTime}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `leader_schedule::LeaderSchedule` [INFO] [stdout] --> src/protocol/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leader_schedule::LeaderSchedule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AccountBalanceRequest`, `AccountBalanceResponse` [INFO] [stdout] --> src/rpc/mod.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | pub use account_balance::{AccountBalanceRequest, AccountBalanceResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WorkGenerateRequest`, `WorkGenerateResponse` [INFO] [stdout] --> src/rpc/mod.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | pub use work_generate::{WorkGenerateRequest, WorkGenerateResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UpperHex` [INFO] [stdout] --> src/util/encoding.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::{Display, UpperHex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deserialize_list_from_str` [INFO] [stdout] --> src/util/mod.rs:9:52 [INFO] [stdout] | [INFO] [stdout] 9 | deserialize_from_str, deserialize_from_string, deserialize_list_from_str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_trace` [INFO] [stdout] --> src/app/log.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | macro_rules! log_trace { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_debug` [INFO] [stdout] --> src/app/log.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | macro_rules! log_debug { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_critical` [INFO] [stdout] --> src/app/log.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | macro_rules! log_critical { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Endpoint` [INFO] [stdout] --> src/app/mod.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::network::{Endpoint, Network}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Private`, `Seed` [INFO] [stdout] --> src/app/mod.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | keys::{Identity, Private, Seed}, [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/app/mod.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::FromStr` [INFO] [stdout] --> src/app/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/keys/difficulty.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/keys/work.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/385fa9d845dd326c6bbfd58c22244215e431948a/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::keys::Seed` [INFO] [stdout] --> src/keys/work.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | use crate::keys::Seed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Private`, `Signature`, `UninitVec`, `self` [INFO] [stdout] --> src/network/network.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | keys::{Identity, Private, Public, Signature}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 13 | protocol::{Amount, Slot, Transaction}, [INFO] [stdout] 14 | util::{self, DefaultInitVec, Error, UninitVec, Version}, [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shred` [INFO] [stdout] --> src/network/network.rs:17:67 [INFO] [stdout] | [INFO] [stdout] 17 | use super::{models::TelemetryMsg, CenterMap, Endpoint, Msg, Peer, Shred, ShredMsg}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CenterMapValue` [INFO] [stdout] --> src/network/mod.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use center_map::{CenterMap, CenterMapValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `compress`, `decompress` [INFO] [stdout] --> src/network/mod.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use compress::{compress, decompress}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TelemetryMsg` [INFO] [stdout] --> src/network/mod.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 10 | use models::{Msg, Peer, ShredMsg, TelemetryMsg}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Slot` [INFO] [stdout] --> src/node/account.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | protocol::{Amount, Slot}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Epoch` [INFO] [stdout] --> src/node/bank.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::protocol::{Amount, Epoch, Transaction, TransactionKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protocol::Amount` [INFO] [stdout] --> src/node/chain.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{error, keys::Hash, protocol::Amount, util::Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Visitable` [INFO] [stdout] --> src/node/dag.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | visit::{Dfs, Visitable, Walker}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chain::Chain` [INFO] [stdout] --> src/node/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use chain::Chain; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mempool::Mempool` [INFO] [stdout] --> src/node/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use mempool::Mempool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/protocol/slot.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{Instant, SystemTime}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `leader_schedule::LeaderSchedule` [INFO] [stdout] --> src/protocol/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leader_schedule::LeaderSchedule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AccountBalanceRequest`, `AccountBalanceResponse` [INFO] [stdout] --> src/rpc/mod.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | pub use account_balance::{AccountBalanceRequest, AccountBalanceResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WorkGenerateRequest`, `WorkGenerateResponse` [INFO] [stdout] --> src/rpc/mod.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | pub use work_generate::{WorkGenerateRequest, WorkGenerateResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UpperHex` [INFO] [stdout] --> src/util/encoding.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::{Display, UpperHex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deserialize_list_from_str` [INFO] [stdout] --> src/util/mod.rs:9:52 [INFO] [stdout] | [INFO] [stdout] 9 | deserialize_from_str, deserialize_from_string, deserialize_list_from_str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/network/network.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/network/network.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/keys/hash.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut v = [0u8; 32]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/keys/hash.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut v = [0u8; 32]; [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: unused import: `Serialize` [INFO] [stdout] --> src/network/network.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/network/network.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/keys/hash.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut v = [0u8; 32]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/keys/hash.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut v = [0u8; 32]; [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 items `new`, `from_le_slice`, and `as_u64` are never used [INFO] [stdout] --> src/keys/difficulty.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl Difficulty { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub const fn new(v: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn from_le_slice(s: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn as_u64(&self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `random` and `zero` are never used [INFO] [stdout] --> src/keys/hash.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Hash { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub const fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/private.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | hexify!(Private, "private key"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zero`, `random`, and `to_address` are never used [INFO] [stdout] --> src/keys/private.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 16 | impl Private { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub(super) const fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn to_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_to_u512` is never used [INFO] [stdout] --> src/keys/public.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn decode_to_u512(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid` is never used [INFO] [stdout] --> src/keys/public.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn is_valid(s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checksum_bytes` is never used [INFO] [stdout] --> src/keys/public.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn checksum_bytes(number: U512) -> [u8; 5] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `account_bytes` is never used [INFO] [stdout] --> src/keys/public.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn account_bytes(number: U512) -> [u8; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_byte` is never used [INFO] [stdout] --> src/keys/public.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn decode_byte(character: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ACCOUNT_REVERSE` is never used [INFO] [stdout] --> src/keys/public.rs:83:7 [INFO] [stdout] | [INFO] [stdout] 83 | const ACCOUNT_REVERSE: &[char] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `account_decode` is never used [INFO] [stdout] --> src/keys/public.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn account_decode(value: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_address` is never used [INFO] [stdout] --> src/keys/public.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl Public { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn from_address(address: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ADDRESS_CHECKSUM_LEN` is never used [INFO] [stdout] --> src/keys/public.rs:142:11 [INFO] [stdout] | [INFO] [stdout] 140 | impl Public { [INFO] [stdout] | ----------- associated constant in this implementation [INFO] [stdout] 141 | const LEN: usize = 32; [INFO] [stdout] 142 | const ADDRESS_CHECKSUM_LEN: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_address` is never used [INFO] [stdout] --> src/keys/public.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn to_address(public: &Public, serializer: S) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_address` is never used [INFO] [stdout] --> src/keys/public.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn from_address<'de, D>(deserializer: D) -> Result>::Error> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/seed.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | hexify!(Seed, "seed"); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/signature.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | hexify!(Signature, "signature"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/work.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | hexify!(Work, "work"); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `zero`, `random`, and `generate` are never used [INFO] [stdout] --> src/keys/work.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Work { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn generate(subject: &Hash, threshold: Difficulty) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `get`, `contains`, `clear`, and `iter` are never used [INFO] [stdout] --> src/network/center_map.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl> CenterMap { [INFO] [stdout] | ----------------------------------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn remove(&mut self, key: K) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn get(&self, key: &K) -> Option<&V> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn contains(&self, key: &K) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ZSTD_LEVEL` is never used [INFO] [stdout] --> src/network/compress.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const ZSTD_LEVEL: i32 = 6; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compress` is never used [INFO] [stdout] --> src/network/compress.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn compress(bytes: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decompress` is never used [INFO] [stdout] --> src/network/compress.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn decompress(bytes: &[u8], max_size: Option) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DATA_TO_TOTAL` is never used [INFO] [stdout] --> src/network/shred.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const DATA_TO_TOTAL: [usize; 33] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DATA_SHREDS_PER_FULL_BATCH` is never used [INFO] [stdout] --> src/network/shred.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const DATA_SHREDS_PER_FULL_BATCH: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOTAL_SHREDS_PER_FULL_BATCH` is never used [INFO] [stdout] --> src/network/shred.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const TOTAL_SHREDS_PER_FULL_BATCH: usize = DATA_TO_TOTAL[DATA_SHREDS_PER_FULL_BATCH]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache` is never read [INFO] [stdout] --> src/network/shred.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct ReedSolomonCache { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 31 | cache: Mutex>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/network/shred.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl ReedSolomonCache { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | fn get(&self, data_shreds: usize, parity_shreds: usize) -> Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `shred`, `get_batch_index`, and `get_shred_index` are never used [INFO] [stdout] --> src/network/shred.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Shred { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn shred(data: &[u8], chunk_len: u32) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn get_batch_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn get_shred_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BatchItem` is never constructed [INFO] [stdout] --> src/network/shred.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | struct BatchItem(Vec); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Batch` is never constructed [INFO] [stdout] --> src/network/shred.rs:260:8 [INFO] [stdout] | [INFO] [stdout] 260 | struct Batch { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `need_shred`, `try_provide`, `data_size`, `can_reconstruct`, and `try_reconstruct` are never used [INFO] [stdout] --> src/network/shred.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 273 | impl Batch { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 274 | // Creates a new empty batch [INFO] [stdout] 275 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn need_shred(&self, shred_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | pub fn try_provide(&mut self, shred: Shred) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 339 | pub fn data_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | pub fn can_reconstruct(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 349 | pub fn try_reconstruct(&mut self, out: &mut Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShredList` is never constructed [INFO] [stdout] --> src/network/shred.rs:373:12 [INFO] [stdout] | [INFO] [stdout] 373 | pub struct ShredList { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `try_provide`, `can_reconstruct`, `try_reconstruct`, and `need_shred` are never used [INFO] [stdout] --> src/network/shred.rs:388:12 [INFO] [stdout] | [INFO] [stdout] 386 | impl ShredList { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 387 | // Creates a new ShredList with the specified maximum data size [INFO] [stdout] 388 | pub fn new(max_data_size: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 399 | pub fn try_provide(&mut self, shred: Shred) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 449 | pub fn can_reconstruct(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 455 | pub fn try_reconstruct(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 482 | pub fn need_shred(&self, batch_index: usize, shred_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `batch`, `finalized_balance`, `weight`, `nonce`, and `rep` are never read [INFO] [stdout] --> src/node/account.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | pub batch: Batch, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | pub latest_balance: Amount, [INFO] [stdout] 12 | pub finalized_balance: Amount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub weight: Amount, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub nonce: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub rep: Public, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bank` is never constructed [INFO] [stdout] --> src/node/bank.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Bank { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node/bank.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Bank { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(genesis: Public) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn new_batch(&self) -> Batch { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn update_account Result>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn insert_or_update_account T, G: FnMut() -> Account>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn get_account(&self, key: &Public) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn queue_transaction(&self, tr: &Transaction, batch: Batch) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn finish_transaction(&self, tr: &Transaction, batch: Batch) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | fn revert_transaction(&self, tx: &Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn finalize_transaction(&self, tx: &Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn process_block(&self, block: &Block) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn finish_block(&self, block: Block, batch: Batch) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | pub fn revert_block(&self, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn finalize_block(&self, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn get_latest_finalized_and_nonce(&self, public: &Public) -> (Amount, Amount, u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BatchFactory` is never constructed [INFO] [stdout] --> src/node/batch.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct BatchFactory(AtomicU64); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `next` are never used [INFO] [stdout] --> src/node/batch.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl BatchFactory { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn next(&self) -> Batch { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/node/block.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merkle_row` is never used [INFO] [stdout] --> src/node/block.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn merkle_row(hashes: &[Hash]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merkle_root` is never used [INFO] [stdout] --> src/node/block.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn merkle_root(hashes: Vec) -> Hash { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `hash_inner`, `genesis`, `is_genesis`, and `verify_and_hash` are never used [INFO] [stdout] --> src/node/block.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 42 | fn hash_inner(slot: Slot, previous: &Hash, tx_hash: &Hash, vote_hash: &Hash) -> Hash { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn genesis(private: Private) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn is_genesis(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn verify_and_hash(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chain` is never constructed [INFO] [stdout] --> src/node/chain.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Chain { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `finalize_hash`, and `add_block` are never used [INFO] [stdout] --> src/node/chain.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Chain { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(genesis_block: Rc) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn finalize_hash(&mut self, h: Hash) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn add_block(&mut self, block: Rc) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/node/dag.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dag` is never constructed [INFO] [stdout] --> src/node/dag.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Dag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_a_taller_than_b` is never used [INFO] [stdout] --> src/node/dag.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn is_a_taller_than_b(a: (u64, &K), b: (u64, &K)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node/dag.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Dag { [INFO] [stdout] | --------------------------------------- associated items in this implementation [INFO] [stdout] 45 | /// Creates a new Dag. [INFO] [stdout] 46 | pub fn new(root_k: K, root_v: V) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn get_longest_chain(&self) -> (&K, &V) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn insert(&mut self, key: K, value: V, prev: K) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn remove(&mut self, key: K) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn iter_node_and_ancestors(&self, key: K) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn iter_node_and_descendants(&self, key: K) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn get_common_ancestor(&self, mut k1: K, mut k2: K) -> Option<(&K, &V)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn get(&self, k: &K) -> Option<&V> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn get_path(&self, from: K, to: K) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn get_root(&self) -> (&K, &V) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn set_root(&mut self, key: K) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MempoolEntry` is never constructed [INFO] [stdout] --> src/node/mempool.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct MempoolEntry(Box); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mempool` is never constructed [INFO] [stdout] --> src/node/mempool.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Mempool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, and `drain` are never used [INFO] [stdout] --> src/node/mempool.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Mempool { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 30 | pub fn new(size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn insert(&mut self, tr: Box, d: Difficulty) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn drain(&mut self) -> impl Iterator> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RAW_PER_UNIT` is never used [INFO] [stdout] --> src/protocol/amount.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const RAW_PER_UNIT: u64 = 10_000_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_raw`, `to_unit`, `from_unit`, `initial_supply`, `max`, and `from_bytes` are never used [INFO] [stdout] --> src/protocol/amount.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl Amount { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub const fn to_raw(self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn to_unit(self) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn from_unit(value: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub const fn initial_supply() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub const fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub const fn from_bytes(bytes: [u8; 8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/protocol/epoch.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 8 | impl Epoch { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 9 | pub const LEN: usize = 86400; [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | pub const fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub const fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub const fn to_bytes(self) -> [u8; 8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get(self, i: usize) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn index_of(self, slot: Slot) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_CONSECUTIVE_LEADER_SLOTS` is never used [INFO] [stdout] --> src/protocol/leader_schedule.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const NUM_CONSECUTIVE_LEADER_SLOTS: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LeaderSchedule` is never constructed [INFO] [stdout] --> src/protocol/leader_schedule.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LeaderSchedule { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `empty`, `fill`, and `get` are never used [INFO] [stdout] --> src/protocol/leader_schedule.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl LeaderSchedule { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 20 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn fill( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get(&self, slot: Slot) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/protocol/pair.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zero`, `previous`, `from_bytes`, `max`, and `epoch` are never used [INFO] [stdout] --> src/protocol/slot.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Slot { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 13 | pub fn zero() -> Slot { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn previous(self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub const fn from_bytes(bytes: [u8; 8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn epoch(self) -> Epoch { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vote` is never constructed [INFO] [stdout] --> src/protocol/vote.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vote { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_and_hash` is never used [INFO] [stdout] --> src/protocol/vote.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Vote { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 15 | pub fn verify_and_hash(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/util/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn serialize(value: &T) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UninitVec` is never used [INFO] [stdout] --> src/util/mod.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub trait UninitVec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UninitBitVec` is never used [INFO] [stdout] --> src/util/mod.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub trait UninitBitVec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_formatter` is never used [INFO] [stdout] --> src/util/encoding.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn hex_formatter(f: &mut std::fmt::Formatter<'_>, bytes: &[u8]) -> std::fmt::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_formatter_lower` is never used [INFO] [stdout] --> src/util/encoding.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn hex_formatter_lower(f: &mut std::fmt::Formatter<'_>, bytes: &[u8]) -> std::fmt::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_list_from_str` is never used [INFO] [stdout] --> src/util/encoding.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn deserialize_list_from_str<'de, T, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ALPHABET` is never used [INFO] [stdout] --> src/util/encoding.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | static ALPHABET: &str = "13456789abcdefghijkmnopqrstuwxyz"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENCODING_BITS` is never used [INFO] [stdout] --> src/util/encoding.rs:109:7 [INFO] [stdout] | [INFO] [stdout] 109 | const ENCODING_BITS: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_slt_base_32` is never used [INFO] [stdout] --> src/util/encoding.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn encode_slt_base_32(bits: &BitSlice) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_slt_base_32` is never used [INFO] [stdout] --> src/util/encoding.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | fn decode_slt_base_32(s: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `len_err_msg` is never used [INFO] [stdout] --> src/util/encoding.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn len_err_msg(got_len: usize, expected_len: usize, msg: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `unknown` and `is_unknown` are never used [INFO] [stdout] --> src/util/version.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Version { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn unknown() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn is_unknown(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 104 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from_le_slice` are never used [INFO] [stdout] --> src/keys/difficulty.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl Difficulty { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub const fn new(v: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn from_le_slice(s: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zero` is never used [INFO] [stdout] --> src/keys/hash.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 27 | impl Hash { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub const fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/private.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | hexify!(Private, "private key"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `random` and `to_address` are never used [INFO] [stdout] --> src/keys/private.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Private { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn to_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ADDRESS_CHECKSUM_LEN` is never used [INFO] [stdout] --> src/keys/public.rs:142:11 [INFO] [stdout] | [INFO] [stdout] 140 | impl Public { [INFO] [stdout] | ----------- associated constant in this implementation [INFO] [stdout] 141 | const LEN: usize = 32; [INFO] [stdout] 142 | const ADDRESS_CHECKSUM_LEN: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_address` is never used [INFO] [stdout] --> src/keys/public.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn to_address(public: &Public, serializer: S) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_address` is never used [INFO] [stdout] --> src/keys/public.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn from_address<'de, D>(deserializer: D) -> Result>::Error> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/seed.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | hexify!(Seed, "seed"); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/signature.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | hexify!(Signature, "signature"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/work.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | hexify!(Work, "work"); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `zero` and `random` are never used [INFO] [stdout] --> src/keys/work.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Work { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove` and `iter` are never used [INFO] [stdout] --> src/network/center_map.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl> CenterMap { [INFO] [stdout] | ----------------------------------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn remove(&mut self, key: K) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_batch_index` and `get_shred_index` are never used [INFO] [stdout] --> src/network/shred.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Shred { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn get_batch_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn get_shred_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `need_shred` is never used [INFO] [stdout] --> src/network/shred.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 273 | impl Batch { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn need_shred(&self, shred_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `need_shred` is never used [INFO] [stdout] --> src/network/shred.rs:482:12 [INFO] [stdout] | [INFO] [stdout] 386 | impl ShredList { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 482 | pub fn need_shred(&self, batch_index: usize, shred_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `batch`, `finalized_balance`, `weight`, `nonce`, and `rep` are never read [INFO] [stdout] --> src/node/account.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | pub batch: Batch, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | pub latest_balance: Amount, [INFO] [stdout] 12 | pub finalized_balance: Amount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub weight: Amount, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub nonce: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub rep: Public, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bank` is never constructed [INFO] [stdout] --> src/node/bank.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Bank { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node/bank.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Bank { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(genesis: Public) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn new_batch(&self) -> Batch { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn update_account Result>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn insert_or_update_account T, G: FnMut() -> Account>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn get_account(&self, key: &Public) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn queue_transaction(&self, tr: &Transaction, batch: Batch) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn finish_transaction(&self, tr: &Transaction, batch: Batch) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | fn revert_transaction(&self, tx: &Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn finalize_transaction(&self, tx: &Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn process_block(&self, block: &Block) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn finish_block(&self, block: Block, batch: Batch) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | pub fn revert_block(&self, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn finalize_block(&self, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn get_latest_finalized_and_nonce(&self, public: &Public) -> (Amount, Amount, u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BatchFactory` is never constructed [INFO] [stdout] --> src/node/batch.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct BatchFactory(AtomicU64); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `next` are never used [INFO] [stdout] --> src/node/batch.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl BatchFactory { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn next(&self) -> Batch { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/node/block.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merkle_row` is never used [INFO] [stdout] --> src/node/block.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn merkle_row(hashes: &[Hash]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merkle_root` is never used [INFO] [stdout] --> src/node/block.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn merkle_root(hashes: Vec) -> Hash { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `hash_inner`, `genesis`, `is_genesis`, and `verify_and_hash` are never used [INFO] [stdout] --> src/node/block.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 42 | fn hash_inner(slot: Slot, previous: &Hash, tx_hash: &Hash, vote_hash: &Hash) -> Hash { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn genesis(private: Private) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn is_genesis(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn verify_and_hash(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chain` is never constructed [INFO] [stdout] --> src/node/chain.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Chain { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `finalize_hash`, and `add_block` are never used [INFO] [stdout] --> src/node/chain.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Chain { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(genesis_block: Rc) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn finalize_hash(&mut self, h: Hash) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn add_block(&mut self, block: Rc) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `get`, `get_path`, and `get_root` are never used [INFO] [stdout] --> src/node/dag.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Dag { [INFO] [stdout] | --------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn remove(&mut self, key: K) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn get(&self, k: &K) -> Option<&V> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn get_path(&self, from: K, to: K) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn get_root(&self) -> (&K, &V) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MempoolEntry` is never constructed [INFO] [stdout] --> src/node/mempool.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct MempoolEntry(Box); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mempool` is never constructed [INFO] [stdout] --> src/node/mempool.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Mempool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, and `drain` are never used [INFO] [stdout] --> src/node/mempool.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Mempool { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 30 | pub fn new(size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn insert(&mut self, tr: Box, d: Difficulty) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn drain(&mut self) -> impl Iterator> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `max` and `from_bytes` are never used [INFO] [stdout] --> src/protocol/amount.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl Amount { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub const fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub const fn from_bytes(bytes: [u8; 8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/protocol/epoch.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 8 | impl Epoch { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 9 | pub const LEN: usize = 86400; [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | pub const fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub const fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub const fn to_bytes(self) -> [u8; 8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get(self, i: usize) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn index_of(self, slot: Slot) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_CONSECUTIVE_LEADER_SLOTS` is never used [INFO] [stdout] --> src/protocol/leader_schedule.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const NUM_CONSECUTIVE_LEADER_SLOTS: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LeaderSchedule` is never constructed [INFO] [stdout] --> src/protocol/leader_schedule.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LeaderSchedule { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `empty`, `fill`, and `get` are never used [INFO] [stdout] --> src/protocol/leader_schedule.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl LeaderSchedule { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 20 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn fill( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get(&self, slot: Slot) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/protocol/pair.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zero`, `previous`, `from_bytes`, `max`, and `epoch` are never used [INFO] [stdout] --> src/protocol/slot.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Slot { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 13 | pub fn zero() -> Slot { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn previous(self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub const fn from_bytes(bytes: [u8; 8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn epoch(self) -> Epoch { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vote` is never constructed [INFO] [stdout] --> src/protocol/vote.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vote { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_and_hash` is never used [INFO] [stdout] --> src/protocol/vote.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Vote { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 15 | pub fn verify_and_hash(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/util/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn serialize(value: &T) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_formatter` is never used [INFO] [stdout] --> src/util/encoding.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn hex_formatter(f: &mut std::fmt::Formatter<'_>, bytes: &[u8]) -> std::fmt::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_formatter_lower` is never used [INFO] [stdout] --> src/util/encoding.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn hex_formatter_lower(f: &mut std::fmt::Formatter<'_>, bytes: &[u8]) -> std::fmt::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_list_from_str` is never used [INFO] [stdout] --> src/util/encoding.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn deserialize_list_from_str<'de, T, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `len_err_msg` is never used [INFO] [stdout] --> src/util/encoding.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn len_err_msg(got_len: usize, expected_len: usize, msg: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `unknown` and `is_unknown` are never used [INFO] [stdout] --> src/util/version.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Version { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn unknown() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn is_unknown(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 76 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 39.68s [INFO] running `Command { std: "docker" "inspect" "de4d4a074441b91242c4fbc8ee7d721db8011d9cf5bc3e974c01d62ce8fc676e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de4d4a074441b91242c4fbc8ee7d721db8011d9cf5bc3e974c01d62ce8fc676e", kill_on_drop: false }` [INFO] [stdout] de4d4a074441b91242c4fbc8ee7d721db8011d9cf5bc3e974c01d62ce8fc676e [INFO] checking thooton/starlight-node against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthooton%2Fstarlight-node" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/thooton/starlight-node on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/thooton/starlight-node [INFO] finished tweaking git repo https://github.com/thooton/starlight-node [INFO] tweaked toml for git repo https://github.com/thooton/starlight-node written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/thooton/starlight-node 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 824f96476cc2a75e7272a54e8d3f7d26674ab7845e88c551790f0e014963b031 [INFO] running `Command { std: "docker" "start" "-a" "824f96476cc2a75e7272a54e8d3f7d26674ab7845e88c551790f0e014963b031", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "824f96476cc2a75e7272a54e8d3f7d26674ab7845e88c551790f0e014963b031", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "824f96476cc2a75e7272a54e8d3f7d26674ab7845e88c551790f0e014963b031", kill_on_drop: false }` [INFO] [stdout] 824f96476cc2a75e7272a54e8d3f7d26674ab7845e88c551790f0e014963b031 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e48ab397a5270d687c11d8144dc0cfa039c9cddeb7215fe256d6d12581df34d7 [INFO] running `Command { std: "docker" "start" "-a" "e48ab397a5270d687c11d8144dc0cfa039c9cddeb7215fe256d6d12581df34d7", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling static_init_macro v1.0.2 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling priority-queue v1.4.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking indexmap v2.2.5 [INFO] [stderr] Compiling jobserver v0.1.28 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling static_init v1.0.3 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling cc v1.0.90 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Compiling zstd-safe v7.0.0 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking winnow v0.6.5 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Compiling reed-solomon-erasure v6.0.0 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking ed25519 v1.5.3 [INFO] [stderr] Checking blake2 v0.9.2 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking lru v0.7.8 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking arrayref v0.3.7 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking constant_time_eq v0.3.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking fixed-hash v0.8.0 [INFO] [stderr] Checking chrono v0.4.35 [INFO] [stderr] Checking primitive-types v0.12.2 [INFO] [stderr] Checking priority-queue v2.0.2 [INFO] [stderr] Checking blake2b_simd v1.0.2 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Checking leapfrog v0.3.0 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Compiling zstd-sys v2.0.9+zstd.1.5.5 [INFO] [stderr] Checking topk v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Checking tokio v1.36.0 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Checking hyper v1.2.0 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking ed25519-dalek-blake2-feeless v1.0.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking toml_edit v0.22.9 [INFO] [stderr] Checking toml v0.8.12 [INFO] [stderr] Checking starlight-node v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `log_trace` [INFO] [stdout] --> src/app/log.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | macro_rules! log_trace { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_debug` [INFO] [stdout] --> src/app/log.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | macro_rules! log_debug { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_critical` [INFO] [stdout] --> src/app/log.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | macro_rules! log_critical { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Endpoint` [INFO] [stdout] --> src/app/mod.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::network::{Endpoint, Network}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Private`, `Seed` [INFO] [stdout] --> src/app/mod.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | keys::{Identity, Private, Seed}, [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/app/mod.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::FromStr` [INFO] [stdout] --> src/app/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/keys/difficulty.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/keys/work.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Private`, `Signature`, `UninitVec`, `self` [INFO] [stdout] --> src/network/network.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | keys::{Identity, Private, Public, Signature}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 13 | protocol::{Amount, Slot, Transaction}, [INFO] [stdout] 14 | util::{self, DefaultInitVec, Error, UninitVec, Version}, [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shred` [INFO] [stdout] --> src/network/network.rs:17:67 [INFO] [stdout] | [INFO] [stdout] 17 | use super::{models::TelemetryMsg, CenterMap, Endpoint, Msg, Peer, Shred, ShredMsg}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CenterMapValue` [INFO] [stdout] --> src/network/mod.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use center_map::{CenterMap, CenterMapValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `compress`, `decompress` [INFO] [stdout] --> src/network/mod.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use compress::{compress, decompress}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TelemetryMsg` [INFO] [stdout] --> src/network/mod.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 10 | use models::{Msg, Peer, ShredMsg, TelemetryMsg}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Slot` [INFO] [stdout] --> src/node/account.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | protocol::{Amount, Slot}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Epoch` [INFO] [stdout] --> src/node/bank.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::protocol::{Amount, Epoch, Transaction, TransactionKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protocol::Amount` [INFO] [stdout] --> src/node/chain.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{error, keys::Hash, protocol::Amount, util::Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Visitable` [INFO] [stdout] --> src/node/dag.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | visit::{Dfs, Visitable, Walker}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chain::Chain` [INFO] [stdout] --> src/node/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use chain::Chain; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mempool::Mempool` [INFO] [stdout] --> src/node/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use mempool::Mempool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/protocol/slot.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{Instant, SystemTime}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `leader_schedule::LeaderSchedule` [INFO] [stdout] --> src/protocol/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leader_schedule::LeaderSchedule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AccountBalanceRequest`, `AccountBalanceResponse` [INFO] [stdout] --> src/rpc/mod.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | pub use account_balance::{AccountBalanceRequest, AccountBalanceResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WorkGenerateRequest`, `WorkGenerateResponse` [INFO] [stdout] --> src/rpc/mod.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | pub use work_generate::{WorkGenerateRequest, WorkGenerateResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UpperHex` [INFO] [stdout] --> src/util/encoding.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::{Display, UpperHex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deserialize_list_from_str` [INFO] [stdout] --> src/util/mod.rs:9:52 [INFO] [stdout] | [INFO] [stdout] 9 | deserialize_from_str, deserialize_from_string, deserialize_list_from_str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_trace` [INFO] [stdout] --> src/app/log.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | macro_rules! log_trace { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_debug` [INFO] [stdout] --> src/app/log.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | macro_rules! log_debug { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `log_critical` [INFO] [stdout] --> src/app/log.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | macro_rules! log_critical { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Endpoint` [INFO] [stdout] --> src/app/mod.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::network::{Endpoint, Network}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Private`, `Seed` [INFO] [stdout] --> src/app/mod.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | keys::{Identity, Private, Seed}, [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize`, `Serialize` [INFO] [stdout] --> src/app/mod.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::FromStr` [INFO] [stdout] --> src/app/mod.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | str::FromStr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/keys/difficulty.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TryFrom` is imported redundantly [INFO] [stdout] --> src/keys/work.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/645bb72776a6a56a1a8f52631a44bd082b2ba509/library/std/src/prelude/mod.rs:148:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `TryFrom` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::keys::Seed` [INFO] [stdout] --> src/keys/work.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | use crate::keys::Seed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Private`, `Signature`, `UninitVec`, `self` [INFO] [stdout] --> src/network/network.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | keys::{Identity, Private, Public, Signature}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 13 | protocol::{Amount, Slot, Transaction}, [INFO] [stdout] 14 | util::{self, DefaultInitVec, Error, UninitVec, Version}, [INFO] [stdout] | ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Shred` [INFO] [stdout] --> src/network/network.rs:17:67 [INFO] [stdout] | [INFO] [stdout] 17 | use super::{models::TelemetryMsg, CenterMap, Endpoint, Msg, Peer, Shred, ShredMsg}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CenterMapValue` [INFO] [stdout] --> src/network/mod.rs:8:29 [INFO] [stdout] | [INFO] [stdout] 8 | use center_map::{CenterMap, CenterMapValue}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `compress`, `decompress` [INFO] [stdout] --> src/network/mod.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use compress::{compress, decompress}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TelemetryMsg` [INFO] [stdout] --> src/network/mod.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 10 | use models::{Msg, Peer, ShredMsg, TelemetryMsg}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Slot` [INFO] [stdout] --> src/node/account.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | protocol::{Amount, Slot}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Epoch` [INFO] [stdout] --> src/node/bank.rs:3:31 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::protocol::{Amount, Epoch, Transaction, TransactionKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `protocol::Amount` [INFO] [stdout] --> src/node/chain.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{error, keys::Hash, protocol::Amount, util::Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Visitable` [INFO] [stdout] --> src/node/dag.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | visit::{Dfs, Visitable, Walker}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chain::Chain` [INFO] [stdout] --> src/node/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use chain::Chain; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mempool::Mempool` [INFO] [stdout] --> src/node/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use mempool::Mempool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Instant` [INFO] [stdout] --> src/protocol/slot.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::{Instant, SystemTime}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `leader_schedule::LeaderSchedule` [INFO] [stdout] --> src/protocol/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use leader_schedule::LeaderSchedule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AccountBalanceRequest`, `AccountBalanceResponse` [INFO] [stdout] --> src/rpc/mod.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | pub use account_balance::{AccountBalanceRequest, AccountBalanceResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WorkGenerateRequest`, `WorkGenerateResponse` [INFO] [stdout] --> src/rpc/mod.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | pub use work_generate::{WorkGenerateRequest, WorkGenerateResponse}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UpperHex` [INFO] [stdout] --> src/util/encoding.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | use std::fmt::{Display, UpperHex}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deserialize_list_from_str` [INFO] [stdout] --> src/util/mod.rs:9:52 [INFO] [stdout] | [INFO] [stdout] 9 | deserialize_from_str, deserialize_from_string, deserialize_list_from_str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/network/network.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/network/network.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/keys/hash.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut v = [0u8; 32]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/keys/hash.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut v = [0u8; 32]; [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: unused import: `Serialize` [INFO] [stdout] --> src/network/network.rs:4:26 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/network/network.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/keys/hash.rs:58:17 [INFO] [stdout] | [INFO] [stdout] 58 | let mut v = [0u8; 32]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/keys/hash.rs:58:13 [INFO] [stdout] | [INFO] [stdout] 58 | let mut v = [0u8; 32]; [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 items `new`, `from_le_slice`, and `as_u64` are never used [INFO] [stdout] --> src/keys/difficulty.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl Difficulty { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub const fn new(v: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn from_le_slice(s: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn as_u64(&self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `random` and `zero` are never used [INFO] [stdout] --> src/keys/hash.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Hash { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub const fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/private.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | hexify!(Private, "private key"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zero`, `random`, and `to_address` are never used [INFO] [stdout] --> src/keys/private.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 16 | impl Private { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub(super) const fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn to_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_to_u512` is never used [INFO] [stdout] --> src/keys/public.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn decode_to_u512(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_valid` is never used [INFO] [stdout] --> src/keys/public.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn is_valid(s: &str) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `checksum_bytes` is never used [INFO] [stdout] --> src/keys/public.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn checksum_bytes(number: U512) -> [u8; 5] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `account_bytes` is never used [INFO] [stdout] --> src/keys/public.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn account_bytes(number: U512) -> [u8; 32] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_byte` is never used [INFO] [stdout] --> src/keys/public.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn decode_byte(character: char) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ACCOUNT_REVERSE` is never used [INFO] [stdout] --> src/keys/public.rs:83:7 [INFO] [stdout] | [INFO] [stdout] 83 | const ACCOUNT_REVERSE: &[char] = &[ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `account_decode` is never used [INFO] [stdout] --> src/keys/public.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn account_decode(value: u8) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_address` is never used [INFO] [stdout] --> src/keys/public.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl Public { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn from_address(address: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ADDRESS_CHECKSUM_LEN` is never used [INFO] [stdout] --> src/keys/public.rs:142:11 [INFO] [stdout] | [INFO] [stdout] 140 | impl Public { [INFO] [stdout] | ----------- associated constant in this implementation [INFO] [stdout] 141 | const LEN: usize = 32; [INFO] [stdout] 142 | const ADDRESS_CHECKSUM_LEN: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_address` is never used [INFO] [stdout] --> src/keys/public.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn to_address(public: &Public, serializer: S) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_address` is never used [INFO] [stdout] --> src/keys/public.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn from_address<'de, D>(deserializer: D) -> Result>::Error> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/seed.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | hexify!(Seed, "seed"); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/signature.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | hexify!(Signature, "signature"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/work.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | hexify!(Work, "work"); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `zero`, `random`, and `generate` are never used [INFO] [stdout] --> src/keys/work.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Work { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn generate(subject: &Hash, threshold: Difficulty) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `get`, `contains`, `clear`, and `iter` are never used [INFO] [stdout] --> src/network/center_map.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl> CenterMap { [INFO] [stdout] | ----------------------------------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn remove(&mut self, key: K) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 223 | pub fn get(&self, key: &K) -> Option<&V> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn contains(&self, key: &K) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 251 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ZSTD_LEVEL` is never used [INFO] [stdout] --> src/network/compress.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const ZSTD_LEVEL: i32 = 6; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compress` is never used [INFO] [stdout] --> src/network/compress.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn compress(bytes: &[u8]) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decompress` is never used [INFO] [stdout] --> src/network/compress.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn decompress(bytes: &[u8], max_size: Option) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DATA_TO_TOTAL` is never used [INFO] [stdout] --> src/network/shred.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const DATA_TO_TOTAL: [usize; 33] = [ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DATA_SHREDS_PER_FULL_BATCH` is never used [INFO] [stdout] --> src/network/shred.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 27 | const DATA_SHREDS_PER_FULL_BATCH: usize = 32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOTAL_SHREDS_PER_FULL_BATCH` is never used [INFO] [stdout] --> src/network/shred.rs:28:7 [INFO] [stdout] | [INFO] [stdout] 28 | const TOTAL_SHREDS_PER_FULL_BATCH: usize = DATA_TO_TOTAL[DATA_SHREDS_PER_FULL_BATCH]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cache` is never read [INFO] [stdout] --> src/network/shred.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | struct ReedSolomonCache { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 31 | cache: Mutex>>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/network/shred.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 34 | impl ReedSolomonCache { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | fn get(&self, data_shreds: usize, parity_shreds: usize) -> Arc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `shred`, `get_batch_index`, and `get_shred_index` are never used [INFO] [stdout] --> src/network/shred.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Shred { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn shred(data: &[u8], chunk_len: u32) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn get_batch_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn get_shred_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BatchItem` is never constructed [INFO] [stdout] --> src/network/shred.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | struct BatchItem(Vec); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Batch` is never constructed [INFO] [stdout] --> src/network/shred.rs:260:8 [INFO] [stdout] | [INFO] [stdout] 260 | struct Batch { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `need_shred`, `try_provide`, `data_size`, `can_reconstruct`, and `try_reconstruct` are never used [INFO] [stdout] --> src/network/shred.rs:275:12 [INFO] [stdout] | [INFO] [stdout] 273 | impl Batch { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 274 | // Creates a new empty batch [INFO] [stdout] 275 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn need_shred(&self, shred_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 300 | pub fn try_provide(&mut self, shred: Shred) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 339 | pub fn data_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | pub fn can_reconstruct(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 349 | pub fn try_reconstruct(&mut self, out: &mut Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ShredList` is never constructed [INFO] [stdout] --> src/network/shred.rs:373:12 [INFO] [stdout] | [INFO] [stdout] 373 | pub struct ShredList { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `try_provide`, `can_reconstruct`, `try_reconstruct`, and `need_shred` are never used [INFO] [stdout] --> src/network/shred.rs:388:12 [INFO] [stdout] | [INFO] [stdout] 386 | impl ShredList { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 387 | // Creates a new ShredList with the specified maximum data size [INFO] [stdout] 388 | pub fn new(max_data_size: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 399 | pub fn try_provide(&mut self, shred: Shred) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 449 | pub fn can_reconstruct(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 455 | pub fn try_reconstruct(&mut self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 482 | pub fn need_shred(&self, batch_index: usize, shred_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `batch`, `finalized_balance`, `weight`, `nonce`, and `rep` are never read [INFO] [stdout] --> src/node/account.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | pub batch: Batch, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | pub latest_balance: Amount, [INFO] [stdout] 12 | pub finalized_balance: Amount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub weight: Amount, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub nonce: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub rep: Public, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bank` is never constructed [INFO] [stdout] --> src/node/bank.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Bank { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node/bank.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Bank { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(genesis: Public) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn new_batch(&self) -> Batch { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn update_account Result>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn insert_or_update_account T, G: FnMut() -> Account>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn get_account(&self, key: &Public) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn queue_transaction(&self, tr: &Transaction, batch: Batch) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn finish_transaction(&self, tr: &Transaction, batch: Batch) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | fn revert_transaction(&self, tx: &Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn finalize_transaction(&self, tx: &Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn process_block(&self, block: &Block) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn finish_block(&self, block: Block, batch: Batch) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | pub fn revert_block(&self, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn finalize_block(&self, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn get_latest_finalized_and_nonce(&self, public: &Public) -> (Amount, Amount, u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BatchFactory` is never constructed [INFO] [stdout] --> src/node/batch.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct BatchFactory(AtomicU64); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `next` are never used [INFO] [stdout] --> src/node/batch.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl BatchFactory { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn next(&self) -> Batch { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/node/block.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merkle_row` is never used [INFO] [stdout] --> src/node/block.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn merkle_row(hashes: &[Hash]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merkle_root` is never used [INFO] [stdout] --> src/node/block.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn merkle_root(hashes: Vec) -> Hash { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `hash_inner`, `genesis`, `is_genesis`, and `verify_and_hash` are never used [INFO] [stdout] --> src/node/block.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 42 | fn hash_inner(slot: Slot, previous: &Hash, tx_hash: &Hash, vote_hash: &Hash) -> Hash { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn genesis(private: Private) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn is_genesis(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn verify_and_hash(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chain` is never constructed [INFO] [stdout] --> src/node/chain.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Chain { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `finalize_hash`, and `add_block` are never used [INFO] [stdout] --> src/node/chain.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Chain { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(genesis_block: Rc) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn finalize_hash(&mut self, h: Hash) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn add_block(&mut self, block: Rc) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> src/node/dag.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dag` is never constructed [INFO] [stdout] --> src/node/dag.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Dag { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_a_taller_than_b` is never used [INFO] [stdout] --> src/node/dag.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn is_a_taller_than_b(a: (u64, &K), b: (u64, &K)) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node/dag.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Dag { [INFO] [stdout] | --------------------------------------- associated items in this implementation [INFO] [stdout] 45 | /// Creates a new Dag. [INFO] [stdout] 46 | pub fn new(root_k: K, root_v: V) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn get_longest_chain(&self) -> (&K, &V) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn insert(&mut self, key: K, value: V, prev: K) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn remove(&mut self, key: K) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn iter_node_and_ancestors(&self, key: K) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn iter_node_and_descendants(&self, key: K) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn get_common_ancestor(&self, mut k1: K, mut k2: K) -> Option<(&K, &V)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn get(&self, k: &K) -> Option<&V> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn get_path(&self, from: K, to: K) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn get_root(&self) -> (&K, &V) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 187 | pub fn set_root(&mut self, key: K) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MempoolEntry` is never constructed [INFO] [stdout] --> src/node/mempool.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct MempoolEntry(Box); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mempool` is never constructed [INFO] [stdout] --> src/node/mempool.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Mempool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, and `drain` are never used [INFO] [stdout] --> src/node/mempool.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Mempool { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 30 | pub fn new(size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn insert(&mut self, tr: Box, d: Difficulty) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn drain(&mut self) -> impl Iterator> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RAW_PER_UNIT` is never used [INFO] [stdout] --> src/protocol/amount.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const RAW_PER_UNIT: u64 = 10_000_000_000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `to_raw`, `to_unit`, `from_unit`, `initial_supply`, `max`, and `from_bytes` are never used [INFO] [stdout] --> src/protocol/amount.rs:18:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl Amount { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub const fn to_raw(self) -> u64 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn to_unit(self) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn from_unit(value: f32) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub const fn initial_supply() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub const fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub const fn from_bytes(bytes: [u8; 8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/protocol/epoch.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 8 | impl Epoch { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 9 | pub const LEN: usize = 86400; [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | pub const fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub const fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub const fn to_bytes(self) -> [u8; 8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get(self, i: usize) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn index_of(self, slot: Slot) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_CONSECUTIVE_LEADER_SLOTS` is never used [INFO] [stdout] --> src/protocol/leader_schedule.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const NUM_CONSECUTIVE_LEADER_SLOTS: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LeaderSchedule` is never constructed [INFO] [stdout] --> src/protocol/leader_schedule.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LeaderSchedule { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `empty`, `fill`, and `get` are never used [INFO] [stdout] --> src/protocol/leader_schedule.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl LeaderSchedule { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 20 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn fill( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get(&self, slot: Slot) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/protocol/pair.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zero`, `previous`, `from_bytes`, `max`, and `epoch` are never used [INFO] [stdout] --> src/protocol/slot.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Slot { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 13 | pub fn zero() -> Slot { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn previous(self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub const fn from_bytes(bytes: [u8; 8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn epoch(self) -> Epoch { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vote` is never constructed [INFO] [stdout] --> src/protocol/vote.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vote { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_and_hash` is never used [INFO] [stdout] --> src/protocol/vote.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Vote { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 15 | pub fn verify_and_hash(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/util/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn serialize(value: &T) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UninitVec` is never used [INFO] [stdout] --> src/util/mod.rs:35:11 [INFO] [stdout] | [INFO] [stdout] 35 | pub trait UninitVec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `UninitBitVec` is never used [INFO] [stdout] --> src/util/mod.rs:45:11 [INFO] [stdout] | [INFO] [stdout] 45 | pub trait UninitBitVec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_formatter` is never used [INFO] [stdout] --> src/util/encoding.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn hex_formatter(f: &mut std::fmt::Formatter<'_>, bytes: &[u8]) -> std::fmt::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_formatter_lower` is never used [INFO] [stdout] --> src/util/encoding.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn hex_formatter_lower(f: &mut std::fmt::Formatter<'_>, bytes: &[u8]) -> std::fmt::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_list_from_str` is never used [INFO] [stdout] --> src/util/encoding.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn deserialize_list_from_str<'de, T, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ALPHABET` is never used [INFO] [stdout] --> src/util/encoding.rs:108:8 [INFO] [stdout] | [INFO] [stdout] 108 | static ALPHABET: &str = "13456789abcdefghijkmnopqrstuwxyz"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ENCODING_BITS` is never used [INFO] [stdout] --> src/util/encoding.rs:109:7 [INFO] [stdout] | [INFO] [stdout] 109 | const ENCODING_BITS: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `encode_slt_base_32` is never used [INFO] [stdout] --> src/util/encoding.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn encode_slt_base_32(bits: &BitSlice) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_slt_base_32` is never used [INFO] [stdout] --> src/util/encoding.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 127 | fn decode_slt_base_32(s: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `len_err_msg` is never used [INFO] [stdout] --> src/util/encoding.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn len_err_msg(got_len: usize, expected_len: usize, msg: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `unknown` and `is_unknown` are never used [INFO] [stdout] --> src/util/version.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Version { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn unknown() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn is_unknown(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 104 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `from_le_slice` are never used [INFO] [stdout] --> src/keys/difficulty.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl Difficulty { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub const fn new(v: u64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn from_le_slice(s: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `zero` is never used [INFO] [stdout] --> src/keys/hash.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 27 | impl Hash { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub const fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/private.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | hexify!(Private, "private key"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `random` and `to_address` are never used [INFO] [stdout] --> src/keys/private.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Private { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn to_address(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ADDRESS_CHECKSUM_LEN` is never used [INFO] [stdout] --> src/keys/public.rs:142:11 [INFO] [stdout] | [INFO] [stdout] 140 | impl Public { [INFO] [stdout] | ----------- associated constant in this implementation [INFO] [stdout] 141 | const LEN: usize = 32; [INFO] [stdout] 142 | const ADDRESS_CHECKSUM_LEN: usize = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `to_address` is never used [INFO] [stdout] --> src/keys/public.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn to_address(public: &Public, serializer: S) -> Result [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `from_address` is never used [INFO] [stdout] --> src/keys/public.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | pub fn from_address<'de, D>(deserializer: D) -> Result>::Error> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/seed.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | hexify!(Seed, "seed"); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/signature.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 40 | hexify!(Signature, "signature"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_bytes` is never used [INFO] [stdout] --> src/util/encoding.rs:158:20 [INFO] [stdout] | [INFO] [stdout] 157 | impl $struct { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 158 | pub fn as_bytes(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/keys/work.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | hexify!(Work, "work"); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `hexify` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `zero` and `random` are never used [INFO] [stdout] --> src/keys/work.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Work { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn random() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove` and `iter` are never used [INFO] [stdout] --> src/network/center_map.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl> CenterMap { [INFO] [stdout] | ----------------------------------------------------------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 198 | pub fn remove(&mut self, key: K) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 257 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_batch_index` and `get_shred_index` are never used [INFO] [stdout] --> src/network/shred.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl Shred { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 211 | pub fn get_batch_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 216 | pub fn get_shred_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `need_shred` is never used [INFO] [stdout] --> src/network/shred.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 273 | impl Batch { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn need_shred(&self, shred_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `need_shred` is never used [INFO] [stdout] --> src/network/shred.rs:482:12 [INFO] [stdout] | [INFO] [stdout] 386 | impl ShredList { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 482 | pub fn need_shred(&self, batch_index: usize, shred_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `batch`, `finalized_balance`, `weight`, `nonce`, and `rep` are never read [INFO] [stdout] --> src/node/account.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Account { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 10 | pub batch: Batch, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | pub latest_balance: Amount, [INFO] [stdout] 12 | pub finalized_balance: Amount, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | pub weight: Amount, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 14 | pub nonce: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub rep: Public, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Account` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Bank` is never constructed [INFO] [stdout] --> src/node/bank.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Bank { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/node/bank.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Bank { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(genesis: Public) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn new_batch(&self) -> Batch { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn update_account Result>( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | fn insert_or_update_account T, G: FnMut() -> Account>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | fn get_account(&self, key: &Public) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn queue_transaction(&self, tr: &Transaction, batch: Batch) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn finish_transaction(&self, tr: &Transaction, batch: Batch) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | fn revert_transaction(&self, tx: &Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn finalize_transaction(&self, tx: &Transaction) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn process_block(&self, block: &Block) -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 308 | pub fn finish_block(&self, block: Block, batch: Batch) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 315 | pub fn revert_block(&self, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn finalize_block(&self, block: &Block) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 331 | pub fn get_latest_finalized_and_nonce(&self, public: &Public) -> (Amount, Amount, u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BatchFactory` is never constructed [INFO] [stdout] --> src/node/batch.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct BatchFactory(AtomicU64); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `next` are never used [INFO] [stdout] --> src/node/batch.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl BatchFactory { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn next(&self) -> Batch { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Block` is never constructed [INFO] [stdout] --> src/node/block.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Block { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merkle_row` is never used [INFO] [stdout] --> src/node/block.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn merkle_row(hashes: &[Hash]) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merkle_root` is never used [INFO] [stdout] --> src/node/block.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn merkle_root(hashes: Vec) -> Hash { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `hash_inner`, `genesis`, `is_genesis`, and `verify_and_hash` are never used [INFO] [stdout] --> src/node/block.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 42 | fn hash_inner(slot: Slot, previous: &Hash, tx_hash: &Hash, vote_hash: &Hash) -> Hash { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn genesis(private: Private) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn is_genesis(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn verify_and_hash(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Chain` is never constructed [INFO] [stdout] --> src/node/chain.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Chain { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `finalize_hash`, and `add_block` are never used [INFO] [stdout] --> src/node/chain.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Chain { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(genesis_block: Rc) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn finalize_hash(&mut self, h: Hash) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn add_block(&mut self, block: Rc) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove`, `get`, `get_path`, and `get_root` are never used [INFO] [stdout] --> src/node/dag.rs:108:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl Dag { [INFO] [stdout] | --------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn remove(&mut self, key: K) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn get(&self, k: &K) -> Option<&V> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn get_path(&self, from: K, to: K) -> Option> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn get_root(&self) -> (&K, &V) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MempoolEntry` is never constructed [INFO] [stdout] --> src/node/mempool.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct MempoolEntry(Box); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Mempool` is never constructed [INFO] [stdout] --> src/node/mempool.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct Mempool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `insert`, and `drain` are never used [INFO] [stdout] --> src/node/mempool.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Mempool { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 30 | pub fn new(size: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn insert(&mut self, tr: Box, d: Difficulty) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn drain(&mut self) -> impl Iterator> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `max` and `from_bytes` are never used [INFO] [stdout] --> src/protocol/amount.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl Amount { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | pub const fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub const fn from_bytes(bytes: [u8; 8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/protocol/epoch.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 8 | impl Epoch { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 9 | pub const LEN: usize = 86400; [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | pub const fn zero() -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub const fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub const fn to_bytes(self) -> [u8; 8] { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get(self, i: usize) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn index_of(self, slot: Slot) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_CONSECUTIVE_LEADER_SLOTS` is never used [INFO] [stdout] --> src/protocol/leader_schedule.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const NUM_CONSECUTIVE_LEADER_SLOTS: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LeaderSchedule` is never constructed [INFO] [stdout] --> src/protocol/leader_schedule.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct LeaderSchedule { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `empty`, `fill`, and `get` are never used [INFO] [stdout] --> src/protocol/leader_schedule.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl LeaderSchedule { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 20 | pub fn empty() -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn fill( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get(&self, slot: Slot) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/protocol/pair.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `zero`, `previous`, `from_bytes`, `max`, and `epoch` are never used [INFO] [stdout] --> src/protocol/slot.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Slot { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 13 | pub fn zero() -> Slot { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn previous(self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub const fn from_bytes(bytes: [u8; 8]) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn max() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn epoch(self) -> Epoch { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Vote` is never constructed [INFO] [stdout] --> src/protocol/vote.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Vote { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_and_hash` is never used [INFO] [stdout] --> src/protocol/vote.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Vote { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 15 | pub fn verify_and_hash(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize` is never used [INFO] [stdout] --> src/util/mod.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn serialize(value: &T) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_formatter` is never used [INFO] [stdout] --> src/util/encoding.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn hex_formatter(f: &mut std::fmt::Formatter<'_>, bytes: &[u8]) -> std::fmt::Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hex_formatter_lower` is never used [INFO] [stdout] --> src/util/encoding.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn hex_formatter_lower(f: &mut std::fmt::Formatter<'_>, bytes: &[u8]) -> std::fmt::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_list_from_str` is never used [INFO] [stdout] --> src/util/encoding.rs:68:8 [INFO] [stdout] | [INFO] [stdout] 68 | pub fn deserialize_list_from_str<'de, T, D>(deserializer: D) -> Result, D::Error> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `len_err_msg` is never used [INFO] [stdout] --> src/util/encoding.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn len_err_msg(got_len: usize, expected_len: usize, msg: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `unknown` and `is_unknown` are never used [INFO] [stdout] --> src/util/version.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Version { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn unknown() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn is_unknown(self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 76 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.22s [INFO] running `Command { std: "docker" "inspect" "e48ab397a5270d687c11d8144dc0cfa039c9cddeb7215fe256d6d12581df34d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e48ab397a5270d687c11d8144dc0cfa039c9cddeb7215fe256d6d12581df34d7", kill_on_drop: false }` [INFO] [stdout] e48ab397a5270d687c11d8144dc0cfa039c9cddeb7215fe256d6d12581df34d7