[INFO] cloning repository https://github.com/Polkaverse/blockchain-from-scratch [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Polkaverse/blockchain-from-scratch" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPolkaverse%2Fblockchain-from-scratch", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPolkaverse%2Fblockchain-from-scratch'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7b57c6edcef26603aebaaf195246eded8327143d [INFO] checking Polkaverse/blockchain-from-scratch/7b57c6edcef26603aebaaf195246eded8327143d against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPolkaverse%2Fblockchain-from-scratch" "/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/Polkaverse/blockchain-from-scratch on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Polkaverse/blockchain-from-scratch [INFO] finished tweaking git repo https://github.com/Polkaverse/blockchain-from-scratch [INFO] tweaked toml for git repo https://github.com/Polkaverse/blockchain-from-scratch written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Polkaverse/blockchain-from-scratch 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4cb83c21333a9304aad1ad994f9bccfdf2b4adc94806bfcf40d7410e69ea5dc8 [INFO] running `Command { std: "docker" "start" "-a" "4cb83c21333a9304aad1ad994f9bccfdf2b4adc94806bfcf40d7410e69ea5dc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4cb83c21333a9304aad1ad994f9bccfdf2b4adc94806bfcf40d7410e69ea5dc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cb83c21333a9304aad1ad994f9bccfdf2b4adc94806bfcf40d7410e69ea5dc8", kill_on_drop: false }` [INFO] [stdout] 4cb83c21333a9304aad1ad994f9bccfdf2b4adc94806bfcf40d7410e69ea5dc8 [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c2d3dc76aa0f3ea749fb54a251e465bf79e4c172298cdde943bec804ccf80da [INFO] running `Command { std: "docker" "start" "-a" "8c2d3dc76aa0f3ea749fb54a251e465bf79e4c172298cdde943bec804ccf80da", kill_on_drop: false }` [INFO] [stderr] Checking diy-blockchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Block` and `Header` [INFO] [stdout] --> src/c2_blockchain/mod.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | pub use p6_rich_state::{Block, Header}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::hash` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::hash; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Block` and `Header` [INFO] [stdout] --> src/c2_blockchain/mod.rs:7:25 [INFO] [stdout] | [INFO] [stdout] 7 | pub use p6_rich_state::{Block, Header}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / fn change_authorities( [INFO] [stdout] 47 | | fork_height: u64, [INFO] [stdout] 48 | | initial_authorities: Vec, [INFO] [stdout] 49 | | final_authorities: Vec, [INFO] [stdout] 50 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:50:6 [INFO] [stdout] | [INFO] [stdout] 50 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | initial_authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | final_authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / fn change_difficulty( [INFO] [stdout] 56 | | fork_height: u64, [INFO] [stdout] 57 | | initial_difficulty: u64, [INFO] [stdout] 58 | | final_difficulty: u64, [INFO] [stdout] 59 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:59:6 [INFO] [stdout] | [INFO] [stdout] 59 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | initial_difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | final_difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:70:70 [INFO] [stdout] | [INFO] [stdout] 70 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:70:49 [INFO] [stdout] | [INFO] [stdout] 70 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / fn pow_to_poa( [INFO] [stdout] 81 | | fork_height: u64, [INFO] [stdout] 82 | | difficulty: u64, [INFO] [stdout] 83 | | authorities: Vec, [INFO] [stdout] 84 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:84:6 [INFO] [stdout] | [INFO] [stdout] 84 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | fn next_state(starting_state: &bool, t: &()) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | fn next_state(starting_state: &Balances, t: &AccountingTransaction) -> Balances { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:47:46 [INFO] [stdout] | [INFO] [stdout] 47 | fn next_state(starting_state: &Balances, t: &AccountingTransaction) -> Balances { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / fn change_authorities( [INFO] [stdout] 47 | | fork_height: u64, [INFO] [stdout] 48 | | initial_authorities: Vec, [INFO] [stdout] 49 | | final_authorities: Vec, [INFO] [stdout] 50 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:50:6 [INFO] [stdout] | [INFO] [stdout] 50 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | initial_authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | final_authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / fn change_difficulty( [INFO] [stdout] 56 | | fork_height: u64, [INFO] [stdout] 57 | | initial_difficulty: u64, [INFO] [stdout] 58 | | final_difficulty: u64, [INFO] [stdout] 59 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:59:6 [INFO] [stdout] | [INFO] [stdout] 59 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 96 | fn next_state(starting_state: &Self::State, t: &Self::Transition) -> Self::State { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:96:49 [INFO] [stdout] | [INFO] [stdout] 96 | fn next_state(starting_state: &Self::State, t: &Self::Transition) -> Self::State { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | initial_difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `final_difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | final_difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_final_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:70:1 [INFO] [stdout] | [INFO] [stdout] 70 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:70:70 [INFO] [stdout] | [INFO] [stdout] 70 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:70:49 [INFO] [stdout] | [INFO] [stdout] 70 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | / fn pow_to_poa( [INFO] [stdout] 81 | | fork_height: u64, [INFO] [stdout] 82 | | difficulty: u64, [INFO] [stdout] 83 | | authorities: Vec, [INFO] [stdout] 84 | | ) -> impl Consensus { [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Consensus` will fail [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:84:6 [INFO] [stdout] | [INFO] [stdout] 84 | ) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fork_height` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fork_height: u64, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fork_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `difficulty` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | difficulty: u64, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_difficulty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `authorities` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_authorities` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b2` [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let b2 = b1.child() ; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsic` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | fn child(&self, extrinsic: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:64:37 [INFO] [stdout] | [INFO] [stdout] 64 | fn verify_sub_chain_even(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | fn verify_sub_chain_odd(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics_root` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn child(&self, extrinsics_root: Hash, state: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn child(&self, extrinsics_root: Hash, state: u64) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | fn verify_child(&self, child: &Header) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn child(&self, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:91:36 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn verify_sub_chain(&self, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:104:48 [INFO] [stdout] | [INFO] [stdout] 104 | fn build_invalid_child_block_with_valid_header(parent: &Header) -> Block { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_1` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_2` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:44:50 [INFO] [stdout] | [INFO] [stdout] 44 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | fn mine_extra_hard(block: &mut Block, threshold: u64) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threshold` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:70:39 [INFO] [stdout] | [INFO] [stdout] 70 | fn mine_extra_hard(block: &mut Block, threshold: u64) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_1` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_2` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:75:50 [INFO] [stdout] | [INFO] [stdout] 75 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:79:23 [INFO] [stdout] | [INFO] [stdout] 79 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_1` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:101:30 [INFO] [stdout] | [INFO] [stdout] 101 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_2` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:101:50 [INFO] [stdout] | [INFO] [stdout] 101 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state_root` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics_root` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | fn child(&self, extrinsics_root: Hash, state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state_root` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:56:44 [INFO] [stdout] | [INFO] [stdout] 56 | fn child(&self, extrinsics_root: Hash, state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | fn verify_child(&self, child: &Header) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn genesis(genesis_state: &State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn child(&self, pre_state: &State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:95:44 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn child(&self, pre_state: &State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:104:36 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn verify_sub_chain(&self, pre_state: &State, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:104:55 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn verify_sub_chain(&self, pre_state: &State, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:120:48 [INFO] [stdout] | [INFO] [stdout] 120 | fn build_invalid_child_block_with_valid_header(parent: &Header, pre_state: &State) -> Block { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:120:65 [INFO] [stdout] | [INFO] [stdout] 120 | fn build_invalid_child_block_with_valid_header(parent: &Header, pre_state: &State) -> Block { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:21:42 [INFO] [stdout] | [INFO] [stdout] 21 | fn validate(&self, _: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p2_dictator.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 23 | fn validate(&self, _: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p2_dictator.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:22:54 [INFO] [stdout] | [INFO] [stdout] 22 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:82:54 [INFO] [stdout] | [INFO] [stdout] 82 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 19 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:52:24 [INFO] [stdout] | [INFO] [stdout] 52 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:52:54 [INFO] [stdout] | [INFO] [stdout] 52 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:31:54 [INFO] [stdout] | [INFO] [stdout] 31 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/mod.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c3_consensus/mod.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | chain: &[Header], [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/mod.rs:101:38 [INFO] [stdout] | [INFO] [stdout] 101 | fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state_root` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state_root` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | fn child(&self, state_root: Hash, extrinsics_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics_root` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:31:39 [INFO] [stdout] | [INFO] [stdout] 31 | fn child(&self, state_root: Hash, extrinsics_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | fn verify_child(&self, child: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | fn verify_sub_chain(&self, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn genesis(genesis_state: &SM::State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn child(&self, pre_state: &SM::State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:58:48 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn child(&self, pre_state: &SM::State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:63:36 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify_sub_chain(&self, pre_state: &SM::State, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:63:59 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify_sub_chain(&self, pre_state: &SM::State, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | n: u64, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | genesis_state: &SM::State, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | fn new(genesis_state: SM::State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_hash` [INFO] [stdout] --> src/c4_client/p2_importing_blocks.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | fn get_block(&self, block_hash: u64) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_hash` [INFO] [stdout] --> src/c4_client/p2_importing_blocks.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | fn get_state(&self, block_hash: u64) -> Option<::State> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_hash` [INFO] [stdout] --> src/c4_client/p2_importing_blocks.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | fn is_leaf(&self, block_hash: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | fn best_block(&self, header: Header) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:36:31 [INFO] [stdout] | [INFO] [stdout] 36 | fn import_hook(&mut self, header: Header) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | fn best_block(&self, header: Header) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | fn import_hook(&mut self, header: Header) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | fn best_block(&self, header: Header) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:70:31 [INFO] [stdout] | [INFO] [stdout] 70 | fn import_hook(&mut self, header: Header) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | fn best_block(&self, header: Header) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:87:31 [INFO] [stdout] | [INFO] [stdout] 87 | fn import_hook(&mut self, header: Header) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn submit_transaction(&mut self, t: SM::Transition) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:59:33 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn pool_contains(&self, t: SM::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn try_insert(&mut self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | fn remove(&mut self, t: ::Transition) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 80 | fn contains(&self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:110:30 [INFO] [stdout] | [INFO] [stdout] 110 | fn try_insert(&mut self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 114 | fn remove(&mut self, t: ::Transition) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | fn contains(&self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | fn try_insert(&mut self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:149:26 [INFO] [stdout] | [INFO] [stdout] 149 | fn remove(&mut self, t: ::Transition) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:157:24 [INFO] [stdout] | [INFO] [stdout] 157 | fn contains(&self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transactions` [INFO] [stdout] --> src/c4_client/p5_authoring_blocks.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn author_and_import_manual_block(&mut self, transactions: Vec, parent_hash: u64) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_hash` [INFO] [stdout] --> src/c4_client/p5_authoring_blocks.rs:13:89 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn author_and_import_manual_block(&mut self, transactions: Vec, parent_hash: u64) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_hash` [INFO] [stdout] --> src/c4_client/p6_finality.rs:13:47 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn manually_finalize_block(&mut self, block_hash: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `next_state` and `human_name` are never used [INFO] [stdout] --> src/c1_state_machine/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait StateMachine { [INFO] [stdout] | ------------ associated functions in this trait [INFO] [stdout] ... [INFO] [stdout] 20 | fn next_state(starting_state: &Self::State, t: &Self::Transition) -> Self::State; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn human_name() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alice`, `Bob`, and `Charlie` are never constructed [INFO] [stdout] --> src/c1_state_machine/mod.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum User { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 33 | Alice, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 34 | Bob, [INFO] [stdout] | ^^^ [INFO] [stdout] 35 | Charlie, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `FirstSwitch` and `SecondSwitch` are never constructed [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum Toggle { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 35 | FirstSwitch, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 36 | SecondSwitch, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wear`, `Wash`, and `Dry` are never constructed [INFO] [stdout] --> src/c1_state_machine/p2_laundry_machine.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum ClothesAction { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 28 | /// Wearing clothes decreases their life by 1 and makes them dirty. [INFO] [stdout] 29 | Wear, [INFO] [stdout] | ^^^^ [INFO] [stdout] 30 | /// Washing clothes decreases their life by 1, and makes them wet. [INFO] [stdout] 31 | Wash, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | Dry, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `One`, `Two`, `Three`, and `Four` are never constructed [INFO] [stdout] --> src/c1_state_machine/p3_atm.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Key { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 10 | One, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | Two, [INFO] [stdout] | ^^^ [INFO] [stdout] 12 | Three, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Four, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Key` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SwipeCard` and `PressKey` are never constructed [INFO] [stdout] --> src/c1_state_machine/p3_atm.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub enum Action { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 21 | SwipeCard(u64), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | /// Press a key on the keypad [INFO] [stdout] 23 | PressKey(Key), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mint`, `Burn`, and `Transfer` are never constructed [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum AccountingTransaction { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] 28 | /// Create some new money for the given minter in the given amount [INFO] [stdout] 29 | Mint { minter: User, amount: u64 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | Burn { burner: User, amount: u64 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 34 | /// Send some tokens from one account to another [INFO] [stdout] 35 | Transfer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_serial` and `next_serial` are never used [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl State { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn set_serial(&mut self, serial: u64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn next_serial(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mint` and `Transfer` are never constructed [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum CashTransaction { [INFO] [stdout] | --------------- variants in this enum [INFO] [stdout] 78 | /// Mint a single new bill owned by the minter [INFO] [stdout] 79 | Mint { minter: User, amount: u64 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | Transfer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Header { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 26 | /// Returns a new valid genesis header. [INFO] [stdout] 27 | fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn child(&self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_valid_chain_length_5` is never used [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn build_valid_chain_length_5() -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_an_invalid_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn build_an_invalid_chain() -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Header { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 32 | /// Returns a new valid genesis header. [INFO] [stdout] 33 | fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn child(&self, extrinsic: u64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_valid_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn build_valid_chain(n: u64) -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_an_invalid_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:115:4 [INFO] [stdout] | [INFO] [stdout] 115 | fn build_an_invalid_chain() -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_forked_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn build_forked_chain() -> (Vec
, Vec
) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `THRESHOLD` is never used [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:16:7 [INFO] [stdout] | [INFO] [stdout] 16 | const THRESHOLD: u64 = u64::max_value() / 100; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FORK_HEIGHT` is never used [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const FORK_HEIGHT: u64 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, `verify_sub_chain`, `verify_sub_chain_even`, and `verify_sub_chain_odd` are never used [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 37 | impl Header { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 38 | /// Returns a new valid genesis header. [INFO] [stdout] 39 | fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn child(&self, extrinsic: u64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn verify_sub_chain_even(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | fn verify_sub_chain_odd(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_contentious_forked_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn build_contentious_forked_chain() -> (Vec
, Vec
, Vec
) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, `verify_child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Header { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 29 | /// Returns a new valid genesis header. [INFO] [stdout] 30 | pub fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn child(&self, extrinsics_root: Hash, state: u64) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | fn verify_child(&self, child: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 76 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 77 | /// Returns a new valid genesis block. By convention this block has no extrinsics. [INFO] [stdout] 78 | pub fn genesis() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn child(&self, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn verify_sub_chain(&self, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_invalid_child_block_with_valid_header` is never used [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn build_invalid_child_block_with_valid_header(parent: &Header) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `THRESHOLD` is never used [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const THRESHOLD: u64 = u64::max_value() / 100; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ForkChoice` is never used [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait ForkChoice { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LongestChainRule` is never constructed [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct LongestChainRule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `HeaviestChainRule` is never constructed [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct HeaviestChainRule; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mine_extra_hard` is never used [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn mine_extra_hard(block: &mut Block, threshold: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MostBlocksWithEvenHash` is never constructed [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:98:12 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct MostBlocksWithEvenHash; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_fork_one_side_longer_other_side_heavier` is never used [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn create_fork_one_side_longer_other_side_heavier() -> (Vec
, Vec
, Vec
) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, `verify_child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl Header { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 47 | /// Returns a new valid genesis header. [INFO] [stdout] 48 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn child(&self, extrinsics_root: Hash, state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn verify_child(&self, child: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl Block { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 89 | /// Returns a new valid genesis block. By convention this block has no extrinsics. [INFO] [stdout] 90 | pub fn genesis(genesis_state: &State) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn child(&self, pre_state: &State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn verify_sub_chain(&self, pre_state: &State, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_invalid_child_block_with_valid_header` is never used [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn build_invalid_child_block_with_valid_header(parent: &Header, pre_state: &State) -> Block { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `validate`, `seal`, `verify_sub_chain`, and `human_name` are never used [INFO] [stdout] --> src/c3_consensus/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub trait Consensus { [INFO] [stdout] | --------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 50 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn seal( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn verify_sub_chain( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn human_name() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alice`, `Bob`, and `Charlie` are never constructed [INFO] [stdout] --> src/c3_consensus/mod.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 109 | pub enum ConsensusAuthority { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 110 | Alice, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 111 | Bob, [INFO] [stdout] | ^^^ [INFO] [stdout] 112 | Charlie, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConsensusAuthority` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `threshold` is never read [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Pow { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 13 | threshold: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `moderate_difficulty_pow` is never used [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn moderate_difficulty_pow() -> Pow { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trivial_always_valid_pow` is never used [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn trivial_always_valid_pow() -> Pow { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DictatorConsensus` is never constructed [INFO] [stdout] --> src/c3_consensus/p2_dictator.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct DictatorConsensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `authorities` is never read [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SimplePoa { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 16 | pub authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoaRoundRobinByHeight` is never constructed [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct PoaRoundRobinByHeight { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoaRoundRobinBySlot` is never constructed [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct PoaRoundRobinBySlot { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EvenOnly` is never constructed [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct EvenOnly { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `almost_valid_but_not_all_even` is never used [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn almost_valid_but_not_all_even() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlternatingPowPoa` is never constructed [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct AlternatingPowPoa; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pow` and `Poa` are never constructed [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum PowOrPoaDigest { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 17 | Pow(u64), [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | Poa(ConsensusAuthority), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PowOrPoaDigest` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Forked` is never constructed [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Forked { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_authorities` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn change_authorities( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_difficulty` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn change_difficulty( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `even_after_given_height` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pow_to_poa` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn pow_to_poa( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Hash` is never used [INFO] [stdout] --> src/c4_client/mod.rs:29:6 [INFO] [stdout] | [INFO] [stdout] 29 | type Hash = u64; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `consensus_engine`, `state_machine`, `fork_choice`, and `transaction_pool` are never read [INFO] [stdout] --> src/c4_client/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct FullClient [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 55 | consensus_engine: C, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 56 | /// The state machine used by this client. [INFO] [stdout] 57 | state_machine: SM, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 58 | /// The fork choice strategy used by this client. [INFO] [stdout] 59 | fork_choice: FC, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 60 | /// The transaction pool used by this client. [INFO] [stdout] 61 | transaction_pool: P, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Hash` is never used [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | type Hash = u64; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, `verify_child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Header { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 25 | /// Returns a new valid genesis header. [INFO] [stdout] 26 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn child(&self, state_root: Hash, extrinsics_root: Hash) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn verify_child(&self, child: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn verify_sub_chain(&self, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Block { [INFO] [stdout] | ------------------------------------------------- associated items in this implementation [INFO] [stdout] 52 | /// Returns a new valid genesis block. By convention this block has no extrinsics. [INFO] [stdout] 53 | pub fn genesis(genesis_state: &SM::State) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn child(&self, pre_state: &SM::State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn verify_sub_chain(&self, pre_state: &SM::State, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_empty_chain` is never used [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn create_empty_chain( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 80 | / impl FullClient [INFO] [stdout] 81 | | where [INFO] [stdout] 82 | | SM: StateMachine, [INFO] [stdout] | |_____________________- associated function in this implementation [INFO] [stdout] 83 | { [INFO] [stdout] 84 | fn new(genesis_state: SM::State) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `import_block`, `get_block`, `get_state`, `is_leaf`, and `all_leaves` are never used [INFO] [stdout] --> src/c4_client/p2_importing_blocks.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait ImportBlock { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 13 | fn import_block(&mut self, _: Block) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn get_block(&self, block_hash: u64) -> Option>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn get_state(&self, block_hash: u64) -> Option; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn is_leaf(&self, block_hash: u64) -> Option; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn all_leaves(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `best_block` and `import_hook` are never used [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait ForkChoice { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 19 | /// Return the hash of the best block currently known according to this fork choice rule. [INFO] [stdout] 20 | fn best_block(&self, header: Header) -> Option; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn import_hook(&mut self, header: Header); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `best_block` is never used [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl FullClient { [INFO] [stdout] | ------------------------------------------- method in this implementation [INFO] [stdout] 96 | /// Return the hash of the best block currently known to the client [INFO] [stdout] 97 | fn best_block(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `try_insert`, `remove`, `size`, `contains`, and `next_from_pool` are never used [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait TransactionPool { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] 18 | /// Try to add a new transaction to the pool. Return whether the operation succeeded. [INFO] [stdout] 19 | fn try_insert(&mut self, t: SM::Transition) -> bool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn remove(&mut self, t: SM::Transition); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn size(&self) -> usize; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn contains(&self, t: SM::Transition) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn next_from_pool(&mut self) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `submit_transaction`, `pool_size`, and `pool_contains` are never used [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 42 | / impl FullClient [INFO] [stdout] 43 | | where [INFO] [stdout] 44 | | SM: StateMachine, [INFO] [stdout] | |_____________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn submit_transaction(&mut self, t: SM::Transition) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn pool_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn pool_contains(&self, t: SM::Transition) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:65:41 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct SimplePool(VecDeque); [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prioritizer` and `minimum_priority` are never read [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct PriorityPool u64> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 97 | /// A means of determining a transaction's priority [INFO] [stdout] 98 | prioritizer: P, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | minimum_priority: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `might_be_terrorist` is never read [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct CensoringPool bool> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 135 | /// A means of determining whether a transaction may be from a terrorist [INFO] [stdout] 136 | might_be_terrorist: P, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `author_and_import_manual_block` and `author_and_import_automatic_block` are never used [INFO] [stdout] --> src/c4_client/p5_authoring_blocks.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 7 | / impl FullClient [INFO] [stdout] 8 | | where [INFO] [stdout] 9 | | SM: StateMachine, [INFO] [stdout] | |_____________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn author_and_import_manual_block(&mut self, transactions: Vec, parent_hash: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn author_and_import_automatic_block(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `manually_finalize_block` is never used [INFO] [stdout] --> src/c4_client/p6_finality.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl FullClient { [INFO] [stdout] | ------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn manually_finalize_block(&mut self, block_hash: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 198 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p1_switches.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | fn next_state(starting_state: &bool, t: &()) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | fn next_state(starting_state: &Balances, t: &AccountingTransaction) -> Balances { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:47:46 [INFO] [stdout] | [INFO] [stdout] 47 | fn next_state(starting_state: &Balances, t: &AccountingTransaction) -> Balances { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `starting_state` [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:96:19 [INFO] [stdout] | [INFO] [stdout] 96 | fn next_state(starting_state: &Self::State, t: &Self::Transition) -> Self::State { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_starting_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:96:49 [INFO] [stdout] | [INFO] [stdout] 96 | fn next_state(starting_state: &Self::State, t: &Self::Transition) -> Self::State { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b2` [INFO] [stdout] --> src/c2_blockchain/p1_header_chain.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let b2 = b1.child() ; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_b2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsic` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:44:21 [INFO] [stdout] | [INFO] [stdout] 44 | fn child(&self, extrinsic: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:64:37 [INFO] [stdout] | [INFO] [stdout] 64 | fn verify_sub_chain_even(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:70:36 [INFO] [stdout] | [INFO] [stdout] 70 | fn verify_sub_chain_odd(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics_root` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:37:25 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn child(&self, extrinsics_root: Hash, state: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:37:48 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn child(&self, extrinsics_root: Hash, state: u64) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:48:28 [INFO] [stdout] | [INFO] [stdout] 48 | fn verify_child(&self, child: &Header) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:59:32 [INFO] [stdout] | [INFO] [stdout] 59 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:84:25 [INFO] [stdout] | [INFO] [stdout] 84 | pub fn child(&self, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:91:36 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn verify_sub_chain(&self, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:104:48 [INFO] [stdout] | [INFO] [stdout] 104 | fn build_invalid_child_block_with_valid_header(parent: &Header) -> Block { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_1` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:44:30 [INFO] [stdout] | [INFO] [stdout] 44 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_2` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:44:50 [INFO] [stdout] | [INFO] [stdout] 44 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:70:20 [INFO] [stdout] | [INFO] [stdout] 70 | fn mine_extra_hard(block: &mut Block, threshold: u64) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `threshold` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:70:39 [INFO] [stdout] | [INFO] [stdout] 70 | fn mine_extra_hard(block: &mut Block, threshold: u64) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_threshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_1` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:75:30 [INFO] [stdout] | [INFO] [stdout] 75 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_2` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:75:50 [INFO] [stdout] | [INFO] [stdout] 75 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:79:23 [INFO] [stdout] | [INFO] [stdout] 79 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_1` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:101:30 [INFO] [stdout] | [INFO] [stdout] 101 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain_2` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:101:50 [INFO] [stdout] | [INFO] [stdout] 101 | fn first_chain_is_better(chain_1: &[Header], chain_2: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_chain_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `candidate_chains` [INFO] [stdout] --> src/c2_blockchain/p5_fork_choice.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | fn best_chain<'a>(candidate_chains: &[&'a [Header]]) -> &'a [Header] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_candidate_chains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state_root` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics_root` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:56:21 [INFO] [stdout] | [INFO] [stdout] 56 | fn child(&self, extrinsics_root: Hash, state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state_root` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:56:44 [INFO] [stdout] | [INFO] [stdout] 56 | fn child(&self, extrinsics_root: Hash, state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | fn verify_child(&self, child: &Header) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn genesis(genesis_state: &State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:95:25 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn child(&self, pre_state: &State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:95:44 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn child(&self, pre_state: &State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:104:36 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn verify_sub_chain(&self, pre_state: &State, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:104:55 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn verify_sub_chain(&self, pre_state: &State, chain: &[Block]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:120:48 [INFO] [stdout] | [INFO] [stdout] 120 | fn build_invalid_child_block_with_valid_header(parent: &Header, pre_state: &State) -> Block { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:120:65 [INFO] [stdout] | [INFO] [stdout] 120 | fn build_invalid_child_block_with_valid_header(parent: &Header, pre_state: &State) -> Block { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:21:42 [INFO] [stdout] | [INFO] [stdout] 21 | fn validate(&self, _: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:27:38 [INFO] [stdout] | [INFO] [stdout] 27 | fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p2_dictator.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 23 | fn validate(&self, _: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p2_dictator.rs:28:38 [INFO] [stdout] | [INFO] [stdout] 28 | fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:22:24 [INFO] [stdout] | [INFO] [stdout] 22 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:22:54 [INFO] [stdout] | [INFO] [stdout] 22 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:82:24 [INFO] [stdout] | [INFO] [stdout] 82 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:82:54 [INFO] [stdout] | [INFO] [stdout] 82 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:19:24 [INFO] [stdout] | [INFO] [stdout] 19 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 19 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:52:24 [INFO] [stdout] | [INFO] [stdout] 52 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:52:54 [INFO] [stdout] | [INFO] [stdout] 52 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 31 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:31:54 [INFO] [stdout] | [INFO] [stdout] 31 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | partial_header: Header<()>, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_digest` [INFO] [stdout] --> src/c3_consensus/mod.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | parent_digest: &Self::Digest, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_digest` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c3_consensus/mod.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | chain: &[Header], [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `partial_header` [INFO] [stdout] --> src/c3_consensus/mod.rs:101:38 [INFO] [stdout] | [INFO] [stdout] 101 | fn seal(&self, _: &Self::Digest, partial_header: Header<()>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_partial_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state_root` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state_root` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | fn child(&self, state_root: Hash, extrinsics_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_state_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics_root` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:31:39 [INFO] [stdout] | [INFO] [stdout] 31 | fn child(&self, state_root: Hash, extrinsics_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics_root` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `child` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 36 | fn verify_child(&self, child: &Self) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_child` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | fn verify_sub_chain(&self, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn genesis(genesis_state: &SM::State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn child(&self, pre_state: &SM::State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extrinsics` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:58:48 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn child(&self, pre_state: &SM::State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extrinsics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pre_state` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:63:36 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify_sub_chain(&self, pre_state: &SM::State, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pre_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chain` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:63:59 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn verify_sub_chain(&self, pre_state: &SM::State, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_chain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | n: u64, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | genesis_state: &SM::State, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `genesis_state` [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | fn new(genesis_state: SM::State) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_genesis_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_hash` [INFO] [stdout] --> src/c4_client/p2_importing_blocks.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | fn get_block(&self, block_hash: u64) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_hash` [INFO] [stdout] --> src/c4_client/p2_importing_blocks.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | fn get_state(&self, block_hash: u64) -> Option<::State> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_hash` [INFO] [stdout] --> src/c4_client/p2_importing_blocks.rs:49:23 [INFO] [stdout] | [INFO] [stdout] 49 | fn is_leaf(&self, block_hash: u64) -> Option { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:32:26 [INFO] [stdout] | [INFO] [stdout] 32 | fn best_block(&self, header: Header) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:36:31 [INFO] [stdout] | [INFO] [stdout] 36 | fn import_hook(&mut self, header: Header) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 49 | fn best_block(&self, header: Header) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | fn import_hook(&mut self, header: Header) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | fn best_block(&self, header: Header) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:70:31 [INFO] [stdout] | [INFO] [stdout] 70 | fn import_hook(&mut self, header: Header) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:83:26 [INFO] [stdout] | [INFO] [stdout] 83 | fn best_block(&self, header: Header) -> Option { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `header` [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:87:31 [INFO] [stdout] | [INFO] [stdout] 87 | fn import_hook(&mut self, header: Header) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:48:42 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn submit_transaction(&mut self, t: SM::Transition) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:59:33 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn pool_contains(&self, t: SM::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:68:30 [INFO] [stdout] | [INFO] [stdout] 68 | fn try_insert(&mut self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | fn remove(&mut self, t: ::Transition) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:80:24 [INFO] [stdout] | [INFO] [stdout] 80 | fn contains(&self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:110:30 [INFO] [stdout] | [INFO] [stdout] 110 | fn try_insert(&mut self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:114:26 [INFO] [stdout] | [INFO] [stdout] 114 | fn remove(&mut self, t: ::Transition) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | fn contains(&self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:145:30 [INFO] [stdout] | [INFO] [stdout] 145 | fn try_insert(&mut self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:149:26 [INFO] [stdout] | [INFO] [stdout] 149 | fn remove(&mut self, t: ::Transition) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:157:24 [INFO] [stdout] | [INFO] [stdout] 157 | fn contains(&self, t: ::Transition) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `transactions` [INFO] [stdout] --> src/c4_client/p5_authoring_blocks.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn author_and_import_manual_block(&mut self, transactions: Vec, parent_hash: u64) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_hash` [INFO] [stdout] --> src/c4_client/p5_authoring_blocks.rs:13:89 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn author_and_import_manual_block(&mut self, transactions: Vec, parent_hash: u64) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_hash` [INFO] [stdout] --> src/c4_client/p6_finality.rs:13:47 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn manually_finalize_block(&mut self, block_hash: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `human_name` is never used [INFO] [stdout] --> src/c1_state_machine/mod.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait StateMachine { [INFO] [stdout] | ------------ associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 25 | fn human_name() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `minter` and `amount` are never read [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | Mint { minter: User, amount: u64 }, [INFO] [stdout] | ---- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `burner` and `amount` are never read [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | Burn { burner: User, amount: u64 }, [INFO] [stdout] | ---- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `sender`, `receiver`, and `amount` are never read [INFO] [stdout] --> src/c1_state_machine/p4_accounted_currency.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 35 | Transfer { [INFO] [stdout] | -------- fields in this variant [INFO] [stdout] 36 | sender: User, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 37 | receiver: User, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 38 | amount: u64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `next_serial` is never used [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl State { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn next_serial(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `minter` and `amount` are never read [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 79 | Mint { minter: User, amount: u64 }, [INFO] [stdout] | ---- ^^^^^^ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `spends` and `receives` are never read [INFO] [stdout] --> src/c1_state_machine/p5_digital_cash.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 85 | Transfer { [INFO] [stdout] | -------- fields in this variant [INFO] [stdout] 86 | spends: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 87 | receives: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_valid_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p2_extrinsic_state.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn build_valid_chain(n: u64) -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FORK_HEIGHT` is never used [INFO] [stdout] --> src/c2_blockchain/p3_consensus.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const FORK_HEIGHT: u64 = 2; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_sub_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p4_batched_extrinsics.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 28 | impl Header { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `verify_sub_chain` is never used [INFO] [stdout] --> src/c2_blockchain/p6_rich_state.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 46 | impl Header { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | fn verify_sub_chain(&self, chain: &[Header]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `validate`, `seal`, `verify_sub_chain`, and `human_name` are never used [INFO] [stdout] --> src/c3_consensus/mod.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub trait Consensus { [INFO] [stdout] | --------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 50 | fn validate(&self, parent_digest: &Self::Digest, header: &Header) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn seal( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | fn verify_sub_chain( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn human_name() -> String { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Alice`, `Bob`, and `Charlie` are never constructed [INFO] [stdout] --> src/c3_consensus/mod.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 109 | pub enum ConsensusAuthority { [INFO] [stdout] | ------------------ variants in this enum [INFO] [stdout] 110 | Alice, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 111 | Bob, [INFO] [stdout] | ^^^ [INFO] [stdout] 112 | Charlie, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConsensusAuthority` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `threshold` is never read [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Pow { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 13 | threshold: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `moderate_difficulty_pow` is never used [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn moderate_difficulty_pow() -> Pow { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `trivial_always_valid_pow` is never used [INFO] [stdout] --> src/c3_consensus/p1_pow.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn trivial_always_valid_pow() -> Pow { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DictatorConsensus` is never constructed [INFO] [stdout] --> src/c3_consensus/p2_dictator.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct DictatorConsensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `authorities` is never read [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct SimplePoa { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 16 | pub authorities: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoaRoundRobinByHeight` is never constructed [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct PoaRoundRobinByHeight { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoaRoundRobinBySlot` is never constructed [INFO] [stdout] --> src/c3_consensus/p3_poa.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | struct PoaRoundRobinBySlot { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EvenOnly` is never constructed [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct EvenOnly { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `almost_valid_but_not_all_even` is never used [INFO] [stdout] --> src/c3_consensus/p4_even_only.rs:35:4 [INFO] [stdout] | [INFO] [stdout] 35 | fn almost_valid_but_not_all_even() -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AlternatingPowPoa` is never constructed [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct AlternatingPowPoa; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Pow` and `Poa` are never constructed [INFO] [stdout] --> src/c3_consensus/p5_interleave.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum PowOrPoaDigest { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 17 | Pow(u64), [INFO] [stdout] | ^^^ [INFO] [stdout] 18 | Poa(ConsensusAuthority), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PowOrPoaDigest` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Forked` is never constructed [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct Forked { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_authorities` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:46:4 [INFO] [stdout] | [INFO] [stdout] 46 | fn change_authorities( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `change_difficulty` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn change_difficulty( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `even_after_given_height` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn even_after_given_height(fork_height: u64) -> impl Consensus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pow_to_poa` is never used [INFO] [stdout] --> src/c3_consensus/p6_forking.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn pow_to_poa( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Hash` is never used [INFO] [stdout] --> src/c4_client/mod.rs:29:6 [INFO] [stdout] | [INFO] [stdout] 29 | type Hash = u64; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `consensus_engine`, `state_machine`, `fork_choice`, and `transaction_pool` are never read [INFO] [stdout] --> src/c4_client/mod.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct FullClient [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 55 | consensus_engine: C, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 56 | /// The state machine used by this client. [INFO] [stdout] 57 | state_machine: SM, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 58 | /// The fork choice strategy used by this client. [INFO] [stdout] 59 | fork_choice: FC, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 60 | /// The transaction pool used by this client. [INFO] [stdout] 61 | transaction_pool: P, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Hash` is never used [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 22 | type Hash = u64; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, `verify_child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 24 | impl Header { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 25 | /// Returns a new valid genesis header. [INFO] [stdout] 26 | fn genesis(genesis_state_root: Hash) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | fn child(&self, state_root: Hash, extrinsics_root: Hash) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn verify_child(&self, child: &Self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn verify_sub_chain(&self, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `genesis`, `child`, and `verify_sub_chain` are never used [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Block { [INFO] [stdout] | ------------------------------------------------- associated items in this implementation [INFO] [stdout] 52 | /// Returns a new valid genesis block. By convention this block has no extrinsics. [INFO] [stdout] 53 | pub fn genesis(genesis_state: &SM::State) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn child(&self, pre_state: &SM::State, extrinsics: Vec) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn verify_sub_chain(&self, pre_state: &SM::State, chain: &[Self]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_empty_chain` is never used [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn create_empty_chain( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/c4_client/p1_data_structure.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 80 | / impl FullClient [INFO] [stdout] 81 | | where [INFO] [stdout] 82 | | SM: StateMachine, [INFO] [stdout] | |_____________________- associated function in this implementation [INFO] [stdout] 83 | { [INFO] [stdout] 84 | fn new(genesis_state: SM::State) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `import_block`, `get_block`, `get_state`, `is_leaf`, and `all_leaves` are never used [INFO] [stdout] --> src/c4_client/p2_importing_blocks.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait ImportBlock { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 13 | fn import_block(&mut self, _: Block) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn get_block(&self, block_hash: u64) -> Option>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn get_state(&self, block_hash: u64) -> Option; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn is_leaf(&self, block_hash: u64) -> Option; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn all_leaves(&self) -> Vec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `best_block` and `import_hook` are never used [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub trait ForkChoice { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 19 | /// Return the hash of the best block currently known according to this fork choice rule. [INFO] [stdout] 20 | fn best_block(&self, header: Header) -> Option; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn import_hook(&mut self, header: Header); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `best_block` is never used [INFO] [stdout] --> src/c4_client/p3_fork_choice.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 95 | impl FullClient { [INFO] [stdout] | ------------------------------------------- method in this implementation [INFO] [stdout] 96 | /// Return the hash of the best block currently known to the client [INFO] [stdout] 97 | fn best_block(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `try_insert`, `remove`, `size`, `contains`, and `next_from_pool` are never used [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait TransactionPool { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] 18 | /// Try to add a new transaction to the pool. Return whether the operation succeeded. [INFO] [stdout] 19 | fn try_insert(&mut self, t: SM::Transition) -> bool; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn remove(&mut self, t: SM::Transition); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn size(&self) -> usize; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn contains(&self, t: SM::Transition) -> bool; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | fn next_from_pool(&mut self) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `submit_transaction`, `pool_size`, and `pool_contains` are never used [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 42 | / impl FullClient [INFO] [stdout] 43 | | where [INFO] [stdout] 44 | | SM: StateMachine, [INFO] [stdout] | |_____________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn submit_transaction(&mut self, t: SM::Transition) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn pool_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn pool_contains(&self, t: SM::Transition) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:65:41 [INFO] [stdout] | [INFO] [stdout] 65 | pub struct SimplePool(VecDeque); [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `prioritizer` and `minimum_priority` are never read [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub struct PriorityPool u64> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 97 | /// A means of determining a transaction's priority [INFO] [stdout] 98 | prioritizer: P, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | minimum_priority: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `might_be_terrorist` is never read [INFO] [stdout] --> src/c4_client/p4_transaction_pool.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct CensoringPool bool> { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 135 | /// A means of determining whether a transaction may be from a terrorist [INFO] [stdout] 136 | might_be_terrorist: P, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `author_and_import_manual_block` and `author_and_import_automatic_block` are never used [INFO] [stdout] --> src/c4_client/p5_authoring_blocks.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 7 | / impl FullClient [INFO] [stdout] 8 | | where [INFO] [stdout] 9 | | SM: StateMachine, [INFO] [stdout] | |_____________________- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn author_and_import_manual_block(&mut self, transactions: Vec, parent_hash: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn author_and_import_automatic_block(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `manually_finalize_block` is never used [INFO] [stdout] --> src/c4_client/p6_finality.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl FullClient { [INFO] [stdout] | ------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn manually_finalize_block(&mut self, block_hash: u64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 172 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.31s [INFO] running `Command { std: "docker" "inspect" "8c2d3dc76aa0f3ea749fb54a251e465bf79e4c172298cdde943bec804ccf80da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c2d3dc76aa0f3ea749fb54a251e465bf79e4c172298cdde943bec804ccf80da", kill_on_drop: false }` [INFO] [stdout] 8c2d3dc76aa0f3ea749fb54a251e465bf79e4c172298cdde943bec804ccf80da