[INFO] cloning repository https://github.com/Luj8n/rust_torrent [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Luj8n/rust_torrent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuj8n%2Frust_torrent", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuj8n%2Frust_torrent'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fd367a0d528cfad3980ea2caac658a7035e32899 [INFO] checking Luj8n/rust_torrent against try#4e3d7541a523df82cea75064e44e60ae9a008bcb for pr-97427 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLuj8n%2Frust_torrent" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Luj8n/rust_torrent on toolchain 4e3d7541a523df82cea75064e44e60ae9a008bcb [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4e3d7541a523df82cea75064e44e60ae9a008bcb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-7/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/Luj8n/rust_torrent [INFO] finished tweaking git repo https://github.com/Luj8n/rust_torrent [INFO] tweaked toml for git repo https://github.com/Luj8n/rust_torrent written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/Luj8n/rust_torrent already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4e3d7541a523df82cea75064e44e60ae9a008bcb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+4e3d7541a523df82cea75064e44e60ae9a008bcb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1e02d5f1a2529b32db200f8e2b3974edaaca1b045682ee99275012899482ad33 [INFO] running `Command { std: "docker" "start" "-a" "1e02d5f1a2529b32db200f8e2b3974edaaca1b045682ee99275012899482ad33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1e02d5f1a2529b32db200f8e2b3974edaaca1b045682ee99275012899482ad33", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e02d5f1a2529b32db200f8e2b3974edaaca1b045682ee99275012899482ad33", kill_on_drop: false }` [INFO] [stdout] 1e02d5f1a2529b32db200f8e2b3974edaaca1b045682ee99275012899482ad33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+4e3d7541a523df82cea75064e44e60ae9a008bcb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d49017581f636530eac066fc0fd0c255dab19fe25cd25a0a0fc6eac9bbf81f28 [INFO] running `Command { std: "docker" "start" "-a" "d49017581f636530eac066fc0fd0c255dab19fe25cd25a0a0fc6eac9bbf81f28", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Compiling proc-macro2 v1.0.38 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling syn v1.0.92 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking pin-project-lite v0.2.9 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.40 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.8 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Checking gimli v0.26.1 [INFO] [stderr] Checking tower-service v0.3.1 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking unicode-bidi v0.3.8 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking ipnet v2.5.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling anyhow v1.0.57 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Checking unicode-segmentation v1.9.0 [INFO] [stderr] Checking urlencoding v2.1.0 [INFO] [stderr] Checking tracing-core v0.1.26 [INFO] [stderr] Checking miniz_oxide v0.5.1 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.8 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Checking http v0.2.7 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling openssl-sys v0.9.73 [INFO] [stderr] Compiling backtrace v0.3.65 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking object v0.28.3 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking http-body v0.4.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.2 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking addr2line v0.17.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking crossbeam-channel v0.5.4 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking crypto-common v0.1.3 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking sha1 v0.10.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking error-chain v0.11.0 [INFO] [stderr] Checking bip_bencode v0.4.4 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling tracing-attributes v0.1.21 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Checking tokio v1.19.2 [INFO] [stderr] Checking tracing v0.1.34 [INFO] [stderr] Checking tokio-util v0.7.1 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking h2 v0.3.13 [INFO] [stderr] Checking hyper v0.14.18 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.10 [INFO] [stderr] Checking torrent_search v0.3.3 (/opt/rustwide/workdir/libs/torrent-search-rs) [INFO] [stderr] Checking rust_torrent v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `torrent::Torrent` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use torrent::Torrent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/bytes.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result`, `anyhow` [INFO] [stdout] --> src/file_manager.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BDecodeOpt`, `BRefAccess`, `BencodeRef` [INFO] [stdout] --> src/file_manager.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use bip_bencode::{BDecodeOpt, BRefAccess, BencodeRef}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/file_manager.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IpAddr`, `Ipv4Addr` [INFO] [stdout] --> src/file_manager.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/file_manager.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `encode_bytes`, `from_file`, `random_id` [INFO] [stdout] --> src/file_manager.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::bytes::{encode_bytes, from_file, random_id}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `MetaInfo` [INFO] [stdout] --> src/file_manager.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::metainfo::{File, MetaInfo}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::torrent::Torrent` [INFO] [stdout] --> src/file_manager.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::torrent::Torrent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BDecodeOpt`, `BRefAccess`, `BencodeRef` [INFO] [stdout] --> src/manager.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use bip_bencode::{BDecodeOpt, BRefAccess, BencodeRef}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/manager.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/manager.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IpAddr`, `Ipv4Addr` [INFO] [stdout] --> src/manager.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::prelude::FileExt` [INFO] [stdout] --> src/manager.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::os::unix::prelude::FileExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/manager.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `torrent::Torrent` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use torrent::Torrent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender`, `self` [INFO] [stdout] --> src/manager.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::sync::mpsc::{self, Sender}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::oneshot` [INFO] [stdout] --> src/manager.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::sync::oneshot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `encode_bytes`, `random_id` [INFO] [stdout] --> src/manager.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::bytes::{encode_bytes, from_file, random_id}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FileManagerMessage` [INFO] [stdout] --> src/manager.rs:13:40 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::file_manager::{FileManager, FileManagerMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `MetaInfo` [INFO] [stdout] --> src/manager.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::metainfo::{File, MetaInfo}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/metainfo.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow` [INFO] [stdout] --> src/bytes.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result`, `anyhow` [INFO] [stdout] --> src/peer.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BDecodeOpt`, `BRefAccess`, `BencodeRef` [INFO] [stdout] --> src/peer.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use bip_bencode::{BDecodeOpt, BRefAccess, BencodeRef}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result`, `anyhow` [INFO] [stdout] --> src/file_manager.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/peer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/peer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BDecodeOpt`, `BRefAccess`, `BencodeRef` [INFO] [stdout] --> src/file_manager.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use bip_bencode::{BDecodeOpt, BRefAccess, BencodeRef}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/file_manager.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IpAddr`, `Ipv4Addr` [INFO] [stdout] --> src/peer.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/peer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IpAddr`, `Ipv4Addr` [INFO] [stdout] --> src/file_manager.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/peer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/file_manager.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc::Sender` [INFO] [stdout] --> src/peer.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::sync::mpsc::Sender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `encode_bytes`, `from_file`, `random_id` [INFO] [stdout] --> src/file_manager.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::bytes::{encode_bytes, from_file, random_id}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `encode_bytes`, `random_id` [INFO] [stdout] --> src/peer.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::bytes::{encode_bytes, random_id}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `MetaInfo` [INFO] [stdout] --> src/file_manager.rs:13:23 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::metainfo::{File, MetaInfo}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MetaInfo`, `self` [INFO] [stdout] --> src/peer.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::metainfo::{self, MetaInfo}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/torrent.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::torrent::Torrent` [INFO] [stdout] --> src/file_manager.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::torrent::Torrent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/torrent.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BDecodeOpt`, `BRefAccess`, `BencodeRef` [INFO] [stdout] --> src/manager.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use bip_bencode::{BDecodeOpt, BRefAccess, BencodeRef}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::constants::BLOCK_SIZE` [INFO] [stdout] --> src/torrent.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::constants::BLOCK_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/manager.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FileManager` [INFO] [stdout] --> src/torrent.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::file_manager::{FileManager, FileManagerMessage}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/manager.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/torrent.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::metainfo::{self, MetaInfo}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/torrent.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::peer::{self, Peer}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IpAddr`, `Ipv4Addr` [INFO] [stdout] --> src/manager.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::prelude::FileExt` [INFO] [stdout] --> src/manager.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::os::unix::prelude::FileExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/manager.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Sender`, `self` [INFO] [stdout] --> src/manager.rs:9:25 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::sync::mpsc::{self, Sender}; [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::oneshot` [INFO] [stdout] --> src/manager.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio::sync::oneshot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `encode_bytes`, `random_id` [INFO] [stdout] --> src/manager.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::bytes::{encode_bytes, from_file, random_id}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FileManagerMessage` [INFO] [stdout] --> src/manager.rs:13:40 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::file_manager::{FileManager, FileManagerMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `File`, `MetaInfo` [INFO] [stdout] --> src/manager.rs:14:23 [INFO] [stdout] | [INFO] [stdout] 14 | use crate::metainfo::{File, MetaInfo}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/metainfo.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Result`, `anyhow` [INFO] [stdout] --> src/peer.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{anyhow, Result}; [INFO] [stdout] | ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BDecodeOpt`, `BRefAccess`, `BencodeRef` [INFO] [stdout] --> src/peer.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | use bip_bencode::{BDecodeOpt, BRefAccess, BencodeRef}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/peer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/peer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IpAddr`, `Ipv4Addr` [INFO] [stdout] --> src/peer.rs:5:16 [INFO] [stdout] | [INFO] [stdout] 5 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/peer.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/peer.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::mpsc::Sender` [INFO] [stdout] --> src/peer.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::sync::mpsc::Sender; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `encode_bytes`, `random_id` [INFO] [stdout] --> src/peer.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::bytes::{encode_bytes, random_id}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MetaInfo`, `self` [INFO] [stdout] --> src/peer.rs:11:23 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::metainfo::{self, MetaInfo}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IpAddr` [INFO] [stdout] --> src/torrent.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::net::{IpAddr, Ipv4Addr}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/torrent.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::constants::BLOCK_SIZE` [INFO] [stdout] --> src/torrent.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::constants::BLOCK_SIZE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FileManager` [INFO] [stdout] --> src/torrent.rs:16:27 [INFO] [stdout] | [INFO] [stdout] 16 | use crate::file_manager::{FileManager, FileManagerMessage}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/torrent.rs:17:23 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::metainfo::{self, MetaInfo}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/torrent.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::peer::{self, Peer}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/metainfo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/torrent.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> src/torrent.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/torrent.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/file_manager.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | _ => {} [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes_read` [INFO] [stdout] --> src/file_manager.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | let bytes_read = file.read_at(&mut bytes, offset).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_read` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/torrent.rs:254:31 [INFO] [stdout] | [INFO] [stdout] 254 | async fn write_chunk(&self, index: u64, begin: u64, piece: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `begin` [INFO] [stdout] --> src/torrent.rs:254:43 [INFO] [stdout] | [INFO] [stdout] 254 | async fn write_chunk(&self, index: u64, begin: u64, piece: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_begin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/torrent.rs:254:55 [INFO] [stdout] | [INFO] [stdout] 254 | async fn write_chunk(&self, index: u64, begin: u64, piece: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/metainfo.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/torrent.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/torrent.rs:388:5 [INFO] [stdout] | [INFO] [stdout] 388 | event: Option, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> src/torrent.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tracker_id` [INFO] [stdout] --> src/torrent.rs:389:5 [INFO] [stdout] | [INFO] [stdout] 389 | tracker_id: Option, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tracker_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/torrent.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/file_manager.rs:72:11 [INFO] [stdout] | [INFO] [stdout] 72 | _ => {} [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bytes_read` [INFO] [stdout] --> src/file_manager.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | let bytes_read = file.read_at(&mut bytes, offset).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bytes_read` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/torrent.rs:254:31 [INFO] [stdout] | [INFO] [stdout] 254 | async fn write_chunk(&self, index: u64, begin: u64, piece: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `begin` [INFO] [stdout] --> src/torrent.rs:254:43 [INFO] [stdout] | [INFO] [stdout] 254 | async fn write_chunk(&self, index: u64, begin: u64, piece: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_begin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece` [INFO] [stdout] --> src/torrent.rs:254:55 [INFO] [stdout] | [INFO] [stdout] 254 | async fn write_chunk(&self, index: u64, begin: u64, piece: Vec) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event` [INFO] [stdout] --> src/torrent.rs:388:5 [INFO] [stdout] | [INFO] [stdout] 388 | event: Option, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tracker_id` [INFO] [stdout] --> src/torrent.rs:389:5 [INFO] [stdout] | [INFO] [stdout] 389 | tracker_id: Option, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tracker_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_bytes` [INFO] [stdout] --> src/bytes.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn random_bytes() -> [u8; 20] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `encode_bytes` [INFO] [stdout] --> src/bytes.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn encode_bytes(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bytes_to_hexadecimal` [INFO] [stdout] --> src/bytes.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn bytes_to_hexadecimal(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nibble_to_hexadeximal` [INFO] [stdout] --> src/bytes.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn nibble_to_hexadeximal(nibble: u8) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLOCK_SIZE` [INFO] [stdout] --> src/constants.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub const BLOCK_SIZE: usize = 1 << 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random_bytes` [INFO] [stdout] --> src/bytes.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn random_bytes() -> [u8; 20] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `encode_bytes` [INFO] [stdout] --> src/bytes.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn encode_bytes(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/file_manager.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 22 | / Write { [INFO] [stdout] 23 | | bytes: Vec, [INFO] [stdout] 24 | | file: Arc, [INFO] [stdout] 25 | | offset: u64, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] note: `FileManagerMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/file_manager.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `am_choking` [INFO] [stdout] --> src/peer.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | am_choking: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bytes_to_hexadecimal` [INFO] [stdout] --> src/bytes.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn bytes_to_hexadecimal(bytes: &[u8]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `am_interested` [INFO] [stdout] --> src/peer.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | am_interested: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peer_choking` [INFO] [stdout] --> src/peer.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | peer_choking: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peer_interested` [INFO] [stdout] --> src/peer.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 17 | peer_interested: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `nibble_to_hexadeximal` [INFO] [stdout] --> src/bytes.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn nibble_to_hexadeximal(nibble: u8) -> char { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/peer.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLOCK_SIZE` [INFO] [stdout] --> src/constants.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | pub const BLOCK_SIZE: usize = 1 << 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peers` [INFO] [stdout] --> src/torrent.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | peers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `warning_message` [INFO] [stdout] --> src/torrent.rs:35:3 [INFO] [stdout] | [INFO] [stdout] 35 | warning_message: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Write` [INFO] [stdout] --> src/file_manager.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 22 | / Write { [INFO] [stdout] 23 | | bytes: Vec, [INFO] [stdout] 24 | | file: Arc, [INFO] [stdout] 25 | | offset: u64, [INFO] [stdout] 26 | | }, [INFO] [stdout] | |___^ [INFO] [stdout] | [INFO] [stdout] note: `FileManagerMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/file_manager.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `am_choking` [INFO] [stdout] --> src/peer.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 14 | am_choking: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `am_interested` [INFO] [stdout] --> src/peer.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | am_interested: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `interval` [INFO] [stdout] --> src/torrent.rs:36:3 [INFO] [stdout] | [INFO] [stdout] 36 | interval: u64, // TODO: make some timer, idk [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peer_choking` [INFO] [stdout] --> src/peer.rs:16:3 [INFO] [stdout] | [INFO] [stdout] 16 | peer_choking: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `min_interval` [INFO] [stdout] --> src/torrent.rs:37:3 [INFO] [stdout] | [INFO] [stdout] 37 | min_interval: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peer_interested` [INFO] [stdout] --> src/peer.rs:17:3 [INFO] [stdout] | [INFO] [stdout] 17 | peer_interested: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/peer.rs:24:10 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peers` [INFO] [stdout] --> src/torrent.rs:30:3 [INFO] [stdout] | [INFO] [stdout] 30 | peers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tracker_id` [INFO] [stdout] --> src/torrent.rs:38:3 [INFO] [stdout] | [INFO] [stdout] 38 | tracker_id: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `complete` [INFO] [stdout] --> src/torrent.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 39 | complete: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `warning_message` [INFO] [stdout] --> src/torrent.rs:35:3 [INFO] [stdout] | [INFO] [stdout] 35 | warning_message: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `incomplete` [INFO] [stdout] --> src/torrent.rs:40:3 [INFO] [stdout] | [INFO] [stdout] 40 | incomplete: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `interval` [INFO] [stdout] --> src/torrent.rs:36:3 [INFO] [stdout] | [INFO] [stdout] 36 | interval: u64, // TODO: make some timer, idk [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peer_info` [INFO] [stdout] --> src/torrent.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 41 | peer_info: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `min_interval` [INFO] [stdout] --> src/torrent.rs:37:3 [INFO] [stdout] | [INFO] [stdout] 37 | min_interval: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ip` [INFO] [stdout] --> src/torrent.rs:46:3 [INFO] [stdout] | [INFO] [stdout] 46 | ip: Ipv4Addr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PeerConnectionInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tracker_id` [INFO] [stdout] --> src/torrent.rs:38:3 [INFO] [stdout] | [INFO] [stdout] 38 | tracker_id: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `port` [INFO] [stdout] --> src/torrent.rs:47:3 [INFO] [stdout] | [INFO] [stdout] 47 | port: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PeerConnectionInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Started` [INFO] [stdout] --> src/torrent.rs:51:3 [INFO] [stdout] | [INFO] [stdout] 51 | Started, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stopped` [INFO] [stdout] --> src/torrent.rs:52:3 [INFO] [stdout] | [INFO] [stdout] 52 | Stopped, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Completed` [INFO] [stdout] --> src/torrent.rs:53:3 [INFO] [stdout] | [INFO] [stdout] 53 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `complete` [INFO] [stdout] --> src/torrent.rs:39:3 [INFO] [stdout] | [INFO] [stdout] 39 | complete: u64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `start_downloading` [INFO] [stdout] --> src/torrent.rs:145:16 [INFO] [stdout] | [INFO] [stdout] 145 | pub async fn start_downloading(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_piece_hash` [INFO] [stdout] --> src/torrent.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn check_piece_hash(&self, piece_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_data` [INFO] [stdout] --> src/torrent.rs:225:16 [INFO] [stdout] | [INFO] [stdout] 225 | pub async fn write_data(&self, file_info: &FileInfo, bytes: Vec, offset: u64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `incomplete` [INFO] [stdout] --> src/torrent.rs:40:3 [INFO] [stdout] | [INFO] [stdout] 40 | incomplete: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_chunk` [INFO] [stdout] --> src/torrent.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 254 | async fn write_chunk(&self, index: u64, begin: u64, piece: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `request_tracker` [INFO] [stdout] --> src/torrent.rs:258:16 [INFO] [stdout] | [INFO] [stdout] 258 | pub async fn request_tracker( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `request_tracker_http` [INFO] [stdout] --> src/torrent.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | async fn request_tracker_http( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `request_tracker_udp` [INFO] [stdout] --> src/torrent.rs:386:16 [INFO] [stdout] | [INFO] [stdout] 386 | pub async fn request_tracker_udp( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `peer_info` [INFO] [stdout] --> src/torrent.rs:41:3 [INFO] [stdout] | [INFO] [stdout] 41 | peer_info: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `TrackerResponse` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:33:10 [INFO] [stdout] | [INFO] [stdout] 33 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ip` [INFO] [stdout] --> src/torrent.rs:46:3 [INFO] [stdout] | [INFO] [stdout] 46 | ip: Ipv4Addr, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PeerConnectionInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `port` [INFO] [stdout] --> src/torrent.rs:47:3 [INFO] [stdout] | [INFO] [stdout] 47 | port: u16, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `PeerConnectionInfo` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/torrent.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | #[derive(Clone, Debug)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Started` [INFO] [stdout] --> src/torrent.rs:51:3 [INFO] [stdout] | [INFO] [stdout] 51 | Started, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Stopped` [INFO] [stdout] --> src/torrent.rs:52:3 [INFO] [stdout] | [INFO] [stdout] 52 | Stopped, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Completed` [INFO] [stdout] --> src/torrent.rs:53:3 [INFO] [stdout] | [INFO] [stdout] 53 | Completed, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `start_downloading` [INFO] [stdout] --> src/torrent.rs:145:16 [INFO] [stdout] | [INFO] [stdout] 145 | pub async fn start_downloading(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_piece_hash` [INFO] [stdout] --> src/torrent.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | pub async fn check_piece_hash(&self, piece_index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_data` [INFO] [stdout] --> src/torrent.rs:225:16 [INFO] [stdout] | [INFO] [stdout] 225 | pub async fn write_data(&self, file_info: &FileInfo, bytes: Vec, offset: u64) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `write_chunk` [INFO] [stdout] --> src/torrent.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 254 | async fn write_chunk(&self, index: u64, begin: u64, piece: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `request_tracker` [INFO] [stdout] --> src/torrent.rs:258:16 [INFO] [stdout] | [INFO] [stdout] 258 | pub async fn request_tracker( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `request_tracker_http` [INFO] [stdout] --> src/torrent.rs:279:12 [INFO] [stdout] | [INFO] [stdout] 279 | async fn request_tracker_http( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `request_tracker_udp` [INFO] [stdout] --> src/torrent.rs:386:16 [INFO] [stdout] | [INFO] [stdout] 386 | pub async fn request_tracker_udp( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 80 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 80 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 57.43s [INFO] running `Command { std: "docker" "inspect" "d49017581f636530eac066fc0fd0c255dab19fe25cd25a0a0fc6eac9bbf81f28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d49017581f636530eac066fc0fd0c255dab19fe25cd25a0a0fc6eac9bbf81f28", kill_on_drop: false }` [INFO] [stdout] d49017581f636530eac066fc0fd0c255dab19fe25cd25a0a0fc6eac9bbf81f28