[INFO] cloning repository https://github.com/muhtutorials/bittorrent
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/muhtutorials/bittorrent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhtutorials%2Fbittorrent", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhtutorials%2Fbittorrent'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] bd21be052f28fc7ecfee2f3eb7db2002ca491d6c
[INFO] checking muhtutorials/bittorrent against 416264364aa47959f5827723e1d7dabc95d0744b for pr-162242
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhtutorials%2Fbittorrent" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/muhtutorials/bittorrent
[INFO] finished tweaking git repo https://github.com/muhtutorials/bittorrent
[INFO] tweaked toml for git repo https://github.com/muhtutorials/bittorrent written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/muhtutorials/bittorrent on toolchain 416264364aa47959f5827723e1d7dabc95d0744b
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+416264364aa47959f5827723e1d7dabc95d0744b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/muhtutorials/bittorrent 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" "+416264364aa47959f5827723e1d7dabc95d0744b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded sha1 v0.11.0-rc.0
[INFO] [stderr]   Downloaded sha2 v0.11.0-rc.0
[INFO] [stderr]   Downloaded const-oid v0.10.1
[INFO] [stderr]   Downloaded openssl-sys v0.9.108
[INFO] [stderr]   Downloaded doctest-file v1.1.1
[INFO] [stderr]   Downloaded interprocess v2.4.3
[INFO] [stderr]   Downloaded kanal v0.1.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] a2186a1a60f3d45d08527ef1318d92b31a1897f093ab1bce7849ef1e2ce2b7a0
[INFO] running `Command { std: "docker" "start" "a2186a1a60f3d45d08527ef1318d92b31a1897f093ab1bce7849ef1e2ce2b7a0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a2186a1a60f3d45d08527ef1318d92b31a1897f093ab1bce7849ef1e2ce2b7a0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a2186a1a60f3d45d08527ef1318d92b31a1897f093ab1bce7849ef1e2ce2b7a0" "/opt/rustwide/cargo-home/bin/cargo" "+416264364aa47959f5827723e1d7dabc95d0744b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a2186a1a60f3d45d08527ef1318d92b31a1897f093ab1bce7849ef1e2ce2b7a0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "a2186a1a60f3d45d08527ef1318d92b31a1897f093ab1bce7849ef1e2ce2b7a0" "/opt/rustwide/cargo-home/bin/cargo" "+416264364aa47959f5827723e1d7dabc95d0744b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking smallvec v1.15.0
[INFO] [stderr]    Compiling cc v1.2.23
[INFO] [stderr]    Compiling icu_properties_data v2.0.0
[INFO] [stderr]     Checking tracing-core v0.1.33
[INFO] [stderr]    Compiling openssl v0.10.72
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking mio v1.0.3
[INFO] [stderr]     Checking socket2 v0.5.9
[INFO] [stderr]     Checking hashbrown v0.15.3
[INFO] [stderr]     Checking anstyle-parse v0.2.6
[INFO] [stderr]     Checking anstyle-query v1.1.2
[INFO] [stderr]     Checking colorchoice v1.0.3
[INFO] [stderr]     Checking const-oid v0.10.1
[INFO] [stderr]    Compiling doctest-file v1.1.1
[INFO] [stderr]     Checking kanal v0.1.1
[INFO] [stderr]     Checking anstream v0.6.18
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]     Checking digest v0.11.0-rc.0
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking clap_builder v4.5.38
[INFO] [stderr]     Checking sha2 v0.11.0-rc.0
[INFO] [stderr]     Checking sha1 v0.11.0-rc.0
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]     Checking indexmap v2.9.0
[INFO] [stderr]    Compiling openssl-sys v0.9.108
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling clap_derive v4.5.32
[INFO] [stderr]     Checking tokio v1.45.0
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]     Checking zerofrom v0.1.6
[INFO] [stderr]     Checking yoke v0.8.0
[INFO] [stderr]     Checking zerovec v0.11.2
[INFO] [stderr]     Checking zerotrie v0.2.2
[INFO] [stderr]     Checking clap v4.5.38
[INFO] [stderr]     Checking tinystr v0.8.1
[INFO] [stderr]     Checking potential_utf v0.1.2
[INFO] [stderr]     Checking icu_collections v2.0.0
[INFO] [stderr]     Checking icu_locale_core v2.0.0
[INFO] [stderr]     Checking icu_provider v2.0.0
[INFO] [stderr]     Checking icu_normalizer v2.0.0
[INFO] [stderr]     Checking icu_properties v2.0.0
[INFO] [stderr]     Checking serde v1.0.219
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking tokio-util v0.7.15
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking tower v0.5.2
[INFO] [stderr]     Checking interprocess v2.4.3
[INFO] [stderr]     Checking h2 v0.4.10
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking serde_bytes v0.11.17
[INFO] [stderr]     Checking serde_json v1.0.140
[INFO] [stderr]     Checking serde_bencode v0.2.4
[INFO] [stderr]     Checking hyper v1.6.0
[INFO] [stderr]     Checking hyper-util v0.1.11
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking reqwest v0.12.15
[INFO] [stderr]     Checking bittorrent v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::BLOCK_SIZE`
[INFO] [stdout]  --> src/cmd/download.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::BLOCK_SIZE;
[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 imports: `File` and `Key`
[INFO] [stdout]  --> src/cmd/download.rs:3:38
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::dot_torrent::{DotTorrent, File, Key};
[INFO] [stdout]   |                                      ^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `MessageType`, `Peer`, and `PieceResponse`
[INFO] [stdout]  --> src/cmd/download.rs:4:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::peer::{MessageType, Peer, PieceResponse};
[INFO] [stdout]   |                   ^^^^^^^^^^^  ^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::piece::Piece`
[INFO] [stdout]  --> src/cmd/download.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::piece::Piece;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `futures_util::StreamExt`
[INFO] [stdout]  --> src/cmd/download.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use futures_util::StreamExt;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `futures_util::stream`
[INFO] [stdout]   --> src/cmd/download.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use futures_util::stream;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `futures_util::stream::futures_unordered::FuturesUnordered`
[INFO] [stdout]   --> src/cmd/download.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use futures_util::stream::futures_unordered::FuturesUnordered;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `kanal::bounded_async`
[INFO] [stdout]   --> src/cmd/download.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use kanal::bounded_async;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Sha1`
[INFO] [stdout]   --> src/cmd/download.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use sha1::{Digest, Sha1};
[INFO] [stdout]    |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::BinaryHeap`
[INFO] [stdout]   --> src/cmd/download.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::collections::BinaryHeap;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::sync::mpsc::channel`
[INFO] [stdout]   --> src/cmd/download.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use tokio::sync::mpsc::channel;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/torrent.rs:2:26
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::dot_torrent::{self, DotTorrent};
[INFO] [stdout]   |                          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::piece::Piece`
[INFO] [stdout]  --> src/torrent.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::piece::Piece;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `StreamExt` and `stream`
[INFO] [stdout]  --> src/torrent.rs:6:20
[INFO] [stdout]   |
[INFO] [stdout] 6 | use futures_util::{StreamExt, stream};
[INFO] [stdout]   |                    ^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BinaryHeap`
[INFO] [stdout]  --> src/torrent.rs:8:24
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::collections::{BinaryHeap, HashMap};
[INFO] [stdout]   |                        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]   --> src/torrent.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::sync::Arc;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/torrent.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::sync::Notify`
[INFO] [stdout]   --> src/torrent.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use tokio::sync::Notify;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::time::sleep`
[INFO] [stdout]   --> src/torrent.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use tokio::time::sleep;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::BLOCK_SIZE`
[INFO] [stdout]  --> src/cmd/download.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::BLOCK_SIZE;
[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 imports: `File` and `Key`
[INFO] [stdout]  --> src/cmd/download.rs:3:38
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::dot_torrent::{DotTorrent, File, Key};
[INFO] [stdout]   |                                      ^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `MessageType`, `Peer`, and `PieceResponse`
[INFO] [stdout]  --> src/cmd/download.rs:4:19
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::peer::{MessageType, Peer, PieceResponse};
[INFO] [stdout]   |                   ^^^^^^^^^^^  ^^^^  ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::piece::Piece`
[INFO] [stdout]  --> src/cmd/download.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::piece::Piece;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `futures_util::StreamExt`
[INFO] [stdout]  --> src/cmd/download.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use futures_util::StreamExt;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `futures_util::stream`
[INFO] [stdout]   --> src/cmd/download.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use futures_util::stream;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `futures_util::stream::futures_unordered::FuturesUnordered`
[INFO] [stdout]   --> src/cmd/download.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use futures_util::stream::futures_unordered::FuturesUnordered;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `kanal::bounded_async`
[INFO] [stdout]   --> src/cmd/download.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use kanal::bounded_async;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Sha1`
[INFO] [stdout]   --> src/cmd/download.rs:13:20
[INFO] [stdout]    |
[INFO] [stdout] 13 | use sha1::{Digest, Sha1};
[INFO] [stdout]    |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::BinaryHeap`
[INFO] [stdout]   --> src/cmd/download.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::collections::BinaryHeap;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::sync::mpsc::channel`
[INFO] [stdout]   --> src/cmd/download.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | use tokio::sync::mpsc::channel;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/torrent.rs:2:26
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::dot_torrent::{self, DotTorrent};
[INFO] [stdout]   |                          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::piece::Piece`
[INFO] [stdout]  --> src/torrent.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::piece::Piece;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `StreamExt` and `stream`
[INFO] [stdout]  --> src/torrent.rs:6:20
[INFO] [stdout]   |
[INFO] [stdout] 6 | use futures_util::{StreamExt, stream};
[INFO] [stdout]   |                    ^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BinaryHeap`
[INFO] [stdout]  --> src/torrent.rs:8:24
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::collections::{BinaryHeap, HashMap};
[INFO] [stdout]   |                        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::Arc`
[INFO] [stdout]   --> src/torrent.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::sync::Arc;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::time::Duration`
[INFO] [stdout]   --> src/torrent.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::time::Duration;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::sync::Notify`
[INFO] [stdout]   --> src/torrent.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use tokio::sync::Notify;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `tokio::time::sleep`
[INFO] [stdout]   --> src/torrent.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use tokio::time::sleep;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Digest`
[INFO] [stdout]   --> src/cmd/download.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | use sha1::{Digest, Sha1};
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tracker_resp`
[INFO] [stdout]   --> src/cmd/download.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let tracker_resp = query_tracker(&dot_torrent)
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tracker_resp`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `torrent`
[INFO] [stdout]   --> src/cmd/download.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let torrent = Torrent::new(state.generate_id(), path, dot_torrent.clone())?;
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_torrent`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Digest`
[INFO] [stdout]   --> src/cmd/download.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | use sha1::{Digest, Sha1};
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tracker_resp`
[INFO] [stdout]   --> src/cmd/download.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let tracker_resp = query_tracker(&dot_torrent)
[INFO] [stdout]    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tracker_resp`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `torrent`
[INFO] [stdout]   --> src/cmd/download.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let torrent = Torrent::new(state.generate_id(), path, dot_torrent.clone())?;
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_torrent`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/peer.rs:209:21
[INFO] [stdout]     |
[INFO] [stdout] 209 |         let bytes = unsafe { self as *mut Self as *mut [u8; size_of::<Self>()] };
[INFO] [stdout]     |                     ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/peer.rs:251:21
[INFO] [stdout]     |
[INFO] [stdout] 251 |         let bytes = unsafe { self as *mut Self as *mut [u8; size_of::<Self>()] };
[INFO] [stdout]     |                     ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/peer.rs:209:21
[INFO] [stdout]     |
[INFO] [stdout] 209 |         let bytes = unsafe { self as *mut Self as *mut [u8; size_of::<Self>()] };
[INFO] [stdout]     |                     ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_unsafe)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/peer.rs:251:21
[INFO] [stdout]     |
[INFO] [stdout] 251 |         let bytes = unsafe { self as *mut Self as *mut [u8; size_of::<Self>()] };
[INFO] [stdout]     |                     ^^^^^^ unnecessary `unsafe` block
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BLOCK_SIZE` is never used
[INFO] [stdout]   --> src/lib.rs:24:18
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub(crate) const BLOCK_SIZE: usize = 1 << 14; // 16384 (16kb)
[INFO] [stdout]    |                  ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `bytes` and `n_bits` are never read
[INFO] [stdout]  --> src/bit_vec.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct BitVec {
[INFO] [stdout]   |            ------ fields in this struct
[INFO] [stdout] 6 |     bytes: Vec<u8>,
[INFO] [stdout]   |     ^^^^^
[INFO] [stdout] 7 |     n_bits: usize,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `BitVec` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]   --> src/bit_vec.rs:26:19
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl BitVec {
[INFO] [stdout]    | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub(crate) fn set(&mut self, index: usize) -> anyhow::Result<()> {
[INFO] [stdout]    |                   ^^^
[INFO] [stdout] ...
[INFO] [stdout] 36 |     pub(crate) fn unset(&mut self, index: usize) -> anyhow::Result<()> {
[INFO] [stdout]    |                   ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 46 |     pub(crate) fn toggle(&mut self, index: usize) -> anyhow::Result<()> {
[INFO] [stdout]    |                   ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     pub(crate) fn has(&self, index: usize) -> bool {
[INFO] [stdout]    |                   ^^^
[INFO] [stdout] ...
[INFO] [stdout] 68 |     pub(crate) fn ones(&self) -> impl Iterator<Item = usize> {
[INFO] [stdout]    |                   ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     pub(crate) fn zeros(&self) -> impl Iterator<Item = usize> {
[INFO] [stdout]    |                   ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 97 |     pub(crate) fn is_full(&self) -> bool {
[INFO] [stdout]    |                   ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BLOCK_POOL_SIZE` is never used
[INFO] [stdout]  --> src/cache.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const BLOCK_POOL_SIZE: u32 = 1 << 28; // 256MB
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PieceKey` is never constructed
[INFO] [stdout]   --> src/cache.rs:11:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | struct PieceKey {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Piece` is never constructed
[INFO] [stdout]   --> src/cache.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | struct Piece {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `PieceState` is never used
[INFO] [stdout]   --> src/cache.rs:26:6
[INFO] [stdout]    |
[INFO] [stdout] 26 | enum PieceState {
[INFO] [stdout]    |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `add_block`, `is_complete`, and `assemble` are never used
[INFO] [stdout]   --> src/cache.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl Piece {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 34 |     pub fn new(index: usize, length: usize, hash: [u8; 20]) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn add_block(&mut self, offset: usize, data: Vec<u8>) -> Result<(), String> {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |     pub fn is_complete(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub fn assemble(&self) -> Option<Vec<u8>> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Cache` is never constructed
[INFO] [stdout]   --> src/cache.rs:77:8
[INFO] [stdout]    |
[INFO] [stdout] 77 | struct Cache {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/cache.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 82 | impl Cache {
[INFO] [stdout]    | ---------- associated function in this implementation
[INFO] [stdout] 83 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `db` and `listener` are never read
[INFO] [stdout]   --> src/client.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Client {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 12 |     db: FileDB,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 13 |     state: State,
[INFO] [stdout] 14 |     listener: TcpListener,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `config_path` and `path` are never read
[INFO] [stdout]   --> src/db.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) struct FileDB {
[INFO] [stdout]    |                   ------ fields in this struct
[INFO] [stdout] 16 |     config_path: PathBuf,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 17 |     config: Config,
[INFO] [stdout] 18 |     path: PathBuf,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `FileDB` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `write` is never used
[INFO] [stdout]   --> src/db.rs:75:25
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl FileDB {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub(crate) async fn write(&mut self, buf: &[u8]) -> std::io::Result<()> {
[INFO] [stdout]    |                         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `print_tree` is never used
[INFO] [stdout]   --> src/dot_torrent.rs:39:19
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl DotTorrent {
[INFO] [stdout]    | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub(crate) fn print_tree(&self) {
[INFO] [stdout]    |                   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_cli_cmd` is never used
[INFO] [stdout]    --> src/ipc.rs:121:21
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub(crate) async fn handle_cli_cmd(cmd: Command) -> anyhow::Result<()> {
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/lru_cache.rs:118:12
[INFO] [stdout]     |
[INFO] [stdout] 101 | impl<K: Hash + Eq, V> LruCache<K, V> {
[INFO] [stdout]     | ------------------------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 118 |     pub fn put(&mut self, k: K, v: V) -> Option<V> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 190 |     pub fn get<Q>(&mut self, k: &Q) -> Option<&V>
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 206 |     pub fn get_mut<Q>(&mut self, k: &Q) -> Option<&mut V>
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 222 |     pub fn get_key_value<Q>(&mut self, k: &Q) -> Option<(&K, &V)>
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 239 |     pub fn get_key_value_mut<Q>(&mut self, k: &Q) -> Option<(&K, &mut V)>
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 262 |     pub fn get_or_insert<F>(&mut self, k: K, f: F) -> &V
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 289 |     pub fn get_or_insert_ref<Q, F>(&mut self, k: &Q, f: F) -> &V
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 317 |     pub fn try_get_or_insert<F, E>(&mut self, k: K, f: F) -> Result<&V, E>
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 345 |     pub fn try_get_or_insert_ref<Q, F, E>(&mut self, k: &Q, f: F) -> Result<&V, E>
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 372 |     pub fn get_or_insert_mut<F>(&mut self, k: K, f: F) -> &mut V
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 398 |     pub fn get_or_insert_mut_ref<Q, F>(&mut self, k: &Q, f: F) -> &mut V
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 426 |     pub fn try_get_or_insert_mut<F, E>(&mut self, k: K, f: F) -> Result<&mut V, E>
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 454 |     pub fn try_get_or_insert_mut_ref<Q, F, E>(&mut self, k: &Q, f: F) -> Result<&mut V, E>
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 482 |     pub fn peek<Q>(&mut self, k: &Q) -> Option<&V>
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 495 |     pub fn peek_mut<Q>(&mut self, k: &Q) -> Option<&mut V>
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 508 |     pub fn peek_lru(&self) -> Option<(&K, &V)> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 524 |     pub fn peek_mru(&self) -> Option<(&K, &V)> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 539 |     pub fn pop<Q>(&mut self, k: &Q) -> Option<V>
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 557 |     pub fn pop_entry<Q>(&mut self, k: &Q) -> Option<(K, V)>
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 581 |     pub fn pop_mru(&mut self) -> Option<(K, V)> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 590 |     pub fn promote<Q>(&mut self, k: &Q) -> bool
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 604 |     pub fn demote<Q>(&mut self, k: &Q) -> bool
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 618 |     fn remove_first(&mut self) -> Option<Box<Node<K, V>>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 672 |     fn attach_last(&mut self, node: *mut Node<K, V>) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 683 |     pub fn resize(&mut self, cap: NonZeroUsize) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 695 |     pub fn clear(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 701 |     pub fn contains<Q>(&mut self, k: &Q) -> bool
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 709 |     pub fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `conn`, `pieces`, and `chocked` are never read
[INFO] [stdout]   --> src/peer.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) struct Peer {
[INFO] [stdout]    |                   ---- fields in this struct
[INFO] [stdout] 16 |     conn: Framed<TcpStream, MessageFramer>,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 17 |     pieces: BitVec,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 18 |     chocked: bool,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `has_piece`, and `participate` are never used
[INFO] [stdout]   --> src/peer.rs:22:18
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl Peer {
[INFO] [stdout]    | --------- associated items in this implementation
[INFO] [stdout] 22 |     pub async fn new(addr: SocketAddrV4, info_hash: [u8; 20]) -> anyhow::Result<Self> {
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub(crate) fn has_piece(&self, piece_i: usize) -> bool {
[INFO] [stdout]    |                   ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     pub(crate) async fn participate(
[INFO] [stdout]    |                         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `index`, `length`, `hash`, and `peers` are never used
[INFO] [stdout]   --> src/piece.rs:15:19
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Piece {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 15 |     pub(crate) fn new(index: usize, dot_torrent: &DotTorrent, peers: &[Peer]) -> Self {
[INFO] [stdout]    |                   ^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub(crate) fn index(&self) -> usize {
[INFO] [stdout]    |                   ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 41 |     pub(crate) fn length(&self) -> usize {
[INFO] [stdout]    |                   ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub(crate) fn hash(&self) -> [u8; 20] {
[INFO] [stdout]    |                   ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 |     pub(crate) fn peers(&self) -> &HashSet<usize> {
[INFO] [stdout]    |                   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `peers` is never read
[INFO] [stdout]   --> src/torrent.rs:20:16
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub(crate) struct Torrent {
[INFO] [stdout]    |                   ------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub(crate) peers: HashMap<SocketAddrV4, Peer>,
[INFO] [stdout]    |                ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/torrent.rs:83:16
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub(crate) struct Metadata {
[INFO] [stdout]    |                   -------- fields in this struct
[INFO] [stdout] 83 |     pub(crate) id: usize,
[INFO] [stdout]    |                ^^
[INFO] [stdout] 84 |     pub(crate) path: PathBuf,
[INFO] [stdout]    |                ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 87 |     pub(crate) pieces: BitVec,
[INFO] [stdout]    |                ^^^^^^
[INFO] [stdout] 88 |     pub(crate) uploaded: usize,
[INFO] [stdout]    |                ^^^^^^^^
[INFO] [stdout] 89 |     pub(crate) downloaded: usize,
[INFO] [stdout]    |                ^^^^^^^^^^
[INFO] [stdout] 90 |     pub(crate) left: usize,
[INFO] [stdout]    |                ^^^^
[INFO] [stdout] 91 |     pub(crate) finished: bool,
[INFO] [stdout]    |                ^^^^^^^^
[INFO] [stdout] 92 |     pub(crate) file_exists: bool,
[INFO] [stdout]    |                ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Metadata` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/lru_cache.rs:723:17
[INFO] [stdout]     |
[INFO] [stdout] 723 |     pub fn iter(&self) -> Iter<K, V> {
[INFO] [stdout]     |                 ^^^^^     ^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 723 |     pub fn iter(&self) -> Iter<'_, K, V> {
[INFO] [stdout]     |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/lru_cache.rs:735:21
[INFO] [stdout]     |
[INFO] [stdout] 735 |     pub fn iter_mut(&self) -> IterMut<K, V> {
[INFO] [stdout]     |                     ^^^^^     ^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 735 |     pub fn iter_mut(&self) -> IterMut<'_, K, V> {
[INFO] [stdout]     |                                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BLOCK_SIZE` is never used
[INFO] [stdout]   --> src/lib.rs:24:18
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub(crate) const BLOCK_SIZE: usize = 1 << 14; // 16384 (16kb)
[INFO] [stdout]    |                  ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_full` is never used
[INFO] [stdout]   --> src/bit_vec.rs:97:19
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl BitVec {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 97 |     pub(crate) fn is_full(&self) -> bool {
[INFO] [stdout]    |                   ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BLOCK_POOL_SIZE` is never used
[INFO] [stdout]  --> src/cache.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const BLOCK_POOL_SIZE: u32 = 1 << 28; // 256MB
[INFO] [stdout]   |       ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PieceKey` is never constructed
[INFO] [stdout]   --> src/cache.rs:11:8
[INFO] [stdout]    |
[INFO] [stdout] 11 | struct PieceKey {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Piece` is never constructed
[INFO] [stdout]   --> src/cache.rs:18:8
[INFO] [stdout]    |
[INFO] [stdout] 18 | struct Piece {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `PieceState` is never used
[INFO] [stdout]   --> src/cache.rs:26:6
[INFO] [stdout]    |
[INFO] [stdout] 26 | enum PieceState {
[INFO] [stdout]    |      ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `add_block`, `is_complete`, and `assemble` are never used
[INFO] [stdout]   --> src/cache.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 33 | impl Piece {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 34 |     pub fn new(index: usize, length: usize, hash: [u8; 20]) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn add_block(&mut self, offset: usize, data: Vec<u8>) -> Result<(), String> {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |     pub fn is_complete(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 65 |     pub fn assemble(&self) -> Option<Vec<u8>> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Cache` is never constructed
[INFO] [stdout]   --> src/cache.rs:77:8
[INFO] [stdout]    |
[INFO] [stdout] 77 | struct Cache {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/cache.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 82 | impl Cache {
[INFO] [stdout]    | ---------- associated function in this implementation
[INFO] [stdout] 83 |     pub fn new() -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `db` and `listener` are never read
[INFO] [stdout]   --> src/client.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Client {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] 12 |     db: FileDB,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 13 |     state: State,
[INFO] [stdout] 14 |     listener: TcpListener,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `config_path` and `path` are never read
[INFO] [stdout]   --> src/db.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) struct FileDB {
[INFO] [stdout]    |                   ------ fields in this struct
[INFO] [stdout] 16 |     config_path: PathBuf,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 17 |     config: Config,
[INFO] [stdout] 18 |     path: PathBuf,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `FileDB` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `write` is never used
[INFO] [stdout]   --> src/db.rs:75:25
[INFO] [stdout]    |
[INFO] [stdout] 22 | impl FileDB {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub(crate) async fn write(&mut self, buf: &[u8]) -> std::io::Result<()> {
[INFO] [stdout]    |                         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `print_tree` is never used
[INFO] [stdout]   --> src/dot_torrent.rs:39:19
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl DotTorrent {
[INFO] [stdout]    | --------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 39 |     pub(crate) fn print_tree(&self) {
[INFO] [stdout]    |                   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_cli_cmd` is never used
[INFO] [stdout]    --> src/ipc.rs:121:21
[INFO] [stdout]     |
[INFO] [stdout] 121 | pub(crate) async fn handle_cli_cmd(cmd: Command) -> anyhow::Result<()> {
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/lru_cache.rs:118:12
[INFO] [stdout]     |
[INFO] [stdout] 101 | impl<K: Hash + Eq, V> LruCache<K, V> {
[INFO] [stdout]     | ------------------------------------ methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 118 |     pub fn put(&mut self, k: K, v: V) -> Option<V> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 190 |     pub fn get<Q>(&mut self, k: &Q) -> Option<&V>
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 206 |     pub fn get_mut<Q>(&mut self, k: &Q) -> Option<&mut V>
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 222 |     pub fn get_key_value<Q>(&mut self, k: &Q) -> Option<(&K, &V)>
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 239 |     pub fn get_key_value_mut<Q>(&mut self, k: &Q) -> Option<(&K, &mut V)>
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 262 |     pub fn get_or_insert<F>(&mut self, k: K, f: F) -> &V
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 289 |     pub fn get_or_insert_ref<Q, F>(&mut self, k: &Q, f: F) -> &V
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 317 |     pub fn try_get_or_insert<F, E>(&mut self, k: K, f: F) -> Result<&V, E>
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 345 |     pub fn try_get_or_insert_ref<Q, F, E>(&mut self, k: &Q, f: F) -> Result<&V, E>
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 372 |     pub fn get_or_insert_mut<F>(&mut self, k: K, f: F) -> &mut V
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 398 |     pub fn get_or_insert_mut_ref<Q, F>(&mut self, k: &Q, f: F) -> &mut V
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 426 |     pub fn try_get_or_insert_mut<F, E>(&mut self, k: K, f: F) -> Result<&mut V, E>
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 454 |     pub fn try_get_or_insert_mut_ref<Q, F, E>(&mut self, k: &Q, f: F) -> Result<&mut V, E>
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 482 |     pub fn peek<Q>(&mut self, k: &Q) -> Option<&V>
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 495 |     pub fn peek_mut<Q>(&mut self, k: &Q) -> Option<&mut V>
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 508 |     pub fn peek_lru(&self) -> Option<(&K, &V)> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 524 |     pub fn peek_mru(&self) -> Option<(&K, &V)> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 539 |     pub fn pop<Q>(&mut self, k: &Q) -> Option<V>
[INFO] [stdout]     |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 557 |     pub fn pop_entry<Q>(&mut self, k: &Q) -> Option<(K, V)>
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 581 |     pub fn pop_mru(&mut self) -> Option<(K, V)> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 590 |     pub fn promote<Q>(&mut self, k: &Q) -> bool
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 604 |     pub fn demote<Q>(&mut self, k: &Q) -> bool
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 618 |     fn remove_first(&mut self) -> Option<Box<Node<K, V>>> {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 672 |     fn attach_last(&mut self, node: *mut Node<K, V>) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 683 |     pub fn resize(&mut self, cap: NonZeroUsize) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 695 |     pub fn clear(&mut self) {
[INFO] [stdout]     |            ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 701 |     pub fn contains<Q>(&mut self, k: &Q) -> bool
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 709 |     pub fn is_empty(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `conn`, `pieces`, and `chocked` are never read
[INFO] [stdout]   --> src/peer.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) struct Peer {
[INFO] [stdout]    |                   ---- fields in this struct
[INFO] [stdout] 16 |     conn: Framed<TcpStream, MessageFramer>,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 17 |     pieces: BitVec,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 18 |     chocked: bool,
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `has_piece`, and `participate` are never used
[INFO] [stdout]   --> src/peer.rs:22:18
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl Peer {
[INFO] [stdout]    | --------- associated items in this implementation
[INFO] [stdout] 22 |     pub async fn new(addr: SocketAddrV4, info_hash: [u8; 20]) -> anyhow::Result<Self> {
[INFO] [stdout]    |                  ^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub(crate) fn has_piece(&self, piece_i: usize) -> bool {
[INFO] [stdout]    |                   ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 56 |     pub(crate) async fn participate(
[INFO] [stdout]    |                         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `index`, `length`, `hash`, and `peers` are never used
[INFO] [stdout]   --> src/piece.rs:15:19
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl Piece {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 15 |     pub(crate) fn new(index: usize, dot_torrent: &DotTorrent, peers: &[Peer]) -> Self {
[INFO] [stdout]    |                   ^^^
[INFO] [stdout] ...
[INFO] [stdout] 37 |     pub(crate) fn index(&self) -> usize {
[INFO] [stdout]    |                   ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 41 |     pub(crate) fn length(&self) -> usize {
[INFO] [stdout]    |                   ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 45 |     pub(crate) fn hash(&self) -> [u8; 20] {
[INFO] [stdout]    |                   ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 49 |     pub(crate) fn peers(&self) -> &HashSet<usize> {
[INFO] [stdout]    |                   ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `peers` is never read
[INFO] [stdout]   --> src/torrent.rs:20:16
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub(crate) struct Torrent {
[INFO] [stdout]    |                   ------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 20 |     pub(crate) peers: HashMap<SocketAddrV4, Peer>,
[INFO] [stdout]    |                ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple fields are never read
[INFO] [stdout]   --> src/torrent.rs:83:16
[INFO] [stdout]    |
[INFO] [stdout] 82 | pub(crate) struct Metadata {
[INFO] [stdout]    |                   -------- fields in this struct
[INFO] [stdout] 83 |     pub(crate) id: usize,
[INFO] [stdout]    |                ^^
[INFO] [stdout] 84 |     pub(crate) path: PathBuf,
[INFO] [stdout]    |                ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 87 |     pub(crate) pieces: BitVec,
[INFO] [stdout]    |                ^^^^^^
[INFO] [stdout] 88 |     pub(crate) uploaded: usize,
[INFO] [stdout]    |                ^^^^^^^^
[INFO] [stdout] 89 |     pub(crate) downloaded: usize,
[INFO] [stdout]    |                ^^^^^^^^^^
[INFO] [stdout] 90 |     pub(crate) left: usize,
[INFO] [stdout]    |                ^^^^
[INFO] [stdout] 91 |     pub(crate) finished: bool,
[INFO] [stdout]    |                ^^^^^^^^
[INFO] [stdout] 92 |     pub(crate) file_exists: bool,
[INFO] [stdout]    |                ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Metadata` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/lru_cache.rs:723:17
[INFO] [stdout]     |
[INFO] [stdout] 723 |     pub fn iter(&self) -> Iter<K, V> {
[INFO] [stdout]     |                 ^^^^^     ^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 723 |     pub fn iter(&self) -> Iter<'_, K, V> {
[INFO] [stdout]     |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]    --> src/lru_cache.rs:735:21
[INFO] [stdout]     |
[INFO] [stdout] 735 |     pub fn iter_mut(&self) -> IterMut<K, V> {
[INFO] [stdout]     |                     ^^^^^     ^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     the lifetime is elided here
[INFO] [stdout]     |
[INFO] [stdout]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]     |
[INFO] [stdout] 735 |     pub fn iter_mut(&self) -> IterMut<'_, K, V> {
[INFO] [stdout]     |                                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 28.48s
[INFO] running `Command { std: "docker" "inspect" "a2186a1a60f3d45d08527ef1318d92b31a1897f093ab1bce7849ef1e2ce2b7a0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a2186a1a60f3d45d08527ef1318d92b31a1897f093ab1bce7849ef1e2ce2b7a0", kill_on_drop: false }`
[INFO] [stdout] a2186a1a60f3d45d08527ef1318d92b31a1897f093ab1bce7849ef1e2ce2b7a0
