[INFO] cloning repository https://github.com/yuntongf/bittorrent-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yuntongf/bittorrent-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyuntongf%2Fbittorrent-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyuntongf%2Fbittorrent-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] efcbb3f2b6bc99ff9bbc3c1aea58c8ab38cd63c6
[INFO] checking yuntongf/bittorrent-rust against a5689b034ad287112f709693384a37f1377eb9cc for pr-129249-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyuntongf%2Fbittorrent-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/yuntongf/bittorrent-rust
[INFO] finished tweaking git repo https://github.com/yuntongf/bittorrent-rust
[INFO] tweaked toml for git repo https://github.com/yuntongf/bittorrent-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/yuntongf/bittorrent-rust on toolchain a5689b034ad287112f709693384a37f1377eb9cc
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/yuntongf/bittorrent-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 77659bbaf3f721d5ff24d724ae772a462a044457cd4123622ff06aa073160c8f
[INFO] running `Command { std: "docker" "start" "77659bbaf3f721d5ff24d724ae772a462a044457cd4123622ff06aa073160c8f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "77659bbaf3f721d5ff24d724ae772a462a044457cd4123622ff06aa073160c8f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "77659bbaf3f721d5ff24d724ae772a462a044457cd4123622ff06aa073160c8f" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "77659bbaf3f721d5ff24d724ae772a462a044457cd4123622ff06aa073160c8f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "77659bbaf3f721d5ff24d724ae772a462a044457cd4123622ff06aa073160c8f" "/opt/rustwide/cargo-home/bin/cargo" "+a5689b034ad287112f709693384a37f1377eb9cc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.161
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]    Compiling syn v2.0.87
[INFO] [stderr]    Compiling cc v1.1.34
[INFO] [stderr]     Checking bytes v1.8.0
[INFO] [stderr]    Compiling serde v1.0.214
[INFO] [stderr]     Checking indexmap v2.6.0
[INFO] [stderr]     Checking tracing v0.1.40
[INFO] [stderr]    Compiling serde_json v1.0.132
[INFO] [stderr]    Compiling rustix v0.38.39
[INFO] [stderr]    Compiling thiserror v1.0.68
[INFO] [stderr]     Checking linux-raw-sys v0.4.14
[INFO] [stderr]    Compiling anyhow v1.0.92
[INFO] [stderr]     Checking clap_lex v0.7.2
[INFO] [stderr]     Checking http v0.2.12
[INFO] [stderr]     Checking rustls-pemfile v1.0.4
[INFO] [stderr]     Checking clap_builder v4.5.20
[INFO] [stderr]     Checking regex-automata v0.4.8
[INFO] [stderr]     Checking fastrand v2.1.1
[INFO] [stderr]     Checking parking_lot_core v0.9.10
[INFO] [stderr]     Checking parking_lot v0.12.3
[INFO] [stderr]     Checking socket2 v0.5.7
[INFO] [stderr]     Checking signal-hook-registry v1.4.2
[INFO] [stderr]     Checking mio v1.0.2
[INFO] [stderr]     Checking http-body v0.4.6
[INFO] [stderr]     Checking cpufeatures v0.2.14
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]    Compiling openssl-sys v0.9.104
[INFO] [stderr]    Compiling openssl v0.10.68
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]     Checking tempfile v3.13.0
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]    Compiling synstructure v0.13.1
[INFO] [stderr]    Compiling zerofrom-derive v0.1.4
[INFO] [stderr]    Compiling yoke-derive v0.7.4
[INFO] [stderr]    Compiling zerovec-derive v0.10.3
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling icu_provider_macros v1.5.0
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling serde_derive v1.0.214
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.68
[INFO] [stderr]     Checking tokio v1.41.0
[INFO] [stderr]     Checking futures-util v0.3.31
[INFO] [stderr]    Compiling clap_derive v4.5.18
[INFO] [stderr]     Checking zerofrom v0.1.4
[INFO] [stderr]     Checking yoke v0.7.4
[INFO] [stderr]     Checking zerovec v0.10.4
[INFO] [stderr]     Checking tinystr v0.7.6
[INFO] [stderr]     Checking icu_locid v1.5.0
[INFO] [stderr]     Checking icu_collections v1.5.0
[INFO] [stderr]     Checking clap v4.5.20
[INFO] [stderr]     Checking icu_provider v1.5.0
[INFO] [stderr]     Checking icu_locid_transform v1.5.0
[INFO] [stderr]     Checking icu_properties v1.5.1
[INFO] [stderr]     Checking futures-executor v0.3.31
[INFO] [stderr]     Checking futures v0.3.31
[INFO] [stderr]     Checking tokio-util v0.7.12
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking h2 v0.3.26
[INFO] [stderr]     Checking icu_normalizer v1.5.0
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking serde_bytes v0.11.15
[INFO] [stderr]     Checking serde_bencode v0.2.4
[INFO] [stderr]     Checking idna_adapter v1.2.0
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking url v2.5.3
[INFO] [stderr]     Checking hyper v0.14.31
[INFO] [stderr]     Checking hyper-tls v0.5.0
[INFO] [stderr]     Checking reqwest v0.11.27
[INFO] [stderr]     Checking codecrafters-bittorrent v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::fs::Metadata`
[INFO] [stdout]  --> src/peer.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::Metadata;
[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: `encode`
[INFO] [stdout]  --> src/peer.rs:9:26
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::codec::{self, encode};
[INFO] [stdout]   |                          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils`
[INFO] [stdout]   --> src/peer.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::utils;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::Metadata`
[INFO] [stdout]  --> src/peer.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::fs::Metadata;
[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: `encode`
[INFO] [stdout]  --> src/peer.rs:9:26
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::codec::{self, encode};
[INFO] [stdout]   |                          ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::utils`
[INFO] [stdout]   --> src/peer.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use crate::utils;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::Write`
[INFO] [stdout]  --> src/handlers.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::Write;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `extension` is never read
[INFO] [stdout]   --> src/peer.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct Peer {
[INFO] [stdout]    |            ---- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 21 |     extension: [u8; 8],
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_bytes` is never used
[INFO] [stdout]  --> src/utils.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub fn print_bytes(bytes: &[u8]) {
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `i64`
[INFO] [stdout]   --> src/codec.rs:72:25
[INFO] [stdout]    |
[INFO] [stdout] 72 |         Ok(Data::Number(num.into()))
[INFO] [stdout]    |                         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]    = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]    |
[INFO] [stdout] 72 -         Ok(Data::Number(num.into()))
[INFO] [stdout] 72 +         Ok(Data::Number(num))
[INFO] [stdout]    |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]    |
[INFO] [stdout] 72 -         Ok(Data::Number(num.into()))
[INFO] [stdout] 72 +         Ok(Data::Number(<i64 as Into<_>>::into(num)))
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 8]`
[INFO] [stdout]    --> src/handlers.rs:207:35
[INFO] [stdout]     |
[INFO] [stdout] 207 |     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 207 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 207 +     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 207 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 207 +     let reserved_bytes: [u8; 8] = <[u8; 8] as Into<_>>::into(((1 << 20) as u64).to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 8]`
[INFO] [stdout]    --> src/handlers.rs:252:35
[INFO] [stdout]     |
[INFO] [stdout] 252 |     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 252 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 252 +     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 252 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 252 +     let reserved_bytes: [u8; 8] = <[u8; 8] as Into<_>>::into(((1 << 20) as u64).to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 8]`
[INFO] [stdout]    --> src/handlers.rs:306:35
[INFO] [stdout]     |
[INFO] [stdout] 306 |     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 306 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 306 +     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 306 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 306 +     let reserved_bytes: [u8; 8] = <[u8; 8] as Into<_>>::into(((1 << 20) as u64).to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 8]`
[INFO] [stdout]    --> src/handlers.rs:360:35
[INFO] [stdout]     |
[INFO] [stdout] 360 |     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 360 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 360 +     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 360 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 360 +     let reserved_bytes: [u8; 8] = <[u8; 8] as Into<_>>::into(((1 << 20) as u64).to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 4]`
[INFO] [stdout]    --> src/peer.rs:194:38
[INFO] [stdout]     |
[INFO] [stdout] 194 |         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 194 -         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout] 194 +         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 194 -         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout] 194 +         let msg_len_bytes: [u8; 4] = <[u8; 4] as Into<_>>::into(msg_len.to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 4]`
[INFO] [stdout]    --> src/peer.rs:223:38
[INFO] [stdout]     |
[INFO] [stdout] 223 |         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 223 -         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout] 223 +         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 223 -         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout] 223 +         let msg_len_bytes: [u8; 4] = <[u8; 4] as Into<_>>::into(msg_len.to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `codecrafters-bittorrent` (bin "codecrafters-bittorrent" test) due to 7 previous errors; 6 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused import: `std::io::Write`
[INFO] [stdout]  --> src/handlers.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::Write;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `extension` is never read
[INFO] [stdout]   --> src/peer.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | pub struct Peer {
[INFO] [stdout]    |            ---- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 21 |     extension: [u8; 8],
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_bytes` is never used
[INFO] [stdout]  --> src/utils.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub fn print_bytes(bytes: &[u8]) {
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `i64`
[INFO] [stdout]   --> src/codec.rs:72:25
[INFO] [stdout]    |
[INFO] [stdout] 72 |         Ok(Data::Number(num.into()))
[INFO] [stdout]    |                         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout]    = note: `#[deny(self_type_conversion)]` on by default
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]    |
[INFO] [stdout] 72 -         Ok(Data::Number(num.into()))
[INFO] [stdout] 72 +         Ok(Data::Number(num))
[INFO] [stdout]    |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]    |
[INFO] [stdout] 72 -         Ok(Data::Number(num.into()))
[INFO] [stdout] 72 +         Ok(Data::Number(<i64 as Into<_>>::into(num)))
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 8]`
[INFO] [stdout]    --> src/handlers.rs:207:35
[INFO] [stdout]     |
[INFO] [stdout] 207 |     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 207 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 207 +     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 207 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 207 +     let reserved_bytes: [u8; 8] = <[u8; 8] as Into<_>>::into(((1 << 20) as u64).to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 8]`
[INFO] [stdout]    --> src/handlers.rs:252:35
[INFO] [stdout]     |
[INFO] [stdout] 252 |     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 252 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 252 +     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 252 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 252 +     let reserved_bytes: [u8; 8] = <[u8; 8] as Into<_>>::into(((1 << 20) as u64).to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 8]`
[INFO] [stdout]    --> src/handlers.rs:306:35
[INFO] [stdout]     |
[INFO] [stdout] 306 |     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 306 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 306 +     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 306 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 306 +     let reserved_bytes: [u8; 8] = <[u8; 8] as Into<_>>::into(((1 << 20) as u64).to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 8]`
[INFO] [stdout]    --> src/handlers.rs:360:35
[INFO] [stdout]     |
[INFO] [stdout] 360 |     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 360 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 360 +     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 360 -     let reserved_bytes: [u8; 8] = ((1 << 20) as u64).to_be_bytes().into();
[INFO] [stdout] 360 +     let reserved_bytes: [u8; 8] = <[u8; 8] as Into<_>>::into(((1 << 20) as u64).to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 4]`
[INFO] [stdout]    --> src/peer.rs:194:38
[INFO] [stdout]     |
[INFO] [stdout] 194 |         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 194 -         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout] 194 +         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 194 -         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout] 194 +         let msg_len_bytes: [u8; 4] = <[u8; 4] as Into<_>>::into(msg_len.to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: useless conversion to the same type: `[u8; 4]`
[INFO] [stdout]    --> src/peer.rs:223:38
[INFO] [stdout]     |
[INFO] [stdout] 223 |         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout]     |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this method call relies on the `impl<T> Into<T> for T` blanket implementation and type inference, which is a semver hazard as a new `impl Into<_>` that affects your type might be added in the future causing type inference errors
[INFO] [stdout] help: consider removing the conversion call
[INFO] [stdout]     |
[INFO] [stdout] 223 -         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout] 223 +         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes();
[INFO] [stdout]     |
[INFO] [stdout] help: you can use the fully-qualified path to avoid triggering this lint
[INFO] [stdout]     |
[INFO] [stdout] 223 -         let msg_len_bytes: [u8; 4] = msg_len.to_be_bytes().into();
[INFO] [stdout] 223 +         let msg_len_bytes: [u8; 4] = <[u8; 4] as Into<_>>::into(msg_len.to_be_bytes());
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `codecrafters-bittorrent` (bin "codecrafters-bittorrent") due to 7 previous errors; 6 warnings emitted
[INFO] [stderr] warning: unused dependency `regex`
[INFO] [stderr]  --> Cargo.toml:6:1
[INFO] [stderr]   |
[INFO] [stderr] 6 | regex = "1"
[INFO] [stderr]   | ^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `regex`
[INFO] [stderr] warning: unused dependency `serde_bencode`
[INFO] [stderr]  --> Cargo.toml:7:1
[INFO] [stderr]   |
[INFO] [stderr] 7 | serde_bencode = "0.2.3"
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr] help: consider removing the dependency on `serde_bencode`
[INFO] [stderr] warning: unused dependency `tempfile`
[INFO] [stderr]   --> Cargo.toml:12:1
[INFO] [stderr]    |
[INFO] [stderr] 12 | tempfile = "3"
[INFO] [stderr]    | ^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: consider removing the dependency on `tempfile`
[INFO] [stderr] warning: unused dependency `thiserror`
[INFO] [stderr]   --> Cargo.toml:13:1
[INFO] [stderr]    |
[INFO] [stderr] 13 | thiserror = "1.0.38"
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] help: consider removing the dependency on `thiserror`
[INFO] [stderr] warning: `codecrafters-bittorrent` (manifest) generated 4 warnings
[INFO] running `Command { std: "docker" "inspect" "77659bbaf3f721d5ff24d724ae772a462a044457cd4123622ff06aa073160c8f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "77659bbaf3f721d5ff24d724ae772a462a044457cd4123622ff06aa073160c8f", kill_on_drop: false }`
[INFO] [stdout] 77659bbaf3f721d5ff24d724ae772a462a044457cd4123622ff06aa073160c8f
