[INFO] cloning repository https://github.com/Rei-ath/j-chain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Rei-ath/j-chain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRei-ath%2Fj-chain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRei-ath%2Fj-chain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 108ece90f09a8096cd3cea0f086d9f4958909665 [INFO] checking Rei-ath/j-chain/108ece90f09a8096cd3cea0f086d9f4958909665 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRei-ath%2Fj-chain" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Rei-ath/j-chain on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Rei-ath/j-chain [INFO] finished tweaking git repo https://github.com/Rei-ath/j-chain [INFO] tweaked toml for git repo https://github.com/Rei-ath/j-chain written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Rei-ath/j-chain 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rlibc v1.0.0 [INFO] [stderr] Downloaded ink_primitives v3.4.0 [INFO] [stderr] Downloaded bson v2.10.0 [INFO] [stderr] Downloaded ink_prelude v3.4.0 [INFO] [stderr] Downloaded ink_lang_codegen v3.4.0 [INFO] [stderr] Downloaded ink_env v3.4.0 [INFO] [stderr] Downloaded ink_lang_ir v3.4.0 [INFO] [stderr] Downloaded tls-listener v0.10.0 [INFO] [stderr] Downloaded ink_lang_macro v3.4.0 [INFO] [stderr] Downloaded ink_allocator v3.4.0 [INFO] [stderr] Downloaded ink_engine v3.4.0 [INFO] [stderr] Downloaded sysinfo v0.30.10 [INFO] [stderr] Downloaded ink_metadata v3.4.0 [INFO] [stderr] Downloaded ink_storage_derive v3.4.0 [INFO] [stderr] Downloaded ink_storage v3.4.0 [INFO] [stderr] Downloaded ink_lang v3.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b67c53e87d3d2db0a59b19a11f1ed86c170dddfbd294472e6fc74c85be63a64 [INFO] running `Command { std: "docker" "start" "-a" "1b67c53e87d3d2db0a59b19a11f1ed86c170dddfbd294472e6fc74c85be63a64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b67c53e87d3d2db0a59b19a11f1ed86c170dddfbd294472e6fc74c85be63a64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b67c53e87d3d2db0a59b19a11f1ed86c170dddfbd294472e6fc74c85be63a64", kill_on_drop: false }` [INFO] [stdout] 1b67c53e87d3d2db0a59b19a11f1ed86c170dddfbd294472e6fc74c85be63a64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de78ec9af94421f4dd060b15abcf2b7660844275f3c34cc3d72bf159de7d079b [INFO] running `Command { std: "docker" "start" "-a" "de78ec9af94421f4dd060b15abcf2b7660844275f3c34cc3d72bf159de7d079b", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling cc v1.0.94 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling toml_datetime v0.6.3 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.6 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking byte-slice-cast v1.2.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking ink_prelude v3.4.0 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling zerocopy v0.8.0-alpha.6 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking matches v0.1.10 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling serde_json v1.0.115 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling secp256k1-sys v0.6.1 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling rustc_version_runtime v0.2.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking ink_allocator v3.4.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking rand_core v0.9.0-alpha.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling toml_edit v0.20.2 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking rayon-core v1.12.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking finl_unicode v1.2.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking chrono v0.4.37 [INFO] [stderr] Checking stringprep v0.1.4 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking rand_chacha v0.9.0-alpha.1 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Compiling impl-serde v0.3.2 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking rand v0.9.0-alpha.1 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling proc-macro-crate v2.0.2 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking secp256k1 v0.24.3 [INFO] [stderr] Compiling ink_lang_ir v3.4.0 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking thiserror v1.0.58 [INFO] [stderr] Checking sysinfo v0.30.10 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking pretty_env_logger v0.5.0 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling parity-scale-codec-derive v3.6.9 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling scale-info-derive v2.11.2 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling ink_storage_derive v3.4.0 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Compiling parity-scale-codec v3.6.9 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Compiling scale-info v2.11.2 [INFO] [stderr] Compiling ink_lang_codegen v3.4.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking trust-dns-proto v0.21.2 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tls-listener v0.10.0 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Compiling ink_primitives v3.4.0 [INFO] [stderr] Checking h2 v0.4.4 [INFO] [stderr] Checking serde_bytes v0.11.14 [INFO] [stderr] Checking uuid v1.8.0 [INFO] [stderr] Checking serde_with v1.14.0 [INFO] [stderr] Checking trust-dns-resolver v0.21.2 [INFO] [stderr] Checking bson v2.10.0 [INFO] [stderr] Checking ink_engine v3.4.0 [INFO] [stderr] Compiling ink_lang_macro v3.4.0 [INFO] [stderr] Checking ink_metadata v3.4.0 [INFO] [stderr] Checking ink_env v3.4.0 [INFO] [stderr] Checking mongodb v2.8.2 [INFO] [stderr] Checking ink_storage v3.4.0 [INFO] [stderr] Checking ink_lang v3.4.0 [INFO] [stderr] Checking hyper v1.2.0 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking jchain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `vote::Vote` [INFO] [stdout] --> src/test.rs:4:63 [INFO] [stdout] | [INFO] [stdout] 4 | bc::block_chain::Blockchain, handler::Credentials, mote::{vote::Vote, voter::Voter}, vs::route [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module [INFO] [stdout] --> src/main.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | mod test; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bc::block_chain::Blockchain` [INFO] [stdout] --> src/vs.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::bc::block_chain::Blockchain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mote::voter::Voter` [INFO] [stdout] --> src/vs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::mote::voter::Voter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash_set` [INFO] [stdout] --> src/bc/block_chain.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{hash_set, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handler::handle_connection` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use handler::handle_connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vote::Vote` [INFO] [stdout] --> src/test.rs:4:63 [INFO] [stdout] | [INFO] [stdout] 4 | bc::block_chain::Blockchain, handler::Credentials, mote::{vote::Vote, voter::Voter}, vs::route [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bc::block_chain::Blockchain` [INFO] [stdout] --> src/vs.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::bc::block_chain::Blockchain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::mote::voter::Voter` [INFO] [stdout] --> src/vs.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::mote::voter::Voter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash_set` [INFO] [stdout] --> src/bc/block_chain.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{hash_set, HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handler::handle_connection` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use handler::handle_connection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::net::TcpListener` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::net::TcpListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/test.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let res = route(c); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let addr = "127.0.0.1:8080"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Vote` is more private than the item `Blockchain::mine_block` [INFO] [stdout] --> src/bc/block_chain.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mine_block(&mut self, name: String, vote: Vote) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Blockchain::mine_block` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Vote` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/mote/vote.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct Vote { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_connection` is never used [INFO] [stdout] --> src/handler.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) async fn handle_connection(stream: tokio::net::TcpStream) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_text_message` is never used [INFO] [stdout] --> src/handler.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | async fn handle_text_message(sender:&mut SplitSink, Message>, text: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_binary_message` is never used [INFO] [stdout] --> src/handler.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_binary_message(data: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_ping_message` is never used [INFO] [stdout] --> src/handler.rs:100:10 [INFO] [stdout] | [INFO] [stdout] 100 | async fn handle_ping_message(sender: &mut SplitSink, Message>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Candidate` is never constructed [INFO] [stdout] --> src/mote/candidate.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Candidate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mote/candidate.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Candidate { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn new(name: String, id: u64, party: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `voter`, `candidate_name`, and `signature` are never read [INFO] [stdout] --> src/mote/vote.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct Vote { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | /// The voter who cast the vote. [INFO] [stdout] 7 | pub(crate) voter: Voter, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | /// The name of the candidate voted for. [INFO] [stdout] 9 | pub(crate) candidate_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 10 | /// The signature associated with the vote. [INFO] [stdout] 11 | pub(crate) signature: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vote` 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 function `new` is never used [INFO] [stdout] --> src/mote/vote.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Vote { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn new(voter: Voter, candidate_name: String, signature: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `vote_given`, and `data` are never read [INFO] [stdout] --> src/mote/voter.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Voter { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 6 | /// The unique identifier of the voter. [INFO] [stdout] 7 | pub(crate) id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) vote_given: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | /// Additional data associated with the voter (in JSON format). [INFO] [stdout] 13 | pub(crate) data: serde_json::Value, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Voter` 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: enum `Val` is never used [INFO] [stdout] --> src/mote/user.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Val { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/mote/user.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mote/user.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl User { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(user_info: Option,user_type:String)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_candidate` is never used [INFO] [stdout] --> src/vs.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn register_candidate() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_voter` is never used [INFO] [stdout] --> src/vs.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn register_voter() {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cast_vote` is never used [INFO] [stdout] --> src/vs.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn cast_vote() {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_vote_count` is never used [INFO] [stdout] --> src/vs.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn get_vote_count() {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `name`, `timestamp`, `vote`, `hash`, and `nonce` are never read [INFO] [stdout] --> src/bc/block.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) struct Block { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 9 | /// The index of the block in the blockchain. [INFO] [stdout] 10 | index: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | /// The name associated with the block. [INFO] [stdout] 12 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | /// The timestamp indicating when the block was created. [INFO] [stdout] 14 | timestamp: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | /// The vote stored in the block. [INFO] [stdout] 16 | vote: Vote, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | hash: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | /// The nonce used in mining the block. [INFO] [stdout] 22 | nonce: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` 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: methods `get_name`, `get_index`, `get_timestamp`, `get_vote`, `get_hash`, and `get_nonce` are never used [INFO] [stdout] --> src/bc/block.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Block { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn get_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn get_index(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn get_timestamp(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn get_vote(&self) -> &Vote { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn get_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn get_nonce(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `futures::sink::Send` that must be used [INFO] [stdout] --> src/handler.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | sender.send(tokio_tungstenite::tungstenite::Message::Text(response)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | let _ = sender.send(tokio_tungstenite::tungstenite::Message::Text(response)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/handler.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | sender.send(tokio_tungstenite::tungstenite::Message::Text(err.to_string())).await; [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] 78 | let _ = sender.send(tokio_tungstenite::tungstenite::Message::Text(err.to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `res` [INFO] [stdout] --> src/test.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let res = route(c); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/main.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let addr = "127.0.0.1:8080"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Vote` is more private than the item `Blockchain::mine_block` [INFO] [stdout] --> src/bc/block_chain.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn mine_block(&mut self, name: String, vote: Vote) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Blockchain::mine_block` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Vote` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/mote/vote.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct Vote { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_connection` is never used [INFO] [stdout] --> src/handler.rs:33:21 [INFO] [stdout] | [INFO] [stdout] 33 | pub(crate) async fn handle_connection(stream: tokio::net::TcpStream) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_text_message` is never used [INFO] [stdout] --> src/handler.rs:68:10 [INFO] [stdout] | [INFO] [stdout] 68 | async fn handle_text_message(sender:&mut SplitSink, Message>, text: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_binary_message` is never used [INFO] [stdout] --> src/handler.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn handle_binary_message(data: &[u8]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_ping_message` is never used [INFO] [stdout] --> src/handler.rs:100:10 [INFO] [stdout] | [INFO] [stdout] 100 | async fn handle_ping_message(sender: &mut SplitSink, Message>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Candidate` is never constructed [INFO] [stdout] --> src/mote/candidate.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Candidate { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mote/candidate.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Candidate { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn new(name: String, id: u64, party: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `voter`, `candidate_name`, and `signature` are never read [INFO] [stdout] --> src/mote/vote.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) struct Vote { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 6 | /// The voter who cast the vote. [INFO] [stdout] 7 | pub(crate) voter: Voter, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | /// The name of the candidate voted for. [INFO] [stdout] 9 | pub(crate) candidate_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 10 | /// The signature associated with the vote. [INFO] [stdout] 11 | pub(crate) signature: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Vote` 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 function `new` is never used [INFO] [stdout] --> src/mote/vote.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Vote { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn new(voter: Voter, candidate_name: String, signature: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `vote_given`, and `data` are never read [INFO] [stdout] --> src/mote/voter.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Voter { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 6 | /// The unique identifier of the voter. [INFO] [stdout] 7 | pub(crate) id: u64, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub(crate) vote_given: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 12 | /// Additional data associated with the voter (in JSON format). [INFO] [stdout] 13 | pub(crate) data: serde_json::Value, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Voter` 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: enum `Val` is never used [INFO] [stdout] --> src/mote/user.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Val { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/mote/user.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/mote/user.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl User { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(user_info: Option,user_type:String)->Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_candidate` is never used [INFO] [stdout] --> src/vs.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn register_candidate() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_voter` is never used [INFO] [stdout] --> src/vs.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn register_voter() {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cast_vote` is never used [INFO] [stdout] --> src/vs.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn cast_vote() {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_vote_count` is never used [INFO] [stdout] --> src/vs.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn get_vote_count() {} [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `name`, `timestamp`, `vote`, `hash`, and `nonce` are never read [INFO] [stdout] --> src/bc/block.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub(crate) struct Block { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 9 | /// The index of the block in the blockchain. [INFO] [stdout] 10 | index: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | /// The name associated with the block. [INFO] [stdout] 12 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | /// The timestamp indicating when the block was created. [INFO] [stdout] 14 | timestamp: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 15 | /// The vote stored in the block. [INFO] [stdout] 16 | vote: Vote, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | hash: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | /// The nonce used in mining the block. [INFO] [stdout] 22 | nonce: u64, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Block` 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: methods `get_name`, `get_index`, `get_timestamp`, `get_vote`, `get_hash`, and `get_nonce` are never used [INFO] [stdout] --> src/bc/block.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl Block { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn get_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn get_index(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn get_timestamp(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn get_vote(&self) -> &Vote { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn get_hash(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn get_nonce(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `futures::sink::Send` that must be used [INFO] [stdout] --> src/handler.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | sender.send(tokio_tungstenite::tungstenite::Message::Text(response)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: futures do nothing unless you `.await` or poll them [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 74 | let _ = sender.send(tokio_tungstenite::tungstenite::Message::Text(response)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/handler.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | sender.send(tokio_tungstenite::tungstenite::Message::Text(err.to_string())).await; [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] 78 | let _ = sender.send(tokio_tungstenite::tungstenite::Message::Text(err.to_string())).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 48.08s [INFO] running `Command { std: "docker" "inspect" "de78ec9af94421f4dd060b15abcf2b7660844275f3c34cc3d72bf159de7d079b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de78ec9af94421f4dd060b15abcf2b7660844275f3c34cc3d72bf159de7d079b", kill_on_drop: false }` [INFO] [stdout] de78ec9af94421f4dd060b15abcf2b7660844275f3c34cc3d72bf159de7d079b