[INFO] cloning repository https://github.com/psykomal/codecrafters-bittorrent-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/psykomal/codecrafters-bittorrent-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsykomal%2Fcodecrafters-bittorrent-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsykomal%2Fcodecrafters-bittorrent-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 2bb712fa1accba3a5bd05e16c8555e10f8d0d147
[INFO] checking psykomal/codecrafters-bittorrent-rust against try#50f413885985a8b0a0b6ca0766a0aedd45304953 for pr-155657-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsykomal%2Fcodecrafters-bittorrent-rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/psykomal/codecrafters-bittorrent-rust
[INFO] finished tweaking git repo https://github.com/psykomal/codecrafters-bittorrent-rust
[INFO] tweaked toml for git repo https://github.com/psykomal/codecrafters-bittorrent-rust written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/psykomal/codecrafters-bittorrent-rust on toolchain 50f413885985a8b0a0b6ca0766a0aedd45304953
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+50f413885985a8b0a0b6ca0766a0aedd45304953" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/psykomal/codecrafters-bittorrent-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+50f413885985a8b0a0b6ca0766a0aedd45304953" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+50f413885985a8b0a0b6ca0766a0aedd45304953" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 39ebeefc402c81231a4f34af6723bb4dd9834f077575d6276cfafa31f8b68883
[INFO] running `Command { std: "docker" "start" "-a" "39ebeefc402c81231a4f34af6723bb4dd9834f077575d6276cfafa31f8b68883", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "39ebeefc402c81231a4f34af6723bb4dd9834f077575d6276cfafa31f8b68883", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "39ebeefc402c81231a4f34af6723bb4dd9834f077575d6276cfafa31f8b68883", kill_on_drop: false }`
[INFO] [stdout] 39ebeefc402c81231a4f34af6723bb4dd9834f077575d6276cfafa31f8b68883
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+50f413885985a8b0a0b6ca0766a0aedd45304953" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d401477e317fef1ea31de2ce347b6c0732df2b1c3fa22dfc0b935286c3d92d9a
[INFO] running `Command { std: "docker" "start" "-a" "d401477e317fef1ea31de2ce347b6c0732df2b1c3fa22dfc0b935286c3d92d9a", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.147
[INFO] [stderr]    Compiling proc-macro2 v1.0.66
[INFO] [stderr]    Compiling unicode-ident v1.0.11
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]     Checking once_cell v1.18.0
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling pkg-config v0.3.27
[INFO] [stderr]     Checking pin-project-lite v0.2.12
[INFO] [stderr]    Compiling parking_lot_core v0.9.8
[INFO] [stderr]     Checking smallvec v1.11.0
[INFO] [stderr]     Checking bytes v1.3.0
[INFO] [stderr]    Compiling futures-core v0.3.29
[INFO] [stderr]    Compiling serde v1.0.183
[INFO] [stderr]     Checking itoa v1.0.9
[INFO] [stderr]    Compiling serde_derive v1.0.183
[INFO] [stderr]    Compiling rustix v0.38.8
[INFO] [stderr]    Compiling futures-task v0.3.29
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]     Checking tracing-core v0.1.31
[INFO] [stderr]     Checking futures-sink v0.3.29
[INFO] [stderr]     Checking linux-raw-sys v0.4.5
[INFO] [stderr]    Compiling futures-util v0.3.29
[INFO] [stderr]     Checking bitflags v2.4.0
[INFO] [stderr]    Compiling openssl v0.10.56
[INFO] [stderr]    Compiling futures-channel v0.3.28
[INFO] [stderr]    Compiling httparse v1.8.0
[INFO] [stderr]     Checking futures-io v0.3.29
[INFO] [stderr]     Checking http v0.2.9
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]     Checking tinyvec v1.6.0
[INFO] [stderr]     Checking percent-encoding v2.3.0
[INFO] [stderr]    Compiling syn v1.0.48
[INFO] [stderr]     Checking try-lock v0.2.4
[INFO] [stderr]     Checking utf8parse v0.2.1
[INFO] [stderr]     Checking log v0.4.20
[INFO] [stderr]    Compiling lock_api v0.4.10
[INFO] [stderr]    Compiling slab v0.4.8
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]     Checking want v0.3.1
[INFO] [stderr]     Checking tracing v0.1.37
[INFO] [stderr]     Checking anstyle-parse v0.2.1
[INFO] [stderr]     Checking form_urlencoded v1.2.0
[INFO] [stderr]     Checking colorchoice v1.0.0
[INFO] [stderr]     Checking http-body v0.4.5
[INFO] [stderr]     Checking anstyle-query v1.0.0
[INFO] [stderr]     Checking tower-service v0.3.2
[INFO] [stderr]     Checking ryu v1.0.15
[INFO] [stderr]    Compiling serde_json v1.0.105
[INFO] [stderr]    Compiling heck v0.4.1
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]     Checking unicode-bidi v0.3.13
[INFO] [stderr]     Checking anstyle v1.0.1
[INFO] [stderr]     Checking aho-corasick v1.0.4
[INFO] [stderr]    Compiling cc v1.0.82
[INFO] [stderr]     Checking num_cpus v1.16.0
[INFO] [stderr]    Compiling quote v1.0.33
[INFO] [stderr]     Checking signal-hook-registry v1.4.1
[INFO] [stderr]     Checking socket2 v0.5.3
[INFO] [stderr]     Checking mio v0.8.8
[INFO] [stderr]     Checking unicode-normalization v0.1.22
[INFO] [stderr]     Checking socket2 v0.4.9
[INFO] [stderr]    Compiling syn v2.0.29
[INFO] [stderr]     Checking parking_lot v0.12.1
[INFO] [stderr]     Checking getrandom v0.2.10
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]    Compiling anyhow v1.0.68
[INFO] [stderr]     Checking ppv-lite86 v0.2.17
[INFO] [stderr]     Checking regex-syntax v0.7.4
[INFO] [stderr]     Checking clap_lex v0.5.0
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking encoding_rs v0.8.32
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking cpufeatures v0.2.9
[INFO] [stderr]     Checking base64 v0.21.2
[INFO] [stderr]     Checking fastrand v2.0.0
[INFO] [stderr]     Checking ipnet v2.8.0
[INFO] [stderr]     Checking hex-literal v0.4.1
[INFO] [stderr]     Checking urlencoding v2.1.3
[INFO] [stderr]     Checking sha1 v0.10.5
[INFO] [stderr]     Checking idna v0.4.0
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling openssl-sys v0.9.91
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking url v2.4.0
[INFO] [stderr]     Checking is-terminal v0.4.9
[INFO] [stderr]     Checking tempfile v3.7.1
[INFO] [stderr]     Checking anstream v0.3.2
[INFO] [stderr]     Checking clap_builder v4.3.22
[INFO] [stderr]     Checking regex-automata v0.3.6
[INFO] [stderr]    Compiling thiserror-impl v1.0.38
[INFO] [stderr]     Checking serde_bytes v0.11.12
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking serde_bencode v0.2.4
[INFO] [stderr]    Compiling tokio-macros v2.1.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling futures-macro v0.3.29
[INFO] [stderr]    Compiling clap_derive v4.3.12
[INFO] [stderr]    Compiling axum-macros v0.4.0
[INFO] [stderr]     Checking regex v1.9.3
[INFO] [stderr]     Checking thiserror v1.0.38
[INFO] [stderr]     Checking tokio v1.32.0
[INFO] [stderr]     Checking clap v4.3.22
[INFO] [stderr]     Checking tokio-util v0.7.10
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking h2 v0.3.20
[INFO] [stderr]     Checking hyper v0.14.27
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking reqwest v0.11.18
[INFO] [stderr]     Checking bittorrent-starter-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Deserializer`, `Serializer`, and `de::Visitor`
[INFO] [stdout]  --> src/peer.rs:3:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde::{self, de::Visitor, Deserialize, Deserializer, Serialize, Serializer};
[INFO] [stdout]   |                   ^^^^^^^^^^^               ^^^^^^^^^^^^             ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> src/peer.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Subcommand`
[INFO] [stdout]  --> src/torrent.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use clap::{Parser, Subcommand};
[INFO] [stdout]   |                    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AsyncReadExt`
[INFO] [stdout]   --> src/torrent.rs:10:17
[INFO] [stdout]    |
[INFO] [stdout] 10 | use tokio::io::{AsyncReadExt, AsyncWriteExt};
[INFO] [stdout]    |                 ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Serializer`
[INFO] [stdout]  --> src/tracker.rs:2:37
[INFO] [stdout]   |
[INFO] [stdout] 2 | use serde::{Deserialize, Serialize, Serializer};
[INFO] [stdout]   |                                     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Serialize` and `Serializer`
[INFO] [stdout]   --> src/tracker.rs:52:63
[INFO] [stdout]    |
[INFO] [stdout] 52 |     use serde::{self, de::Visitor, Deserialize, Deserializer, Serialize, Serializer};
[INFO] [stdout]    |                                                               ^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserializer`, `Serializer`, and `de::Visitor`
[INFO] [stdout]  --> src/peer.rs:3:19
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde::{self, de::Visitor, Deserialize, Deserializer, Serialize, Serializer};
[INFO] [stdout]   |                   ^^^^^^^^^^^               ^^^^^^^^^^^^             ^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]  --> src/peer.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::fmt;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Subcommand`
[INFO] [stdout]  --> src/torrent.rs:2:20
[INFO] [stdout]   |
[INFO] [stdout] 2 | use clap::{Parser, Subcommand};
[INFO] [stdout]   |                    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AsyncReadExt`
[INFO] [stdout]   --> src/torrent.rs:10:17
[INFO] [stdout]    |
[INFO] [stdout] 10 | use tokio::io::{AsyncReadExt, AsyncWriteExt};
[INFO] [stdout]    |                 ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Serializer`
[INFO] [stdout]  --> src/tracker.rs:2:37
[INFO] [stdout]   |
[INFO] [stdout] 2 | use serde::{Deserialize, Serialize, Serializer};
[INFO] [stdout]   |                                     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Serialize` and `Serializer`
[INFO] [stdout]   --> src/tracker.rs:52:63
[INFO] [stdout]    |
[INFO] [stdout] 52 |     use serde::{self, de::Visitor, Deserialize, Deserializer, Serialize, Serializer};
[INFO] [stdout]    |                                                               ^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Parser`
[INFO] [stdout]  --> src/torrent.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | use clap::{Parser, Subcommand};
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Parser`
[INFO] [stdout]  --> src/torrent.rs:2:12
[INFO] [stdout]   |
[INFO] [stdout] 2 | use clap::{Parser, Subcommand};
[INFO] [stdout]   |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `PieceResponse`, `Request`, `TrackerRequest`, `TrackerResponse`, and `urlencode`
[INFO] [stdout]  --> src/main.rs:3:59
[INFO] [stdout]   |
[INFO] [stdout] 3 |     peer::{Handshake, Message, MessageFramer, MessageTag, PieceResponse, Request},
[INFO] [stdout]   |                                                           ^^^^^^^^^^^^^  ^^^^^^^
[INFO] [stdout] 4 |     torrent::*,
[INFO] [stdout] 5 |     tracker::{urlencode, TrackerRequest, TrackerResponse},
[INFO] [stdout]   |               ^^^^^^^^^  ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hashes::Hashes`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use hashes::Hashes;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `reqwest`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use reqwest;
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize`
[INFO] [stdout]   --> src/main.rs:12:19
[INFO] [stdout]    |
[INFO] [stdout] 12 | use serde::{self, Deserialize, Serialize};
[INFO] [stdout]    |                   ^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use serde_json;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Sha1`
[INFO] [stdout]   --> src/main.rs:14:20
[INFO] [stdout]    |
[INFO] [stdout] 14 | use sha1::{Digest, Sha1};
[INFO] [stdout]    |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Path` and `fmt::format`
[INFO] [stdout]   --> src/main.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 |     fmt::format,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 17 |     net::SocketAddrV4,
[INFO] [stdout] 18 |     path::{Path, PathBuf},
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> src/main.rs:180:13
[INFO] [stdout]     |
[INFO] [stdout] 180 |             /// Download piece
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 181 |             let mut peer = tokio_util::codec::Framed::new(peer, MessageFramer);
[INFO] [stdout]     |             ------------------------------------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `//` for a plain comment
[INFO] [stdout]     = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> src/main.rs:262:13
[INFO] [stdout]     |
[INFO] [stdout] 262 |             /// Download piece
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 263 |             let mut peer = tokio_util::codec::Framed::new(peer, MessageFramer);
[INFO] [stdout]     |             ------------------------------------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Digest`
[INFO] [stdout]   --> src/main.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | use sha1::{Digest, Sha1};
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `PieceResponse`, `Request`, `TrackerRequest`, `TrackerResponse`, and `urlencode`
[INFO] [stdout]  --> src/main.rs:3:59
[INFO] [stdout]   |
[INFO] [stdout] 3 |     peer::{Handshake, Message, MessageFramer, MessageTag, PieceResponse, Request},
[INFO] [stdout]   |                                                           ^^^^^^^^^^^^^  ^^^^^^^
[INFO] [stdout] 4 |     torrent::*,
[INFO] [stdout] 5 |     tracker::{urlencode, TrackerRequest, TrackerResponse},
[INFO] [stdout]   |               ^^^^^^^^^  ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `hashes::Hashes`
[INFO] [stdout]  --> src/main.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use hashes::Hashes;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `reqwest`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use reqwest;
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize`
[INFO] [stdout]   --> src/main.rs:12:19
[INFO] [stdout]    |
[INFO] [stdout] 12 | use serde::{self, Deserialize, Serialize};
[INFO] [stdout]    |                   ^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json`
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use serde_json;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Sha1`
[INFO] [stdout]   --> src/main.rs:14:20
[INFO] [stdout]    |
[INFO] [stdout] 14 | use sha1::{Digest, Sha1};
[INFO] [stdout]    |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Path` and `fmt::format`
[INFO] [stdout]   --> src/main.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 |     fmt::format,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 17 |     net::SocketAddrV4,
[INFO] [stdout] 18 |     path::{Path, PathBuf},
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> src/main.rs:180:13
[INFO] [stdout]     |
[INFO] [stdout] 180 |             /// Download piece
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 181 |             let mut peer = tokio_util::codec::Framed::new(peer, MessageFramer);
[INFO] [stdout]     |             ------------------------------------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `//` for a plain comment
[INFO] [stdout]     = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]    --> src/main.rs:262:13
[INFO] [stdout]     |
[INFO] [stdout] 262 |             /// Download piece
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 263 |             let mut peer = tokio_util::codec::Framed::new(peer, MessageFramer);
[INFO] [stdout]     |             ------------------------------------------------------------------- rustdoc does not generate documentation for statements
[INFO] [stdout]     |
[INFO] [stdout]     = help: use `//` for a plain comment
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:166:17
[INFO] [stdout]     |
[INFO] [stdout] 166 |             let mut handshake = Handshake::new(info_hash, *b"00112233445566778899");
[INFO] [stdout]     |                 ----^^^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:248:17
[INFO] [stdout]     |
[INFO] [stdout] 248 |             let mut handshake = Handshake::new(info_hash, *b"00112233445566778899");
[INFO] [stdout]     |                 ----^^^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `length`
[INFO] [stdout]   --> src/main.rs:97:17
[INFO] [stdout]    |
[INFO] [stdout] 97 |             let length = if let Keys::SingleFile { length } = torrent.info.keys {
[INFO] [stdout]    |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `length`
[INFO] [stdout]    --> src/main.rs:145:17
[INFO] [stdout]     |
[INFO] [stdout] 145 |             let length = if let Keys::SingleFile { length } = torrent.info.keys {
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `range`
[INFO] [stdout]    --> src/main.rs:158:17
[INFO] [stdout]     |
[INFO] [stdout] 158 |             let range = rand::thread_rng().gen_range(0..peers_len);
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_range`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `length`
[INFO] [stdout]    --> src/main.rs:227:17
[INFO] [stdout]     |
[INFO] [stdout] 227 |             let length = if let Keys::SingleFile { length } = torrent.info.keys {
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `range`
[INFO] [stdout]    --> src/main.rs:240:17
[INFO] [stdout]     |
[INFO] [stdout] 240 |             let range = rand::thread_rng().gen_range(0..peers_len);
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_range`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]    --> src/main.rs:292:17
[INFO] [stdout]     |
[INFO] [stdout] 292 |             let res = torrent
[INFO] [stdout]     |                 ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Digest`
[INFO] [stdout]   --> src/main.rs:14:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | use sha1::{Digest, Sha1};
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:166:17
[INFO] [stdout]     |
[INFO] [stdout] 166 |             let mut handshake = Handshake::new(info_hash, *b"00112233445566778899");
[INFO] [stdout]     |                 ----^^^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:248:17
[INFO] [stdout]     |
[INFO] [stdout] 248 |             let mut handshake = Handshake::new(info_hash, *b"00112233445566778899");
[INFO] [stdout]     |                 ----^^^^^^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `length`
[INFO] [stdout]   --> src/main.rs:97:17
[INFO] [stdout]    |
[INFO] [stdout] 97 |             let length = if let Keys::SingleFile { length } = torrent.info.keys {
[INFO] [stdout]    |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `length`
[INFO] [stdout]    --> src/main.rs:145:17
[INFO] [stdout]     |
[INFO] [stdout] 145 |             let length = if let Keys::SingleFile { length } = torrent.info.keys {
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `range`
[INFO] [stdout]    --> src/main.rs:158:17
[INFO] [stdout]     |
[INFO] [stdout] 158 |             let range = rand::thread_rng().gen_range(0..peers_len);
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_range`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `length`
[INFO] [stdout]    --> src/main.rs:227:17
[INFO] [stdout]     |
[INFO] [stdout] 227 |             let length = if let Keys::SingleFile { length } = torrent.info.keys {
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_length`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `range`
[INFO] [stdout]    --> src/main.rs:240:17
[INFO] [stdout]     |
[INFO] [stdout] 240 |             let range = rand::thread_rng().gen_range(0..peers_len);
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_range`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `res`
[INFO] [stdout]    --> src/main.rs:292:17
[INFO] [stdout]     |
[INFO] [stdout] 292 |             let res = torrent
[INFO] [stdout]     |                 ^^^ help: if this is intentional, prefix it with an underscore: `_res`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.78s
[INFO] running `Command { std: "docker" "inspect" "d401477e317fef1ea31de2ce347b6c0732df2b1c3fa22dfc0b935286c3d92d9a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d401477e317fef1ea31de2ce347b6c0732df2b1c3fa22dfc0b935286c3d92d9a", kill_on_drop: false }`
[INFO] [stdout] d401477e317fef1ea31de2ce347b6c0732df2b1c3fa22dfc0b935286c3d92d9a
