[INFO] cloning repository https://github.com/caymazyusuf72/bit_swap_torrent [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/caymazyusuf72/bit_swap_torrent" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcaymazyusuf72%2Fbit_swap_torrent", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcaymazyusuf72%2Fbit_swap_torrent'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a90a136d56f87a82848662329b07afb123ac47e1 [INFO] testing caymazyusuf72/bit_swap_torrent against master#1ef7943ee607160a564655b6596f83670ef95df5 for pr-146098-6 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcaymazyusuf72%2Fbit_swap_torrent" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/caymazyusuf72/bit_swap_torrent [INFO] finished tweaking git repo https://github.com/caymazyusuf72/bit_swap_torrent [INFO] tweaked toml for git repo https://github.com/caymazyusuf72/bit_swap_torrent written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/caymazyusuf72/bit_swap_torrent on toolchain 1ef7943ee607160a564655b6596f83670ef95df5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/caymazyusuf72/bit_swap_torrent 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" "+1ef7943ee607160a564655b6596f83670ef95df5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded data-encoding-macro v0.1.18 [INFO] [stderr] Downloaded rw-stream-sink v0.4.0 [INFO] [stderr] Downloaded data-encoding-macro-internal v0.1.16 [INFO] [stderr] Downloaded nu-ansi-term v0.50.1 [INFO] [stderr] Downloaded libp2p-allow-block-list v0.3.0 [INFO] [stderr] Downloaded libp2p-request-response v0.26.3 [INFO] [stderr] Downloaded libp2p-yamux v0.45.2 [INFO] [stderr] Downloaded libp2p v0.53.2 [INFO] [stderr] Downloaded libp2p-mdns v0.45.1 [INFO] [stderr] Downloaded hickory-resolver v0.24.4 [INFO] [stderr] Downloaded windows-core v0.62.0 [INFO] [stderr] Downloaded libp2p-kad v0.45.3 [INFO] [stderr] Downloaded libp2p-gossipsub v0.46.1 [INFO] [stderr] Downloaded time v0.3.43 [INFO] [stderr] Downloaded libp2p-core v0.41.3 [INFO] [stderr] Downloaded indexmap v2.11.1 [INFO] [stderr] Downloaded prometheus-client v0.22.3 [INFO] [stderr] Downloaded rustls-webpki v0.103.5 [INFO] [stderr] Downloaded libp2p-swarm v0.44.2 [INFO] [stderr] Downloaded cc v1.2.37 [INFO] [stderr] Downloaded sled v0.34.7 [INFO] [stderr] Downloaded libp2p-metrics v0.14.1 [INFO] [stderr] Downloaded deranged v0.5.3 [INFO] [stderr] Downloaded libp2p-tcp v0.41.0 [INFO] [stderr] Downloaded ed25519-dalek v2.2.0 [INFO] [stderr] Downloaded libp2p-connection-limits v0.3.1 [INFO] [stderr] Downloaded resolv-conf v0.7.4 [INFO] [stderr] Downloaded libp2p-dns v0.41.1 [INFO] [stderr] Downloaded futures-ticker v0.0.3 [INFO] [stderr] Downloaded quick-protobuf-codec v0.3.1 [INFO] [stderr] Downloaded libp2p-ping v0.44.1 [INFO] [stderr] Downloaded libp2p-tls v0.4.1 [INFO] [stderr] Downloaded libp2p-quic v0.10.3 [INFO] [stderr] Downloaded hickory-proto v0.24.4 [INFO] [stderr] Downloaded multistream-select v0.13.0 [INFO] [stderr] Downloaded yamux v0.13.6 [INFO] [stderr] Downloaded libp2p-identify v0.44.2 [INFO] [stderr] Downloaded rcgen v0.11.3 [INFO] [stderr] Downloaded igd-next v0.14.3 [INFO] [stderr] Downloaded libp2p-identity v0.2.12 [INFO] [stderr] Downloaded libp2p-noise v0.44.0 [INFO] [stderr] Downloaded libp2p-upnp v0.2.2 [INFO] [stderr] Downloaded libp2p-websocket v0.43.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1050d487db9a55467dfc20ee728ba0f0aa8a624a5b8146a90b76b4212f11e20c [INFO] running `Command { std: "docker" "start" "-a" "1050d487db9a55467dfc20ee728ba0f0aa8a624a5b8146a90b76b4212f11e20c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1050d487db9a55467dfc20ee728ba0f0aa8a624a5b8146a90b76b4212f11e20c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1050d487db9a55467dfc20ee728ba0f0aa8a624a5b8146a90b76b4212f11e20c", kill_on_drop: false }` [INFO] [stdout] 1050d487db9a55467dfc20ee728ba0f0aa8a624a5b8146a90b76b4212f11e20c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 767157d3fcb5a32e79b6449dbfbf9211be3b5635539fb8bdefb51d8ab4ff084b [INFO] running `Command { std: "docker" "start" "-a" "767157d3fcb5a32e79b6449dbfbf9211be3b5635539fb8bdefb51d8ab4ff084b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling unsigned-varint v0.8.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling quick-protobuf v0.8.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling base-x v0.2.11 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling arrayref v0.3.9 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling web-time v1.1.0 [INFO] [stderr] Compiling unsigned-varint v0.7.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling multihash v0.19.3 [INFO] [stderr] Compiling find-msvc-tools v0.1.1 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling snow v0.9.6 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling cc v1.2.37 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling prometheus-client v0.22.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling resolv-conf v0.7.4 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling hex_fmt v0.3.0 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling clap_builder v4.5.47 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling dirs-sys v0.4.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling dirs v5.0.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling data-encoding-macro-internal v0.1.16 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling data-encoding-macro v0.1.18 [INFO] [stderr] Compiling multibase v0.9.1 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling rustls-webpki v0.103.5 [INFO] [stderr] Compiling prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling netlink-packet-utils v0.5.2 [INFO] [stderr] Compiling netlink-packet-core v0.7.0 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling netlink-packet-route v0.17.1 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling ed25519-dalek v2.2.0 [INFO] [stderr] Compiling x25519-dalek v2.0.1 [INFO] [stderr] Compiling libp2p-identity v0.2.12 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling clap v4.5.47 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling asynchronous-codec v0.7.0 [INFO] [stderr] Compiling futures-bounded v0.2.4 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling quick-protobuf-codec v0.3.1 [INFO] [stderr] Compiling multistream-select v0.13.0 [INFO] [stderr] Compiling rw-stream-sink v0.4.0 [INFO] [stderr] Compiling soketto v0.8.1 [INFO] [stderr] Compiling futures-ticker v0.0.3 [INFO] [stderr] Compiling yamux v0.13.6 [INFO] [stderr] Compiling yamux v0.12.1 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling futures-rustls v0.26.0 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling netlink-sys v0.8.7 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling netlink-proto v0.11.5 [INFO] [stderr] Compiling multiaddr v0.18.2 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling rtnetlink v0.13.1 [INFO] [stderr] Compiling libp2p-core v0.41.3 [INFO] [stderr] Compiling if-watch v3.2.1 [INFO] [stderr] Compiling libp2p-swarm v0.44.2 [INFO] [stderr] Compiling libp2p-yamux v0.45.2 [INFO] [stderr] Compiling libp2p-websocket v0.43.2 [INFO] [stderr] Compiling libp2p-noise v0.44.0 [INFO] [stderr] Compiling libp2p-tcp v0.41.0 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling libp2p-mdns v0.45.1 [INFO] [stderr] Compiling libp2p-ping v0.44.1 [INFO] [stderr] Compiling libp2p-identify v0.44.2 [INFO] [stderr] Compiling libp2p-allow-block-list v0.3.0 [INFO] [stderr] Compiling libp2p-kad v0.45.3 [INFO] [stderr] Compiling libp2p-connection-limits v0.3.1 [INFO] [stderr] Compiling libp2p-request-response v0.26.3 [INFO] [stderr] Compiling libp2p-gossipsub v0.46.1 [INFO] [stderr] Compiling libp2p-dns v0.41.1 [INFO] [stderr] Compiling libp2p v0.53.2 [INFO] [stderr] Compiling bit-swap-core v0.1.0 (/opt/rustwide/workdir/crates/bit-swap-core) [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> crates/bit-swap-core/src/metadata.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::{Path, PathBuf}; [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: `BitSwapError` [INFO] [stdout] --> crates/bit-swap-core/src/dht.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FileEntry` [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::metadata::{BitSwapMetadata, FileEntry}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitSwapError` and `BitSwapResult` [INFO] [stdout] --> crates/bit-swap-core/src/peer.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitSwapError` and `BitSwapResult` [INFO] [stdout] --> crates/bit-swap-core/src/scheduler.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | let mut file = file_handle; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_index` [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:223:46 [INFO] [stdout] | [INFO] [stdout] 223 | async fn verify_piece_on_disk(&mut self, piece_index: u32, piece_info: &PieceInfo) -> BitSwapResult { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer_id` [INFO] [stdout] --> crates/bit-swap-core/src/scheduler.rs:42:42 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn update_peer_pieces(&mut self, peer_id: Uuid, pieces: &[u32]) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id` and `bootstrap_nodes` are never read [INFO] [stdout] --> crates/bit-swap-core/src/dht.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DhtClient { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 12 | peer_id: Uuid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | bootstrap_nodes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DhtClient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> crates/bit-swap-core/src/transport.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Connection { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 12 | stream: TcpStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `local_addr` is never read [INFO] [stdout] --> crates/bit-swap-core/src/transport.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct TransportListener { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 31 | local_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransportListener` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a constant [INFO] [stdout] --> crates/bit-swap-core/src/lib.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub const NAME: &str = "BitSwapTorrent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> crates/bit-swap-core/src/lib.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a constant [INFO] [stdout] --> crates/bit-swap-core/src/lib.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | pub const USER_AGENT: &str = concat!("BitSwapTorrent/", env!("CARGO_PKG_VERSION")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | Have { piece_index: u32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | Bitfield { bitfield: BitField }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | begin: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | begin: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | data: Bytes, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | begin: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | Extended { extension_id: u8, payload: Bytes }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:63:34 [INFO] [stdout] | [INFO] [stdout] 63 | Extended { extension_id: u8, payload: Bytes }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub const CHOKE: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub const UNCHOKE: u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub const INTERESTED: u8 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub const NOT_INTERESTED: u8 = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub const HAVE: u8 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | pub const BITFIELD: u8 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub const REQUEST: u8 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub const PIECE: u8 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub const CANCEL: u8 = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub const KEEPALIVE: u8 = 9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub const EXTENDED: u8 = 20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | expected: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | actual: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:62:24 [INFO] [stdout] | [INFO] [stdout] 62 | PeerDisconnected { peer_id: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | RateLimitExceeded { peer_id: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:70:25 [INFO] [stdout] | [INFO] [stdout] 70 | InvalidPieceIndex { index: u32, total: u32 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:70:37 [INFO] [stdout] | [INFO] [stdout] 70 | InvalidPieceIndex { index: u32, total: u32 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bit-swap-cli v0.1.0 (/opt/rustwide/workdir/crates/bit-swap-cli) [INFO] [stdout] warning: unused imports: `info` and `warn` [INFO] [stdout] --> crates/bit-swap-cli/src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use tracing::{info, warn}; [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 1m 15s [INFO] running `Command { std: "docker" "inspect" "767157d3fcb5a32e79b6449dbfbf9211be3b5635539fb8bdefb51d8ab4ff084b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "767157d3fcb5a32e79b6449dbfbf9211be3b5635539fb8bdefb51d8ab4ff084b", kill_on_drop: false }` [INFO] [stdout] 767157d3fcb5a32e79b6449dbfbf9211be3b5635539fb8bdefb51d8ab4ff084b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5aec1bdce6698d6d49bd947e5e81714b6e01ee0f95617ba35821d0a98d87c96d [INFO] running `Command { std: "docker" "start" "-a" "5aec1bdce6698d6d49bd947e5e81714b6e01ee0f95617ba35821d0a98d87c96d", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling ciborium-io v0.2.2 [INFO] [stderr] Compiling plotters-backend v0.3.7 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling bit-vec v0.8.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling cast v0.3.0 [INFO] [stderr] Compiling rand_xorshift v0.4.0 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling unarray v0.1.4 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling bit-set v0.8.0 [INFO] [stderr] Compiling plotters-svg v0.3.7 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling tempfile v3.22.0 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling proptest v1.7.0 [INFO] [stderr] Compiling multiaddr v0.18.2 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling libp2p-core v0.41.3 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling libp2p-websocket v0.43.2 [INFO] [stderr] Compiling libp2p-noise v0.44.0 [INFO] [stderr] Compiling libp2p-yamux v0.45.2 [INFO] [stderr] Compiling libp2p-swarm v0.44.2 [INFO] [stderr] Compiling netlink-sys v0.8.7 [INFO] [stderr] Compiling hickory-proto v0.24.4 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling netlink-proto v0.11.5 [INFO] [stderr] Compiling tokio-test v0.4.4 [INFO] [stderr] Compiling rtnetlink v0.13.1 [INFO] [stderr] Compiling if-watch v3.2.1 [INFO] [stderr] Compiling libp2p-ping v0.44.1 [INFO] [stderr] Compiling libp2p-connection-limits v0.3.1 [INFO] [stderr] Compiling libp2p-identify v0.44.2 [INFO] [stderr] Compiling libp2p-allow-block-list v0.3.0 [INFO] [stderr] Compiling libp2p-kad v0.45.3 [INFO] [stderr] Compiling libp2p-request-response v0.26.3 [INFO] [stderr] Compiling libp2p-gossipsub v0.46.1 [INFO] [stderr] Compiling libp2p-tcp v0.41.0 [INFO] [stderr] Compiling hickory-resolver v0.24.4 [INFO] [stderr] Compiling libp2p-mdns v0.45.1 [INFO] [stderr] Compiling libp2p-dns v0.41.1 [INFO] [stderr] Compiling libp2p v0.53.2 [INFO] [stderr] Compiling bit-swap-core v0.1.0 (/opt/rustwide/workdir/crates/bit-swap-core) [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> crates/bit-swap-core/src/metadata.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::{Path, PathBuf}; [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: `BitSwapError` [INFO] [stdout] --> crates/bit-swap-core/src/dht.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FileEntry` [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::metadata::{BitSwapMetadata, FileEntry}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitSwapError` and `BitSwapResult` [INFO] [stdout] --> crates/bit-swap-core/src/peer.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitSwapError` and `BitSwapResult` [INFO] [stdout] --> crates/bit-swap-core/src/scheduler.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PathBuf` [INFO] [stdout] --> crates/bit-swap-core/src/metadata.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::{Path, PathBuf}; [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: `BitSwapError` [INFO] [stdout] --> crates/bit-swap-core/src/dht.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FileEntry` [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:6:40 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::metadata::{BitSwapMetadata, FileEntry}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitSwapError` and `BitSwapResult` [INFO] [stdout] --> crates/bit-swap-core/src/peer.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BitSwapError` and `BitSwapResult` [INFO] [stdout] --> crates/bit-swap-core/src/scheduler.rs:5:20 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | let mut file = file_handle; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:236:17 [INFO] [stdout] | [INFO] [stdout] 236 | let mut file = file_handle; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_index` [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:223:46 [INFO] [stdout] | [INFO] [stdout] 223 | async fn verify_piece_on_disk(&mut self, piece_index: u32, piece_info: &PieceInfo) -> BitSwapResult { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer_id` [INFO] [stdout] --> crates/bit-swap-core/src/scheduler.rs:42:42 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn update_peer_pieces(&mut self, peer_id: Uuid, pieces: &[u32]) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id` and `bootstrap_nodes` are never read [INFO] [stdout] --> crates/bit-swap-core/src/dht.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DhtClient { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 12 | peer_id: Uuid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | bootstrap_nodes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DhtClient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> crates/bit-swap-core/src/transport.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Connection { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 12 | stream: TcpStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `local_addr` is never read [INFO] [stdout] --> crates/bit-swap-core/src/transport.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct TransportListener { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 31 | local_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransportListener` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a constant [INFO] [stdout] --> crates/bit-swap-core/src/lib.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub const NAME: &str = "BitSwapTorrent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> crates/bit-swap-core/src/lib.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a constant [INFO] [stdout] --> crates/bit-swap-core/src/lib.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | pub const USER_AGENT: &str = concat!("BitSwapTorrent/", env!("CARGO_PKG_VERSION")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | Have { piece_index: u32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | Bitfield { bitfield: BitField }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | begin: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | begin: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | data: Bytes, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | begin: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | Extended { extension_id: u8, payload: Bytes }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:63:34 [INFO] [stdout] | [INFO] [stdout] 63 | Extended { extension_id: u8, payload: Bytes }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub const CHOKE: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub const UNCHOKE: u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub const INTERESTED: u8 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub const NOT_INTERESTED: u8 = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub const HAVE: u8 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | pub const BITFIELD: u8 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub const REQUEST: u8 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub const PIECE: u8 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub const CANCEL: u8 = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub const KEEPALIVE: u8 = 9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub const EXTENDED: u8 = 20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | expected: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | actual: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:62:24 [INFO] [stdout] | [INFO] [stdout] 62 | PeerDisconnected { peer_id: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | RateLimitExceeded { peer_id: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:70:25 [INFO] [stdout] | [INFO] [stdout] 70 | InvalidPieceIndex { index: u32, total: u32 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:70:37 [INFO] [stdout] | [INFO] [stdout] 70 | InvalidPieceIndex { index: u32, total: u32 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `piece_index` [INFO] [stdout] --> crates/bit-swap-core/src/storage.rs:223:46 [INFO] [stdout] | [INFO] [stdout] 223 | async fn verify_piece_on_disk(&mut self, piece_index: u32, piece_info: &PieceInfo) -> BitSwapResult { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `peer_id` [INFO] [stdout] --> crates/bit-swap-core/src/scheduler.rs:42:42 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn update_peer_pieces(&mut self, peer_id: Uuid, pieces: &[u32]) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `peer_id` and `bootstrap_nodes` are never read [INFO] [stdout] --> crates/bit-swap-core/src/dht.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DhtClient { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 12 | peer_id: Uuid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 13 | bootstrap_nodes: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DhtClient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> crates/bit-swap-core/src/transport.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Connection { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 12 | stream: TcpStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `local_addr` is never read [INFO] [stdout] --> crates/bit-swap-core/src/transport.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct TransportListener { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 31 | local_addr: SocketAddr, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TransportListener` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a constant [INFO] [stdout] --> crates/bit-swap-core/src/lib.rs:103:1 [INFO] [stdout] | [INFO] [stdout] 103 | pub const NAME: &str = "BitSwapTorrent"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> crates/bit-swap-core/src/lib.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | #![warn(missing_docs)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a constant [INFO] [stdout] --> crates/bit-swap-core/src/lib.rs:104:1 [INFO] [stdout] | [INFO] [stdout] 104 | pub const USER_AGENT: &str = concat!("BitSwapTorrent/", env!("CARGO_PKG_VERSION")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | Have { piece_index: u32 }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:41:16 [INFO] [stdout] | [INFO] [stdout] 41 | Bitfield { bitfield: BitField }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | begin: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | begin: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | data: Bytes, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | begin: u32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | length: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:63:16 [INFO] [stdout] | [INFO] [stdout] 63 | Extended { extension_id: u8, payload: Bytes }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:63:34 [INFO] [stdout] | [INFO] [stdout] 63 | Extended { extension_id: u8, payload: Bytes }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | pub const CHOKE: u8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | pub const UNCHOKE: u8 = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | pub const INTERESTED: u8 = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub const NOT_INTERESTED: u8 = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | pub const HAVE: u8 = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | pub const BITFIELD: u8 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub const REQUEST: u8 = 6; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub const PIECE: u8 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub const CANCEL: u8 = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub const KEEPALIVE: u8 = 9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for an associated constant [INFO] [stdout] --> crates/bit-swap-core/src/protocol.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub const EXTENDED: u8 = 20; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | piece_index: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 52 | expected: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | actual: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:62:24 [INFO] [stdout] | [INFO] [stdout] 62 | PeerDisconnected { peer_id: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:66:25 [INFO] [stdout] | [INFO] [stdout] 66 | RateLimitExceeded { peer_id: String }, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:70:25 [INFO] [stdout] | [INFO] [stdout] 70 | InvalidPieceIndex { index: u32, total: u32 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: missing documentation for a struct field [INFO] [stdout] --> crates/bit-swap-core/src/error.rs:70:37 [INFO] [stdout] | [INFO] [stdout] 70 | InvalidPieceIndex { index: u32, total: u32 }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bit-swap-cli v0.1.0 (/opt/rustwide/workdir/crates/bit-swap-cli) [INFO] [stdout] warning: unused imports: `info` and `warn` [INFO] [stdout] --> crates/bit-swap-cli/src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use tracing::{info, warn}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 41.66s [INFO] running `Command { std: "docker" "inspect" "5aec1bdce6698d6d49bd947e5e81714b6e01ee0f95617ba35821d0a98d87c96d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5aec1bdce6698d6d49bd947e5e81714b6e01ee0f95617ba35821d0a98d87c96d", kill_on_drop: false }` [INFO] [stdout] 5aec1bdce6698d6d49bd947e5e81714b6e01ee0f95617ba35821d0a98d87c96d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 77bec5a93084d56684e980e08d7aabc5ebee49cdc48a84b8f6d048f3eede76e5 [INFO] running `Command { std: "docker" "start" "-a" "77bec5a93084d56684e980e08d7aabc5ebee49cdc48a84b8f6d048f3eede76e5", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `PathBuf` [INFO] [stderr] --> crates/bit-swap-core/src/metadata.rs:6:23 [INFO] [stderr] | [INFO] [stderr] 6 | use std::path::{Path, PathBuf}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `BitSwapError` [INFO] [stderr] --> crates/bit-swap-core/src/dht.rs:5:20 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `FileEntry` [INFO] [stderr] --> crates/bit-swap-core/src/storage.rs:6:40 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::metadata::{BitSwapMetadata, FileEntry}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `uuid::Uuid` [INFO] [stderr] --> crates/bit-swap-core/src/storage.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use uuid::Uuid; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BitSwapError` and `BitSwapResult` [INFO] [stderr] --> crates/bit-swap-core/src/peer.rs:5:20 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BitSwapError` and `BitSwapResult` [INFO] [stderr] --> crates/bit-swap-core/src/scheduler.rs:5:20 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::error::{BitSwapError, BitSwapResult}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> crates/bit-swap-core/src/storage.rs:236:17 [INFO] [stderr] | [INFO] [stderr] 236 | let mut file = file_handle; [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `piece_index` [INFO] [stderr] --> crates/bit-swap-core/src/storage.rs:223:46 [INFO] [stderr] | [INFO] [stderr] 223 | async fn verify_piece_on_disk(&mut self, piece_index: u32, piece_info: &PieceInfo) -> BitSwapResult { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_piece_index` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `peer_id` [INFO] [stderr] --> crates/bit-swap-core/src/scheduler.rs:42:42 [INFO] [stderr] | [INFO] [stderr] 42 | pub fn update_peer_pieces(&mut self, peer_id: Uuid, pieces: &[u32]) { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_peer_id` [INFO] [stderr] [INFO] [stderr] warning: fields `peer_id` and `bootstrap_nodes` are never read [INFO] [stderr] --> crates/bit-swap-core/src/dht.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct DhtClient { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 12 | peer_id: Uuid, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 13 | bootstrap_nodes: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DhtClient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `stream` is never read [INFO] [stderr] --> crates/bit-swap-core/src/transport.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub struct Connection { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] 12 | stream: TcpStream, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `local_addr` is never read [INFO] [stderr] --> crates/bit-swap-core/src/transport.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 30 | pub struct TransportListener { [INFO] [stderr] | ----------------- field in this struct [INFO] [stderr] 31 | local_addr: SocketAddr, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TransportListener` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a constant [INFO] [stderr] --> crates/bit-swap-core/src/lib.rs:103:1 [INFO] [stderr] | [INFO] [stderr] 103 | pub const NAME: &str = "BitSwapTorrent"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> crates/bit-swap-core/src/lib.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | #![warn(missing_docs)] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a constant [INFO] [stderr] --> crates/bit-swap-core/src/lib.rs:104:1 [INFO] [stderr] | [INFO] [stderr] 104 | pub const USER_AGENT: &str = concat!("BitSwapTorrent/", env!("CARGO_PKG_VERSION")); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:39:12 [INFO] [stderr] | [INFO] [stderr] 39 | Have { piece_index: u32 }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:41:16 [INFO] [stderr] | [INFO] [stderr] 41 | Bitfield { bitfield: BitField }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 44 | piece_index: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 45 | begin: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:46:9 [INFO] [stderr] | [INFO] [stderr] 46 | length: u32, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | piece_index: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | begin: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | data: Bytes, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:56:9 [INFO] [stderr] | [INFO] [stderr] 56 | piece_index: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:57:9 [INFO] [stderr] | [INFO] [stderr] 57 | begin: u32, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:58:9 [INFO] [stderr] | [INFO] [stderr] 58 | length: u32, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:63:16 [INFO] [stderr] | [INFO] [stderr] 63 | Extended { extension_id: u8, payload: Bytes }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:63:34 [INFO] [stderr] | [INFO] [stderr] 63 | Extended { extension_id: u8, payload: Bytes }, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for an associated constant [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 70 | pub const CHOKE: u8 = 0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for an associated constant [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:71:5 [INFO] [stderr] | [INFO] [stderr] 71 | pub const UNCHOKE: u8 = 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for an associated constant [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:72:5 [INFO] [stderr] | [INFO] [stderr] 72 | pub const INTERESTED: u8 = 2; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for an associated constant [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:73:5 [INFO] [stderr] | [INFO] [stderr] 73 | pub const NOT_INTERESTED: u8 = 3; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for an associated constant [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:74:5 [INFO] [stderr] | [INFO] [stderr] 74 | pub const HAVE: u8 = 4; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for an associated constant [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:75:5 [INFO] [stderr] | [INFO] [stderr] 75 | pub const BITFIELD: u8 = 5; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for an associated constant [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:76:5 [INFO] [stderr] | [INFO] [stderr] 76 | pub const REQUEST: u8 = 6; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for an associated constant [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:77:5 [INFO] [stderr] | [INFO] [stderr] 77 | pub const PIECE: u8 = 7; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for an associated constant [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | pub const CANCEL: u8 = 8; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for an associated constant [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:79:5 [INFO] [stderr] | [INFO] [stderr] 79 | pub const KEEPALIVE: u8 = 9; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for an associated constant [INFO] [stderr] --> crates/bit-swap-core/src/protocol.rs:80:5 [INFO] [stderr] | [INFO] [stderr] 80 | pub const EXTENDED: u8 = 20; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/error.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | piece_index: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/error.rs:52:9 [INFO] [stderr] | [INFO] [stderr] 52 | expected: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/error.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 53 | actual: String, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/error.rs:62:24 [INFO] [stderr] | [INFO] [stderr] 62 | PeerDisconnected { peer_id: String }, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/error.rs:66:25 [INFO] [stderr] | [INFO] [stderr] 66 | RateLimitExceeded { peer_id: String }, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/error.rs:70:25 [INFO] [stderr] | [INFO] [stderr] 70 | InvalidPieceIndex { index: u32, total: u32 }, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: missing documentation for a struct field [INFO] [stderr] --> crates/bit-swap-core/src/error.rs:70:37 [INFO] [stderr] | [INFO] [stderr] 70 | InvalidPieceIndex { index: u32, total: u32 }, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `bit-swap-core` (lib) generated 45 warnings (run `cargo fix --lib -p bit-swap-core` to apply 9 suggestions) [INFO] [stderr] warning: unused imports: `info` and `warn` [INFO] [stderr] --> crates/bit-swap-cli/src/main.rs:12:15 [INFO] [stderr] | [INFO] [stderr] 12 | use tracing::{info, warn}; [INFO] [stderr] | ^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `bit-swap-cli` (bin "bwt" test) generated 1 warning (run `cargo fix --bin "bwt" -p bit-swap-cli --tests` to apply 1 suggestion) [INFO] [stderr] warning: `bit-swap-core` (lib test) generated 45 warnings (45 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.00s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/bwt-46f75ac804345b31) [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/bit_swap_core-9bfb5cd0427a4234) [INFO] [stdout] running 1 test [INFO] [stdout] test tests::test_format_bytes ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test crypto::tests::test_info_hash_conversion ... ok [INFO] [stdout] test crypto::tests::test_piece_verification ... ok [INFO] [stdout] test metadata::tests::test_magnet_url ... ok [INFO] [stdout] test crypto::tests::test_sha256 ... ok [INFO] [stdout] test protocol::tests::test_handshake_serialization ... ok [INFO] [stdout] test protocol::tests::test_bitfield_operations ... ok [INFO] [stdout] test protocol::tests::test_message_frame_io ... ok [INFO] [stdout] test metadata::tests::test_metadata_creation ... ok [INFO] [stdout] test storage::tests::test_storage_manager ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s [INFO] [stdout] [INFO] [stderr] Doc-tests bit_swap_core [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "77bec5a93084d56684e980e08d7aabc5ebee49cdc48a84b8f6d048f3eede76e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77bec5a93084d56684e980e08d7aabc5ebee49cdc48a84b8f6d048f3eede76e5", kill_on_drop: false }` [INFO] [stdout] 77bec5a93084d56684e980e08d7aabc5ebee49cdc48a84b8f6d048f3eede76e5