[INFO] cloning repository https://github.com/ASmithOWL/udp2p
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ASmithOWL/udp2p" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FASmithOWL%2Fudp2p", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FASmithOWL%2Fudp2p'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 1f80212905f0360419a7225eaa268ba113231528
[INFO] testing ASmithOWL/udp2p against 1.75.0 for beta-1.76-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FASmithOWL%2Fudp2p" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/ASmithOWL/udp2p on toolchain 1.75.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/ASmithOWL/udp2p
[INFO] removed 0 missing examples
[INFO] finished tweaking git repo https://github.com/ASmithOWL/udp2p
[INFO] tweaked toml for git repo https://github.com/ASmithOWL/udp2p written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded hyper-system-resolver v0.5.0
[INFO] [stderr]   Downloaded ritelinked v0.3.2
[INFO] [stderr]   Downloaded trust-dns-client v0.20.4
[INFO] [stderr]   Downloaded public-ip v0.2.2
[INFO] [stderr]   Downloaded dns-lookup v1.0.8
[INFO] [stderr]   Downloaded sha256 v1.5.0
[INFO] [stderr]   Downloaded griddle v0.5.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 08d46e7c0c3d91fd8284a53c1b06a849bbb549a785c871d2733c6e0df6fa0479
[INFO] running `Command { std: "docker" "start" "-a" "08d46e7c0c3d91fd8284a53c1b06a849bbb549a785c871d2733c6e0df6fa0479", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "08d46e7c0c3d91fd8284a53c1b06a849bbb549a785c871d2733c6e0df6fa0479", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "08d46e7c0c3d91fd8284a53c1b06a849bbb549a785c871d2733c6e0df6fa0479", kill_on_drop: false }`
[INFO] [stdout] 08d46e7c0c3d91fd8284a53c1b06a849bbb549a785c871d2733c6e0df6fa0479
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6bf9a28df0210ecd92f4498da86da9a210f9292a713774e7b0819c8a3e3793f0
[INFO] running `Command { std: "docker" "start" "-a" "6bf9a28df0210ecd92f4498da86da9a210f9292a713774e7b0819c8a3e3793f0", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.75
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling libc v0.2.151
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling pin-project-lite v0.2.13
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling futures-io v0.3.30
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling crossbeam-utils v0.8.18
[INFO] [stderr]    Compiling smallvec v1.11.2
[INFO] [stderr]    Compiling parking_lot_core v0.9.9
[INFO] [stderr]    Compiling memchr v2.7.1
[INFO] [stderr]    Compiling parking v2.2.0
[INFO] [stderr]    Compiling bytes v1.5.0
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling fnv v1.0.7
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling typenum v1.17.0
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling value-bag v1.4.3
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]    Compiling ident_case v1.0.1
[INFO] [stderr]    Compiling fastrand v2.0.1
[INFO] [stderr]    Compiling strsim v0.9.3
[INFO] [stderr]    Compiling rustix v0.38.28
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling async-trait v0.1.77
[INFO] [stderr]    Compiling log v0.4.20
[INFO] [stderr]    Compiling unicode-bidi v0.3.14
[INFO] [stderr]    Compiling itoa v1.0.10
[INFO] [stderr]    Compiling futures-lite v2.1.0
[INFO] [stderr]    Compiling ahash v0.7.7
[INFO] [stderr]    Compiling bitflags v2.4.1
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling thiserror v1.0.56
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]    Compiling concurrent-queue v2.4.0
[INFO] [stderr]    Compiling io-lifetimes v1.0.11
[INFO] [stderr]    Compiling linux-raw-sys v0.4.12
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling syn v2.0.48
[INFO] [stderr]    Compiling event-listener v4.0.2
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling http v0.2.11
[INFO] [stderr]    Compiling polling v2.8.0
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling getrandom v0.2.11
[INFO] [stderr]    Compiling num_cpus v1.16.0
[INFO] [stderr]    Compiling mio v0.8.10
[INFO] [stderr]    Compiling signal-hook-registry v1.4.1
[INFO] [stderr]    Compiling socket2 v0.5.5
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling event-listener-strategy v0.4.0
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling async-lock v3.2.0
[INFO] [stderr]    Compiling socket2 v0.4.10
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]    Compiling async-task v4.7.0
[INFO] [stderr]    Compiling powerfmt v0.2.0
[INFO] [stderr]    Compiling matches v0.1.10
[INFO] [stderr]    Compiling atomic-waker v1.1.2
[INFO] [stderr]    Compiling rustix v0.37.27
[INFO] [stderr]    Compiling event-listener v2.5.3
[INFO] [stderr]    Compiling derive_builder v0.9.0
[INFO] [stderr]    Compiling deranged v0.3.11
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling piper v0.2.1
[INFO] [stderr]    Compiling url v2.5.0
[INFO] [stderr]    Compiling idna v0.2.3
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling async-channel v2.1.1
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling async-io v1.13.0
[INFO] [stderr]    Compiling nibble_vec v0.1.0
[INFO] [stderr]    Compiling time-core v0.1.2
[INFO] [stderr]    Compiling httpdate v1.0.3
[INFO] [stderr]    Compiling fastrand v1.9.0
[INFO] [stderr]    Compiling waker-fn v1.1.1
[INFO] [stderr]    Compiling data-encoding v2.5.0
[INFO] [stderr]    Compiling serde v1.0.194
[INFO] [stderr]    Compiling linux-raw-sys v0.3.8
[INFO] [stderr]    Compiling endian-type v0.1.2
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling tower-service v0.3.2
[INFO] [stderr]    Compiling radix_trie v0.2.1
[INFO] [stderr]    Compiling futures-lite v1.13.0
[INFO] [stderr]    Compiling hashbrown v0.11.2
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling async-executor v1.8.0
[INFO] [stderr]    Compiling time v0.3.31
[INFO] [stderr]    Compiling async-lock v2.8.0
[INFO] [stderr]    Compiling dns-lookup v1.0.8
[INFO] [stderr]    Compiling cpufeatures v0.2.12
[INFO] [stderr]    Compiling serde_json v1.0.111
[INFO] [stderr]    Compiling async-channel v1.9.0
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling griddle v0.5.2
[INFO] [stderr]    Compiling kv-log-macro v1.0.7
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling ryu v1.0.16
[INFO] [stderr]    Compiling ritelinked v0.3.2
[INFO] [stderr]    Compiling darling_core v0.10.2
[INFO] [stderr]    Compiling enum-as-inner v0.3.4
[INFO] [stderr]    Compiling async-attributes v1.1.2
[INFO] [stderr]    Compiling tracing-attributes v0.1.27
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]    Compiling futures-macro v0.3.30
[INFO] [stderr]    Compiling thiserror-impl v1.0.56
[INFO] [stderr]    Compiling pin-project-internal v1.1.3
[INFO] [stderr]    Compiling serde_derive v1.0.194
[INFO] [stderr]    Compiling darling_macro v0.10.2
[INFO] [stderr]    Compiling tokio v1.35.1
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling darling v0.10.2
[INFO] [stderr]    Compiling derive_builder_core v0.9.0
[INFO] [stderr]    Compiling pin-project v1.1.3
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling polling v3.3.1
[INFO] [stderr]    Compiling blocking v1.5.1
[INFO] [stderr]    Compiling async-io v2.2.2
[INFO] [stderr]    Compiling futures-executor v0.3.30
[INFO] [stderr]    Compiling futures v0.3.30
[INFO] [stderr]    Compiling tracing-futures v0.2.5
[INFO] [stderr]    Compiling hyper v0.14.28
[INFO] [stderr]    Compiling trust-dns-proto v0.20.4
[INFO] [stderr]    Compiling async-global-executor v2.4.1
[INFO] [stderr]    Compiling sha256 v1.5.0
[INFO] [stderr]    Compiling async-std v1.12.0
[INFO] [stderr]    Compiling hyper-system-resolver v0.5.0
[INFO] [stderr]    Compiling trust-dns-client v0.20.4
[INFO] [stderr]    Compiling public-ip v0.2.2
[INFO] [stderr]    Compiling udp2p v0.1.6 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/kad.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HashMap`, `VecDeque`
[INFO] [stdout]  --> src/discovery/kad.rs:9:24
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::collections::{HashMap, HashSet, VecDeque};
[INFO] [stdout]   |                        ^^^^^^^           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]   --> src/discovery/kad.rs:11:23
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::sync::mpsc::{channel, Receiver, Sender};
[INFO] [stdout]    |                       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::timestamp_now`
[INFO] [stdout]   --> src/discovery/kad.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::utils::utils::timestamp_now;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::Distance`
[INFO] [stdout]   --> src/discovery/kad.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::utils::utils::Distance;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/discovery/protocol.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | / /// Implements ByteRep trait for RPC, Req & Resp structs so they can be
[INFO] [stdout] 21 | | /// represented as a vector of bytes and/or returned to their struct form
[INFO] [stdout] 22 | | /// with one simple function call.
[INFO] [stdout]    | |_---------------------------------^
[INFO] [stdout]    |   |
[INFO] [stdout]    |   rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::discovery::KAD_MESSAGE_LEN`
[INFO] [stdout]  --> src/discovery/protocol.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::KAD_MESSAGE_LEN;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Message`, `ResponseBytes`
[INFO] [stdout]  --> src/discovery/protocol.rs:5:27
[INFO] [stdout]   |
[INFO] [stdout] 5 |     InnerKey, KadMessage, Message, MessageKey, Nodes, Peer, RPCBytes, RequestBytes, ResponseBytes,
[INFO] [stdout]   |                           ^^^^^^^                                                   ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Rng`, `thread_rng`
[INFO] [stdout]  --> src/discovery/protocol.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rand::{thread_rng, Rng};
[INFO] [stdout]   |            ^^^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]   --> src/discovery/protocol.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::HashSet;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::marker::PhantomData`
[INFO] [stdout]   --> src/discovery/protocol.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::marker::PhantomData;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/protocol.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::UdpSocket`
[INFO] [stdout]   --> src/discovery/protocol.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::net::UdpSocket;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::mpsc::Sender`
[INFO] [stdout]   --> src/discovery/protocol.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::sync::mpsc::Sender;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]   --> src/discovery/protocol.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::sync::Arc;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::traits::routable::Routable`
[INFO] [stdout]   --> src/discovery/protocol.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::traits::routable::Routable;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `MAX_BUCKETS`
[INFO] [stdout]  --> src/discovery/routing.rs:1:24
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::{MAX_BUCKETS, MAX_BUCKET_LEN, REFRESH_INTEVAL};
[INFO] [stdout]   |                        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BTreeMap`
[INFO] [stdout]   --> src/discovery/routing.rs:10:24
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::{BTreeMap, HashMap};
[INFO] [stdout]    |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/routing.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mem`
[INFO] [stdout]   --> src/discovery/routing.rs:13:16
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::{cmp, mem};
[INFO] [stdout]    |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log::info`
[INFO] [stdout]  --> src/transport/transport.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use log::info;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]  --> src/node/peer_id.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sha256::digest_bytes;
[INFO] [stdout]   |             ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]   --> src/node/peer_id.rs:39:24
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let key_hash = digest_bytes(&key.get_key());
[INFO] [stdout]    |                        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:109:14
[INFO] [stdout]     |
[INFO] [stdout] 109 |         let (id, message) = self.prepare_find_node_message(local_info, None);
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:246:41
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                         ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:246:58
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                                          ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:247:42
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:247:59
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                           ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:248:46
[INFO] [stdout]     |
[INFO] [stdout] 248 |     pub fn prepare_find_value_message(&self, value: Value) {}
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:249:42
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:249:59
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                           ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:249:73
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                                         ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:261:18
[INFO] [stdout]     |
[INFO] [stdout] 261 |             let (id, sender, rpc) = request.to_components();
[INFO] [stdout]     |                  ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:273:32
[INFO] [stdout]     |
[INFO] [stdout] 273 |                 RPC::FindValue(value) => {
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:285:28
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                            ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:285:33
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `receiver`
[INFO] [stdout]    --> src/discovery/kad.rs:321:23
[INFO] [stdout]     |
[INFO] [stdout] 321 |             let (req, receiver, rpc) = rm.to_components();
[INFO] [stdout]     |                       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:323:22
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                      ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:323:26
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                          ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req_rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:323:34
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `complete`
[INFO] [stdout]    --> src/discovery/kad.rs:324:25
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_complete`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:354:32
[INFO] [stdout]     |
[INFO] [stdout] 354 |                     RPC::Value(value) => {}
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:355:32
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     RPC::Saved(key) => {}
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:324:21
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                     ----^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:397:33
[INFO] [stdout]     |
[INFO] [stdout] 397 |     pub fn ping_node(&mut self, node: PeerInfo) {}
[INFO] [stdout]     |                                 ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:398:37
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:398:53
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                     ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:414:17
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:414:25
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                         ^^^ help: if this is intentional, prefix it with an underscore: `_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:420:14
[INFO] [stdout]     |
[INFO] [stdout] 420 |         let (id, msg) = self.prepare_new_peer_message(node.clone());
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:411:13
[INFO] [stdout]     |
[INFO] [stdout] 411 |         let mut closest_peers = self
[INFO] [stdout]     |             ----^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:436:36
[INFO] [stdout]     |
[INFO] [stdout] 436 |     pub fn lookup_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                    ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:437:35
[INFO] [stdout]     |
[INFO] [stdout] 437 |     pub fn store_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]   --> src/discovery/routing.rs:70:29
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prefix`
[INFO] [stdout]   --> src/discovery/routing.rs:70:43
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/discovery/routing.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut new_bucket = KBucket::new();
[INFO] [stdout]    |             ----^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]   --> src/discovery/routing.rs:77:41
[INFO] [stdout]    |
[INFO] [stdout] 77 |         self.nodes.clone().iter().map(|(k, v)| v.clone()).collect()
[INFO] [stdout]    |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:218:26
[INFO] [stdout]     |
[INFO] [stdout] 218 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:229:26
[INFO] [stdout]     |
[INFO] [stdout] 229 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bucket`
[INFO] [stdout]    --> src/discovery/routing.rs:179:32
[INFO] [stdout]     |
[INFO] [stdout] 179 |         cloned_tree.retain(|k, bucket| {
[INFO] [stdout]     |                                ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bucket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:186:55
[INFO] [stdout]     |
[INFO] [stdout] 186 |         let total = cloned_tree.iter().fold(0, |acc, (k, v)| acc + v.size());
[INFO] [stdout]     |                                                       ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]    --> src/discovery/routing.rs:211:43
[INFO] [stdout]     |
[INFO] [stdout] 211 |         closest.sort_unstable_by_key(|(k, v)| k.len());
[INFO] [stdout]     |                                           ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:334:41
[INFO] [stdout]     |
[INFO] [stdout] 334 |         self.tree.iter().fold(0, |acc, (k, v)| acc + v.size())
[INFO] [stdout]     |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:341:20
[INFO] [stdout]     |
[INFO] [stdout] 341 |             .map(|(k, v)| v.get_nodes())
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/gossip/gossip.rs:287:32
[INFO] [stdout]     |
[INFO] [stdout] 287 |                     if let Err(e) = tx.clone().send(string) {
[INFO] [stdout]     |                                ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_BUCKETS` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const MAX_BUCKETS: usize = 10;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `KAD_MESSAGE_LEN` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const KAD_MESSAGE_LEN: usize = 55000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REQ_TIMEOUT` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const REQ_TIMEOUT: usize = 60_000_000_000;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_ACTIVE_RPCS` is never used
[INFO] [stdout]   --> src/discovery/mod.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const MAX_ACTIVE_RPCS: usize = 3;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/node/peer_key.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 |             write!(f, "{:b}", byte);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 71 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 13.70s
[INFO] running `Command { std: "docker" "inspect" "6bf9a28df0210ecd92f4498da86da9a210f9292a713774e7b0819c8a3e3793f0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6bf9a28df0210ecd92f4498da86da9a210f9292a713774e7b0819c8a3e3793f0", kill_on_drop: false }`
[INFO] [stdout] 6bf9a28df0210ecd92f4498da86da9a210f9292a713774e7b0819c8a3e3793f0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 686587966db35f4a229453623b40581a16741e70e4b31a03538a2b1b15799350
[INFO] running `Command { std: "docker" "start" "-a" "686587966db35f4a229453623b40581a16741e70e4b31a03538a2b1b15799350", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/kad.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HashMap`, `VecDeque`
[INFO] [stdout]  --> src/discovery/kad.rs:9:24
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::collections::{HashMap, HashSet, VecDeque};
[INFO] [stdout]   |                        ^^^^^^^           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]   --> src/discovery/kad.rs:11:23
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::sync::mpsc::{channel, Receiver, Sender};
[INFO] [stdout]    |                       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::timestamp_now`
[INFO] [stdout]   --> src/discovery/kad.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::utils::utils::timestamp_now;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::Distance`
[INFO] [stdout]   --> src/discovery/kad.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::utils::utils::Distance;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/discovery/protocol.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | / /// Implements ByteRep trait for RPC, Req & Resp structs so they can be
[INFO] [stdout] 21 | | /// represented as a vector of bytes and/or returned to their struct form
[INFO] [stdout] 22 | | /// with one simple function call.
[INFO] [stdout]    | |_---------------------------------^
[INFO] [stdout]    |   |
[INFO] [stdout]    |   rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::discovery::KAD_MESSAGE_LEN`
[INFO] [stdout]  --> src/discovery/protocol.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::KAD_MESSAGE_LEN;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Message`, `ResponseBytes`
[INFO] [stdout]  --> src/discovery/protocol.rs:5:27
[INFO] [stdout]   |
[INFO] [stdout] 5 |     InnerKey, KadMessage, Message, MessageKey, Nodes, Peer, RPCBytes, RequestBytes, ResponseBytes,
[INFO] [stdout]   |                           ^^^^^^^                                                   ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Rng`, `thread_rng`
[INFO] [stdout]  --> src/discovery/protocol.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rand::{thread_rng, Rng};
[INFO] [stdout]   |            ^^^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]   --> src/discovery/protocol.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::HashSet;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::marker::PhantomData`
[INFO] [stdout]   --> src/discovery/protocol.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::marker::PhantomData;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/protocol.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::UdpSocket`
[INFO] [stdout]   --> src/discovery/protocol.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::net::UdpSocket;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::mpsc::Sender`
[INFO] [stdout]   --> src/discovery/protocol.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::sync::mpsc::Sender;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]   --> src/discovery/protocol.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::sync::Arc;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::traits::routable::Routable`
[INFO] [stdout]   --> src/discovery/protocol.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::traits::routable::Routable;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `MAX_BUCKETS`
[INFO] [stdout]  --> src/discovery/routing.rs:1:24
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::{MAX_BUCKETS, MAX_BUCKET_LEN, REFRESH_INTEVAL};
[INFO] [stdout]   |                        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BTreeMap`
[INFO] [stdout]   --> src/discovery/routing.rs:10:24
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::{BTreeMap, HashMap};
[INFO] [stdout]    |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/routing.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mem`
[INFO] [stdout]   --> src/discovery/routing.rs:13:16
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::{cmp, mem};
[INFO] [stdout]    |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log::info`
[INFO] [stdout]  --> src/transport/transport.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use log::info;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]  --> src/node/peer_id.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sha256::digest_bytes;
[INFO] [stdout]   |             ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]   --> src/node/peer_id.rs:39:24
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let key_hash = digest_bytes(&key.get_key());
[INFO] [stdout]    |                        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:109:14
[INFO] [stdout]     |
[INFO] [stdout] 109 |         let (id, message) = self.prepare_find_node_message(local_info, None);
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:246:41
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                         ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:246:58
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                                          ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:247:42
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:247:59
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                           ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:248:46
[INFO] [stdout]     |
[INFO] [stdout] 248 |     pub fn prepare_find_value_message(&self, value: Value) {}
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:249:42
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:249:59
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                           ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:249:73
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                                         ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:261:18
[INFO] [stdout]     |
[INFO] [stdout] 261 |             let (id, sender, rpc) = request.to_components();
[INFO] [stdout]     |                  ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:273:32
[INFO] [stdout]     |
[INFO] [stdout] 273 |                 RPC::FindValue(value) => {
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:285:28
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                            ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:285:33
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `receiver`
[INFO] [stdout]    --> src/discovery/kad.rs:321:23
[INFO] [stdout]     |
[INFO] [stdout] 321 |             let (req, receiver, rpc) = rm.to_components();
[INFO] [stdout]     |                       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:323:22
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                      ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:323:26
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                          ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req_rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:323:34
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `complete`
[INFO] [stdout]    --> src/discovery/kad.rs:324:25
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_complete`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:354:32
[INFO] [stdout]     |
[INFO] [stdout] 354 |                     RPC::Value(value) => {}
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:355:32
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     RPC::Saved(key) => {}
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:324:21
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                     ----^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:397:33
[INFO] [stdout]     |
[INFO] [stdout] 397 |     pub fn ping_node(&mut self, node: PeerInfo) {}
[INFO] [stdout]     |                                 ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:398:37
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:398:53
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                     ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:414:17
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:414:25
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                         ^^^ help: if this is intentional, prefix it with an underscore: `_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:420:14
[INFO] [stdout]     |
[INFO] [stdout] 420 |         let (id, msg) = self.prepare_new_peer_message(node.clone());
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:411:13
[INFO] [stdout]     |
[INFO] [stdout] 411 |         let mut closest_peers = self
[INFO] [stdout]     |             ----^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:436:36
[INFO] [stdout]     |
[INFO] [stdout] 436 |     pub fn lookup_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                    ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:437:35
[INFO] [stdout]     |
[INFO] [stdout] 437 |     pub fn store_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]   --> src/discovery/routing.rs:70:29
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prefix`
[INFO] [stdout]   --> src/discovery/routing.rs:70:43
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/discovery/routing.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut new_bucket = KBucket::new();
[INFO] [stdout]    |             ----^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]   --> src/discovery/routing.rs:77:41
[INFO] [stdout]    |
[INFO] [stdout] 77 |         self.nodes.clone().iter().map(|(k, v)| v.clone()).collect()
[INFO] [stdout]    |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:218:26
[INFO] [stdout]     |
[INFO] [stdout] 218 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:229:26
[INFO] [stdout]     |
[INFO] [stdout] 229 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bucket`
[INFO] [stdout]    --> src/discovery/routing.rs:179:32
[INFO] [stdout]     |
[INFO] [stdout] 179 |         cloned_tree.retain(|k, bucket| {
[INFO] [stdout]     |                                ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bucket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:186:55
[INFO] [stdout]     |
[INFO] [stdout] 186 |         let total = cloned_tree.iter().fold(0, |acc, (k, v)| acc + v.size());
[INFO] [stdout]     |                                                       ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]    --> src/discovery/routing.rs:211:43
[INFO] [stdout]     |
[INFO] [stdout] 211 |         closest.sort_unstable_by_key(|(k, v)| k.len());
[INFO] [stdout]     |                                           ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:334:41
[INFO] [stdout]     |
[INFO] [stdout] 334 |         self.tree.iter().fold(0, |acc, (k, v)| acc + v.size())
[INFO] [stdout]     |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:341:20
[INFO] [stdout]     |
[INFO] [stdout] 341 |             .map(|(k, v)| v.get_nodes())
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/gossip/gossip.rs:287:32
[INFO] [stdout]     |
[INFO] [stdout] 287 |                     if let Err(e) = tx.clone().send(string) {
[INFO] [stdout]     |                                ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_BUCKETS` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const MAX_BUCKETS: usize = 10;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `KAD_MESSAGE_LEN` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const KAD_MESSAGE_LEN: usize = 55000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REQ_TIMEOUT` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const REQ_TIMEOUT: usize = 60_000_000_000;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_ACTIVE_RPCS` is never used
[INFO] [stdout]   --> src/discovery/mod.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const MAX_ACTIVE_RPCS: usize = 3;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling udp2p v0.1.6 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/node/peer_key.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 |             write!(f, "{:b}", byte);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 71 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `gossip`
[INFO] [stdout]   |
[INFO] [stdout]   = note: consider adding a `main` function to `examples/gossip.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `kad`
[INFO] [stdout]   |
[INFO] [stdout]   = note: consider adding a `main` function to `examples/kad.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `udp2p` (example "gossip") due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `udp2p` (example "kad") due to 2 previous errors
[INFO] [stdout] error[E0601]: `main` function not found in crate `r#mod`
[INFO] [stdout]   --> examples/mod.rs:3:16
[INFO] [stdout]    |
[INFO] [stdout] 3  | pub mod gossip;
[INFO] [stdout]    |                ^ the main function must be defined at the crate level (in `examples/mod.rs`)
[INFO] [stdout]    |
[INFO] [stdout] note: here is a function named `main`
[INFO] [stdout]   --> examples/chat.rs:21:1
[INFO] [stdout]    |
[INFO] [stdout] 21 | #[async_std::main]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: here is a function named `main`
[INFO] [stdout]   --> examples/chat.rs:21:1
[INFO] [stdout]    |
[INFO] [stdout] 21 | #[async_std::main]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: you have one or more functions named `main` not defined at the crate level
[INFO] [stdout]    = help: consider moving the `main` function definitions
[INFO] [stdout]    = note: this error originates in the attribute macro `async_std::main` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/kad.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HashMap`, `VecDeque`
[INFO] [stdout]  --> src/discovery/kad.rs:9:24
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::collections::{HashMap, HashSet, VecDeque};
[INFO] [stdout]   |                        ^^^^^^^           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]   --> src/discovery/kad.rs:11:23
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::sync::mpsc::{channel, Receiver, Sender};
[INFO] [stdout]    |                       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::timestamp_now`
[INFO] [stdout]   --> src/discovery/kad.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::utils::utils::timestamp_now;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::Distance`
[INFO] [stdout]   --> src/discovery/kad.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::utils::utils::Distance;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/discovery/protocol.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | / /// Implements ByteRep trait for RPC, Req & Resp structs so they can be
[INFO] [stdout] 21 | | /// represented as a vector of bytes and/or returned to their struct form
[INFO] [stdout] 22 | | /// with one simple function call.
[INFO] [stdout]    | |_---------------------------------^
[INFO] [stdout]    |   |
[INFO] [stdout]    |   rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::discovery::KAD_MESSAGE_LEN`
[INFO] [stdout]  --> src/discovery/protocol.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::KAD_MESSAGE_LEN;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Message`, `ResponseBytes`
[INFO] [stdout]  --> src/discovery/protocol.rs:5:27
[INFO] [stdout]   |
[INFO] [stdout] 5 |     InnerKey, KadMessage, Message, MessageKey, Nodes, Peer, RPCBytes, RequestBytes, ResponseBytes,
[INFO] [stdout]   |                           ^^^^^^^                                                   ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Rng`, `thread_rng`
[INFO] [stdout]  --> src/discovery/protocol.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rand::{thread_rng, Rng};
[INFO] [stdout]   |            ^^^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]   --> src/discovery/protocol.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::HashSet;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::marker::PhantomData`
[INFO] [stdout]   --> src/discovery/protocol.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::marker::PhantomData;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/protocol.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::UdpSocket`
[INFO] [stdout]   --> src/discovery/protocol.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::net::UdpSocket;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::mpsc::Sender`
[INFO] [stdout]   --> src/discovery/protocol.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::sync::mpsc::Sender;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]   --> src/discovery/protocol.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::sync::Arc;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::traits::routable::Routable`
[INFO] [stdout]   --> src/discovery/protocol.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::traits::routable::Routable;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `MAX_BUCKETS`
[INFO] [stdout]  --> src/discovery/routing.rs:1:24
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::{MAX_BUCKETS, MAX_BUCKET_LEN, REFRESH_INTEVAL};
[INFO] [stdout]   |                        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BTreeMap`
[INFO] [stdout]   --> src/discovery/routing.rs:10:24
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::{BTreeMap, HashMap};
[INFO] [stdout]    |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/routing.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mem`
[INFO] [stdout]   --> src/discovery/routing.rs:13:16
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::{cmp, mem};
[INFO] [stdout]    |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log::info`
[INFO] [stdout]  --> src/transport/transport.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use log::info;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]  --> src/node/peer_id.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sha256::digest_bytes;
[INFO] [stdout]   |             ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]   --> src/node/peer_id.rs:39:24
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let key_hash = digest_bytes(&key.get_key());
[INFO] [stdout]    |                        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `udp2p` (example "mod") due to 2 previous errors
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:109:14
[INFO] [stdout]     |
[INFO] [stdout] 109 |         let (id, message) = self.prepare_find_node_message(local_info, None);
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:246:41
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                         ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:246:58
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                                          ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:247:42
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:247:59
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                           ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:248:46
[INFO] [stdout]     |
[INFO] [stdout] 248 |     pub fn prepare_find_value_message(&self, value: Value) {}
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:249:42
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:249:59
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                           ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:249:73
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                                         ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:261:18
[INFO] [stdout]     |
[INFO] [stdout] 261 |             let (id, sender, rpc) = request.to_components();
[INFO] [stdout]     |                  ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:273:32
[INFO] [stdout]     |
[INFO] [stdout] 273 |                 RPC::FindValue(value) => {
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:285:28
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                            ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:285:33
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `receiver`
[INFO] [stdout]    --> src/discovery/kad.rs:321:23
[INFO] [stdout]     |
[INFO] [stdout] 321 |             let (req, receiver, rpc) = rm.to_components();
[INFO] [stdout]     |                       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:323:22
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                      ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:323:26
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                          ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req_rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:323:34
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `complete`
[INFO] [stdout]    --> src/discovery/kad.rs:324:25
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_complete`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:354:32
[INFO] [stdout]     |
[INFO] [stdout] 354 |                     RPC::Value(value) => {}
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:355:32
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     RPC::Saved(key) => {}
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:324:21
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                     ----^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:397:33
[INFO] [stdout]     |
[INFO] [stdout] 397 |     pub fn ping_node(&mut self, node: PeerInfo) {}
[INFO] [stdout]     |                                 ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:398:37
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:398:53
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                     ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:414:17
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:414:25
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                         ^^^ help: if this is intentional, prefix it with an underscore: `_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:420:14
[INFO] [stdout]     |
[INFO] [stdout] 420 |         let (id, msg) = self.prepare_new_peer_message(node.clone());
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:411:13
[INFO] [stdout]     |
[INFO] [stdout] 411 |         let mut closest_peers = self
[INFO] [stdout]     |             ----^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:436:36
[INFO] [stdout]     |
[INFO] [stdout] 436 |     pub fn lookup_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                    ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:437:35
[INFO] [stdout]     |
[INFO] [stdout] 437 |     pub fn store_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]   --> src/discovery/routing.rs:70:29
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prefix`
[INFO] [stdout]   --> src/discovery/routing.rs:70:43
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/discovery/routing.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut new_bucket = KBucket::new();
[INFO] [stdout]    |             ----^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]   --> src/discovery/routing.rs:77:41
[INFO] [stdout]    |
[INFO] [stdout] 77 |         self.nodes.clone().iter().map(|(k, v)| v.clone()).collect()
[INFO] [stdout]    |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:218:26
[INFO] [stdout]     |
[INFO] [stdout] 218 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:229:26
[INFO] [stdout]     |
[INFO] [stdout] 229 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bucket`
[INFO] [stdout]    --> src/discovery/routing.rs:179:32
[INFO] [stdout]     |
[INFO] [stdout] 179 |         cloned_tree.retain(|k, bucket| {
[INFO] [stdout]     |                                ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bucket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:186:55
[INFO] [stdout]     |
[INFO] [stdout] 186 |         let total = cloned_tree.iter().fold(0, |acc, (k, v)| acc + v.size());
[INFO] [stdout]     |                                                       ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]    --> src/discovery/routing.rs:211:43
[INFO] [stdout]     |
[INFO] [stdout] 211 |         closest.sort_unstable_by_key(|(k, v)| k.len());
[INFO] [stdout]     |                                           ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:334:41
[INFO] [stdout]     |
[INFO] [stdout] 334 |         self.tree.iter().fold(0, |acc, (k, v)| acc + v.size())
[INFO] [stdout]     |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:341:20
[INFO] [stdout]     |
[INFO] [stdout] 341 |             .map(|(k, v)| v.get_nodes())
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/gossip/gossip.rs:287:32
[INFO] [stdout]     |
[INFO] [stdout] 287 |                     if let Err(e) = tx.clone().send(string) {
[INFO] [stdout]     |                                ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_BUCKETS` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const MAX_BUCKETS: usize = 10;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `KAD_MESSAGE_LEN` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const KAD_MESSAGE_LEN: usize = 55000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REQ_TIMEOUT` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const REQ_TIMEOUT: usize = 60_000_000_000;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_ACTIVE_RPCS` is never used
[INFO] [stdout]   --> src/discovery/mod.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const MAX_ACTIVE_RPCS: usize = 3;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/node/peer_key.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 |             write!(f, "{:b}", byte);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 71 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "686587966db35f4a229453623b40581a16741e70e4b31a03538a2b1b15799350", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "686587966db35f4a229453623b40581a16741e70e4b31a03538a2b1b15799350", kill_on_drop: false }`
[INFO] [stdout] 686587966db35f4a229453623b40581a16741e70e4b31a03538a2b1b15799350
[INFO] testing ASmithOWL/udp2p against beta-2023-12-22 for beta-1.76-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FASmithOWL%2Fudp2p" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/ASmithOWL/udp2p on toolchain beta-2023-12-22
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-12-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/ASmithOWL/udp2p
[INFO] removed 0 missing examples
[INFO] finished tweaking git repo https://github.com/ASmithOWL/udp2p
[INFO] tweaked toml for git repo https://github.com/ASmithOWL/udp2p written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-12-22" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-12-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 355b14d24728665d0b7c45148af962a66bcaade3053e288c82eee325ca359c0e
[INFO] running `Command { std: "docker" "start" "-a" "355b14d24728665d0b7c45148af962a66bcaade3053e288c82eee325ca359c0e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "355b14d24728665d0b7c45148af962a66bcaade3053e288c82eee325ca359c0e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "355b14d24728665d0b7c45148af962a66bcaade3053e288c82eee325ca359c0e", kill_on_drop: false }`
[INFO] [stdout] 355b14d24728665d0b7c45148af962a66bcaade3053e288c82eee325ca359c0e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] aedb0270721163ff6d91c20ff58cb1ac79409a7777c216863fec88859ee0ccf9
[INFO] running `Command { std: "docker" "start" "-a" "aedb0270721163ff6d91c20ff58cb1ac79409a7777c216863fec88859ee0ccf9", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.75
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling libc v0.2.151
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling pin-project-lite v0.2.13
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling futures-io v0.3.30
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.18
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling smallvec v1.11.2
[INFO] [stderr]    Compiling memchr v2.7.1
[INFO] [stderr]    Compiling parking_lot_core v0.9.9
[INFO] [stderr]    Compiling parking v2.2.0
[INFO] [stderr]    Compiling bytes v1.5.0
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling fnv v1.0.7
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling value-bag v1.4.3
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling typenum v1.17.0
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]    Compiling ident_case v1.0.1
[INFO] [stderr]    Compiling strsim v0.9.3
[INFO] [stderr]    Compiling fastrand v2.0.1
[INFO] [stderr]    Compiling unicode-bidi v0.3.14
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling log v0.4.20
[INFO] [stderr]    Compiling rustix v0.38.28
[INFO] [stderr]    Compiling async-trait v0.1.77
[INFO] [stderr]    Compiling itoa v1.0.10
[INFO] [stderr]    Compiling futures-lite v2.1.0
[INFO] [stderr]    Compiling ahash v0.7.7
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]    Compiling concurrent-queue v2.4.0
[INFO] [stderr]    Compiling io-lifetimes v1.0.11
[INFO] [stderr]    Compiling thiserror v1.0.56
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]    Compiling bitflags v2.4.1
[INFO] [stderr]    Compiling syn v2.0.48
[INFO] [stderr]    Compiling event-listener v4.0.2
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling getrandom v0.2.11
[INFO] [stderr]    Compiling num_cpus v1.16.0
[INFO] [stderr]    Compiling socket2 v0.5.5
[INFO] [stderr]    Compiling mio v0.8.10
[INFO] [stderr]    Compiling signal-hook-registry v1.4.1
[INFO] [stderr]    Compiling socket2 v0.4.10
[INFO] [stderr]    Compiling linux-raw-sys v0.4.12
[INFO] [stderr]    Compiling event-listener-strategy v0.4.0
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling async-lock v3.2.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling http v0.2.11
[INFO] [stderr]    Compiling polling v2.8.0
[INFO] [stderr]    Compiling async-task v4.7.0
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling event-listener v2.5.3
[INFO] [stderr]    Compiling powerfmt v0.2.0
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]    Compiling matches v0.1.10
[INFO] [stderr]    Compiling atomic-waker v1.1.2
[INFO] [stderr]    Compiling derive_builder v0.9.0
[INFO] [stderr]    Compiling rustix v0.37.27
[INFO] [stderr]    Compiling piper v0.2.1
[INFO] [stderr]    Compiling deranged v0.3.11
[INFO] [stderr]    Compiling idna v0.2.3
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling url v2.5.0
[INFO] [stderr]    Compiling async-channel v2.1.1
[INFO] [stderr]    Compiling async-io v1.13.0
[INFO] [stderr]    Compiling nibble_vec v0.1.0
[INFO] [stderr]    Compiling waker-fn v1.1.1
[INFO] [stderr]    Compiling endian-type v0.1.2
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling linux-raw-sys v0.3.8
[INFO] [stderr]    Compiling fastrand v1.9.0
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling httpdate v1.0.3
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling serde v1.0.194
[INFO] [stderr]    Compiling time-core v0.1.2
[INFO] [stderr]    Compiling tower-service v0.3.2
[INFO] [stderr]    Compiling data-encoding v2.5.0
[INFO] [stderr]    Compiling futures-lite v1.13.0
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling radix_trie v0.2.1
[INFO] [stderr]    Compiling hashbrown v0.11.2
[INFO] [stderr]    Compiling async-executor v1.8.0
[INFO] [stderr]    Compiling time v0.3.31
[INFO] [stderr]    Compiling async-lock v2.8.0
[INFO] [stderr]    Compiling dns-lookup v1.0.8
[INFO] [stderr]    Compiling serde_json v1.0.111
[INFO] [stderr]    Compiling cpufeatures v0.2.12
[INFO] [stderr]    Compiling sha2 v0.10.8
[INFO] [stderr]    Compiling async-channel v1.9.0
[INFO] [stderr]    Compiling kv-log-macro v1.0.7
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling griddle v0.5.2
[INFO] [stderr]    Compiling ryu v1.0.16
[INFO] [stderr]    Compiling ritelinked v0.3.2
[INFO] [stderr]    Compiling darling_core v0.10.2
[INFO] [stderr]    Compiling enum-as-inner v0.3.4
[INFO] [stderr]    Compiling async-attributes v1.1.2
[INFO] [stderr]    Compiling tracing-attributes v0.1.27
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]    Compiling futures-macro v0.3.30
[INFO] [stderr]    Compiling thiserror-impl v1.0.56
[INFO] [stderr]    Compiling pin-project-internal v1.1.3
[INFO] [stderr]    Compiling serde_derive v1.0.194
[INFO] [stderr]    Compiling darling_macro v0.10.2
[INFO] [stderr]    Compiling tokio v1.35.1
[INFO] [stderr]    Compiling darling v0.10.2
[INFO] [stderr]    Compiling derive_builder_core v0.9.0
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling pin-project v1.1.3
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling polling v3.3.1
[INFO] [stderr]    Compiling blocking v1.5.1
[INFO] [stderr]    Compiling async-io v2.2.2
[INFO] [stderr]    Compiling futures-executor v0.3.30
[INFO] [stderr]    Compiling futures v0.3.30
[INFO] [stderr]    Compiling tracing-futures v0.2.5
[INFO] [stderr]    Compiling trust-dns-proto v0.20.4
[INFO] [stderr]    Compiling hyper v0.14.28
[INFO] [stderr]    Compiling async-global-executor v2.4.1
[INFO] [stderr]    Compiling sha256 v1.5.0
[INFO] [stderr]    Compiling async-std v1.12.0
[INFO] [stderr]    Compiling hyper-system-resolver v0.5.0
[INFO] [stderr]    Compiling trust-dns-client v0.20.4
[INFO] [stderr]    Compiling public-ip v0.2.2
[INFO] [stderr]    Compiling udp2p v0.1.6 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/kad.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HashMap`, `VecDeque`
[INFO] [stdout]  --> src/discovery/kad.rs:9:24
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::collections::{HashMap, HashSet, VecDeque};
[INFO] [stdout]   |                        ^^^^^^^           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]   --> src/discovery/kad.rs:11:23
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::sync::mpsc::{channel, Receiver, Sender};
[INFO] [stdout]    |                       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::timestamp_now`
[INFO] [stdout]   --> src/discovery/kad.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::utils::utils::timestamp_now;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::Distance`
[INFO] [stdout]   --> src/discovery/kad.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::utils::utils::Distance;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/discovery/protocol.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | / /// Implements ByteRep trait for RPC, Req & Resp structs so they can be
[INFO] [stdout] 21 | | /// represented as a vector of bytes and/or returned to their struct form
[INFO] [stdout] 22 | | /// with one simple function call.
[INFO] [stdout]    | |_---------------------------------^
[INFO] [stdout]    |   |
[INFO] [stdout]    |   rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::discovery::KAD_MESSAGE_LEN`
[INFO] [stdout]  --> src/discovery/protocol.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::KAD_MESSAGE_LEN;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Message`, `ResponseBytes`
[INFO] [stdout]  --> src/discovery/protocol.rs:5:27
[INFO] [stdout]   |
[INFO] [stdout] 5 |     InnerKey, KadMessage, Message, MessageKey, Nodes, Peer, RPCBytes, RequestBytes, ResponseBytes,
[INFO] [stdout]   |                           ^^^^^^^                                                   ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Rng`, `thread_rng`
[INFO] [stdout]  --> src/discovery/protocol.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rand::{thread_rng, Rng};
[INFO] [stdout]   |            ^^^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]   --> src/discovery/protocol.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::HashSet;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::marker::PhantomData`
[INFO] [stdout]   --> src/discovery/protocol.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::marker::PhantomData;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/protocol.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::UdpSocket`
[INFO] [stdout]   --> src/discovery/protocol.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::net::UdpSocket;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::mpsc::Sender`
[INFO] [stdout]   --> src/discovery/protocol.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::sync::mpsc::Sender;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]   --> src/discovery/protocol.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::sync::Arc;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::traits::routable::Routable`
[INFO] [stdout]   --> src/discovery/protocol.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::traits::routable::Routable;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `MAX_BUCKETS`
[INFO] [stdout]  --> src/discovery/routing.rs:1:24
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::{MAX_BUCKETS, MAX_BUCKET_LEN, REFRESH_INTEVAL};
[INFO] [stdout]   |                        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BTreeMap`
[INFO] [stdout]   --> src/discovery/routing.rs:10:24
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::{BTreeMap, HashMap};
[INFO] [stdout]    |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/routing.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mem`
[INFO] [stdout]   --> src/discovery/routing.rs:13:16
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::{cmp, mem};
[INFO] [stdout]    |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log::info`
[INFO] [stdout]  --> src/transport/transport.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use log::info;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]  --> src/node/peer_id.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sha256::digest_bytes;
[INFO] [stdout]   |             ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]   --> src/node/peer_id.rs:39:24
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let key_hash = digest_bytes(&key.get_key());
[INFO] [stdout]    |                        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:109:14
[INFO] [stdout]     |
[INFO] [stdout] 109 |         let (id, message) = self.prepare_find_node_message(local_info, None);
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:246:41
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                         ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:246:58
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                                          ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:247:42
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:247:59
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                           ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:248:46
[INFO] [stdout]     |
[INFO] [stdout] 248 |     pub fn prepare_find_value_message(&self, value: Value) {}
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:249:42
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:249:59
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                           ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:249:73
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                                         ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:261:18
[INFO] [stdout]     |
[INFO] [stdout] 261 |             let (id, sender, rpc) = request.to_components();
[INFO] [stdout]     |                  ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:273:32
[INFO] [stdout]     |
[INFO] [stdout] 273 |                 RPC::FindValue(value) => {
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:285:28
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                            ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:285:33
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `receiver`
[INFO] [stdout]    --> src/discovery/kad.rs:321:23
[INFO] [stdout]     |
[INFO] [stdout] 321 |             let (req, receiver, rpc) = rm.to_components();
[INFO] [stdout]     |                       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:323:22
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                      ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:323:26
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                          ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req_rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:323:34
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `complete`
[INFO] [stdout]    --> src/discovery/kad.rs:324:25
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_complete`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:354:32
[INFO] [stdout]     |
[INFO] [stdout] 354 |                     RPC::Value(value) => {}
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:355:32
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     RPC::Saved(key) => {}
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:324:21
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                     ----^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:397:33
[INFO] [stdout]     |
[INFO] [stdout] 397 |     pub fn ping_node(&mut self, node: PeerInfo) {}
[INFO] [stdout]     |                                 ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:398:37
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:398:53
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                     ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:414:17
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:414:25
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                         ^^^ help: if this is intentional, prefix it with an underscore: `_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:420:14
[INFO] [stdout]     |
[INFO] [stdout] 420 |         let (id, msg) = self.prepare_new_peer_message(node.clone());
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:411:13
[INFO] [stdout]     |
[INFO] [stdout] 411 |         let mut closest_peers = self
[INFO] [stdout]     |             ----^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:436:36
[INFO] [stdout]     |
[INFO] [stdout] 436 |     pub fn lookup_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                    ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:437:35
[INFO] [stdout]     |
[INFO] [stdout] 437 |     pub fn store_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]   --> src/discovery/routing.rs:70:29
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prefix`
[INFO] [stdout]   --> src/discovery/routing.rs:70:43
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/discovery/routing.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut new_bucket = KBucket::new();
[INFO] [stdout]    |             ----^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]   --> src/discovery/routing.rs:77:41
[INFO] [stdout]    |
[INFO] [stdout] 77 |         self.nodes.clone().iter().map(|(k, v)| v.clone()).collect()
[INFO] [stdout]    |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:218:26
[INFO] [stdout]     |
[INFO] [stdout] 218 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:229:26
[INFO] [stdout]     |
[INFO] [stdout] 229 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bucket`
[INFO] [stdout]    --> src/discovery/routing.rs:179:32
[INFO] [stdout]     |
[INFO] [stdout] 179 |         cloned_tree.retain(|k, bucket| {
[INFO] [stdout]     |                                ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bucket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:186:55
[INFO] [stdout]     |
[INFO] [stdout] 186 |         let total = cloned_tree.iter().fold(0, |acc, (k, v)| acc + v.size());
[INFO] [stdout]     |                                                       ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]    --> src/discovery/routing.rs:211:43
[INFO] [stdout]     |
[INFO] [stdout] 211 |         closest.sort_unstable_by_key(|(k, v)| k.len());
[INFO] [stdout]     |                                           ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:334:41
[INFO] [stdout]     |
[INFO] [stdout] 334 |         self.tree.iter().fold(0, |acc, (k, v)| acc + v.size())
[INFO] [stdout]     |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:341:20
[INFO] [stdout]     |
[INFO] [stdout] 341 |             .map(|(k, v)| v.get_nodes())
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/gossip/gossip.rs:287:32
[INFO] [stdout]     |
[INFO] [stdout] 287 |                     if let Err(e) = tx.clone().send(string) {
[INFO] [stdout]     |                                ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_BUCKETS` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const MAX_BUCKETS: usize = 10;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `KAD_MESSAGE_LEN` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const KAD_MESSAGE_LEN: usize = 55000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REQ_TIMEOUT` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const REQ_TIMEOUT: usize = 60_000_000_000;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_ACTIVE_RPCS` is never used
[INFO] [stdout]   --> src/discovery/mod.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const MAX_ACTIVE_RPCS: usize = 3;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/node/peer_key.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 |             write!(f, "{:b}", byte);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 71 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 13.83s
[INFO] running `Command { std: "docker" "inspect" "aedb0270721163ff6d91c20ff58cb1ac79409a7777c216863fec88859ee0ccf9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aedb0270721163ff6d91c20ff58cb1ac79409a7777c216863fec88859ee0ccf9", kill_on_drop: false }`
[INFO] [stdout] aedb0270721163ff6d91c20ff58cb1ac79409a7777c216863fec88859ee0ccf9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-12-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d3bbc26af08249c9b4e4cfa9802cf22098e76c055b06742183e394b583c4d571
[INFO] running `Command { std: "docker" "start" "-a" "d3bbc26af08249c9b4e4cfa9802cf22098e76c055b06742183e394b583c4d571", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/kad.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HashMap`, `VecDeque`
[INFO] [stdout]  --> src/discovery/kad.rs:9:24
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::collections::{HashMap, HashSet, VecDeque};
[INFO] [stdout]   |                        ^^^^^^^           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]   --> src/discovery/kad.rs:11:23
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::sync::mpsc::{channel, Receiver, Sender};
[INFO] [stdout]    |                       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::timestamp_now`
[INFO] [stdout]   --> src/discovery/kad.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::utils::utils::timestamp_now;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::Distance`
[INFO] [stdout]   --> src/discovery/kad.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::utils::utils::Distance;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/discovery/protocol.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | / /// Implements ByteRep trait for RPC, Req & Resp structs so they can be
[INFO] [stdout] 21 | | /// represented as a vector of bytes and/or returned to their struct form
[INFO] [stdout] 22 | | /// with one simple function call.
[INFO] [stdout]    | |_---------------------------------^
[INFO] [stdout]    |   |
[INFO] [stdout]    |   rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::discovery::KAD_MESSAGE_LEN`
[INFO] [stdout]  --> src/discovery/protocol.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::KAD_MESSAGE_LEN;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Message`, `ResponseBytes`
[INFO] [stdout]  --> src/discovery/protocol.rs:5:27
[INFO] [stdout]   |
[INFO] [stdout] 5 |     InnerKey, KadMessage, Message, MessageKey, Nodes, Peer, RPCBytes, RequestBytes, ResponseBytes,
[INFO] [stdout]   |                           ^^^^^^^                                                   ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Rng`, `thread_rng`
[INFO] [stdout]  --> src/discovery/protocol.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rand::{thread_rng, Rng};
[INFO] [stdout]   |            ^^^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]   --> src/discovery/protocol.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::HashSet;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::marker::PhantomData`
[INFO] [stdout]   --> src/discovery/protocol.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::marker::PhantomData;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/protocol.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::UdpSocket`
[INFO] [stdout]   --> src/discovery/protocol.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::net::UdpSocket;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::mpsc::Sender`
[INFO] [stdout]   --> src/discovery/protocol.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::sync::mpsc::Sender;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]   --> src/discovery/protocol.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::sync::Arc;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::traits::routable::Routable`
[INFO] [stdout]   --> src/discovery/protocol.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::traits::routable::Routable;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `MAX_BUCKETS`
[INFO] [stdout]  --> src/discovery/routing.rs:1:24
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::{MAX_BUCKETS, MAX_BUCKET_LEN, REFRESH_INTEVAL};
[INFO] [stdout]   |                        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BTreeMap`
[INFO] [stdout]   --> src/discovery/routing.rs:10:24
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::{BTreeMap, HashMap};
[INFO] [stdout]    |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/routing.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mem`
[INFO] [stdout]   --> src/discovery/routing.rs:13:16
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::{cmp, mem};
[INFO] [stdout]    |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log::info`
[INFO] [stdout]  --> src/transport/transport.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use log::info;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]  --> src/node/peer_id.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sha256::digest_bytes;
[INFO] [stdout]   |             ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]   --> src/node/peer_id.rs:39:24
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let key_hash = digest_bytes(&key.get_key());
[INFO] [stdout]    |                        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:109:14
[INFO] [stdout]     |
[INFO] [stdout] 109 |         let (id, message) = self.prepare_find_node_message(local_info, None);
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:246:41
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                         ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:246:58
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                                          ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:247:42
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:247:59
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                           ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:248:46
[INFO] [stdout]     |
[INFO] [stdout] 248 |     pub fn prepare_find_value_message(&self, value: Value) {}
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:249:42
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:249:59
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                           ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:249:73
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                                         ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:261:18
[INFO] [stdout]     |
[INFO] [stdout] 261 |             let (id, sender, rpc) = request.to_components();
[INFO] [stdout]     |                  ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:273:32
[INFO] [stdout]     |
[INFO] [stdout] 273 |                 RPC::FindValue(value) => {
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:285:28
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                            ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:285:33
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `receiver`
[INFO] [stdout]    --> src/discovery/kad.rs:321:23
[INFO] [stdout]     |
[INFO] [stdout] 321 |             let (req, receiver, rpc) = rm.to_components();
[INFO] [stdout]     |                       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:323:22
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                      ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:323:26
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                          ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req_rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:323:34
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `complete`
[INFO] [stdout]    --> src/discovery/kad.rs:324:25
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_complete`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:354:32
[INFO] [stdout]     |
[INFO] [stdout] 354 |                     RPC::Value(value) => {}
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:355:32
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     RPC::Saved(key) => {}
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:324:21
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                     ----^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:397:33
[INFO] [stdout]     |
[INFO] [stdout] 397 |     pub fn ping_node(&mut self, node: PeerInfo) {}
[INFO] [stdout]     |                                 ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:398:37
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:398:53
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                     ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:414:17
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:414:25
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                         ^^^ help: if this is intentional, prefix it with an underscore: `_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:420:14
[INFO] [stdout]     |
[INFO] [stdout] 420 |         let (id, msg) = self.prepare_new_peer_message(node.clone());
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:411:13
[INFO] [stdout]     |
[INFO] [stdout] 411 |         let mut closest_peers = self
[INFO] [stdout]     |             ----^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:436:36
[INFO] [stdout]     |
[INFO] [stdout] 436 |     pub fn lookup_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                    ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:437:35
[INFO] [stdout]     |
[INFO] [stdout] 437 |     pub fn store_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]   --> src/discovery/routing.rs:70:29
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prefix`
[INFO] [stdout]   --> src/discovery/routing.rs:70:43
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/discovery/routing.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut new_bucket = KBucket::new();
[INFO] [stdout]    |             ----^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]   --> src/discovery/routing.rs:77:41
[INFO] [stdout]    |
[INFO] [stdout] 77 |         self.nodes.clone().iter().map(|(k, v)| v.clone()).collect()
[INFO] [stdout]    |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:218:26
[INFO] [stdout]     |
[INFO] [stdout] 218 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:229:26
[INFO] [stdout]     |
[INFO] [stdout] 229 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bucket`
[INFO] [stdout]    --> src/discovery/routing.rs:179:32
[INFO] [stdout]     |
[INFO] [stdout] 179 |         cloned_tree.retain(|k, bucket| {
[INFO] [stdout]     |                                ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bucket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:186:55
[INFO] [stdout]     |
[INFO] [stdout] 186 |         let total = cloned_tree.iter().fold(0, |acc, (k, v)| acc + v.size());
[INFO] [stdout]     |                                                       ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]    --> src/discovery/routing.rs:211:43
[INFO] [stdout]     |
[INFO] [stdout] 211 |         closest.sort_unstable_by_key(|(k, v)| k.len());
[INFO] [stdout]     |                                           ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:334:41
[INFO] [stdout]     |
[INFO] [stdout] 334 |         self.tree.iter().fold(0, |acc, (k, v)| acc + v.size())
[INFO] [stdout]     |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:341:20
[INFO] [stdout]     |
[INFO] [stdout] 341 |             .map(|(k, v)| v.get_nodes())
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/gossip/gossip.rs:287:32
[INFO] [stdout]     |
[INFO] [stdout] 287 |                     if let Err(e) = tx.clone().send(string) {
[INFO] [stdout]     |                                ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_BUCKETS` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const MAX_BUCKETS: usize = 10;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `KAD_MESSAGE_LEN` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const KAD_MESSAGE_LEN: usize = 55000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REQ_TIMEOUT` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const REQ_TIMEOUT: usize = 60_000_000_000;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_ACTIVE_RPCS` is never used
[INFO] [stdout]   --> src/discovery/mod.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const MAX_ACTIVE_RPCS: usize = 3;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/node/peer_key.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 |             write!(f, "{:b}", byte);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 71 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling udp2p v0.1.6 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0601]: `main` function not found in crate `gossip`
[INFO] [stdout]   |
[INFO] [stdout]   = note: consider adding a `main` function to `examples/gossip.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `kad`
[INFO] [stdout]   |
[INFO] [stdout]   = note: consider adding a `main` function to `examples/kad.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `udp2p` (example "gossip") due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `udp2p` (example "kad") due to 2 previous errors
[INFO] [stdout] error[E0601]: `main` function not found in crate `r#mod`
[INFO] [stdout]   --> examples/mod.rs:3:16
[INFO] [stdout]    |
[INFO] [stdout] 3  | pub mod gossip;
[INFO] [stdout]    |                ^ the main function must be defined at the crate level (in `examples/mod.rs`)
[INFO] [stdout]    |
[INFO] [stdout] note: here is a function named `main`
[INFO] [stdout]   --> examples/chat.rs:21:1
[INFO] [stdout]    |
[INFO] [stdout] 21 | #[async_std::main]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] note: here is a function named `main`
[INFO] [stdout]   --> examples/chat.rs:21:1
[INFO] [stdout]    |
[INFO] [stdout] 21 | #[async_std::main]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: you have one or more functions named `main` not defined at the crate level
[INFO] [stdout]    = help: consider moving the `main` function definitions
[INFO] [stdout]    = note: this error originates in the attribute macro `async_std::main` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/kad.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HashMap`, `VecDeque`
[INFO] [stdout]  --> src/discovery/kad.rs:9:24
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::collections::{HashMap, HashSet, VecDeque};
[INFO] [stdout]   |                        ^^^^^^^           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `channel`
[INFO] [stdout]   --> src/discovery/kad.rs:11:23
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::sync::mpsc::{channel, Receiver, Sender};
[INFO] [stdout]    |                       ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::timestamp_now`
[INFO] [stdout]   --> src/discovery/kad.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::utils::utils::timestamp_now;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils::utils::Distance`
[INFO] [stdout]   --> src/discovery/kad.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::utils::utils::Distance;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/discovery/protocol.rs:20:1
[INFO] [stdout]    |
[INFO] [stdout] 20 | / /// Implements ByteRep trait for RPC, Req & Resp structs so they can be
[INFO] [stdout] 21 | | /// represented as a vector of bytes and/or returned to their struct form
[INFO] [stdout] 22 | | /// with one simple function call.
[INFO] [stdout]    | |_---------------------------------^
[INFO] [stdout]    |   |
[INFO] [stdout]    |   rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::discovery::KAD_MESSAGE_LEN`
[INFO] [stdout]  --> src/discovery/protocol.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::KAD_MESSAGE_LEN;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::node::peer_key::Key`
[INFO] [stdout]  --> src/discovery/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::node::peer_key::Key;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Message`, `ResponseBytes`
[INFO] [stdout]  --> src/discovery/protocol.rs:5:27
[INFO] [stdout]   |
[INFO] [stdout] 5 |     InnerKey, KadMessage, Message, MessageKey, Nodes, Peer, RPCBytes, RequestBytes, ResponseBytes,
[INFO] [stdout]   |                           ^^^^^^^                                                   ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Rng`, `thread_rng`
[INFO] [stdout]  --> src/discovery/protocol.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 | use rand::{thread_rng, Rng};
[INFO] [stdout]   |            ^^^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashSet`
[INFO] [stdout]   --> src/discovery/protocol.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::HashSet;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::marker::PhantomData`
[INFO] [stdout]   --> src/discovery/protocol.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::marker::PhantomData;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/protocol.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::UdpSocket`
[INFO] [stdout]   --> src/discovery/protocol.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::net::UdpSocket;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::mpsc::Sender`
[INFO] [stdout]   --> src/discovery/protocol.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::sync::mpsc::Sender;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]   --> src/discovery/protocol.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::sync::Arc;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::traits::routable::Routable`
[INFO] [stdout]   --> src/discovery/protocol.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use crate::traits::routable::Routable;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `MAX_BUCKETS`
[INFO] [stdout]  --> src/discovery/routing.rs:1:24
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::discovery::{MAX_BUCKETS, MAX_BUCKET_LEN, REFRESH_INTEVAL};
[INFO] [stdout]   |                        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BTreeMap`
[INFO] [stdout]   --> src/discovery/routing.rs:10:24
[INFO] [stdout]    |
[INFO] [stdout] 10 | use std::collections::{BTreeMap, HashMap};
[INFO] [stdout]    |                        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::net::SocketAddr`
[INFO] [stdout]   --> src/discovery/routing.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::net::SocketAddr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mem`
[INFO] [stdout]   --> src/discovery/routing.rs:13:16
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::{cmp, mem};
[INFO] [stdout]    |                ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `log::info`
[INFO] [stdout]  --> src/transport/transport.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use log::info;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]  --> src/node/peer_id.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use sha256::digest_bytes;
[INFO] [stdout]   |             ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `sha256::digest_bytes`: Use new function `digest()` instead
[INFO] [stdout]   --> src/node/peer_id.rs:39:24
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let key_hash = digest_bytes(&key.get_key());
[INFO] [stdout]    |                        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `udp2p` (example "mod") due to 2 previous errors
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:109:14
[INFO] [stdout]     |
[INFO] [stdout] 109 |         let (id, message) = self.prepare_find_node_message(local_info, None);
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:246:41
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                         ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:246:58
[INFO] [stdout]     |
[INFO] [stdout] 246 |     pub fn prepare_store_message(&self, peer: &PeerInfo, value: Value) {}
[INFO] [stdout]     |                                                          ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:247:42
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:247:59
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn prepare_saved_response(&self, peer: &PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                           ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:248:46
[INFO] [stdout]     |
[INFO] [stdout] 248 |     pub fn prepare_find_value_message(&self, value: Value) {}
[INFO] [stdout]     |                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `peer`
[INFO] [stdout]    --> src/discovery/kad.rs:249:42
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                          ^^^^ help: if this is intentional, prefix it with an underscore: `_peer`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:249:59
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                           ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:249:73
[INFO] [stdout]     |
[INFO] [stdout] 249 |     pub fn prepare_value_response(&self, peer: &PeerInfo, value: Value, req: Req) {}
[INFO] [stdout]     |                                                                         ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:261:18
[INFO] [stdout]     |
[INFO] [stdout] 261 |             let (id, sender, rpc) = request.to_components();
[INFO] [stdout]     |                  ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:273:32
[INFO] [stdout]     |
[INFO] [stdout] 273 |                 RPC::FindValue(value) => {
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:285:28
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                            ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:285:33
[INFO] [stdout]     |
[INFO] [stdout] 285 |                 RPC::Store(key, value) => {
[INFO] [stdout]     |                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `receiver`
[INFO] [stdout]    --> src/discovery/kad.rs:321:23
[INFO] [stdout]     |
[INFO] [stdout] 321 |             let (req, receiver, rpc) = rm.to_components();
[INFO] [stdout]     |                       ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:323:22
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                      ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:323:26
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                          ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req_rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:323:34
[INFO] [stdout]     |
[INFO] [stdout] 323 |                 let (id, sender, req_rpc) = request.to_components();
[INFO] [stdout]     |                                  ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_req_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `complete`
[INFO] [stdout]    --> src/discovery/kad.rs:324:25
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_complete`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:354:32
[INFO] [stdout]     |
[INFO] [stdout] 354 |                     RPC::Value(value) => {}
[INFO] [stdout]     |                                ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `key`
[INFO] [stdout]    --> src/discovery/kad.rs:355:32
[INFO] [stdout]     |
[INFO] [stdout] 355 |                     RPC::Saved(key) => {}
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:324:21
[INFO] [stdout]     |
[INFO] [stdout] 324 |                 let mut complete = false;
[INFO] [stdout]     |                     ----^^^^^^^^
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:397:33
[INFO] [stdout]     |
[INFO] [stdout] 397 |     pub fn ping_node(&mut self, node: PeerInfo) {}
[INFO] [stdout]     |                                 ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `node`
[INFO] [stdout]    --> src/discovery/kad.rs:398:37
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_node`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `req`
[INFO] [stdout]    --> src/discovery/kad.rs:398:53
[INFO] [stdout]     |
[INFO] [stdout] 398 |     pub fn pong_response(&mut self, node: PeerInfo, req: Req) {}
[INFO] [stdout]     |                                                     ^^^ help: if this is intentional, prefix it with an underscore: `_req`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sender`
[INFO] [stdout]    --> src/discovery/kad.rs:414:17
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rpc`
[INFO] [stdout]    --> src/discovery/kad.rs:414:25
[INFO] [stdout]     |
[INFO] [stdout] 414 |         let (_, sender, rpc) = req.to_components();
[INFO] [stdout]     |                         ^^^ help: if this is intentional, prefix it with an underscore: `_rpc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `id`
[INFO] [stdout]    --> src/discovery/kad.rs:420:14
[INFO] [stdout]     |
[INFO] [stdout] 420 |         let (id, msg) = self.prepare_new_peer_message(node.clone());
[INFO] [stdout]     |              ^^ help: if this is intentional, prefix it with an underscore: `_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/discovery/kad.rs:411:13
[INFO] [stdout]     |
[INFO] [stdout] 411 |         let mut closest_peers = self
[INFO] [stdout]     |             ----^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:436:36
[INFO] [stdout]     |
[INFO] [stdout] 436 |     pub fn lookup_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                    ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `value`
[INFO] [stdout]    --> src/discovery/kad.rs:437:35
[INFO] [stdout]     |
[INFO] [stdout] 437 |     pub fn store_value(&mut self, value: Value) {}
[INFO] [stdout]     |                                   ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `index`
[INFO] [stdout]   --> src/discovery/routing.rs:70:29
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_index`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `prefix`
[INFO] [stdout]   --> src/discovery/routing.rs:70:43
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn split(&mut self, index: usize, prefix: String) -> KBucket {
[INFO] [stdout]    |                                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prefix`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/discovery/routing.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut new_bucket = KBucket::new();
[INFO] [stdout]    |             ----^^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]   --> src/discovery/routing.rs:77:41
[INFO] [stdout]    |
[INFO] [stdout] 77 |         self.nodes.clone().iter().map(|(k, v)| v.clone()).collect()
[INFO] [stdout]    |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:218:26
[INFO] [stdout]     |
[INFO] [stdout] 218 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:229:26
[INFO] [stdout]     |
[INFO] [stdout] 229 |             if let Some((k, nodes)) = iter.next() {
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `bucket`
[INFO] [stdout]    --> src/discovery/routing.rs:179:32
[INFO] [stdout]     |
[INFO] [stdout] 179 |         cloned_tree.retain(|k, bucket| {
[INFO] [stdout]     |                                ^^^^^^ help: if this is intentional, prefix it with an underscore: `_bucket`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:186:55
[INFO] [stdout]     |
[INFO] [stdout] 186 |         let total = cloned_tree.iter().fold(0, |acc, (k, v)| acc + v.size());
[INFO] [stdout]     |                                                       ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]    --> src/discovery/routing.rs:211:43
[INFO] [stdout]     |
[INFO] [stdout] 211 |         closest.sort_unstable_by_key(|(k, v)| k.len());
[INFO] [stdout]     |                                           ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:334:41
[INFO] [stdout]     |
[INFO] [stdout] 334 |         self.tree.iter().fold(0, |acc, (k, v)| acc + v.size())
[INFO] [stdout]     |                                         ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `k`
[INFO] [stdout]    --> src/discovery/routing.rs:341:20
[INFO] [stdout]     |
[INFO] [stdout] 341 |             .map(|(k, v)| v.get_nodes())
[INFO] [stdout]     |                    ^ help: if this is intentional, prefix it with an underscore: `_k`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/gossip/gossip.rs:287:32
[INFO] [stdout]     |
[INFO] [stdout] 287 |                     if let Err(e) = tx.clone().send(string) {
[INFO] [stdout]     |                                ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_BUCKETS` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:6:7
[INFO] [stdout]   |
[INFO] [stdout] 6 | const MAX_BUCKETS: usize = 10;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `KAD_MESSAGE_LEN` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:8:7
[INFO] [stdout]   |
[INFO] [stdout] 8 | const KAD_MESSAGE_LEN: usize = 55000;
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `REQ_TIMEOUT` is never used
[INFO] [stdout]  --> src/discovery/mod.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const REQ_TIMEOUT: usize = 60_000_000_000;
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `MAX_ACTIVE_RPCS` is never used
[INFO] [stdout]   --> src/discovery/mod.rs:10:7
[INFO] [stdout]    |
[INFO] [stdout] 10 | const MAX_ACTIVE_RPCS: usize = 3;
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/node/peer_key.rs:123:13
[INFO] [stdout]     |
[INFO] [stdout] 123 |             write!(f, "{:b}", byte);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout]     = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 71 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "d3bbc26af08249c9b4e4cfa9802cf22098e76c055b06742183e394b583c4d571", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d3bbc26af08249c9b4e4cfa9802cf22098e76c055b06742183e394b583c4d571", kill_on_drop: false }`
[INFO] [stdout] d3bbc26af08249c9b4e4cfa9802cf22098e76c055b06742183e394b583c4d571
