[INFO] cloning repository https://github.com/xin-water/bittorrent-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xin-water/bittorrent-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxin-water%2Fbittorrent-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxin-water%2Fbittorrent-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 481610ee29dddd28b646fc766edc805827fd78ad [INFO] checking xin-water/bittorrent-rs against try#45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 for pr-83744 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxin-water%2Fbittorrent-rs" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xin-water/bittorrent-rs on toolchain 45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xin-water/bittorrent-rs [INFO] finished tweaking git repo https://github.com/xin-water/bittorrent-rs [INFO] tweaked toml for git repo https://github.com/xin-water/bittorrent-rs written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/xin-water/bittorrent-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pbr v1.0.4 [INFO] [stderr] Downloaded pendulum v0.3.1 [INFO] [stderr] Downloaded bencode v0.1.16 [INFO] [stderr] Downloaded umio v0.3.0 [INFO] [stderr] Downloaded base32 v0.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 73d1ba3d1b6c526785f9df0458c976b9d0d6e894207a772f5a7b6f4d41ef15d2 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "73d1ba3d1b6c526785f9df0458c976b9d0d6e894207a772f5a7b6f4d41ef15d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "73d1ba3d1b6c526785f9df0458c976b9d0d6e894207a772f5a7b6f4d41ef15d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73d1ba3d1b6c526785f9df0458c976b9d0d6e894207a772f5a7b6f4d41ef15d2", kill_on_drop: false }` [INFO] [stdout] 73d1ba3d1b6c526785f9df0458c976b9d0d6e894207a772f5a7b6f4d41ef15d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6a904b6ab960e00ad387a884c8bd492b4def365a6c4ba0725603dc29e7c8f4a7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6a904b6ab960e00ad387a884c8bd492b4def365a6c4ba0725603dc29e7c8f4a7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Compiling const_fn v0.4.5 [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Compiling build_const v0.2.1 [INFO] [stderr] Checking gimli v0.23.0 [INFO] [stderr] Checking rustc-demangle v0.1.18 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling cc v1.0.65 [INFO] [stderr] Checking slab v0.1.3 [INFO] [stderr] Checking bytes v0.3.0 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking bit-vec v0.4.4 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking crossbeam v0.3.2 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Checking futures v0.1.30 [INFO] [stderr] Checking base32 v0.3.1 [INFO] [stderr] Checking slab v0.2.0 [INFO] [stderr] Checking pin-project-lite v0.1.11 [INFO] [stderr] Checking pin-project-lite v0.2.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Compiling native-tls v0.2.6 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking sha1 v0.6.0 [INFO] [stderr] Checking bittorrent-client v0.1.0 (/opt/rustwide/workdir/bittorrent-client) [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking unicode-bidi v0.2.6 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling ws2_32-sys v0.2.1 [INFO] [stderr] Compiling crc v1.8.1 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking bit-set v0.4.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking log v0.4.11 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking serde v1.0.117 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking tracing v0.1.22 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Checking pendulum v0.3.1 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking addr2line v0.14.1 [INFO] [stderr] Checking net2 v0.2.36 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking nix v0.5.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking socket2 v0.3.17 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking crossbeam-queue v0.3.1 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking miow v0.1.5 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking backtrace v0.3.55 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking num-complex v0.1.43 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking nom v3.2.1 [INFO] [stderr] Checking crossbeam-epoch v0.9.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking pbr v1.0.4 [INFO] [stderr] Checking bencode v0.1.16 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking tokio v0.2.23 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rust-crypto v0.2.36 [INFO] [stderr] Checking uuid v0.2.3 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking mio v0.5.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking url v0.5.10 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Checking crossbeam v0.8.0 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking umio v0.3.0 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking bittorrent-protocol v0.1.2 (/opt/rustwide/workdir/bittorrent-protocol) [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> bittorrent-protocol/src/utracker/option.rs:157:1 [INFO] [stdout] | [INFO] [stdout] 157 | /// Parse an end of buffer or the end of option byte. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> bittorrent-protocol/src/utracker/option.rs:191:1 [INFO] [stdout] | [INFO] [stdout] 191 | /// Parse a single byte as an unsigned pointer size. [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] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> bittorrent-protocol/src/bencode/mod.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / macro_rules! bt_ben_list { [INFO] [stdout] 135 | | ( $($ben:expr),* ) => { [INFO] [stdout] 136 | | { [INFO] [stdout] 137 | | use crate::bencode::{BencodeMut, BMutAccess}; [INFO] [stdout] ... | [INFO] [stdout] 149 | | } [INFO] [stdout] 150 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> bittorrent-protocol/src/handshake/manager/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HandshakeType` [INFO] [stdout] --> bittorrent-protocol/src/handshake/manager/mod.rs:27:56 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::handshake::handler::{handshaker, initiator, HandshakeType}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cursor` [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, Cursor, Write, Read}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Incoming` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::{SocketAddr, Incoming}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::option::Option::Some` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::option::Option::Some; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sender` [INFO] [stdout] --> bittorrent-protocol/src/handshake/stream.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use crossbeam::channel::{Sender,Receiver}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ManagedMessage` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/builder.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{ManagedMessage, PeerManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::peer::message::PeerWireProtocolMessage` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::peer::message::PeerWireProtocolMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> bittorrent-protocol/src/select/ut_metadata/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utracker::announce::ClientState` [INFO] [stdout] --> bittorrent-protocol/src/select/ut_metadata/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::utracker::announce::ClientState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::select::ut_metadata::error::UtMetadataError` [INFO] [stdout] --> bittorrent-protocol/src/select/ut_metadata/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::select::ut_metadata::error::UtMetadataError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::select::ut_metadata::error::UtMetadataError` [INFO] [stdout] --> bittorrent-protocol/src/select/uber.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::select::ut_metadata::error::UtMetadataError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ut_Metadata` should have an upper camel case name [INFO] [stdout] --> bittorrent-protocol/src/select/uber.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Ut_Metadata(IUtMetadataMessage), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `UtMetadata` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ut_Metadata` should have an upper camel case name [INFO] [stdout] --> bittorrent-protocol/src/select/uber.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Ut_Metadata(OUtMetadataMessage), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `UtMetadata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ut_Metadata` should have an upper camel case name [INFO] [stdout] --> bittorrent-protocol/src/select/error.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | Ut_Metadata(UtMetadataError, UtMetadataErrorKind); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `UtMetadata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `futures` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/handshaker.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | use futures::future::{self, Future}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `futures` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/handshaker.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 147 | use futures::future::{self, Future}; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio_timer` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/handshaker.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | use tokio_timer; [INFO] [stdout] | ^^^^^^^^^^^ no external crate `tokio_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `tokio_core` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | use tokio_core::reactor::Core; [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `tokio_core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `futures` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | use futures::Future; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `tokio_timer` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | use tokio_timer; [INFO] [stdout] | ^^^^^^^^^^^ no external crate `tokio_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `futures` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | use futures::Future; [INFO] [stdout] | ^^^^^^^ use of undeclared crate or module `futures` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Core` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:68:20 [INFO] [stdout] | [INFO] [stdout] 68 | let core = Core::new().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `Core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Core` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:94:20 [INFO] [stdout] | [INFO] [stdout] 94 | let core = Core::new().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `Core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Core` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:124:20 [INFO] [stdout] | [INFO] [stdout] 124 | let core = Core::new().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `Core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Core` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:154:20 [INFO] [stdout] | [INFO] [stdout] 154 | let core = Core::new().unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `Core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/utracker/announce.rs:479:1 [INFO] [stdout] | [INFO] [stdout] 479 | / named!(parse_ipv4<&[u8], Ipv4Addr>, [INFO] [stdout] 480 | | map!(count_fixed!(u8, be_u8, 4), |b| convert::bytes_be_to_ipv4(b)) [INFO] [stdout] 481 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/utracker/announce.rs:490:1 [INFO] [stdout] | [INFO] [stdout] 490 | / named!(parse_ipv6<&[u8], Ipv6Addr>, [INFO] [stdout] 491 | | map!(count_fixed!(u8, be_u8, 16), |b| convert::bytes_be_to_ipv6(b)) [INFO] [stdout] 492 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/extensions.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | / do_parse!( [INFO] [stdout] 97 | | bytes, [INFO] [stdout] 98 | | bytes: count_fixed!(u8, be_u8, NUM_EXTENSION_BYTES) >> (Extensions::with_bytes(bytes)) [INFO] [stdout] 99 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> bittorrent-protocol/src/utracker/option.rs:157:1 [INFO] [stdout] | [INFO] [stdout] 157 | /// Parse an end of buffer or the end of option byte. [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> bittorrent-protocol/src/utracker/option.rs:191:1 [INFO] [stdout] | [INFO] [stdout] 191 | /// Parse a single byte as an unsigned pointer size. [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] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> bittorrent-protocol/src/bencode/mod.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | / macro_rules! bt_ben_list { [INFO] [stdout] 135 | | ( $($ben:expr),* ) => { [INFO] [stdout] 136 | | { [INFO] [stdout] 137 | | use crate::bencode::{BencodeMut, BMutAccess}; [INFO] [stdout] ... | [INFO] [stdout] 149 | | } [INFO] [stdout] 150 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> bittorrent-protocol/src/handshake/manager/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HandshakeType` [INFO] [stdout] --> bittorrent-protocol/src/handshake/manager/mod.rs:27:56 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::handshake::handler::{handshaker, initiator, HandshakeType}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cursor` [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, Cursor, Write, Read}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Incoming` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::{SocketAddr, Incoming}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::option::Option::Some` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::option::Option::Some; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sender` [INFO] [stdout] --> bittorrent-protocol/src/handshake/stream.rs:2:26 [INFO] [stdout] | [INFO] [stdout] 2 | use crossbeam::channel::{Sender,Receiver}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ManagedMessage` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/builder.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use super::{ManagedMessage, PeerManager}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::peer::message::PeerWireProtocolMessage` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::peer::message::PeerWireProtocolMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/task.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::SocketAddr` [INFO] [stdout] --> bittorrent-protocol/src/select/ut_metadata/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::net::SocketAddr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utracker::announce::ClientState` [INFO] [stdout] --> bittorrent-protocol/src/select/ut_metadata/mod.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::utracker::announce::ClientState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::select::ut_metadata::error::UtMetadataError` [INFO] [stdout] --> bittorrent-protocol/src/select/ut_metadata/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::select::ut_metadata::error::UtMetadataError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::select::ut_metadata::error::UtMetadataError` [INFO] [stdout] --> bittorrent-protocol/src/select/uber.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::select::ut_metadata::error::UtMetadataError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ut_Metadata` should have an upper camel case name [INFO] [stdout] --> bittorrent-protocol/src/select/uber.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | Ut_Metadata(IUtMetadataMessage), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `UtMetadata` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ut_Metadata` should have an upper camel case name [INFO] [stdout] --> bittorrent-protocol/src/select/uber.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | Ut_Metadata(OUtMetadataMessage), [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `UtMetadata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Ut_Metadata` should have an upper camel case name [INFO] [stdout] --> bittorrent-protocol/src/select/error.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | Ut_Metadata(UtMetadataError, UtMetadataErrorKind); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `UtMetadata` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/utracker/announce.rs:479:1 [INFO] [stdout] | [INFO] [stdout] 479 | / named!(parse_ipv4<&[u8], Ipv4Addr>, [INFO] [stdout] 480 | | map!(count_fixed!(u8, be_u8, 4), |b| convert::bytes_be_to_ipv4(b)) [INFO] [stdout] 481 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/utracker/announce.rs:490:1 [INFO] [stdout] | [INFO] [stdout] 490 | / named!(parse_ipv6<&[u8], Ipv6Addr>, [INFO] [stdout] 491 | | map!(count_fixed!(u8, be_u8, 16), |b| convert::bytes_be_to_ipv6(b)) [INFO] [stdout] 492 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/extensions.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 96 | / do_parse!( [INFO] [stdout] 97 | | bytes, [INFO] [stdout] 98 | | bytes: count_fixed!(u8, be_u8, NUM_EXTENSION_BYTES) >> (Extensions::with_bytes(bytes)) [INFO] [stdout] 99 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::Item == (std::io::Cursor>, std::net::SocketAddr)` [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 17 | type Listener: Stream + LocalAddr + 'static; [INFO] [stdout] | --------------------------------- required by this bound in `Transport::Listener` [INFO] [stdout] ... [INFO] [stdout] 97 | type Listener = MockListener; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found struct `std::io::Cursor` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(std::io::Cursor>, std::net::SocketAddr)` [INFO] [stdout] found struct `std::io::Cursor>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `curr_piece_buffer` is never read [INFO] [stdout] --> bittorrent-protocol/src/metainfo/builder/worker.rs:100:25 [INFO] [stdout] | [INFO] [stdout] 100 | let mut curr_piece_buffer = PieceBuffer::new(1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timer` [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:16:44 [INFO] [stdout] | [INFO] [stdout] 16 | let &(ref transport, ref filters, ref timer) = context; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_timer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tasks_available` [INFO] [stdout] --> bittorrent-protocol/src/select/ut_metadata/ut_metadata.rs:463:13 [INFO] [stdout] | [INFO] [stdout] 463 | let tasks_available = self.initialize_pending(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tasks_available` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `free_task_queue_space` [INFO] [stdout] --> bittorrent-protocol/src/select/ut_metadata/ut_metadata.rs:464:13 [INFO] [stdout] | [INFO] [stdout] 464 | let free_task_queue_space = self.active_requests.len() != MAX_ACTIVE_REQUESTS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_free_task_queue_space` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer_requests_available` [INFO] [stdout] --> bittorrent-protocol/src/select/ut_metadata/ut_metadata.rs:466:13 [INFO] [stdout] | [INFO] [stdout] 466 | let peer_requests_available = !self.peer_requests.is_empty(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_requests_available` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `downloads_available` [INFO] [stdout] --> bittorrent-protocol/src/select/ut_metadata/ut_metadata.rs:469:13 [INFO] [stdout] | [INFO] [stdout] 469 | let downloads_available = self.validate_downloaded(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_downloads_available` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking pin-project v1.0.2 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | &(MockTransport, Filters::new(), core.handle(), timer), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(MockTransport, Filters, HandshakeTimer)` [INFO] [stdout] found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result>>>, ()>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:80:10 [INFO] [stdout] | [INFO] [stdout] 80 | .wait() [INFO] [stdout] | ^^^^ method not found in `Result>>>, ()>` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | &(MockTransport, filters, core.handle(), timer), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(MockTransport, Filters, HandshakeTimer)` [INFO] [stdout] found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result>>>, ()>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:110:10 [INFO] [stdout] | [INFO] [stdout] 110 | .wait() [INFO] [stdout] | ^^^^ method not found in `Result>>>, ()>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/src/select/uber.rs:152:17 [INFO] [stdout] | [INFO] [stdout] 152 | let mut opt_next_state = get_next_state(self); [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] error[E0308]: mismatched types [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:138:13 [INFO] [stdout] | [INFO] [stdout] 138 | &(MockTransport, filters, core.handle(), timer), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(MockTransport, Filters, HandshakeTimer)` [INFO] [stdout] found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result>>>, ()>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:140:10 [INFO] [stdout] | [INFO] [stdout] 140 | .wait() [INFO] [stdout] | ^^^^ method not found in `Result>>>, ()>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | &(MockTransport, filters, core.handle(), timer), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 4 elements [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&(MockTransport, Filters, HandshakeTimer)` [INFO] [stdout] found reference `&(MockTransport, Filters, HandshakeTimer, HandshakeTimer)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for enum `Result>>>, ()>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/initiator.rs:170:10 [INFO] [stdout] | [INFO] [stdout] 170 | .wait() [INFO] [stdout] | ^^^^ method not found in `Result>>>, ()>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler<&str>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:49:38 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ListenerHandler { [INFO] [stdout] | ----------------------------- method `wait` not found for this [INFO] [stdout] ... [INFO] [stdout] 49 | let recv_enum_item = handler.wait().unwrap(); [INFO] [stdout] | ^^^^ method not found in `ListenerHandler<&str>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `wait`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `futures::Future` [INFO] [stdout] candidate #2: `futures::Stream` [INFO] [stdout] candidate #3: `futures::Sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler<&str>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:69:38 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ListenerHandler { [INFO] [stdout] | ----------------------------- method `wait` not found for this [INFO] [stdout] ... [INFO] [stdout] 69 | let recv_enum_item = handler.wait().unwrap(); [INFO] [stdout] | ^^^^ method not found in `ListenerHandler<&str>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `wait`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `futures::Future` [INFO] [stdout] candidate #2: `futures::Stream` [INFO] [stdout] candidate #3: `futures::Sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler<&str>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:89:38 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ListenerHandler { [INFO] [stdout] | ----------------------------- method `wait` not found for this [INFO] [stdout] ... [INFO] [stdout] 89 | let recv_enum_item = handler.wait().unwrap(); [INFO] [stdout] | ^^^^ method not found in `ListenerHandler<&str>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `wait`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `futures::Future` [INFO] [stdout] candidate #2: `futures::Stream` [INFO] [stdout] candidate #3: `futures::Sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEFAULT_TIMER_SLOTS` [INFO] [stdout] --> bittorrent-protocol/src/peer/manager/mod.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | const DEFAULT_TIMER_SLOTS: usize = 2048; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for struct `ListenerHandler<&str>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/listener.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ListenerHandler { [INFO] [stdout] | ----------------------------- method `wait` not found for this [INFO] [stdout] ... [INFO] [stdout] 109 | let recv_enum_item = handler.wait().unwrap(); [INFO] [stdout] | ^^^^ method not found in `ListenerHandler<&str>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `wait`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `futures::Future` [INFO] [stdout] candidate #2: `futures::Stream` [INFO] [stdout] candidate #3: `futures::Sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `into_inner` found for unit type `()` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:175:39 [INFO] [stdout] | [INFO] [stdout] 175 | let recv_buffer = write_frame.into_inner().into_inner(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send` found for unit type `()` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:201:14 [INFO] [stdout] | [INFO] [stdout] 201 | .send(message_two.clone()) [INFO] [stdout] | ^^^^ method not found in `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait` found for struct `FramedHandshake<&[u8]>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:225:63 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FramedHandshake { [INFO] [stdout] | ----------------------------- method `wait` not found for this [INFO] [stdout] ... [INFO] [stdout] 225 | let mut read_iter = FramedHandshake::new(&buffer[..]).wait(); [INFO] [stdout] | ^^^^ method not found in `FramedHandshake<&[u8]>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `wait`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `futures::Future` [INFO] [stdout] candidate #2: `futures::Stream` [INFO] [stdout] candidate #3: `futures::Sink` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `ok` found for struct `FramedHandshake<&[u8]>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:249:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FramedHandshake { [INFO] [stdout] | ----------------------------- method `ok` not found for this [INFO] [stdout] ... [INFO] [stdout] 249 | .ok() [INFO] [stdout] | ^^ method not found in `FramedHandshake<&[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `ok` found for struct `FramedHandshake<&[u8]>` in the current scope [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:274:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct FramedHandshake { [INFO] [stdout] | ----------------------------- method `ok` not found for this [INFO] [stdout] ... [INFO] [stdout] 274 | .ok() [INFO] [stdout] | ^^ method not found in `FramedHandshake<&[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/handshaker.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | framed.send(handshake_msg).map_err(|_| ()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/src/handshake/handler/handshaker.rs:122:21 [INFO] [stdout] | [INFO] [stdout] 122 | framed.send(handshake_msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/src/handshake/message/bittorrent/framed.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | self.sock.flush(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `(): From<()>` is not satisfied [INFO] [stdout] --> bittorrent-protocol/src/handshake/transport.rs:143:52 [INFO] [stdout] | [INFO] [stdout] 143 | Err(Error::new(ErrorKind::NotFound, ())) [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected an implementor of trait `From<()>` [INFO] [stdout] | help: consider borrowing here: `&()` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `From<()>` for `Box<(dyn std::error::Error + Send + Sync + 'static)>` [INFO] [stdout] = note: required because of the requirements on the impl of `Into>` for `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `self` [INFO] [stdout] --> bittorrent-protocol/examples/ex1_metainfo_create_torrent.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, BufRead, Write}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `Write`, `self` [INFO] [stdout] --> bittorrent-protocol/examples/ex4_handshake_torrent.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{self, BufRead, Write}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> bittorrent-protocol/examples/ex5_peer_add_peer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bittorrent_protocol::peer::messages::PeerWireProtocolMessage` [INFO] [stdout] --> bittorrent-protocol/examples/ex5_peer_add_peer.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use bittorrent_protocol::peer::messages::PeerWireProtocolMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> bittorrent-protocol/examples/ex4_handshake_torrent.rs:46:37 [INFO] [stdout] | [INFO] [stdout] 46 | let (pro,ext,hash, peer_id,addr,s) = completemessage.into_parts(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> bittorrent-protocol/examples/ex2_disk_add_torrent.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `Write`, `self` [INFO] [stdout] --> bittorrent-protocol/examples/ex2_disk_add_torrent.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{self, BufRead, Read, Write}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ToSocketAddrs` [INFO] [stdout] --> bittorrent-protocol/examples/ex3_dht_get_peer.rs:6:52 [INFO] [stdout] | [INFO] [stdout] 6 | use std::net::{Ipv4Addr, SocketAddr, SocketAddrV4, ToSocketAddrs}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> bittorrent-protocol/examples/ex7_simple_file_download.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> bittorrent-protocol/examples/ex7_simple_file_download.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender` [INFO] [stdout] --> bittorrent-protocol/examples/ex7_simple_file_download.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 13 | use std::sync::mpsc::{self,Sender, Receiver}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pendulum::future::TimerBuilder` [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use pendulum::future::TimerBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pendulum::HashedWheelBuilder` [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use pendulum::HashedWheelBuilder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Debug` [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fmt::Debug; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SocketAddr`, `ToSocketAddrs` [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 14 | use std::net::{SocketAddr, ToSocketAddrs}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender` [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | use std::sync::mpsc::{Sender, Receiver}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mpsc` [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:17:17 [INFO] [stdout] | [INFO] [stdout] 17 | use std::sync::{mpsc, Arc, Mutex}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DhtBuilder`, `DhtEvent`, `Router` [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:21:32 [INFO] [stdout] | [INFO] [stdout] 21 | use bittorrent_protocol::dht::{DhtBuilder, DhtEvent, Handshaker as DhtHandshake, Router}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DiskManagerStream`, `ODiskMessage` [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/mod.rs:11:47 [INFO] [stdout] | [INFO] [stdout] 11 | BlockMetadata, BlockMut, DiskManagerSink, DiskManagerStream, FileSystem, IDiskMessage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | ODiskMessage, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MockHandshaker` [INFO] [stdout] --> bittorrent-protocol/tests/test4_utracker/test_server_drop.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use super::{MockHandshaker, MockTrackerHandler}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::test5_handshake::TimeoutResult` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::test5_handshake::TimeoutResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_block_all.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::test5_handshake::TimeoutResult` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_block_all.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::test5_handshake::TimeoutResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_diff_data.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::test5_handshake::TimeoutResult` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_diff_data.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::test5_handshake::TimeoutResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_same_data.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::test5_handshake::TimeoutResult` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_same_data.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::test5_handshake::TimeoutResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/examples/ex2_disk_add_torrent.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | disk_send.send(IDiskMessage::AddTorrent(metainfo_file)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Handshaker` [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:21:54 [INFO] [stdout] | [INFO] [stdout] 21 | use bittorrent_protocol::dht::{DhtBuilder, DhtEvent, Handshaker as DhtHandshake, Router}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:263:17 [INFO] [stdout] | [INFO] [stdout] 263 | _ => panic!("[select_recv] Unexpected Message For Uber Module..."), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let mut uber_module = Arc::new(Mutex::new(UberModuleBuilder::new() [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: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let mut uber_module_clone = uber_module.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/examples/ex6_select_metadata_download.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | let mut uber_module_clone = uber_module.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 30 previous errors; 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0308, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bittorrent-protocol` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/examples/ex7_simple_file_download.rs:352:26 [INFO] [stdout] | [INFO] [stdout] 352 | let mut peer_list = request_map_mut.get_mut(&metadata).unwrap(); [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: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/examples/ex7_simple_file_download.rs:197:9 [INFO] [stdout] | [INFO] [stdout] 197 | let mut peer_select_send = select_send.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/examples/ex7_simple_file_download.rs:199:9 [INFO] [stdout] | [INFO] [stdout] 199 | let mut arc_disk_request_map = disk_request_map.clone(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/examples/ex7_simple_file_download.rs:375:26 [INFO] [stdout] | [INFO] [stdout] 375 | disk_select_send.send(select_message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/examples/ex7_simple_file_download.rs:396:5 [INFO] [stdout] | [INFO] [stdout] 396 | disk_manager_send.send(IDiskMessage::AddTorrent(metainfo.clone())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_zero_good` [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:148:14 [INFO] [stdout] | [INFO] [stdout] 148 | let (piece_zero_good, piece_one_good, piece_two_good) = match opt_piece_index { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_zero_good` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_one_good` [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:148:31 [INFO] [stdout] | [INFO] [stdout] 148 | let (piece_zero_good, piece_one_good, piece_two_good) = match opt_piece_index { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_one_good` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_two_good` [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:148:47 [INFO] [stdout] | [INFO] [stdout] 148 | let (piece_zero_good, piece_one_good, piece_two_good) = match opt_piece_index { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_two_good` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `piece_zero_good` is never read [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | let mut piece_zero_good = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m_recv` [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/disk_manager_send_backpressure.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | let (mut m_send, mut m_recv) = DiskManagerBuilder::new() [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_m_recv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `piece_zero_good` is never read [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/resume_torrent.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let mut piece_zero_good = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Protocol` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Protocol` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Extensions` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_Extensions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `InfoHash` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:32 [INFO] [stdout] | [INFO] [stdout] 29 | let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_InfoHash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `SocketAddr` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:50 [INFO] [stdout] | [INFO] [stdout] 29 | let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_SocketAddr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `S` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:62 [INFO] [stdout] | [INFO] [stdout] 29 | let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_S` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_one` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let result_one = stream_one.poll().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_two` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let result_two = stream_two.poll().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_one` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_block_all.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let result_one = stream_one.poll().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_two` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_block_all.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let result_two = stream_two.poll().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_one` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_diff_data.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let result_one = stream_one.poll().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_two` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_diff_data.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let result_two = stream_two.poll().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_one` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_same_data.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let result_one = stream_one.poll().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_one` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result_two` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_same_data.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let result_two = stream_two.poll().unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_result_two` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | let mut piece_zero_good = 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: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | let mut piece_one_good = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let mut piece_two_good = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | let mut messages_recvd = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/complete_torrent.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | let mut messages_recvd = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/disk_manager_send_backpressure.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 26 | let (mut m_send, mut m_recv) = DiskManagerBuilder::new() [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/tests/test3_disk/resume_torrent.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | let mut messages_recvd = 0; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let mut handshaker_one = HandshakerManagerBuilder::new() [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `TimedOut` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/mod.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | TimedOut, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `GotResult` [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | GotResult, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_byte_after_handshake.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | / handshaker_one [INFO] [stdout] 42 | | .poll() [INFO] [stdout] 43 | | .map_err(|_| ()) [INFO] [stdout] 44 | | .and_then(|message| { [INFO] [stdout] ... | [INFO] [stdout] 50 | | } [INFO] [stdout] 51 | | }); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_bytes_after_handshake.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | / handshaker_one [INFO] [stdout] 43 | | .poll() [INFO] [stdout] 44 | | .map_err(|_| ()) [INFO] [stdout] 45 | | .and_then(|message| { [INFO] [stdout] ... | [INFO] [stdout] 52 | | [INFO] [stdout] 53 | | }); [INFO] [stdout] | |___________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | handshaker_one.send(InitiateMessage::new(Protocol::BitTorrent, [55u8; bt::INFO_HASH_LEN].into(), handshaker_two_addr )); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Protocol` should have a snake case name [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `protocol` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Extensions` should have a snake case name [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `extensions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `InfoHash` should have a snake case name [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:32 [INFO] [stdout] | [INFO] [stdout] 29 | let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `info_hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `PeerId` should have a snake case name [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:42 [INFO] [stdout] | [INFO] [stdout] 29 | let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts(); [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `peer_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `SocketAddr` should have a snake case name [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:50 [INFO] [stdout] | [INFO] [stdout] 29 | let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `socket_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `S` should have a snake case name [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_connect.rs:29:62 [INFO] [stdout] | [INFO] [stdout] 29 | let (Protocol, Extensions, InfoHash, PeerId, SocketAddr, S) = handshaker_two.poll().unwrap().into_parts(); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_allow_all.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | sink_two.send(InitiateMessage::new(Protocol::BitTorrent, [55u8; bt::INFO_HASH_LEN].into(), handshaker_one_addr)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_block_all.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 69 | sink_two.send(InitiateMessage::new(Protocol::BitTorrent, [55u8; bt::INFO_HASH_LEN].into(), handshaker_one_addr)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_diff_data.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | sink_two.send(InitiateMessage::new(Protocol::BitTorrent, [55u8; bt::INFO_HASH_LEN].into(), handshaker_one_addr)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> bittorrent-protocol/tests/test5_handshake/test_filter_whitelist_same_data.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | sink_two.send(InitiateMessage::new(Protocol::BitTorrent, [55u8; bt::INFO_HASH_LEN].into(), handshaker_one_addr)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 52 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "6a904b6ab960e00ad387a884c8bd492b4def365a6c4ba0725603dc29e7c8f4a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a904b6ab960e00ad387a884c8bd492b4def365a6c4ba0725603dc29e7c8f4a7", kill_on_drop: false }` [INFO] [stdout] 6a904b6ab960e00ad387a884c8bd492b4def365a6c4ba0725603dc29e7c8f4a7