[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] 365748122755fe853a31cda176024120d00b4783
[INFO] checking muhtutorials/bittorrent against master#9e293ae9f8abecb0be5105787d181518c9012a19 for pr-146440-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhtutorials%2Fbittorrent" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/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-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/muhtutorials/bittorrent on toolchain 9e293ae9f8abecb0be5105787d181518c9012a19
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "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" "+9e293ae9f8abecb0be5105787d181518c9012a19" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tokio-macros v2.5.0
[INFO] [stderr]   Downloaded unicode-ident v1.0.18
[INFO] [stderr]   Downloaded tokio-util v0.7.15
[INFO] [stderr]   Downloaded openssl-sys v0.9.108
[INFO] [stderr]   Downloaded cfg-if v1.0.0
[INFO] [stderr]   Downloaded rustls-pki-types v1.12.0
[INFO] [stderr]   Downloaded adler2 v2.0.0
[INFO] [stderr]   Downloaded quote v1.0.40
[INFO] [stderr]   Downloaded autocfg v1.4.0
[INFO] [stderr]   Downloaded hyper-tls v0.6.0
[INFO] [stderr]   Downloaded serde_bytes v0.11.17
[INFO] [stderr]   Downloaded anstyle-query v1.1.2
[INFO] [stderr]   Downloaded windows-targets v0.53.0
[INFO] [stderr]   Downloaded wasm-bindgen-shared v0.2.100
[INFO] [stderr]   Downloaded wasm-bindgen-futures v0.4.50
[INFO] [stderr]   Downloaded zeroize v1.8.1
[INFO] [stderr]   Downloaded ipnet v2.11.0
[INFO] [stderr]   Downloaded yoke-derive v0.8.0
[INFO] [stderr]   Downloaded windows-link v0.1.1
[INFO] [stderr]   Downloaded anstyle-parse v0.2.6
[INFO] [stderr]   Downloaded block-buffer v0.11.0-rc.4
[INFO] [stderr]   Downloaded sha1 v0.11.0-rc.0
[INFO] [stderr]   Downloaded percent-encoding v2.3.1
[INFO] [stderr]   Downloaded windows-strings v0.3.1
[INFO] [stderr]   Downloaded errno v0.3.12
[INFO] [stderr]   Downloaded system-configuration-sys v0.6.0
[INFO] [stderr]   Downloaded colorchoice v1.0.3
[INFO] [stderr]   Downloaded crypto-common v0.2.0-rc.3
[INFO] [stderr]   Downloaded clap_lex v0.7.4
[INFO] [stderr]   Downloaded anstyle-wincon v3.0.7
[INFO] [stderr]   Downloaded form_urlencoded v1.2.1
[INFO] [stderr]   Downloaded potential_utf v0.1.2
[INFO] [stderr]   Downloaded anstyle v1.0.10
[INFO] [stderr]   Downloaded windows-registry v0.4.0
[INFO] [stderr]   Downloaded wit-bindgen-rt v0.39.0
[INFO] [stderr]   Downloaded signal-hook-registry v1.4.2
[INFO] [stderr]   Downloaded redox_syscall v0.5.10
[INFO] [stderr]   Downloaded wasi v0.11.0+wasi-snapshot-preview1
[INFO] [stderr]   Downloaded rustc-demangle v0.1.24
[INFO] [stderr]   Downloaded parking_lot_core v0.9.10
[INFO] [stderr]   Downloaded lock_api v0.4.12
[INFO] [stderr]   Downloaded socket2 v0.5.9
[INFO] [stderr]   Downloaded windows-result v0.3.3
[INFO] [stderr]   Downloaded smallvec v1.15.0
[INFO] [stderr]   Downloaded is_terminal_polyfill v1.70.1
[INFO] [stderr]   Downloaded rustls-pemfile v2.2.0
[INFO] [stderr]   Downloaded digest v0.11.0-rc.0
[INFO] [stderr]   Downloaded yoke v0.8.0
[INFO] [stderr]   Downloaded tokio-rustls v0.26.2
[INFO] [stderr]   Downloaded rustversion v1.0.20
[INFO] [stderr]   Downloaded writeable v0.6.1
[INFO] [stderr]   Downloaded tinystr v0.8.1
[INFO] [stderr]   Downloaded tokio-native-tls v0.3.1
[INFO] [stderr]   Downloaded system-configuration v0.6.1
[INFO] [stderr]   Downloaded kanal v0.1.1
[INFO] [stderr]   Downloaded serde_bencode v0.2.4
[INFO] [stderr]   Downloaded wasm-bindgen-macro v0.2.100
[INFO] [stderr]   Downloaded wasm-bindgen-macro-support v0.2.100
[INFO] [stderr]   Downloaded zerovec-derive v0.11.1
[INFO] [stderr]   Downloaded anstream v0.6.18
[INFO] [stderr]   Downloaded wasm-bindgen-backend v0.2.100
[INFO] [stderr]   Downloaded slab v0.4.9
[INFO] [stderr]   Downloaded security-framework-sys v2.14.0
[INFO] [stderr]   Downloaded addr2line v0.24.2
[INFO] [stderr]   Downloaded parking_lot v0.12.3
[INFO] [stderr]   Downloaded litemap v0.8.0
[INFO] [stderr]   Downloaded sha2 v0.11.0-rc.0
[INFO] [stderr]   Downloaded clap_derive v4.5.32
[INFO] [stderr]   Downloaded anyhow v1.0.98
[INFO] [stderr]   Downloaded schannel v0.1.27
[INFO] [stderr]   Downloaded hybrid-array v0.3.1
[INFO] [stderr]   Downloaded hyper-rustls v0.27.5
[INFO] [stderr]   Downloaded proc-macro2 v1.0.95
[INFO] [stderr]   Downloaded bitflags v2.9.1
[INFO] [stderr]   Downloaded wasm-bindgen v0.2.100
[INFO] [stderr]   Downloaded icu_properties v2.0.0
[INFO] [stderr]   Downloaded icu_provider v2.0.0
[INFO] [stderr]   Downloaded tempfile v3.20.0
[INFO] [stderr]   Downloaded getrandom v0.3.3
[INFO] [stderr]   Downloaded memmap2 v0.9.5
[INFO] [stderr]   Downloaded clap v4.5.38
[INFO] [stderr]   Downloaded miniz_oxide v0.8.8
[INFO] [stderr]   Downloaded const-oid v0.10.1
[INFO] [stderr]   Downloaded serde_derive v1.0.219
[INFO] [stderr]   Downloaded log v0.4.27
[INFO] [stderr]   Downloaded zerotrie v0.2.2
[INFO] [stderr]   Downloaded icu_locale_core v2.0.0
[INFO] [stderr]   Downloaded icu_normalizer_data v2.0.0
[INFO] [stderr]   Downloaded tracing-core v0.1.33
[INFO] [stderr]   Downloaded typenum v1.18.0
[INFO] [stderr]   Downloaded url v2.5.4
[INFO] [stderr]   Downloaded rustls-webpki v0.103.3
[INFO] [stderr]   Downloaded js-sys v0.3.77
[INFO] [stderr]   Downloaded r-efi v5.2.0
[INFO] [stderr]   Downloaded icu_normalizer v2.0.0
[INFO] [stderr]   Downloaded backtrace v0.3.75
[INFO] [stderr]   Downloaded memchr v2.7.4
[INFO] [stderr]   Downloaded serde v1.0.219
[INFO] [stderr]   Downloaded bumpalo v3.17.0
[INFO] [stderr]   Downloaded icu_collections v2.0.0
[INFO] [stderr]   Downloaded cc v1.2.23
[INFO] [stderr]   Downloaded hyper-util v0.1.11
[INFO] [stderr]   Downloaded mio v1.0.3
[INFO] [stderr]   Downloaded tower v0.5.2
[INFO] [stderr]   Downloaded zerovec v0.11.2
[INFO] [stderr]   Downloaded indexmap v2.9.0
[INFO] [stderr]   Downloaded http v1.3.1
[INFO] [stderr]   Downloaded hashbrown v0.15.3
[INFO] [stderr]   Downloaded hyper v1.6.0
[INFO] [stderr]   Downloaded wasi v0.14.2+wasi-0.2.4
[INFO] [stderr]   Downloaded h2 v0.4.10
[INFO] [stderr]   Downloaded clap_builder v4.5.38
[INFO] [stderr]   Downloaded serde_json v1.0.140
[INFO] [stderr]   Downloaded idna v1.0.3
[INFO] [stderr]   Downloaded icu_properties_data v2.0.0
[INFO] [stderr]   Downloaded reqwest v0.12.15
[INFO] [stderr]   Downloaded syn v2.0.101
[INFO] [stderr]   Downloaded gimli v0.31.1
[INFO] [stderr]   Downloaded openssl v0.10.72
[INFO] [stderr]   Downloaded rustls v0.23.27
[INFO] [stderr]   Downloaded object v0.36.7
[INFO] [stderr]   Downloaded rustix v1.0.7
[INFO] [stderr]   Downloaded web-sys v0.3.77
[INFO] [stderr]   Downloaded tokio v1.45.0
[INFO] [stderr]   Downloaded windows_x86_64_gnullvm v0.53.0
[INFO] [stderr]   Downloaded windows_aarch64_gnullvm v0.53.0
[INFO] [stderr]   Downloaded libc v0.2.172
[INFO] [stderr]   Downloaded windows_x86_64_msvc v0.53.0
[INFO] [stderr]   Downloaded windows_aarch64_msvc v0.53.0
[INFO] [stderr]   Downloaded windows_x86_64_gnu v0.53.0
[INFO] [stderr]   Downloaded windows_i686_msvc v0.53.0
[INFO] [stderr]   Downloaded windows_i686_gnullvm v0.53.0
[INFO] [stderr]   Downloaded windows_i686_gnu v0.53.0
[INFO] [stderr]   Downloaded linux-raw-sys v0.9.4
[INFO] [stderr]   Downloaded windows-sys v0.59.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] f526643655dd669c27445f394433bcd9ccb1c157c5f853d9999e5746454e01b2
[INFO] running `Command { std: "docker" "start" "-a" "f526643655dd669c27445f394433bcd9ccb1c157c5f853d9999e5746454e01b2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f526643655dd669c27445f394433bcd9ccb1c157c5f853d9999e5746454e01b2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f526643655dd669c27445f394433bcd9ccb1c157c5f853d9999e5746454e01b2", kill_on_drop: false }`
[INFO] [stdout] f526643655dd669c27445f394433bcd9ccb1c157c5f853d9999e5746454e01b2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+9e293ae9f8abecb0be5105787d181518c9012a19" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 11242014def9ac01899a0b6e3e35578cf321564158692424d4cf73f4e34b50d4
[INFO] running `Command { std: "docker" "start" "-a" "11242014def9ac01899a0b6e3e35578cf321564158692424d4cf73f4e34b50d4", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling unicode-ident v1.0.18
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]    Compiling autocfg v1.4.0
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]     Checking smallvec v1.15.0
[INFO] [stderr]     Checking stable_deref_trait v1.2.0
[INFO] [stderr]     Checking pin-project-lite v0.2.16
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]     Checking scopeguard v1.2.0
[INFO] [stderr]     Checking futures-core v0.3.31
[INFO] [stderr]     Checking bytes v1.10.1
[INFO] [stderr]    Compiling shlex v1.3.0
[INFO] [stderr]     Checking once_cell v1.21.3
[INFO] [stderr]    Compiling pkg-config v0.3.32
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]     Checking itoa v1.0.15
[INFO] [stderr]     Checking fnv v1.0.7
[INFO] [stderr]     Checking writeable v0.6.1
[INFO] [stderr]     Checking futures-sink v0.3.31
[INFO] [stderr]    Compiling typenum v1.18.0
[INFO] [stderr]     Checking litemap v0.8.0
[INFO] [stderr]    Compiling icu_properties_data v2.0.0
[INFO] [stderr]    Compiling cc v1.2.23
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling icu_normalizer_data v2.0.0
[INFO] [stderr]     Checking futures-task v0.3.31
[INFO] [stderr]     Checking hashbrown v0.15.3
[INFO] [stderr]     Checking tracing-core v0.1.33
[INFO] [stderr]     Checking equivalent v1.0.2
[INFO] [stderr]    Compiling httparse v1.10.1
[INFO] [stderr]     Checking foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling openssl v0.10.72
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]     Checking http v1.3.1
[INFO] [stderr]     Checking foreign-types v0.3.2
[INFO] [stderr]     Checking atomic-waker v1.1.2
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]     Checking bitflags v2.9.1
[INFO] [stderr]     Checking try-lock v0.2.5
[INFO] [stderr]     Checking futures-channel v0.3.31
[INFO] [stderr]     Checking log v0.4.27
[INFO] [stderr]     Checking want v0.3.1
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]     Checking tracing v0.1.41
[INFO] [stderr]     Checking percent-encoding v2.3.1
[INFO] [stderr]     Checking utf8parse v0.2.2
[INFO] [stderr]     Checking indexmap v2.9.0
[INFO] [stderr]     Checking tower-service v0.3.3
[INFO] [stderr]     Checking openssl-probe v0.1.6
[INFO] [stderr]     Checking anstyle-parse v0.2.6
[INFO] [stderr]     Checking form_urlencoded v1.2.1
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]     Checking anstyle v1.0.10
[INFO] [stderr]     Checking zeroize v1.8.1
[INFO] [stderr]     Checking utf8_iter v1.0.4
[INFO] [stderr]     Checking const-oid v0.10.1
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]     Checking is_terminal_polyfill v1.70.1
[INFO] [stderr]     Checking ryu v1.0.20
[INFO] [stderr]     Checking colorchoice v1.0.3
[INFO] [stderr]     Checking anstyle-query v1.1.2
[INFO] [stderr]     Checking rustls-pki-types v1.12.0
[INFO] [stderr]     Checking sync_wrapper v1.0.2
[INFO] [stderr]     Checking cpufeatures v0.2.17
[INFO] [stderr]     Checking clap_lex v0.7.4
[INFO] [stderr]     Checking strsim v0.11.1
[INFO] [stderr]     Checking tower-layer v0.3.3
[INFO] [stderr]     Checking http-body-util v0.1.3
[INFO] [stderr]     Checking anstream v0.6.18
[INFO] [stderr]    Compiling heck v0.5.0
[INFO] [stderr]    Compiling anyhow v1.0.98
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]     Checking mio v1.0.3
[INFO] [stderr]     Checking socket2 v0.5.9
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking encoding_rs v0.8.35
[INFO] [stderr]     Checking mime v0.3.17
[INFO] [stderr]     Checking rustls-pemfile v2.2.0
[INFO] [stderr]     Checking hybrid-array v0.3.1
[INFO] [stderr]     Checking memchr v2.7.4
[INFO] [stderr]     Checking base64 v0.22.1
[INFO] [stderr]     Checking ipnet v2.11.0
[INFO] [stderr]     Checking clap_builder v4.5.38
[INFO] [stderr]     Checking kanal v0.1.1
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking memmap2 v0.9.5
[INFO] [stderr]     Checking hex v0.4.3
[INFO] [stderr]     Checking crypto-common v0.2.0-rc.3
[INFO] [stderr]     Checking block-buffer v0.11.0-rc.4
[INFO] [stderr]    Compiling openssl-sys v0.9.108
[INFO] [stderr]     Checking digest v0.11.0-rc.0
[INFO] [stderr]     Checking sha1 v0.11.0-rc.0
[INFO] [stderr]     Checking sha2 v0.11.0-rc.0
[INFO] [stderr]    Compiling synstructure v0.13.2
[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]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[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 zerotrie v0.2.2
[INFO] [stderr]     Checking zerovec v0.11.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_locale_core v2.0.0
[INFO] [stderr]     Checking icu_collections 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 idna_adapter v1.2.1
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking serde_bytes v0.11.17
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking serde_bencode v0.2.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 h2 v0.4.10
[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: `VecDeque`
[INFO] [stdout]  --> src/cache.rs:1:33
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::{HashMap, VecDeque};
[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: `crate::db::FileDB`
[INFO] [stdout]  --> src/client.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::db::FileDB;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `VecDeque`
[INFO] [stdout]  --> src/cache.rs:1:33
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::{HashMap, VecDeque};
[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: `crate::db::FileDB`
[INFO] [stdout]  --> src/client.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::db::FileDB;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `joined`
[INFO] [stdout]   --> src/download.rs:96:17
[INFO] [stdout]    |
[INFO] [stdout] 96 |                 joined = participants.next(), if !participants.is_empty() => {
[INFO] [stdout]    |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_joined`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `joined`
[INFO] [stdout]   --> src/download.rs:96:17
[INFO] [stdout]    |
[INFO] [stdout] 96 |                 joined = participants.next(), if !participants.is_empty() => {
[INFO] [stdout]    |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_joined`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/peer.rs:216:21
[INFO] [stdout]     |
[INFO] [stdout] 216 |         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:258:21
[INFO] [stdout]     |
[INFO] [stdout] 258 |         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: unused variable: `addrs`
[INFO] [stdout]    --> src/torrent.rs:102:27
[INFO] [stdout]     |
[INFO] [stdout] 102 | async fn connect_to_peers(addrs: SharedPeerAddrs) {}
[INFO] [stdout]     |                           ^^^^^ help: if this is intentional, prefix it with an underscore: `_addrs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `metadata`
[INFO] [stdout]   --> src/torrent_list.rs:20:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |         for metadata in &self.state.data {
[INFO] [stdout]    |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metadata`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary `unsafe` block
[INFO] [stdout]    --> src/peer.rs:216:21
[INFO] [stdout]     |
[INFO] [stdout] 216 |         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:258:21
[INFO] [stdout]     |
[INFO] [stdout] 258 |         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: type `Peer` is more private than the item `Torrent::peers`
[INFO] [stdout]   --> src/torrent.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 |     pub peers: SharedPeers,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^ field `Torrent::peers` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `Peer` is only usable at visibility `pub(crate)`
[INFO] [stdout]   --> src/peer.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) struct Peer {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Peer` is more private than the item `SharedPeers`
[INFO] [stdout]    --> src/torrent.rs:100:1
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub type SharedPeers = Arc<Mutex<Vec<Peer>>>;
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^ type alias `SharedPeers` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `Peer` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/peer.rs:15:1
[INFO] [stdout]     |
[INFO] [stdout]  15 | pub(crate) struct Peer {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `set`, `unset`, `toggle`, `ones`, and `is_full` 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] 68 |     pub(crate) fn ones(&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]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `PieceKey` is never used
[INFO] [stdout]  --> src/cache.rs:7:6
[INFO] [stdout]   |
[INFO] [stdout] 7 | type PieceKey = (PathBuf, usize);
[INFO] [stdout]   |      ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Piece` is never constructed
[INFO] [stdout]  --> src/cache.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | struct Piece {
[INFO] [stdout]   |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Cache` is never constructed
[INFO] [stdout]   --> src/cache.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | struct Cache {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Shared` is never constructed
[INFO] [stdout]   --> src/cache.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | struct Shared {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `new` and `receive_pieces` are never used
[INFO] [stdout]   --> src/cache.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | impl Cache {
[INFO] [stdout]    | ---------- associated functions in this implementation
[INFO] [stdout] 29 |     pub fn new(cap: usize, pieces_rx: Receiver<Piece>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 41 |     fn receive_pieces() {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `listener`, `state`, and `torrents` are never read
[INFO] [stdout]   --> src/client.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub struct Client {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout]  8 |     listener: TcpListener,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]  9 |     state: State,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 10 |     torrents: Vec<TorrentManager>,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `connect_to_available_port` is never used
[INFO] [stdout]   --> src/client.rs:37:10
[INFO] [stdout]    |
[INFO] [stdout] 37 | async fn connect_to_available_port(base_port: u16, max_attempts: u16) -> io::Result<TcpListener> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config_path` is never read
[INFO] [stdout]   --> src/db.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct FileDB {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 16 |     config_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: 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: field `addr` is never read
[INFO] [stdout]   --> src/peer.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) struct Peer {
[INFO] [stdout]    |                   ---- field in this struct
[INFO] [stdout] 16 |     addr: SocketAddrV4,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `db` is never read
[INFO] [stdout]   --> src/state.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct State {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 10 |     db: FileDB,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `connect_to_peers` is never used
[INFO] [stdout]    --> src/torrent.rs:102:10
[INFO] [stdout]     |
[INFO] [stdout] 102 | async fn connect_to_peers(addrs: SharedPeerAddrs) {}
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `torrents` is never read
[INFO] [stdout]  --> src/torrent_list.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct TorrentList {
[INFO] [stdout]   |            ----------- field in this struct
[INFO] [stdout] 7 |     state: State,
[INFO] [stdout] 8 |     torrents: HashMap<[u8; 20], Torrent>,
[INFO] [stdout]   |     ^^^^^^^^
[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: unused variable: `addrs`
[INFO] [stdout]    --> src/torrent.rs:102:27
[INFO] [stdout]     |
[INFO] [stdout] 102 | async fn connect_to_peers(addrs: SharedPeerAddrs) {}
[INFO] [stdout]     |                           ^^^^^ help: if this is intentional, prefix it with an underscore: `_addrs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `metadata`
[INFO] [stdout]   --> src/torrent_list.rs:20:13
[INFO] [stdout]    |
[INFO] [stdout] 20 |         for metadata in &self.state.data {
[INFO] [stdout]    |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metadata`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Peer` is more private than the item `Torrent::peers`
[INFO] [stdout]   --> src/torrent.rs:36:5
[INFO] [stdout]    |
[INFO] [stdout] 36 |     pub peers: SharedPeers,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^ field `Torrent::peers` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `Peer` is only usable at visibility `pub(crate)`
[INFO] [stdout]   --> src/peer.rs:15:1
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) struct Peer {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `Peer` is more private than the item `SharedPeers`
[INFO] [stdout]    --> src/torrent.rs:100:1
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub type SharedPeers = Arc<Mutex<Vec<Peer>>>;
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^ type alias `SharedPeers` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `Peer` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/peer.rs:15:1
[INFO] [stdout]     |
[INFO] [stdout]  15 | pub(crate) struct Peer {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^
[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]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `PieceKey` is never used
[INFO] [stdout]  --> src/cache.rs:7:6
[INFO] [stdout]   |
[INFO] [stdout] 7 | type PieceKey = (PathBuf, usize);
[INFO] [stdout]   |      ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Piece` is never constructed
[INFO] [stdout]  --> src/cache.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | struct Piece {
[INFO] [stdout]   |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Cache` is never constructed
[INFO] [stdout]   --> src/cache.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 16 | struct Cache {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Shared` is never constructed
[INFO] [stdout]   --> src/cache.rs:20:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | struct Shared {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `new` and `receive_pieces` are never used
[INFO] [stdout]   --> src/cache.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 28 | impl Cache {
[INFO] [stdout]    | ---------- associated functions in this implementation
[INFO] [stdout] 29 |     pub fn new(cap: usize, pieces_rx: Receiver<Piece>) -> Self {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 41 |     fn receive_pieces() {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `listener`, `state`, and `torrents` are never read
[INFO] [stdout]   --> src/client.rs:8:5
[INFO] [stdout]    |
[INFO] [stdout]  7 | pub struct Client {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout]  8 |     listener: TcpListener,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]  9 |     state: State,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 10 |     torrents: Vec<TorrentManager>,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `connect_to_available_port` is never used
[INFO] [stdout]   --> src/client.rs:37:10
[INFO] [stdout]    |
[INFO] [stdout] 37 | async fn connect_to_available_port(base_port: u16, max_attempts: u16) -> io::Result<TcpListener> {
[INFO] [stdout]    |          ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `config_path` is never read
[INFO] [stdout]   --> src/db.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct FileDB {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 16 |     config_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: 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: field `addr` is never read
[INFO] [stdout]   --> src/peer.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub(crate) struct Peer {
[INFO] [stdout]    |                   ---- field in this struct
[INFO] [stdout] 16 |     addr: SocketAddrV4,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `db` is never read
[INFO] [stdout]   --> src/state.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct State {
[INFO] [stdout]    |            ----- field in this struct
[INFO] [stdout] 10 |     db: FileDB,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `connect_to_peers` is never used
[INFO] [stdout]    --> src/torrent.rs:102:10
[INFO] [stdout]     |
[INFO] [stdout] 102 | async fn connect_to_peers(addrs: SharedPeerAddrs) {}
[INFO] [stdout]     |          ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `torrents` is never read
[INFO] [stdout]  --> src/torrent_list.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub struct TorrentList {
[INFO] [stdout]   |            ----------- field in this struct
[INFO] [stdout] 7 |     state: State,
[INFO] [stdout] 8 |     torrents: HashMap<[u8; 20], Torrent>,
[INFO] [stdout]   |     ^^^^^^^^
[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: unused import: `std::io::Write`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::Write;
[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::io::Write`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::io::Write;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 31.51s
[INFO] running `Command { std: "docker" "inspect" "11242014def9ac01899a0b6e3e35578cf321564158692424d4cf73f4e34b50d4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "11242014def9ac01899a0b6e3e35578cf321564158692424d4cf73f4e34b50d4", kill_on_drop: false }`
[INFO] [stdout] 11242014def9ac01899a0b6e3e35578cf321564158692424d4cf73f4e34b50d4
