[INFO] cloning repository https://github.com/NakaSato/poc-blockchain-p2p [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/NakaSato/poc-blockchain-p2p" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNakaSato%2Fpoc-blockchain-p2p", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNakaSato%2Fpoc-blockchain-p2p'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3b4294ecebbf1d4807ba2924993365ba1f073fd7 [INFO] building NakaSato/poc-blockchain-p2p against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNakaSato%2Fpoc-blockchain-p2p" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/NakaSato/poc-blockchain-p2p [INFO] finished tweaking git repo https://github.com/NakaSato/poc-blockchain-p2p [INFO] tweaked toml for git repo https://github.com/NakaSato/poc-blockchain-p2p written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/NakaSato/poc-blockchain-p2p on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/NakaSato/poc-blockchain-p2p 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rw-stream-sink v0.4.0 [INFO] [stderr] Downloaded windows-registry v0.5.3 [INFO] [stderr] Downloaded tokio-test v0.4.4 [INFO] [stderr] Downloaded multiaddr v0.18.2 [INFO] [stderr] Downloaded libp2p v0.53.2 [INFO] [stderr] Downloaded oorandom v11.1.5 [INFO] [stderr] Downloaded cc v1.2.32 [INFO] [stderr] Downloaded futures-rustls v0.26.0 [INFO] [stderr] Downloaded h2 v0.4.12 [INFO] [stderr] Downloaded asn1-rs v0.6.2 [INFO] [stderr] Downloaded clap v4.5.43 [INFO] [stderr] Downloaded anes v0.1.6 [INFO] [stderr] Downloaded cast v0.3.0 [INFO] [stderr] Downloaded ipconfig v0.3.2 [INFO] [stderr] Downloaded plotters-backend v0.3.7 [INFO] [stderr] Downloaded clap_builder v4.5.43 [INFO] [stderr] Downloaded asynchronous-codec v0.7.0 [INFO] [stderr] Downloaded futures-bounded v0.2.4 [INFO] [stderr] Downloaded netlink-packet-route v0.17.1 [INFO] [stderr] Downloaded libp2p-connection-limits v0.3.1 [INFO] [stderr] Downloaded igd-next v0.14.3 [INFO] [stderr] Downloaded criterion-plot v0.6.0 [INFO] [stderr] Downloaded criterion v0.7.0 [INFO] [stderr] Downloaded libp2p-dns v0.41.1 [INFO] [stderr] Downloaded ed25519-dalek v2.2.0 [INFO] [stderr] Downloaded unsigned-varint v0.7.2 [INFO] [stderr] Downloaded hickory-proto v0.24.4 [INFO] [stderr] Downloaded prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Downloaded data-encoding-macro-internal v0.1.16 [INFO] [stderr] Downloaded widestring v1.2.0 [INFO] [stderr] Downloaded multihash v0.19.3 [INFO] [stderr] Downloaded libp2p-upnp v0.2.2 [INFO] [stderr] Downloaded crossterm v0.29.0 [INFO] [stderr] Downloaded hickory-resolver v0.24.4 [INFO] [stderr] Downloaded chacha20 v0.9.1 [INFO] [stderr] Downloaded chacha20poly1305 v0.10.1 [INFO] [stderr] Downloaded libp2p-metrics v0.14.1 [INFO] [stderr] Downloaded attohttpc v0.24.1 [INFO] [stderr] Downloaded multistream-select v0.13.0 [INFO] [stderr] Downloaded libp2p-core v0.41.3 [INFO] [stderr] Downloaded quick-protobuf v0.8.1 [INFO] [stderr] Downloaded libp2p-identity v0.2.12 [INFO] [stderr] Downloaded snow v0.9.6 [INFO] [stderr] Downloaded enum-as-inner v0.6.1 [INFO] [stderr] Downloaded quick-protobuf-codec v0.3.1 [INFO] [stderr] Downloaded libp2p-kad v0.45.3 [INFO] [stderr] Downloaded prometheus-client v0.22.3 [INFO] [stderr] Downloaded rcgen v0.11.3 [INFO] [stderr] Downloaded windows-core v0.53.0 [INFO] [stderr] Downloaded libp2p-gossipsub v0.46.1 [INFO] [stderr] Downloaded libp2p-swarm v0.44.2 [INFO] [stderr] Downloaded plotters v0.3.7 [INFO] [stderr] Downloaded libp2p-tcp v0.41.0 [INFO] [stderr] Downloaded yamux v0.12.1 [INFO] [stderr] Downloaded yamux v0.13.6 [INFO] [stderr] Downloaded libp2p-yamux v0.45.2 [INFO] [stderr] Downloaded data-encoding v2.9.0 [INFO] [stderr] Downloaded data-encoding-macro v0.1.18 [INFO] [stderr] Downloaded multibase v0.9.1 [INFO] [stderr] Downloaded unsigned-varint v0.8.0 [INFO] [stderr] Downloaded dtoa v1.0.10 [INFO] [stderr] Downloaded poly1305 v0.8.0 [INFO] [stderr] Downloaded x25519-dalek v2.0.1 [INFO] [stderr] Downloaded libp2p-noise v0.44.0 [INFO] [stderr] Downloaded netlink-packet-utils v0.5.2 [INFO] [stderr] Downloaded netlink-packet-core v0.7.0 [INFO] [stderr] Downloaded resolv-conf v0.7.4 [INFO] [stderr] Downloaded netlink-proto v0.11.5 [INFO] [stderr] Downloaded core2 v0.4.0 [INFO] [stderr] Downloaded plotters-svg v0.3.7 [INFO] [stderr] Downloaded convert_case v0.7.1 [INFO] [stderr] Downloaded libp2p-allow-block-list v0.3.0 [INFO] [stderr] Downloaded libp2p-mdns v0.45.1 [INFO] [stderr] Downloaded hex_fmt v0.3.0 [INFO] [stderr] Downloaded futures-ticker v0.0.3 [INFO] [stderr] Downloaded inout v0.1.4 [INFO] [stderr] Downloaded der-parser v9.0.0 [INFO] [stderr] Downloaded asn1-rs-derive v0.5.1 [INFO] [stderr] Downloaded libp2p-tls v0.4.1 [INFO] [stderr] Downloaded if-addrs v0.10.2 [INFO] [stderr] Downloaded if-watch v3.2.1 [INFO] [stderr] Downloaded sled v0.34.7 [INFO] [stderr] Downloaded oid-registry v0.7.1 [INFO] [stderr] Downloaded netlink-sys v0.8.7 [INFO] [stderr] Downloaded rtnetlink v0.13.1 [INFO] [stderr] Downloaded reqwest v0.12.22 [INFO] [stderr] Downloaded asn1-rs-impl v0.2.0 [INFO] [stderr] Downloaded x509-parser v0.16.0 [INFO] [stderr] Downloaded libp2p-quic v0.10.3 [INFO] [stderr] Downloaded xmltree v0.10.3 [INFO] [stderr] Downloaded windows v0.53.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 46a6307028bd5428fde364ddc484bc736c81dc11fea63afcdc4869fe99c3e7d1 [INFO] running `Command { std: "docker" "start" "-a" "46a6307028bd5428fde364ddc484bc736c81dc11fea63afcdc4869fe99c3e7d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "46a6307028bd5428fde364ddc484bc736c81dc11fea63afcdc4869fe99c3e7d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46a6307028bd5428fde364ddc484bc736c81dc11fea63afcdc4869fe99c3e7d1", kill_on_drop: false }` [INFO] [stdout] 46a6307028bd5428fde364ddc484bc736c81dc11fea63afcdc4869fe99c3e7d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 41b16d1828bf37d9748bb8f94060ad5d39aab3ba20edf55c4b3bb23f470c99d9 [INFO] running `Command { std: "docker" "start" "-a" "41b16d1828bf37d9748bb8f94060ad5d39aab3ba20edf55c4b3bb23f470c99d9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling cc v1.2.32 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling unsigned-varint v0.8.0 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling quick-protobuf v0.8.1 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling base-x v0.2.11 [INFO] [stderr] Compiling multihash v0.19.3 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling unsigned-varint v0.7.2 [INFO] [stderr] Compiling web-time v1.1.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling lru v0.12.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling snow v0.9.6 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling prometheus-client v0.22.3 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling dtoa v1.0.10 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling hex_fmt v0.3.0 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling clap_builder v4.5.43 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling data-encoding-macro-internal v0.1.16 [INFO] [stderr] Compiling multistream-select v0.13.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling data-encoding-macro v0.1.18 [INFO] [stderr] Compiling multibase v0.9.1 [INFO] [stderr] Compiling rw-stream-sink v0.4.0 [INFO] [stderr] Compiling netlink-packet-utils v0.5.2 [INFO] [stderr] Compiling asynchronous-codec v0.7.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling netlink-packet-core v0.7.0 [INFO] [stderr] Compiling quick-protobuf-codec v0.3.1 [INFO] [stderr] Compiling prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Compiling netlink-packet-route v0.17.1 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling yamux v0.12.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling yamux v0.13.6 [INFO] [stderr] Compiling futures-ticker v0.0.3 [INFO] [stderr] Compiling futures-bounded v0.2.4 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling ed25519-dalek v2.2.0 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling libp2p-identity v0.2.12 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling multiaddr v0.18.2 [INFO] [stderr] Compiling netlink-sys v0.8.7 [INFO] [stderr] Compiling libp2p-core v0.41.3 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling netlink-proto v0.11.5 [INFO] [stderr] Compiling rtnetlink v0.13.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling libp2p-swarm v0.44.2 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling libp2p-noise v0.44.0 [INFO] [stderr] Compiling libp2p-yamux v0.45.2 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling axum-core v0.5.2 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling libp2p-kad v0.45.3 [INFO] [stderr] Compiling if-watch v3.2.1 [INFO] [stderr] Compiling libp2p-mdns v0.45.1 [INFO] [stderr] Compiling libp2p-tcp v0.41.0 [INFO] [stderr] Compiling libp2p-allow-block-list v0.3.0 [INFO] [stderr] Compiling libp2p-gossipsub v0.46.1 [INFO] [stderr] Compiling libp2p-connection-limits v0.3.1 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling clap v4.5.43 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling pbkdf2 v0.12.2 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling libp2p v0.53.2 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling reqwest v0.12.22 [INFO] [stderr] Compiling gridtokenx-blockchain v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/energy.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, Result}; [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: `std::collections::HashMap` [INFO] [stdout] --> src/energy.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/energy.rs:13:37 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::blockchain::{Blockchain, Transaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/governance.rs:13:37 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::blockchain::{Blockchain, Transaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/p2p.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:292:11 [INFO] [stdout] | [INFO] [stdout] 292 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:306:11 [INFO] [stdout] | [INFO] [stdout] 306 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `energy_trading` [INFO] [stdout] --> src/api.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | let energy_trading = state.energy_trading.read().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_energy_trading` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `energy_trading` [INFO] [stdout] --> src/api.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | let energy_trading = state.energy_trading.read().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_energy_trading` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:353:41 [INFO] [stdout] | [INFO] [stdout] 353 | async fn handle_get_energy_trades(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grid_manager` [INFO] [stdout] --> src/api.rs:361:9 [INFO] [stdout] | [INFO] [stdout] 361 | let grid_manager = state.grid_manager.read().await; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grid_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:373:42 [INFO] [stdout] | [INFO] [stdout] 373 | async fn handle_get_grid_frequency(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:378:37 [INFO] [stdout] | [INFO] [stdout] 378 | async fn handle_get_grid_load(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:387:11 [INFO] [stdout] | [INFO] [stdout] 387 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:395:11 [INFO] [stdout] | [INFO] [stdout] 395 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:408:11 [INFO] [stdout] | [INFO] [stdout] 408 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `governance` [INFO] [stdout] --> src/api.rs:417:9 [INFO] [stdout] | [INFO] [stdout] 417 | let governance = state.governance.read().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_governance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:423:11 [INFO] [stdout] | [INFO] [stdout] 423 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proposal` [INFO] [stdout] --> src/api.rs:424:10 [INFO] [stdout] | [INFO] [stdout] 424 | Json(proposal): Json, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_proposal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:432:11 [INFO] [stdout] | [INFO] [stdout] 432 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vote` [INFO] [stdout] --> src/api.rs:433:10 [INFO] [stdout] | [INFO] [stdout] 433 | Json(vote): Json, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vote` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:441:11 [INFO] [stdout] | [INFO] [stdout] 441 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:451:11 [INFO] [stdout] | [INFO] [stdout] 451 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:464:40 [INFO] [stdout] | [INFO] [stdout] 464 | async fn handle_get_market_depth(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:469:41 [INFO] [stdout] | [INFO] [stdout] 469 | async fn handle_get_market_volume(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trading_engine` [INFO] [stdout] --> src/energy.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | let mut trading_engine = self.trading_engine.write().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trading_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/energy.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | let mut trading_engine = self.trading_engine.write().await; [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: `blockchain` [INFO] [stdout] --> src/governance.rs:481:13 [INFO] [stdout] | [INFO] [stdout] 481 | let blockchain = self.blockchain.read().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/p2p.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | let blockchain = self.blockchain.write().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/p2p.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let blockchain = self.blockchain.read().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `blockchain` is never read [INFO] [stdout] --> src/energy.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct EnergyTrading { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 19 | blockchain: Arc>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EnergyTrading` has a derived impl for the trait `Debug`, but this is 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: field `config` is never read [INFO] [stdout] --> src/energy.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct GridManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 27 | config: GridConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GridManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `matching_algorithm` and `price_discovery` are never read [INFO] [stdout] --> src/energy.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct TradingEngine { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 43 | matching_algorithm: MatchingAlgorithm, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | price_discovery: PriceDiscovery, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradingEngine` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `last_trade_price`, `weighted_average_price`, and `bid_ask_spread` are never read [INFO] [stdout] --> src/energy.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 126 | pub struct PriceDiscovery { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 127 | last_trade_price: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 128 | weighted_average_price: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 129 | bid_ask_spread: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceDiscovery` 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 `message_handler` is never read [INFO] [stdout] --> src/p2p.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct P2PNetwork { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | message_handler: RwLock, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `P2PNetwork` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pending_blocks`, `pending_transactions`, and `sync_requests` are never read [INFO] [stdout] --> src/p2p.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct MessageHandler { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 42 | pending_blocks: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 43 | pending_transactions: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | sync_requests: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageHandler` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ApiConfig` [INFO] [stdout] --> src/main.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | ApiServer, ApiConfig, EnergyTrading, GridManager, GovernanceSystem, P2PNetwork [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: `p2p_handle` [INFO] [stdout] --> src/main.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let p2p_handle = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_p2p_handle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `api_handle` [INFO] [stdout] --> src/main.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | let api_handle = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut p2p_network = P2PNetwork::new(config.p2p.clone(), blockchain.clone()).await?; [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 39s [INFO] running `Command { std: "docker" "inspect" "41b16d1828bf37d9748bb8f94060ad5d39aab3ba20edf55c4b3bb23f470c99d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41b16d1828bf37d9748bb8f94060ad5d39aab3ba20edf55c4b3bb23f470c99d9", kill_on_drop: false }` [INFO] [stdout] 41b16d1828bf37d9748bb8f94060ad5d39aab3ba20edf55c4b3bb23f470c99d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e433babcecec5221102b9d11bb0cd94310e64ceb6c78558b092035c500a918df [INFO] running `Command { std: "docker" "start" "-a" "e433babcecec5221102b9d11bb0cd94310e64ceb6c78558b092035c500a918df", kill_on_drop: false }` [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling convert_case v0.7.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling libp2p-core v0.41.3 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling litrs v0.4.2 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling libp2p-noise v0.44.0 [INFO] [stderr] Compiling libp2p-yamux v0.45.2 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling criterion-plot v0.6.0 [INFO] [stderr] Compiling signal-hook-mio v0.2.4 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling crossterm v0.29.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling criterion v0.7.0 [INFO] [stderr] Compiling libp2p-swarm v0.44.2 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling netlink-sys v0.8.7 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling netlink-proto v0.11.5 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling rtnetlink v0.13.1 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling h2 v0.4.12 [INFO] [stderr] Compiling libp2p-gossipsub v0.46.1 [INFO] [stderr] Compiling libp2p-kad v0.45.3 [INFO] [stderr] Compiling libp2p-connection-limits v0.3.1 [INFO] [stderr] Compiling libp2p-allow-block-list v0.3.0 [INFO] [stderr] Compiling if-watch v3.2.1 [INFO] [stderr] Compiling libp2p-mdns v0.45.1 [INFO] [stderr] Compiling libp2p-tcp v0.41.0 [INFO] [stderr] Compiling libp2p v0.53.2 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling axum v0.8.4 [INFO] [stderr] Compiling reqwest v0.12.22 [INFO] [stderr] Compiling gridtokenx-blockchain v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/energy.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, Result}; [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: `std::collections::HashMap` [INFO] [stdout] --> src/energy.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/energy.rs:13:37 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::blockchain::{Blockchain, Transaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/governance.rs:13:37 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::blockchain::{Blockchain, Transaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/p2p.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/energy.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, Result}; [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: `std::collections::HashMap` [INFO] [stdout] --> src/energy.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/energy.rs:13:37 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::blockchain::{Blockchain, Transaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/governance.rs:13:37 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::blockchain::{Blockchain, Transaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/p2p.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:292:11 [INFO] [stdout] | [INFO] [stdout] 292 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:306:11 [INFO] [stdout] | [INFO] [stdout] 306 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `energy_trading` [INFO] [stdout] --> src/api.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | let energy_trading = state.energy_trading.read().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_energy_trading` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `energy_trading` [INFO] [stdout] --> src/api.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | let energy_trading = state.energy_trading.read().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_energy_trading` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:353:41 [INFO] [stdout] | [INFO] [stdout] 353 | async fn handle_get_energy_trades(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grid_manager` [INFO] [stdout] --> src/api.rs:361:9 [INFO] [stdout] | [INFO] [stdout] 361 | let grid_manager = state.grid_manager.read().await; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grid_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:373:42 [INFO] [stdout] | [INFO] [stdout] 373 | async fn handle_get_grid_frequency(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:378:37 [INFO] [stdout] | [INFO] [stdout] 378 | async fn handle_get_grid_load(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:387:11 [INFO] [stdout] | [INFO] [stdout] 387 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:395:11 [INFO] [stdout] | [INFO] [stdout] 395 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:408:11 [INFO] [stdout] | [INFO] [stdout] 408 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `governance` [INFO] [stdout] --> src/api.rs:417:9 [INFO] [stdout] | [INFO] [stdout] 417 | let governance = state.governance.read().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_governance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:423:11 [INFO] [stdout] | [INFO] [stdout] 423 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proposal` [INFO] [stdout] --> src/api.rs:424:10 [INFO] [stdout] | [INFO] [stdout] 424 | Json(proposal): Json, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_proposal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:432:11 [INFO] [stdout] | [INFO] [stdout] 432 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vote` [INFO] [stdout] --> src/api.rs:433:10 [INFO] [stdout] | [INFO] [stdout] 433 | Json(vote): Json, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vote` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:441:11 [INFO] [stdout] | [INFO] [stdout] 441 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:451:11 [INFO] [stdout] | [INFO] [stdout] 451 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:464:40 [INFO] [stdout] | [INFO] [stdout] 464 | async fn handle_get_market_depth(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:469:41 [INFO] [stdout] | [INFO] [stdout] 469 | async fn handle_get_market_volume(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trading_engine` [INFO] [stdout] --> src/energy.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | let mut trading_engine = self.trading_engine.write().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trading_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/energy.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | let mut trading_engine = self.trading_engine.write().await; [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: `blockchain` [INFO] [stdout] --> src/governance.rs:481:13 [INFO] [stdout] | [INFO] [stdout] 481 | let blockchain = self.blockchain.read().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/p2p.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | let blockchain = self.blockchain.write().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/p2p.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let blockchain = self.blockchain.read().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:292:11 [INFO] [stdout] | [INFO] [stdout] 292 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:306:11 [INFO] [stdout] | [INFO] [stdout] 306 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `energy_trading` [INFO] [stdout] --> src/api.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | let energy_trading = state.energy_trading.read().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_energy_trading` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `energy_trading` [INFO] [stdout] --> src/api.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 330 | let energy_trading = state.energy_trading.read().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_energy_trading` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:353:41 [INFO] [stdout] | [INFO] [stdout] 353 | async fn handle_get_energy_trades(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `grid_manager` [INFO] [stdout] --> src/api.rs:361:9 [INFO] [stdout] | [INFO] [stdout] 361 | let grid_manager = state.grid_manager.read().await; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_grid_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:373:42 [INFO] [stdout] | [INFO] [stdout] 373 | async fn handle_get_grid_frequency(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:378:37 [INFO] [stdout] | [INFO] [stdout] 378 | async fn handle_get_grid_load(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:387:11 [INFO] [stdout] | [INFO] [stdout] 387 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:395:11 [INFO] [stdout] | [INFO] [stdout] 395 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:408:11 [INFO] [stdout] | [INFO] [stdout] 408 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `governance` [INFO] [stdout] --> src/api.rs:417:9 [INFO] [stdout] | [INFO] [stdout] 417 | let governance = state.governance.read().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_governance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:423:11 [INFO] [stdout] | [INFO] [stdout] 423 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `proposal` [INFO] [stdout] --> src/api.rs:424:10 [INFO] [stdout] | [INFO] [stdout] 424 | Json(proposal): Json, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_proposal` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:432:11 [INFO] [stdout] | [INFO] [stdout] 432 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vote` [INFO] [stdout] --> src/api.rs:433:10 [INFO] [stdout] | [INFO] [stdout] 433 | Json(vote): Json, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_vote` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:441:11 [INFO] [stdout] | [INFO] [stdout] 441 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:451:11 [INFO] [stdout] | [INFO] [stdout] 451 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:464:40 [INFO] [stdout] | [INFO] [stdout] 464 | async fn handle_get_market_depth(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api.rs:469:41 [INFO] [stdout] | [INFO] [stdout] 469 | async fn handle_get_market_volume(State(state): State) -> Json> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trading_engine` [INFO] [stdout] --> src/energy.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | let mut trading_engine = self.trading_engine.write().await; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trading_engine` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/energy.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | let mut trading_engine = self.trading_engine.write().await; [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: `blockchain` [INFO] [stdout] --> src/governance.rs:481:13 [INFO] [stdout] | [INFO] [stdout] 481 | let blockchain = self.blockchain.read().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/p2p.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | let blockchain = self.blockchain.write().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blockchain` [INFO] [stdout] --> src/p2p.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let blockchain = self.blockchain.read().await; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blockchain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/blockchain/transaction.rs:683:13 [INFO] [stdout] | [INFO] [stdout] 683 | let mut tx = Transaction::new_energy_trade( [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `blockchain` is never read [INFO] [stdout] --> src/energy.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct EnergyTrading { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 19 | blockchain: Arc>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EnergyTrading` has a derived impl for the trait `Debug`, but this is 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: field `config` is never read [INFO] [stdout] --> src/energy.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct GridManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 27 | config: GridConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GridManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `matching_algorithm` and `price_discovery` are never read [INFO] [stdout] --> src/energy.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct TradingEngine { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 43 | matching_algorithm: MatchingAlgorithm, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | price_discovery: PriceDiscovery, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradingEngine` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `last_trade_price`, `weighted_average_price`, and `bid_ask_spread` are never read [INFO] [stdout] --> src/energy.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 126 | pub struct PriceDiscovery { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 127 | last_trade_price: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 128 | weighted_average_price: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 129 | bid_ask_spread: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceDiscovery` 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 `message_handler` is never read [INFO] [stdout] --> src/p2p.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct P2PNetwork { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | message_handler: RwLock, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `P2PNetwork` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pending_blocks`, `pending_transactions`, and `sync_requests` are never read [INFO] [stdout] --> src/p2p.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct MessageHandler { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 42 | pending_blocks: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 43 | pending_transactions: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | sync_requests: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageHandler` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `blockchain` is never read [INFO] [stdout] --> src/energy.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct EnergyTrading { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 19 | blockchain: Arc>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EnergyTrading` has a derived impl for the trait `Debug`, but this is 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: field `config` is never read [INFO] [stdout] --> src/energy.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct GridManager { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 27 | config: GridConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GridManager` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `matching_algorithm` and `price_discovery` are never read [INFO] [stdout] --> src/energy.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct TradingEngine { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 43 | matching_algorithm: MatchingAlgorithm, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | price_discovery: PriceDiscovery, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradingEngine` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `last_trade_price`, `weighted_average_price`, and `bid_ask_spread` are never read [INFO] [stdout] --> src/energy.rs:127:5 [INFO] [stdout] | [INFO] [stdout] 126 | pub struct PriceDiscovery { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 127 | last_trade_price: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 128 | weighted_average_price: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 129 | bid_ask_spread: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PriceDiscovery` 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 `message_handler` is never read [INFO] [stdout] --> src/p2p.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct P2PNetwork { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 22 | message_handler: RwLock, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `P2PNetwork` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `pending_blocks`, `pending_transactions`, and `sync_requests` are never read [INFO] [stdout] --> src/p2p.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct MessageHandler { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 42 | pending_blocks: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 43 | pending_transactions: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 44 | sync_requests: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageHandler` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ApiConfig` [INFO] [stdout] --> src/main.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | ApiServer, ApiConfig, EnergyTrading, GridManager, GovernanceSystem, P2PNetwork [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: `p2p_handle` [INFO] [stdout] --> src/main.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let p2p_handle = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_p2p_handle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `api_handle` [INFO] [stdout] --> src/main.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | let api_handle = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_api_handle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | let mut p2p_network = P2PNetwork::new(config.p2p.clone(), blockchain.clone()).await?; [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1m 51s [INFO] running `Command { std: "docker" "inspect" "e433babcecec5221102b9d11bb0cd94310e64ceb6c78558b092035c500a918df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e433babcecec5221102b9d11bb0cd94310e64ceb6c78558b092035c500a918df", kill_on_drop: false }` [INFO] [stdout] e433babcecec5221102b9d11bb0cd94310e64ceb6c78558b092035c500a918df