[INFO] cloning repository https://github.com/bagmilk/zhtp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bagmilk/zhtp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbagmilk%2Fzhtp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbagmilk%2Fzhtp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 831e77253ee349d0107bc4427471c689470dd24f [INFO] checking bagmilk/zhtp against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbagmilk%2Fzhtp" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/bagmilk/zhtp [INFO] finished tweaking git repo https://github.com/bagmilk/zhtp [INFO] tweaked toml for git repo https://github.com/bagmilk/zhtp written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/bagmilk/zhtp on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/bagmilk/zhtp 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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasmer-artifact v2.3.0 [INFO] [stderr] Downloaded wat v1.235.0 [INFO] [stderr] Downloaded wasmi_arena v0.4.1 [INFO] [stderr] Downloaded wasmi_core v0.13.0 [INFO] [stderr] Downloaded cranelift-entity v0.82.3 [INFO] [stderr] Downloaded leb128fmt v0.1.0 [INFO] [stderr] Downloaded wasmer-engine v2.3.0 [INFO] [stderr] Downloaded wasm-encoder v0.235.0 [INFO] [stderr] Downloaded wasmer-compiler-cranelift v2.3.0 [INFO] [stderr] Downloaded poly1305 v0.8.0 [INFO] [stderr] Downloaded cranelift-frontend v0.82.3 [INFO] [stderr] Downloaded chacha20 v0.9.1 [INFO] [stderr] Downloaded wasmer-vm v2.3.0 [INFO] [stderr] Downloaded cranelift-bforest v0.82.3 [INFO] [stderr] Downloaded regalloc v0.0.34 [INFO] [stderr] Downloaded wasmer-engine-dylib v2.3.0 [INFO] [stderr] Downloaded corosensei v0.1.4 [INFO] [stderr] Downloaded wasmer-engine-universal-artifact v2.3.0 [INFO] [stderr] Downloaded chacha20poly1305 v0.10.1 [INFO] [stderr] Downloaded cranelift-codegen-meta v0.82.3 [INFO] [stderr] Downloaded enumset v1.1.6 [INFO] [stderr] Downloaded wasmer-types v2.3.0 [INFO] [stderr] Downloaded wasmer v2.3.0 [INFO] [stderr] Downloaded wasmer-compiler v2.3.0 [INFO] [stderr] Downloaded pqcrypto-internals v0.2.10 [INFO] [stderr] Downloaded pqcrypto-traits v0.3.5 [INFO] [stderr] Downloaded cranelift-codegen-shared v0.82.3 [INFO] [stderr] Downloaded wasmer-derive v2.3.0 [INFO] [stderr] Downloaded wasmer-object v2.3.0 [INFO] [stderr] Downloaded wasmer-engine-universal v2.3.0 [INFO] [stderr] Downloaded mach2 v0.4.3 [INFO] [stderr] Downloaded wasmparser v0.235.0 [INFO] [stderr] Downloaded wast v235.0.0 [INFO] [stderr] Downloaded wasmparser-nostd v0.100.2 [INFO] [stderr] Downloaded wasmi v0.31.2 [INFO] [stderr] Downloaded enumset_derive v0.11.0 [INFO] [stderr] Downloaded cranelift-codegen v0.82.3 [INFO] [stderr] Downloaded pqcrypto-dilithium v0.5.0 [INFO] [stderr] Downloaded pqcrypto-kyber v0.8.1 [INFO] [stderr] Downloaded windows-sys v0.33.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88463b8a50cfcb3284d4e28d3a0a00df059b84711631ebe9849e0dc437eed335 [INFO] running `Command { std: "docker" "start" "-a" "88463b8a50cfcb3284d4e28d3a0a00df059b84711631ebe9849e0dc437eed335", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88463b8a50cfcb3284d4e28d3a0a00df059b84711631ebe9849e0dc437eed335", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88463b8a50cfcb3284d4e28d3a0a00df059b84711631ebe9849e0dc437eed335", kill_on_drop: false }` [INFO] [stdout] 88463b8a50cfcb3284d4e28d3a0a00df059b84711631ebe9849e0dc437eed335 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f184c463f8786998cbd84410917192dbc67190573ec98fc4f0adb7052eb810e0 [INFO] running `Command { std: "docker" "start" "-a" "f184c463f8786998cbd84410917192dbc67190573ec98fc4f0adb7052eb810e0", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling bumpalo v3.19.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling wasm-encoder v0.235.0 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking leb128fmt v0.1.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Checking ark-std v0.4.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Checking winnow v0.7.11 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking indexmap-nostd v0.4.0 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Checking unicode-width v0.2.1 [INFO] [stderr] Checking pqcrypto-traits v0.3.5 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking wasmparser-nostd v0.100.2 [INFO] [stderr] Checking ed25519 v1.5.3 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling pqcrypto-internals v0.2.10 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling pqcrypto-dilithium v0.5.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling pqcrypto-kyber v0.8.1 [INFO] [stderr] Checking wast v235.0.0 [INFO] [stderr] Checking wasmi_core v0.13.0 [INFO] [stderr] Checking poly1305 v0.8.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking wasmi_arena v0.4.1 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling ark-serialize-derive v0.4.2 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking ark-serialize v0.4.2 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling ark-ff-macros v0.4.2 [INFO] [stderr] Compiling ark-ff-asm v0.4.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking chacha20 v0.9.1 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking ark-ff v0.4.2 [INFO] [stderr] Checking curve25519-dalek v3.2.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking wasmi v0.31.2 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking chacha20poly1305 v0.10.1 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking wat v1.235.0 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking serde_bytes v0.11.17 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking js-sys v0.3.77 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.50 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking zhtp-contracts v0.1.0 (/opt/rustwide/workdir/contracts) [INFO] [stderr] Checking ark-poly v0.4.2 [INFO] [stderr] Checking ark-ec v0.4.2 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.50 [INFO] [stderr] Checking wasm-bindgen-test v0.3.50 [INFO] [stderr] Checking ark-bn254 v0.4.0 [INFO] [stderr] Checking decentralized_network v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `pqcrypto_dilithium::dilithium5` [INFO] [stdout] --> src/network.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use pqcrypto_dilithium::dilithium5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha256` [INFO] [stdout] --> src/zhtp/consensus_engine.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use sha2::{Sha256, Digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ark_ff::PrimeField` [INFO] [stdout] --> src/zhtp/zk_transactions.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use ark_ff::PrimeField; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::RngCore` [INFO] [stdout] --> src/zhtp/zk_transactions.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::RngCore; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyPackage`, `UnifiedCircuit`, and `ZkGroup` [INFO] [stdout] --> src/zhtp/p2p_network.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | crypto::{Keypair, Signature, KeyPackage}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | zk_proofs::{RoutingProof, UnifiedCircuit, ZkGroup, ZkGroupTrait}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crypto::Keypair` [INFO] [stdout] --> src/zhtp/ceremony_participants.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | crypto::Keypair, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeSet` [INFO] [stdout] --> src/zhtp/ceremony_participants.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | collections::{HashMap, BTreeSet}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha256` [INFO] [stdout] --> src/discovery/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | use sha2::{Sha256, Digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/network.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | use pqcrypto_traits::sign::{PublicKey as _, SecretKey as _, SignedMessage as _}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/network.rs:9:45 [INFO] [stdout] | [INFO] [stdout] 9 | use pqcrypto_traits::sign::{PublicKey as _, SecretKey as _, SignedMessage as _}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignedMessage` [INFO] [stdout] --> src/network.rs:9:61 [INFO] [stdout] | [INFO] [stdout] 9 | use pqcrypto_traits::sign::{PublicKey as _, SecretKey as _, SignedMessage as _}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/zhtp/crypto.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | kem::{PublicKey as _, SecretKey as _, SharedSecret as _, Ciphertext as _}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AffineRepr` [INFO] [stdout] --> src/zhtp/zk_proofs.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use ark_ec::{AffineRepr, Group}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> src/contracts/mod.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let instance = pre_instance.start(&mut self.store)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `circuit` [INFO] [stdout] --> src/storage/dht.rs:556:17 [INFO] [stdout] | [INFO] [stdout] 556 | let circuit = UnifiedCircuit::new( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circuit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/storage/content.rs:261:61 [INFO] [stdout] | [INFO] [stdout] 261 | pub async fn register_service(&self, info: ServiceInfo, signature: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keypair` [INFO] [stdout] --> src/zhtp/dao.rs:494:56 [INFO] [stdout] | [INFO] [stdout] 494 | pub async fn register_node(&self, node_id: String, keypair: Keypair) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keypair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `template` [INFO] [stdout] --> src/zhtp/dapp_launchpad.rs:531:13 [INFO] [stdout] | [INFO] [stdout] 531 | let template = factory.token_templates.get(&token_template) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `developer_info` [INFO] [stdout] --> src/zhtp/dapp_launchpad.rs:580:44 [INFO] [stdout] | [INFO] [stdout] 580 | pub async fn register_developer(&self, developer_info: DeveloperInfo) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_developer_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zhtp/consensus_engine.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut circuit = UnifiedCircuit::new( [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `circuit` [INFO] [stdout] --> src/zhtp/consensus_engine.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut circuit = UnifiedCircuit::new( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circuit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stake_proof` [INFO] [stdout] --> src/zhtp/consensus_engine.rs:296:13 [INFO] [stdout] | [INFO] [stdout] 296 | let stake_proof = self.generate_stake_proof(stake).await?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stake_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `circuit` [INFO] [stdout] --> src/zhtp/zk_proofs.rs:822:56 [INFO] [stdout] | [INFO] [stdout] 822 | fn verify_polynomial_constraints(proof: &RoutingProof, circuit: &UnifiedCircuit) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circuit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `commitment` [INFO] [stdout] --> src/zhtp/zk_proofs.rs:852:40 [INFO] [stdout] | [INFO] [stdout] 852 | fn verify_single_polynomial_commitment(commitment: &PolyCommit, evaluation: &Fr) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_commitment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `evaluation` [INFO] [stdout] --> src/zhtp/zk_proofs.rs:852:65 [INFO] [stdout] | [INFO] [stdout] 852 | fn verify_single_polynomial_commitment(commitment: &PolyCommit, evaluation: &Fr) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_evaluation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right_g2` [INFO] [stdout] --> src/zhtp/zk_proofs.rs:1648:13 [INFO] [stdout] | [INFO] [stdout] 1648 | let right_g2 = *h_tau - (*h * point); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_right_g2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `economics` [INFO] [stdout] --> src/zhtp/p2p_network.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | let economics = Arc::new(ZhtpEconomics::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_economics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consensus_params` [INFO] [stdout] --> src/zhtp/p2p_network.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | let consensus_params = ZkConsensusParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consensus_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet_bytes` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1342:13 [INFO] [stdout] | [INFO] [stdout] 1342 | let packet_bytes = bincode::serialize(&packet_for_verification)?; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1344:13 [INFO] [stdout] | [INFO] [stdout] 1344 | let signature = Signature::new(encrypted_packet.signature.clone()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender_public_key` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1348:13 [INFO] [stdout] | [INFO] [stdout] 1348 | let sender_public_key = &encrypted_packet.sender_public_key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer_addr` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1379:9 [INFO] [stdout] | [INFO] [stdout] 1379 | peer_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message_type` [INFO] [stdout] --> src/zhtp/p2p_network.rs:773:9 [INFO] [stdout] | [INFO] [stdout] 773 | message_type: ConsensusMessageType, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consensus` [INFO] [stdout] --> src/zhtp/p2p_network.rs:776:9 [INFO] [stdout] | [INFO] [stdout] 776 | consensus: &Arc, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consensus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `routing_proof` [INFO] [stdout] --> src/zhtp/p2p_network.rs:785:13 [INFO] [stdout] | [INFO] [stdout] 785 | let routing_proof = RoutingProof::try_from(zk_proof) [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_routing_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verification_bytes` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1224:13 [INFO] [stdout] | [INFO] [stdout] 1224 | let verification_bytes = bincode::serialize(&packet_for_verification)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verification_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_keypair` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1227:13 [INFO] [stdout] | [INFO] [stdout] 1227 | let temp_keypair = Keypair::generate(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_keypair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1228:13 [INFO] [stdout] | [INFO] [stdout] 1228 | let signature = Signature::new(encrypted_packet.signature); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consensus` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1293:9 [INFO] [stdout] | [INFO] [stdout] 1293 | consensus: &Arc, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consensus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx_pool` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1294:9 [INFO] [stdout] | [INFO] [stdout] 1294 | tx_pool: &Arc>, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tx_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/zhtp/mod.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let node = self.0.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `node` and `connections` are never read [INFO] [stdout] --> src/browser/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct ZhtpBrowser { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 71 | /// ZHTP node [INFO] [stdout] 72 | node: Arc>, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | connections: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOKEN_INTERFACE` is never used [INFO] [stdout] --> src/contracts/mod.rs:187:7 [INFO] [stdout] | [INFO] [stdout] 187 | const TOKEN_INTERFACE: &str = include_str!("../../contracts/token.json"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_drop_rate` is never used [INFO] [stdout] --> src/network.rs:288:8 [INFO] [stdout] | [INFO] [stdout] 286 | impl NetworkCondition { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 287 | /// Calculate effective drop rate considering all factors [INFO] [stdout] 288 | fn calculate_drop_rate(&self, reputation: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cleanup_rate_trackers` is never used [INFO] [stdout] --> src/network.rs:1149:8 [INFO] [stdout] | [INFO] [stdout] 600 | impl Network { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1149 | fn cleanup_rate_trackers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `addr` is never read [INFO] [stdout] --> src/storage/dht.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DhtNode { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | addr: std::net::SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DhtNode` 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 `ca_registry` is never read [INFO] [stdout] --> src/zhtp/dns.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ZhtpDNS { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | ca_registry: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ZhtpDNS` 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 `public_inputs` is never read [INFO] [stdout] --> src/zhtp/zk_proofs.rs:261:5 [INFO] [stdout] | [INFO] [stdout] 243 | pub struct UnifiedCircuit { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 261 | public_inputs: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnifiedCircuit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_constraints` and `calculate_commitment_count` are never used [INFO] [stdout] --> src/zhtp/zk_proofs.rs:315:8 [INFO] [stdout] | [INFO] [stdout] 270 | impl UnifiedCircuit { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 315 | fn add_constraints(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 532 | fn calculate_commitment_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `circuit_keys` and `trusted_setup_complete` are never read [INFO] [stdout] --> src/zhtp/zk_proofs.rs:1393:5 [INFO] [stdout] | [INFO] [stdout] 1392 | pub struct ZkEngine { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 1393 | circuit_keys: std::collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 1394 | trusted_setup_complete: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `proving_key` and `verification_key` are never read [INFO] [stdout] --> src/zhtp/zk_proofs.rs:1400:5 [INFO] [stdout] | [INFO] [stdout] 1399 | pub struct CircuitKey { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 1400 | proving_key: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1401 | verification_key: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CircuitKey` 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: function `serialize` is never used [INFO] [stdout] --> src/zhtp/zk_proofs.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn serialize(field: &Fr, serializer: S) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize` is never used [INFO] [stdout] --> src/zhtp/zk_proofs.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn deserialize<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network_metrics` is never read [INFO] [stdout] --> src/zhtp/zk_transactions.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct ZkTransactionValidator { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 63 | /// Network metrics for fee calculation [INFO] [stdout] 64 | network_metrics: ZkNetworkMetrics, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `decrypt_transaction_data` is never used [INFO] [stdout] --> src/zhtp/zk_transactions.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl ZkTransaction { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | fn decrypt_transaction_data(encrypted: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `economics` is never read [INFO] [stdout] --> src/zhtp/p2p_network.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ZhtpP2PNetwork { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 42 | economics: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `discovery_requests` is never read [INFO] [stdout] --> src/zhtp/p2p_network.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct ZhtpNetworkDiscovery { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | discovery_requests: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_transaction_broadcast` and `send_message_to_peer` are never used [INFO] [stdout] --> src/zhtp/p2p_network.rs:802:14 [INFO] [stdout] | [INFO] [stdout] 171 | impl ZhtpP2PNetwork { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 802 | async fn handle_transaction_broadcast( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 992 | async fn send_message_to_peer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `peer_public_key` is never read [INFO] [stdout] --> src/zhtp/p2p_network.rs:1040:5 [INFO] [stdout] | [INFO] [stdout] 1032 | pub struct SecureSession { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1040 | peer_public_key: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecureSession` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `receive_encrypted_message`, `cleanup_expired_sessions`, and `handle_secure_handshake` are never used [INFO] [stdout] --> src/zhtp/p2p_network.rs:1213:14 [INFO] [stdout] | [INFO] [stdout] 1100 | impl ZhtpP2PNetwork { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 1213 | async fn receive_encrypted_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1266 | async fn cleanup_expired_sessions(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1287 | async fn handle_secure_handshake( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network` is never read [INFO] [stdout] --> src/zhtp/ceremony_participants.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CeremonyParticipantManager { [INFO] [stdout] | -------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | network: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network` is never read [INFO] [stdout] --> src/zhtp/ceremony_coordinator.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ZhtpCeremonyCoordinator { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | network: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content_index` is never read [INFO] [stdout] --> src/discovery/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DiscoveryNode { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | content_index: ContentIndex, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `MAX_SEARCH_RESULTS` is never used [INFO] [stdout] --> src/input_validation.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 8 | impl InputValidator { [INFO] [stdout] | ------------------- associated constant in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | const MAX_SEARCH_RESULTS: usize = 1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ZkConsensusParams` and `zk_proofs::ByteRoutingProof` [INFO] [stdout] --> src/main.rs:6:49 [INFO] [stdout] | [INFO] [stdout] 6 | consensus_engine::{ZhtpConsensusEngine, ZkConsensusParams}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | economics::ZhtpEconomics, [INFO] [stdout] 8 | zk_proofs::ByteRoutingProof, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_traits::sign::PublicKey` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use pqcrypto_traits::sign::PublicKey as PqPublicKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ZkConsensusParams` and `zk_proofs::ByteRoutingProof` [INFO] [stdout] --> src/main.rs:6:49 [INFO] [stdout] | [INFO] [stdout] 6 | consensus_engine::{ZhtpConsensusEngine, ZkConsensusParams}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | economics::ZhtpEconomics, [INFO] [stdout] 8 | zk_proofs::ByteRoutingProof, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network` [INFO] [stdout] --> examples/deploy_dapp.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 140 | fn create_sample_dapp(network: &str) -> DeployedDApp { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_traits::sign::PublicKey` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use pqcrypto_traits::sign::PublicKey as PqPublicKey; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `abi` is never read [INFO] [stdout] --> examples/contract_testing.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 12 | struct MockContractInfo { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 16 | abi: serde_json::Value, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MockContractInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `success` and `gas_used` are never read [INFO] [stdout] --> examples/contract_testing.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 21 | struct MockCallResult { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 22 | success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | result: serde_json::Value, [INFO] [stdout] 24 | gas_used: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MockCallResult` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `economics`, `storage`, and `network` are never read [INFO] [stdout] --> examples/zhtp_testnet.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub struct ZhtpTestnet { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 68 | /// Economic system powering the decentralized internet [INFO] [stdout] 69 | economics: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | storage: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 74 | /// P2P network replacing ISP infrastructure [INFO] [stdout] 75 | network: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 204 | genesis_tx.sign(b"network"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 204 | let _ = genesis_tx.sign(b"network"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | tx1.sign(b"node1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 211 | let _ = tx1.sign(b"node1"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 215 | tx2.sign(b"node1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 215 | let _ = tx2.sign(b"node1"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:320:29 [INFO] [stdout] | [INFO] [stdout] 320 | ... store_tx.sign(b"network"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 320 | let _ = store_tx.sign(b"network"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:586:17 [INFO] [stdout] | [INFO] [stdout] 586 | tx.sign(b"node1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 586 | let _ = tx.sign(b"node1"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 204 | genesis_tx.sign(b"network"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 204 | let _ = genesis_tx.sign(b"network"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:211:5 [INFO] [stdout] | [INFO] [stdout] 211 | tx1.sign(b"node1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 211 | let _ = tx1.sign(b"node1"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:215:5 [INFO] [stdout] | [INFO] [stdout] 215 | tx2.sign(b"node1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 215 | let _ = tx2.sign(b"node1"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:320:29 [INFO] [stdout] | [INFO] [stdout] 320 | ... store_tx.sign(b"network"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 320 | let _ = store_tx.sign(b"network"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:586:17 [INFO] [stdout] | [INFO] [stdout] 586 | tx.sign(b"node1"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 586 | let _ = tx.sign(b"node1"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_dilithium::dilithium5` [INFO] [stdout] --> src/network.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use pqcrypto_dilithium::dilithium5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha256` [INFO] [stdout] --> src/zhtp/consensus_engine.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | use sha2::{Sha256, Digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::test_helpers::*` [INFO] [stdout] --> src/zhtp/zk_proofs.rs:1031:9 [INFO] [stdout] | [INFO] [stdout] 1031 | use super::test_helpers::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ark_ff::PrimeField` [INFO] [stdout] --> src/zhtp/zk_transactions.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use ark_ff::PrimeField; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::RngCore` [INFO] [stdout] --> src/zhtp/zk_transactions.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::RngCore; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyPackage`, `UnifiedCircuit`, and `ZkGroup` [INFO] [stdout] --> src/zhtp/p2p_network.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | crypto::{Keypair, Signature, KeyPackage}, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | zk_proofs::{RoutingProof, UnifiedCircuit, ZkGroup, ZkGroupTrait}, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crypto::Keypair` [INFO] [stdout] --> src/zhtp/ceremony_participants.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | crypto::Keypair, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BTreeSet` [INFO] [stdout] --> src/zhtp/ceremony_participants.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | collections::{HashMap, BTreeSet}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/zhtp/ceremony_participants.rs:582:9 [INFO] [stdout] | [INFO] [stdout] 582 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/zhtp/ceremony_coordinator.rs:500:9 [INFO] [stdout] | [INFO] [stdout] 500 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sha256` [INFO] [stdout] --> src/discovery/mod.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | use sha2::{Sha256, Digest}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/lib.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pqcrypto_dilithium::dilithium5` [INFO] [stdout] --> src/integration_tests.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | use pqcrypto_dilithium::dilithium5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `validator_id` [INFO] [stdout] --> src/network_service.rs:432:21 [INFO] [stdout] | [INFO] [stdout] 432 | let validator_id = hex::encode(&node_keypair.public_key()); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_validator_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dns` [INFO] [stdout] --> src/network_service.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | let dns = self.dns_service.read().await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dapps` [INFO] [stdout] --> src/network_service.rs:531:13 [INFO] [stdout] | [INFO] [stdout] 531 | let dapps = self.dapp_registry.read().await; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_dapps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dns` [INFO] [stdout] --> src/network_service.rs:800:45 [INFO] [stdout] | [INFO] [stdout] 800 | ... let dns = dns_service.read().await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_keypair` [INFO] [stdout] --> src/network_service.rs:742:13 [INFO] [stdout] | [INFO] [stdout] 742 | let node_keypair = self.node.get_keypair().clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_keypair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dapp_registry` [INFO] [stdout] --> src/network_service.rs:992:9 [INFO] [stdout] | [INFO] [stdout] 992 | dapp_registry: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dapp_registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dns` [INFO] [stdout] --> src/network_service.rs:1247:37 [INFO] [stdout] | [INFO] [stdout] 1247 | ... let dns = dns_service.read().await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `validator_id` [INFO] [stdout] --> src/network_service.rs:432:21 [INFO] [stdout] | [INFO] [stdout] 432 | let validator_id = hex::encode(&node_keypair.public_key()); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_validator_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dapp_launchpad` and `dao` are never read [INFO] [stdout] --> src/network_service.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 221 | pub struct ZhtpNetworkService { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 231 | dapp_launchpad: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 232 | /// DAO governance [INFO] [stdout] 233 | dao: Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_zhtp_server` is never used [INFO] [stdout] --> src/network_service.rs:712:14 [INFO] [stdout] | [INFO] [stdout] 246 | impl ZhtpNetworkService { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 712 | async fn start_zhtp_server(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dns` [INFO] [stdout] --> src/network_service.rs:527:13 [INFO] [stdout] | [INFO] [stdout] 527 | let dns = self.dns_service.read().await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dapps` [INFO] [stdout] --> src/network_service.rs:531:13 [INFO] [stdout] | [INFO] [stdout] 531 | let dapps = self.dapp_registry.read().await; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_dapps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dns` [INFO] [stdout] --> src/network_service.rs:800:45 [INFO] [stdout] | [INFO] [stdout] 800 | ... let dns = dns_service.read().await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_keypair` [INFO] [stdout] --> src/network_service.rs:742:13 [INFO] [stdout] | [INFO] [stdout] 742 | let node_keypair = self.node.get_keypair().clone(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_keypair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dapp_registry` [INFO] [stdout] --> src/network_service.rs:992:9 [INFO] [stdout] | [INFO] [stdout] 992 | dapp_registry: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dapp_registry` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dns` [INFO] [stdout] --> src/network_service.rs:1247:37 [INFO] [stdout] | [INFO] [stdout] 1247 | ... let dns = dns_service.read().await; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dns` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `dapp_launchpad` and `dao` are never read [INFO] [stdout] --> src/network_service.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 221 | pub struct ZhtpNetworkService { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 231 | dapp_launchpad: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 232 | /// DAO governance [INFO] [stdout] 233 | dao: Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `start_zhtp_server` is never used [INFO] [stdout] --> src/network_service.rs:712:14 [INFO] [stdout] | [INFO] [stdout] 246 | impl ZhtpNetworkService { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 712 | async fn start_zhtp_server(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PublicKey` [INFO] [stdout] --> src/network.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | use pqcrypto_traits::sign::{PublicKey as _, SecretKey as _, SignedMessage as _}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/network.rs:9:45 [INFO] [stdout] | [INFO] [stdout] 9 | use pqcrypto_traits::sign::{PublicKey as _, SecretKey as _, SignedMessage as _}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SignedMessage` [INFO] [stdout] --> src/network.rs:9:61 [INFO] [stdout] | [INFO] [stdout] 9 | use pqcrypto_traits::sign::{PublicKey as _, SecretKey as _, SignedMessage as _}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SecretKey` [INFO] [stdout] --> src/zhtp/crypto.rs:9:27 [INFO] [stdout] | [INFO] [stdout] 9 | kem::{PublicKey as _, SecretKey as _, SharedSecret as _, Ciphertext as _}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AffineRepr` [INFO] [stdout] --> src/zhtp/zk_proofs.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use ark_ec::{AffineRepr, Group}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `instance` [INFO] [stdout] --> src/contracts/mod.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | let instance = pre_instance.start(&mut self.store)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_instance` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `circuit` [INFO] [stdout] --> src/storage/dht.rs:556:17 [INFO] [stdout] | [INFO] [stdout] 556 | let circuit = UnifiedCircuit::new( [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circuit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/storage/content.rs:261:61 [INFO] [stdout] | [INFO] [stdout] 261 | pub async fn register_service(&self, info: ServiceInfo, signature: Vec) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alice_keypair` [INFO] [stdout] --> src/zhtp/crypto.rs:471:13 [INFO] [stdout] | [INFO] [stdout] 471 | let alice_keypair = Keypair::generate(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alice_keypair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keypair` [INFO] [stdout] --> src/zhtp/dao.rs:494:56 [INFO] [stdout] | [INFO] [stdout] 494 | pub async fn register_node(&self, node_id: String, keypair: Keypair) -> Result<()> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keypair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `template` [INFO] [stdout] --> src/zhtp/dapp_launchpad.rs:531:13 [INFO] [stdout] | [INFO] [stdout] 531 | let template = factory.token_templates.get(&token_template) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_template` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `developer_info` [INFO] [stdout] --> src/zhtp/dapp_launchpad.rs:580:44 [INFO] [stdout] | [INFO] [stdout] 580 | pub async fn register_developer(&self, developer_info: DeveloperInfo) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_developer_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zhtp/consensus_engine.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut circuit = UnifiedCircuit::new( [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `circuit` [INFO] [stdout] --> src/zhtp/consensus_engine.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | let mut circuit = UnifiedCircuit::new( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circuit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stake_proof` [INFO] [stdout] --> src/zhtp/consensus_engine.rs:296:13 [INFO] [stdout] | [INFO] [stdout] 296 | let stake_proof = self.generate_stake_proof(stake).await?; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stake_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `circuit` [INFO] [stdout] --> src/zhtp/zk_proofs.rs:822:56 [INFO] [stdout] | [INFO] [stdout] 822 | fn verify_polynomial_constraints(proof: &RoutingProof, circuit: &UnifiedCircuit) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circuit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `commitment` [INFO] [stdout] --> src/zhtp/zk_proofs.rs:852:40 [INFO] [stdout] | [INFO] [stdout] 852 | fn verify_single_polynomial_commitment(commitment: &PolyCommit, evaluation: &Fr) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_commitment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `evaluation` [INFO] [stdout] --> src/zhtp/zk_proofs.rs:852:65 [INFO] [stdout] | [INFO] [stdout] 852 | fn verify_single_polynomial_commitment(commitment: &PolyCommit, evaluation: &Fr) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_evaluation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zhtp/zk_proofs.rs:992:13 [INFO] [stdout] | [INFO] [stdout] 992 | let mut proof_elements = vec![Fr::one(); 11]; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zhtp/zk_proofs.rs:993:13 [INFO] [stdout] | [INFO] [stdout] 993 | let mut public_inputs = vec![Fr::one(); 11]; [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `right_g2` [INFO] [stdout] --> src/zhtp/zk_proofs.rs:1648:13 [INFO] [stdout] | [INFO] [stdout] 1648 | let right_g2 = *h_tau - (*h * point); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_right_g2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `validator` [INFO] [stdout] --> src/zhtp/zk_transactions.rs:570:13 [INFO] [stdout] | [INFO] [stdout] 570 | let validator = ZkTransactionValidator::new(network_metrics); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_validator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `economics` [INFO] [stdout] --> src/zhtp/p2p_network.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | let economics = Arc::new(ZhtpEconomics::new()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_economics` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consensus_params` [INFO] [stdout] --> src/zhtp/p2p_network.rs:184:13 [INFO] [stdout] | [INFO] [stdout] 184 | let consensus_params = ZkConsensusParams { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consensus_params` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `packet_bytes` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1342:13 [INFO] [stdout] | [INFO] [stdout] 1342 | let packet_bytes = bincode::serialize(&packet_for_verification)?; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_packet_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1344:13 [INFO] [stdout] | [INFO] [stdout] 1344 | let signature = Signature::new(encrypted_packet.signature.clone()); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender_public_key` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1348:13 [INFO] [stdout] | [INFO] [stdout] 1348 | let sender_public_key = &encrypted_packet.sender_public_key; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer_addr` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1379:9 [INFO] [stdout] | [INFO] [stdout] 1379 | peer_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message_type` [INFO] [stdout] --> src/zhtp/p2p_network.rs:773:9 [INFO] [stdout] | [INFO] [stdout] 773 | message_type: ConsensusMessageType, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consensus` [INFO] [stdout] --> src/zhtp/p2p_network.rs:776:9 [INFO] [stdout] | [INFO] [stdout] 776 | consensus: &Arc, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consensus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `routing_proof` [INFO] [stdout] --> src/zhtp/p2p_network.rs:785:13 [INFO] [stdout] | [INFO] [stdout] 785 | let routing_proof = RoutingProof::try_from(zk_proof) [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_routing_proof` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `verification_bytes` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1224:13 [INFO] [stdout] | [INFO] [stdout] 1224 | let verification_bytes = bincode::serialize(&packet_for_verification)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_verification_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_keypair` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1227:13 [INFO] [stdout] | [INFO] [stdout] 1227 | let temp_keypair = Keypair::generate(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_keypair` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `signature` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1228:13 [INFO] [stdout] | [INFO] [stdout] 1228 | let signature = Signature::new(encrypted_packet.signature); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_signature` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `consensus` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1293:9 [INFO] [stdout] | [INFO] [stdout] 1293 | consensus: &Arc, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_consensus` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tx_pool` [INFO] [stdout] --> src/zhtp/p2p_network.rs:1294:9 [INFO] [stdout] | [INFO] [stdout] 1294 | tx_pool: &Arc>, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tx_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> src/zhtp/mod.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let node = self.0.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/integration_tests.rs:110:39 [INFO] [stdout] | [INFO] [stdout] 110 | async fn test_blockchain_security(blockchain: &Blockchain) -> bool { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `public_key` [INFO] [stdout] --> src/integration_tests.rs:122:14 [INFO] [stdout] | [INFO] [stdout] 122 | let (public_key, secret_key) = dilithium5::keypair(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_public_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `alice_public` [INFO] [stdout] --> src/integration_tests.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 175 | let (alice_public, alice_secret) = dilithium5::keypair(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alice_public` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `node` and `connections` are never read [INFO] [stdout] --> src/browser/mod.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct ZhtpBrowser { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 71 | /// ZHTP node [INFO] [stdout] 72 | node: Arc>, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | connections: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_drop_rate` is never used [INFO] [stdout] --> src/network.rs:288:8 [INFO] [stdout] | [INFO] [stdout] 286 | impl NetworkCondition { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 287 | /// Calculate effective drop rate considering all factors [INFO] [stdout] 288 | fn calculate_drop_rate(&self, reputation: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cleanup_rate_trackers` is never used [INFO] [stdout] --> src/network.rs:1149:8 [INFO] [stdout] | [INFO] [stdout] 600 | impl Network { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 1149 | fn cleanup_rate_trackers(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `addr` is never read [INFO] [stdout] --> src/storage/dht.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DhtNode { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | addr: std::net::SocketAddr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DhtNode` 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 `ca_registry` is never read [INFO] [stdout] --> src/zhtp/dns.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct ZhtpDNS { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | ca_registry: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ZhtpDNS` 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 `public_inputs` is never read [INFO] [stdout] --> src/zhtp/zk_proofs.rs:261:5 [INFO] [stdout] | [INFO] [stdout] 243 | pub struct UnifiedCircuit { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 261 | public_inputs: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnifiedCircuit` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_constraints` and `calculate_commitment_count` are never used [INFO] [stdout] --> src/zhtp/zk_proofs.rs:315:8 [INFO] [stdout] | [INFO] [stdout] 270 | impl UnifiedCircuit { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 315 | fn add_constraints(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 532 | fn calculate_commitment_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `circuit_keys` and `trusted_setup_complete` are never read [INFO] [stdout] --> src/zhtp/zk_proofs.rs:1393:5 [INFO] [stdout] | [INFO] [stdout] 1392 | pub struct ZkEngine { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 1393 | circuit_keys: std::collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 1394 | trusted_setup_complete: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `proving_key` and `verification_key` are never read [INFO] [stdout] --> src/zhtp/zk_proofs.rs:1400:5 [INFO] [stdout] | [INFO] [stdout] 1399 | pub struct CircuitKey { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 1400 | proving_key: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 1401 | verification_key: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CircuitKey` 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: function `serialize` is never used [INFO] [stdout] --> src/zhtp/zk_proofs.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 188 | pub fn serialize(field: &Fr, serializer: S) -> Result [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize` is never used [INFO] [stdout] --> src/zhtp/zk_proofs.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 197 | pub fn deserialize<'de, D>(deserializer: D) -> Result [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network_metrics` is never read [INFO] [stdout] --> src/zhtp/zk_transactions.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct ZkTransactionValidator { [INFO] [stdout] | ---------------------- field in this struct [INFO] [stdout] 63 | /// Network metrics for fee calculation [INFO] [stdout] 64 | network_metrics: ZkNetworkMetrics, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `decrypt_transaction_data` is never used [INFO] [stdout] --> src/zhtp/zk_transactions.rs:145:8 [INFO] [stdout] | [INFO] [stdout] 67 | impl ZkTransaction { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 145 | fn decrypt_transaction_data(encrypted: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `economics` is never read [INFO] [stdout] --> src/zhtp/p2p_network.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ZhtpP2PNetwork { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 42 | economics: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `discovery_requests` is never read [INFO] [stdout] --> src/zhtp/p2p_network.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub struct ZhtpNetworkDiscovery { [INFO] [stdout] | -------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | discovery_requests: Arc>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_transaction_broadcast` and `send_message_to_peer` are never used [INFO] [stdout] --> src/zhtp/p2p_network.rs:802:14 [INFO] [stdout] | [INFO] [stdout] 171 | impl ZhtpP2PNetwork { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 802 | async fn handle_transaction_broadcast( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 992 | async fn send_message_to_peer( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `peer_public_key` is never read [INFO] [stdout] --> src/zhtp/p2p_network.rs:1040:5 [INFO] [stdout] | [INFO] [stdout] 1032 | pub struct SecureSession { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 1040 | peer_public_key: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SecureSession` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `receive_encrypted_message`, `cleanup_expired_sessions`, and `handle_secure_handshake` are never used [INFO] [stdout] --> src/zhtp/p2p_network.rs:1213:14 [INFO] [stdout] | [INFO] [stdout] 1100 | impl ZhtpP2PNetwork { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 1213 | async fn receive_encrypted_message( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1266 | async fn cleanup_expired_sessions(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1287 | async fn handle_secure_handshake( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network` is never read [INFO] [stdout] --> src/zhtp/ceremony_participants.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct CeremonyParticipantManager { [INFO] [stdout] | -------------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | network: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `network` is never read [INFO] [stdout] --> src/zhtp/ceremony_coordinator.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ZhtpCeremonyCoordinator { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | network: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `content_index` is never read [INFO] [stdout] --> src/discovery/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct DiscoveryNode { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | content_index: ContentIndex, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `MAX_SEARCH_RESULTS` is never used [INFO] [stdout] --> src/input_validation.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 8 | impl InputValidator { [INFO] [stdout] | ------------------- associated constant in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | const MAX_SEARCH_RESULTS: usize = 1000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 38s [INFO] running `Command { std: "docker" "inspect" "f184c463f8786998cbd84410917192dbc67190573ec98fc4f0adb7052eb810e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f184c463f8786998cbd84410917192dbc67190573ec98fc4f0adb7052eb810e0", kill_on_drop: false }` [INFO] [stdout] f184c463f8786998cbd84410917192dbc67190573ec98fc4f0adb7052eb810e0