[INFO] fetching crate yap2p 0.1.2... [INFO] checking yap2p-0.1.2 against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] extracting crate yap2p 0.1.2 into /workspace/builds/worker-1-tc1/source [INFO] validating manifest of crates.io crate yap2p 0.1.2 on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate yap2p 0.1.2 [INFO] finished tweaking crates.io crate yap2p 0.1.2 [INFO] tweaked toml for crates.io crate yap2p 0.1.2 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 177 packages [INFO] [stderr] Adding async-channel v1.9.0 (latest: v2.2.0) [INFO] [stderr] Adding base64 v0.21.7 (latest: v0.22.0) [INFO] [stderr] Adding bitflags v1.3.2 (latest: v2.5.0) [INFO] [stderr] Adding castaway v0.1.2 (latest: v0.2.2) [INFO] [stderr] Adding event-listener v2.5.3 (latest: v5.3.0) [INFO] [stderr] Adding fastrand v1.9.0 (latest: v2.0.2) [INFO] [stderr] Adding foreign-types v0.3.2 (latest: v0.5.0) [INFO] [stderr] Adding foreign-types-shared v0.1.1 (latest: v0.3.1) [INFO] [stderr] Adding futures-lite v1.13.0 (latest: v2.3.0) [INFO] [stderr] Adding generic-array v0.14.7 (latest: v1.0.0) [INFO] [stderr] Adding h2 v0.3.26 (latest: v0.4.4) [INFO] [stderr] Adding http v0.2.12 (latest: v1.1.0) [INFO] [stderr] Adding http-body v0.4.6 (latest: v1.0.0) [INFO] [stderr] Adding hyper v0.14.28 (latest: v1.2.0) [INFO] [stderr] Adding hyper-tls v0.5.0 (latest: v0.6.0) [INFO] [stderr] Adding linux-raw-sys v0.4.13 (latest: v0.6.4) [INFO] [stderr] Adding object v0.32.2 (latest: v0.34.0) [INFO] [stderr] Adding polling v2.8.0 (latest: v3.6.0) [INFO] [stderr] Adding reqwest v0.11.27 (latest: v0.12.3) [INFO] [stderr] Adding rustls v0.22.3 (latest: v0.23.4) [INFO] [stderr] Adding rustls-pemfile v1.0.4 (latest: v2.1.1) [INFO] [stderr] Adding sync_wrapper v0.1.2 (latest: v1.0.0) [INFO] [stderr] Adding system-configuration v0.5.1 (latest: v0.6.0) [INFO] [stderr] Adding system-configuration-sys v0.5.0 (latest: v0.6.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.0+wasi-0.2.0) [INFO] [stderr] Adding windows-sys v0.48.0 (latest: v0.52.0) [INFO] [stderr] Adding windows-targets v0.48.5 (latest: v0.52.4) [INFO] [stderr] Adding windows_aarch64_gnullvm v0.48.5 (latest: v0.52.4) [INFO] [stderr] Adding windows_aarch64_msvc v0.48.5 (latest: v0.52.4) [INFO] [stderr] Adding windows_i686_gnu v0.48.5 (latest: v0.52.4) [INFO] [stderr] Adding windows_i686_msvc v0.48.5 (latest: v0.52.4) [INFO] [stderr] Adding windows_x86_64_gnu v0.48.5 (latest: v0.52.4) [INFO] [stderr] Adding windows_x86_64_gnullvm v0.48.5 (latest: v0.52.4) [INFO] [stderr] Adding windows_x86_64_msvc v0.48.5 (latest: v0.52.4) [INFO] [stderr] Adding winreg v0.50.0 (latest: v0.52.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f8c6ec38a3c27544bc2637e1c99fa229028ea69a71a617755650a6f2b111ce64 [INFO] running `Command { std: "docker" "start" "-a" "f8c6ec38a3c27544bc2637e1c99fa229028ea69a71a617755650a6f2b111ce64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f8c6ec38a3c27544bc2637e1c99fa229028ea69a71a617755650a6f2b111ce64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8c6ec38a3c27544bc2637e1c99fa229028ea69a71a617755650a6f2b111ce64", kill_on_drop: false }` [INFO] [stdout] f8c6ec38a3c27544bc2637e1c99fa229028ea69a71a617755650a6f2b111ce64 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2a0cb3ad3e267d262ea46dd0617ca98faa786e54a1c617c243783b469e24e0a [INFO] running `Command { std: "docker" "start" "-a" "d2a0cb3ad3e267d262ea46dd0617ca98faa786e54a1c617c243783b469e24e0a", kill_on_drop: false }` [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Checking serde v1.0.197 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking openssl v0.10.64 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking native-tls v0.2.11 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking yap2p v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/peer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use bincode; [INFO] [stdout] | ^^^^^^^ the item `bincode` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/crypto/history.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use bincode; [INFO] [stdout] | ^^^^^^^ the item `bincode` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SocketAddr` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `SocketAddr` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Mutex` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `Mutex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `VecDeque` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `VecDeque` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `Rng` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SocketAddr` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::{SocketAddr, IpAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `SocketAddr` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Mutex` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `Mutex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `VecDeque` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `VecDeque` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `Rng` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `bincode` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/protocols/mbp/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/protocols/mbp/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet`, `VecDeque` [INFO] [stdout] --> src/protocols/mbp/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{VecDeque, HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::Waker` [INFO] [stdout] --> src/protocols/mbp/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::task::Waker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/protocols/mbp/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `bincode` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/protocols/mbp/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/protocols/mbp/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::history::*` [INFO] [stdout] --> src/protocols/mbp/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::crypto::history::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `reqwest` is imported redundantly [INFO] [stdout] --> src/ip/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use reqwest; [INFO] [stdout] | ^^^^^^^ the item `reqwest` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/peer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use bincode; [INFO] [stdout] | ^^^^^^^ the item `bincode` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/crypto/history.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use bincode; [INFO] [stdout] | ^^^^^^^ the item `bincode` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SocketAddr` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `SocketAddr` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Mutex` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `Mutex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `VecDeque` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `VecDeque` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `Rng` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SocketAddr` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::{SocketAddr, IpAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `SocketAddr` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Mutex` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `Mutex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `VecDeque` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `VecDeque` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `Rng` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `bincode` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/protocols/mbp/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/protocols/mbp/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet`, `VecDeque` [INFO] [stdout] --> src/protocols/mbp/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{VecDeque, HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::Waker` [INFO] [stdout] --> src/protocols/mbp/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::task::Waker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/protocols/mbp/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `bincode` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/protocols/mbp/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/protocols/mbp/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::history::*` [INFO] [stdout] --> src/protocols/mbp/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::crypto::history::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `reqwest` is imported redundantly [INFO] [stdout] --> src/ip/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use reqwest; [INFO] [stdout] | ^^^^^^^ the item `reqwest` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/mbp/mod.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 111 | / loop { [INFO] [stdout] 112 | | // handling incoming packet [INFO] [stdout] 113 | | let mut buf_array = [0u8; RECEIVE_BUFFER_SIZE]; [INFO] [stdout] 114 | | let mut readbuf = ReadBuf::new(&mut buf_array); [INFO] [stdout] ... | [INFO] [stdout] 159 | | } [INFO] [stdout] 160 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 161 | return Poll::Ready(()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/mbp/mod.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 111 | / loop { [INFO] [stdout] 112 | | // handling incoming packet [INFO] [stdout] 113 | | let mut buf_array = [0u8; RECEIVE_BUFFER_SIZE]; [INFO] [stdout] 114 | | let mut readbuf = ReadBuf::new(&mut buf_array); [INFO] [stdout] ... | [INFO] [stdout] 159 | | } [INFO] [stdout] 160 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 161 | return Poll::Ready(()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:558:35 [INFO] [stdout] | [INFO] [stdout] 558 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:577:35 [INFO] [stdout] | [INFO] [stdout] 577 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1279:56 [INFO] [stdout] | [INFO] [stdout] 1279 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1283:55 [INFO] [stdout] | [INFO] [stdout] 1283 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1288:57 [INFO] [stdout] | [INFO] [stdout] 1288 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1336:60 [INFO] [stdout] | [INFO] [stdout] 1336 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1340:59 [INFO] [stdout] | [INFO] [stdout] 1340 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1358:21 [INFO] [stdout] | [INFO] [stdout] 1358 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:507:35 [INFO] [stdout] | [INFO] [stdout] 507 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:526:35 [INFO] [stdout] | [INFO] [stdout] 526 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:558:35 [INFO] [stdout] | [INFO] [stdout] 558 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:577:35 [INFO] [stdout] | [INFO] [stdout] 577 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1143:29 [INFO] [stdout] | [INFO] [stdout] 1143 | for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1157:56 [INFO] [stdout] | [INFO] [stdout] 1157 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1161:55 [INFO] [stdout] | [INFO] [stdout] 1161 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1166:57 [INFO] [stdout] | [INFO] [stdout] 1166 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1200:33 [INFO] [stdout] | [INFO] [stdout] 1200 | ... for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1214:60 [INFO] [stdout] | [INFO] [stdout] 1214 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1218:59 [INFO] [stdout] | [INFO] [stdout] 1218 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1236:21 [INFO] [stdout] | [INFO] [stdout] 1236 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1279:56 [INFO] [stdout] | [INFO] [stdout] 1279 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1283:55 [INFO] [stdout] | [INFO] [stdout] 1283 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1288:57 [INFO] [stdout] | [INFO] [stdout] 1288 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1336:60 [INFO] [stdout] | [INFO] [stdout] 1336 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1340:59 [INFO] [stdout] | [INFO] [stdout] 1340 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1358:21 [INFO] [stdout] | [INFO] [stdout] 1358 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contacts` [INFO] [stdout] --> src/protocols/mbp/mod.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | let contacts = MeshContacts::deserialize(packet[36..].to_vec()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contacts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:507:35 [INFO] [stdout] | [INFO] [stdout] 507 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contact` [INFO] [stdout] --> src/protocols/mbp/mod.rs:146:33 [INFO] [stdout] | [INFO] [stdout] 146 | if let Some(contact) = self.static_nodes.iter() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contact` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/mbp/mod.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [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: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:526:35 [INFO] [stdout] | [INFO] [stdout] 526 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1143:29 [INFO] [stdout] | [INFO] [stdout] 1143 | for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1157:56 [INFO] [stdout] | [INFO] [stdout] 1157 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1161:55 [INFO] [stdout] | [INFO] [stdout] 1161 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1166:57 [INFO] [stdout] | [INFO] [stdout] 1166 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1200:33 [INFO] [stdout] | [INFO] [stdout] 1200 | ... for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1214:60 [INFO] [stdout] | [INFO] [stdout] 1214 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1218:59 [INFO] [stdout] | [INFO] [stdout] 1218 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1236:21 [INFO] [stdout] | [INFO] [stdout] 1236 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contacts` [INFO] [stdout] --> src/protocols/mbp/mod.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | let contacts = MeshContacts::deserialize(packet[36..].to_vec()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contacts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contact` [INFO] [stdout] --> src/protocols/mbp/mod.rs:146:33 [INFO] [stdout] | [INFO] [stdout] 146 | if let Some(contact) = self.static_nodes.iter() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contact` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/mbp/mod.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [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: methods `set_or_add_addr` and `remove_addr` are never used [INFO] [stdout] --> src/peer/mod.rs:334:19 [INFO] [stdout] | [INFO] [stdout] 285 | impl Contact { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 334 | pub(crate) fn set_or_add_addr(&self, device: u16, address: (Addr, u16)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | pub(crate) fn remove_addr(&self, device: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp.rs:423:8 [INFO] [stdout] | [INFO] [stdout] 416 | impl SdpConnection { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 423 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 363 | impl SdpSelfConnection { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 370 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `serialize` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl MeshContacts { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `echoed` and `rtt` are never read [INFO] [stdout] --> src/protocols/mbp/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 60 | struct Scheduler { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 61 | /// Last moment [`Node`] sent `ECHO` packet [INFO] [stdout] 62 | echoed: Instant, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | rtt: Duration [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nodes_scheduler` is never read [INFO] [stdout] --> src/protocols/mbp/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct MbpDriver { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 77 | nodes_scheduler: HashMap [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl MbpDriver { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtain_ipv4_addr` is never used [INFO] [stdout] --> src/ip/mod.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn obtain_ipv4_addr() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chunk_data_for_encryption` is never used [INFO] [stdout] --> src/utils.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn chunk_data_for_encryption(data: impl AsRef<[u8]>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 53 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_or_add_addr` and `remove_addr` are never used [INFO] [stdout] --> src/peer/mod.rs:334:19 [INFO] [stdout] | [INFO] [stdout] 285 | impl Contact { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 334 | pub(crate) fn set_or_add_addr(&self, device: u16, address: (Addr, u16)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | pub(crate) fn remove_addr(&self, device: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp.rs:423:8 [INFO] [stdout] | [INFO] [stdout] 416 | impl SdpConnection { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 423 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 363 | impl SdpSelfConnection { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 370 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `serialize` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl MeshContacts { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `echoed` and `rtt` are never read [INFO] [stdout] --> src/protocols/mbp/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 60 | struct Scheduler { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 61 | /// Last moment [`Node`] sent `ECHO` packet [INFO] [stdout] 62 | echoed: Instant, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | rtt: Duration [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nodes_scheduler` is never read [INFO] [stdout] --> src/protocols/mbp/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct MbpDriver { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 77 | nodes_scheduler: HashMap [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl MbpDriver { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtain_ipv4_addr` is never used [INFO] [stdout] --> src/ip/mod.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn obtain_ipv4_addr() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chunk_data_for_encryption` is never used [INFO] [stdout] --> src/utils.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn chunk_data_for_encryption(data: impl AsRef<[u8]>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for the crate [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![cfg_attr(docsrs, feature(doc_auto_cfg))] [INFO] [stdout] 2 | | #![warn(missing_docs)] [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | pub mod peer; [INFO] [stdout] ... | [INFO] [stdout] 9 | | pub(crate) mod ip; [INFO] [stdout] 10 | | pub(crate) mod utils; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | first_packet: Packet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | rest_of_payload: VecDeque> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | first_packet_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | payload: Mutex> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.59s [INFO] running `Command { std: "docker" "inspect" "d2a0cb3ad3e267d262ea46dd0617ca98faa786e54a1c617c243783b469e24e0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2a0cb3ad3e267d262ea46dd0617ca98faa786e54a1c617c243783b469e24e0a", kill_on_drop: false }` [INFO] [stdout] d2a0cb3ad3e267d262ea46dd0617ca98faa786e54a1c617c243783b469e24e0a [INFO] checking yap2p-0.1.2 against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] extracting crate yap2p 0.1.2 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate yap2p 0.1.2 on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate yap2p 0.1.2 [INFO] finished tweaking crates.io crate yap2p 0.1.2 [INFO] tweaked toml for crates.io crate yap2p 0.1.2 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 935a9c1fbd03d3df3d3f06f7de58e231915f664055a4f3bcca610dfc34092915 [INFO] running `Command { std: "docker" "start" "-a" "935a9c1fbd03d3df3d3f06f7de58e231915f664055a4f3bcca610dfc34092915", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "935a9c1fbd03d3df3d3f06f7de58e231915f664055a4f3bcca610dfc34092915", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "935a9c1fbd03d3df3d3f06f7de58e231915f664055a4f3bcca610dfc34092915", kill_on_drop: false }` [INFO] [stdout] 935a9c1fbd03d3df3d3f06f7de58e231915f664055a4f3bcca610dfc34092915 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef045e1844b8ee3188faf8bef24de7b18dbc35b198ac5409d2efe070fc0c8e69 [INFO] running `Command { std: "docker" "start" "-a" "ef045e1844b8ee3188faf8bef24de7b18dbc35b198ac5409d2efe070fc0c8e69", kill_on_drop: false }` [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Checking serde v1.0.197 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking openssl v0.10.64 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking native-tls v0.2.11 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking hyper v0.14.28 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking yap2p v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/peer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use bincode; [INFO] [stdout] | ^^^^^^^ the item `bincode` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/crypto/history.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use bincode; [INFO] [stdout] | ^^^^^^^ the item `bincode` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SocketAddr` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `SocketAddr` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Mutex` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `Mutex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `VecDeque` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `VecDeque` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `Rng` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SocketAddr` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::{SocketAddr, IpAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `SocketAddr` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Mutex` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `Mutex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `VecDeque` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `VecDeque` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `Rng` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `bincode` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/protocols/mbp/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/protocols/mbp/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet`, `VecDeque` [INFO] [stdout] --> src/protocols/mbp/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{VecDeque, HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::Waker` [INFO] [stdout] --> src/protocols/mbp/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::task::Waker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/protocols/mbp/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `bincode` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/protocols/mbp/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/protocols/mbp/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::history::*` [INFO] [stdout] --> src/protocols/mbp/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::crypto::history::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `reqwest` is imported redundantly [INFO] [stdout] --> src/ip/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use reqwest; [INFO] [stdout] | ^^^^^^^ the item `reqwest` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/peer/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use bincode; [INFO] [stdout] | ^^^^^^^ the item `bincode` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/crypto/history.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use bincode; [INFO] [stdout] | ^^^^^^^ the item `bincode` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SocketAddr` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `SocketAddr` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Mutex` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `Mutex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `VecDeque` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `VecDeque` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | use super::*; [INFO] [stdout] | -------- the item `Rng` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `SocketAddr` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::{SocketAddr, IpAddr}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `SocketAddr` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Mutex` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `Mutex` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `VecDeque` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:6:33 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::{HashMap, VecDeque}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `VecDeque` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rng` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `Rng` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | use super::*; [INFO] [stdout] | -------- the item `bincode` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/protocols/mbp/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> src/protocols/mbp/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashSet`, `VecDeque` [INFO] [stdout] --> src/protocols/mbp/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{VecDeque, HashSet, HashMap}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::Waker` [INFO] [stdout] --> src/protocols/mbp/mod.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::task::Waker; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `bincode` is imported redundantly [INFO] [stdout] --> src/protocols/mbp/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use bincode; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | use super::*; [INFO] [stdout] | -------- the item `bincode` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/protocols/mbp/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/protocols/mbp/mod.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::crypto::history::*` [INFO] [stdout] --> src/protocols/mbp/mod.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use crate::crypto::history::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `reqwest` is imported redundantly [INFO] [stdout] --> src/ip/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use reqwest; [INFO] [stdout] | ^^^^^^^ the item `reqwest` is already defined by prelude [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/mbp/mod.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 111 | / loop { [INFO] [stdout] 112 | | // handling incoming packet [INFO] [stdout] 113 | | let mut buf_array = [0u8; RECEIVE_BUFFER_SIZE]; [INFO] [stdout] 114 | | let mut readbuf = ReadBuf::new(&mut buf_array); [INFO] [stdout] ... | [INFO] [stdout] 159 | | } [INFO] [stdout] 160 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 161 | return Poll::Ready(()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/protocols/mbp/mod.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 111 | / loop { [INFO] [stdout] 112 | | // handling incoming packet [INFO] [stdout] 113 | | let mut buf_array = [0u8; RECEIVE_BUFFER_SIZE]; [INFO] [stdout] 114 | | let mut readbuf = ReadBuf::new(&mut buf_array); [INFO] [stdout] ... | [INFO] [stdout] 159 | | } [INFO] [stdout] 160 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 161 | return Poll::Ready(()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:558:35 [INFO] [stdout] | [INFO] [stdout] 558 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:577:35 [INFO] [stdout] | [INFO] [stdout] 577 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1279:56 [INFO] [stdout] | [INFO] [stdout] 1279 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1283:55 [INFO] [stdout] | [INFO] [stdout] 1283 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1288:57 [INFO] [stdout] | [INFO] [stdout] 1288 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1336:60 [INFO] [stdout] | [INFO] [stdout] 1336 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1340:59 [INFO] [stdout] | [INFO] [stdout] 1340 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1358:21 [INFO] [stdout] | [INFO] [stdout] 1358 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:507:35 [INFO] [stdout] | [INFO] [stdout] 507 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:526:35 [INFO] [stdout] | [INFO] [stdout] 526 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1143:29 [INFO] [stdout] | [INFO] [stdout] 1143 | for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1157:56 [INFO] [stdout] | [INFO] [stdout] 1157 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1161:55 [INFO] [stdout] | [INFO] [stdout] 1161 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1166:57 [INFO] [stdout] | [INFO] [stdout] 1166 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1200:33 [INFO] [stdout] | [INFO] [stdout] 1200 | ... for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1214:60 [INFO] [stdout] | [INFO] [stdout] 1214 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1218:59 [INFO] [stdout] | [INFO] [stdout] 1218 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:558:35 [INFO] [stdout] | [INFO] [stdout] 558 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1236:21 [INFO] [stdout] | [INFO] [stdout] 1236 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:577:35 [INFO] [stdout] | [INFO] [stdout] 577 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1279:56 [INFO] [stdout] | [INFO] [stdout] 1279 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1283:55 [INFO] [stdout] | [INFO] [stdout] 1283 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1288:57 [INFO] [stdout] | [INFO] [stdout] 1288 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1336:60 [INFO] [stdout] | [INFO] [stdout] 1336 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1340:59 [INFO] [stdout] | [INFO] [stdout] 1340 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp.rs:1358:21 [INFO] [stdout] | [INFO] [stdout] 1358 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contacts` [INFO] [stdout] --> src/protocols/mbp/mod.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | let contacts = MeshContacts::deserialize(packet[36..].to_vec()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contacts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contact` [INFO] [stdout] --> src/protocols/mbp/mod.rs:146:33 [INFO] [stdout] | [INFO] [stdout] 146 | if let Some(contact) = self.static_nodes.iter() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contact` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/mbp/mod.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [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: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:507:35 [INFO] [stdout] | [INFO] [stdout] 507 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_bytes_sent` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:526:35 [INFO] [stdout] | [INFO] [stdout] 526 | if let Ok(n_bytes_sent) = ready!(self.socket.poll_send_to( [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_bytes_sent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1143:29 [INFO] [stdout] | [INFO] [stdout] 1143 | for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1157:56 [INFO] [stdout] | [INFO] [stdout] 1157 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1161:55 [INFO] [stdout] | [INFO] [stdout] 1161 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1166:57 [INFO] [stdout] | [INFO] [stdout] 1166 | ... Poll::Ready(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `receiver` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1200:33 [INFO] [stdout] | [INFO] [stdout] 1200 | ... for receiver in receivers { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_receiver` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1214:60 [INFO] [stdout] | [INFO] [stdout] 1214 | ... ControlFlow::Break(Err(e)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n_packets` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1218:59 [INFO] [stdout] | [INFO] [stdout] 1218 | ... ControlFlow::Continue(n_packets) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_n_packets` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:1236:21 [INFO] [stdout] | [INFO] [stdout] 1236 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contacts` [INFO] [stdout] --> src/protocols/mbp/mod.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | let contacts = MeshContacts::deserialize(packet[36..].to_vec()); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contacts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contact` [INFO] [stdout] --> src/protocols/mbp/mod.rs:146:33 [INFO] [stdout] | [INFO] [stdout] 146 | if let Some(contact) = self.static_nodes.iter() [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contact` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/protocols/mbp/mod.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { [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: methods `set_or_add_addr` and `remove_addr` are never used [INFO] [stdout] --> src/peer/mod.rs:334:19 [INFO] [stdout] | [INFO] [stdout] 285 | impl Contact { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 334 | pub(crate) fn set_or_add_addr(&self, device: u16, address: (Addr, u16)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | pub(crate) fn remove_addr(&self, device: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp.rs:423:8 [INFO] [stdout] | [INFO] [stdout] 416 | impl SdpConnection { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 423 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 363 | impl SdpSelfConnection { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 370 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `serialize` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl MeshContacts { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `echoed` and `rtt` are never read [INFO] [stdout] --> src/protocols/mbp/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 60 | struct Scheduler { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 61 | /// Last moment [`Node`] sent `ECHO` packet [INFO] [stdout] 62 | echoed: Instant, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | rtt: Duration [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nodes_scheduler` is never read [INFO] [stdout] --> src/protocols/mbp/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct MbpDriver { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 77 | nodes_scheduler: HashMap [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl MbpDriver { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtain_ipv4_addr` is never used [INFO] [stdout] --> src/ip/mod.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn obtain_ipv4_addr() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chunk_data_for_encryption` is never used [INFO] [stdout] --> src/utils.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn chunk_data_for_encryption(data: impl AsRef<[u8]>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 53 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_or_add_addr` and `remove_addr` are never used [INFO] [stdout] --> src/peer/mod.rs:334:19 [INFO] [stdout] | [INFO] [stdout] 285 | impl Contact { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 334 | pub(crate) fn set_or_add_addr(&self, device: u16, address: (Addr, u16)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 360 | pub(crate) fn remove_addr(&self, device: u16) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp.rs:423:8 [INFO] [stdout] | [INFO] [stdout] 416 | impl SdpConnection { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 423 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `echo` is never used [INFO] [stdout] --> src/protocols/sdp/sdp_self.rs:370:8 [INFO] [stdout] | [INFO] [stdout] 363 | impl SdpSelfConnection { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 370 | fn echo( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `serialize` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 38 | impl MeshContacts { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 45 | pub(crate) fn serialize(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `echoed` and `rtt` are never read [INFO] [stdout] --> src/protocols/mbp/mod.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 60 | struct Scheduler { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 61 | /// Last moment [`Node`] sent `ECHO` packet [INFO] [stdout] 62 | echoed: Instant, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | rtt: Duration [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nodes_scheduler` is never read [INFO] [stdout] --> src/protocols/mbp/mod.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct MbpDriver { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 77 | nodes_scheduler: HashMap [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/protocols/mbp/mod.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl MbpDriver { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtain_ipv4_addr` is never used [INFO] [stdout] --> src/ip/mod.rs:26:15 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn obtain_ipv4_addr() -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chunk_data_for_encryption` is never used [INFO] [stdout] --> src/utils.rs:10:15 [INFO] [stdout] | [INFO] [stdout] 10 | pub(crate) fn chunk_data_for_encryption(data: impl AsRef<[u8]>) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for the crate [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #![cfg_attr(docsrs, feature(doc_auto_cfg))] [INFO] [stdout] 2 | | #![warn(missing_docs)] [INFO] [stdout] 3 | | [INFO] [stdout] 4 | | pub mod peer; [INFO] [stdout] ... | [INFO] [stdout] 9 | | pub(crate) mod ip; [INFO] [stdout] 10 | | pub(crate) mod utils; [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `A` should have a snake case name [INFO] [stdout] --> src/crypto/dh.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | let mut A = self.base.pow(log); [INFO] [stdout] | ^ help: convert the identifier to snake case: `a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | first_packet: Packet, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | rest_of_payload: VecDeque> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | first_packet_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> src/protocols/sdp/mod.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | payload: Mutex> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.07s [INFO] running `Command { std: "docker" "inspect" "ef045e1844b8ee3188faf8bef24de7b18dbc35b198ac5409d2efe070fc0c8e69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef045e1844b8ee3188faf8bef24de7b18dbc35b198ac5409d2efe070fc0c8e69", kill_on_drop: false }` [INFO] [stdout] ef045e1844b8ee3188faf8bef24de7b18dbc35b198ac5409d2efe070fc0c8e69