[INFO] cloning repository https://github.com/FelipeDinnouti/rust-http-server
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FelipeDinnouti/rust-http-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFelipeDinnouti%2Frust-http-server", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFelipeDinnouti%2Frust-http-server'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 2868321b7242ab7a7c2ad9bfdc0046f6e9bc86de
[INFO] checking FelipeDinnouti/rust-http-server against try#5f6abd89da253a562ad85d235b9342a3ac336c28 for pr-156114
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFelipeDinnouti%2Frust-http-server" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/FelipeDinnouti/rust-http-server
[INFO] finished tweaking git repo https://github.com/FelipeDinnouti/rust-http-server
[INFO] tweaked toml for git repo https://github.com/FelipeDinnouti/rust-http-server written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/FelipeDinnouti/rust-http-server on toolchain 5f6abd89da253a562ad85d235b9342a3ac336c28
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5f6abd89da253a562ad85d235b9342a3ac336c28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/FelipeDinnouti/rust-http-server 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" "+5f6abd89da253a562ad85d235b9342a3ac336c28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+5f6abd89da253a562ad85d235b9342a3ac336c28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6ee9d997fc66f2dd4f58b621366e61c13e4f607012d9b9e378f40c36b276e944
[INFO] running `Command { std: "docker" "start" "-a" "6ee9d997fc66f2dd4f58b621366e61c13e4f607012d9b9e378f40c36b276e944", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6ee9d997fc66f2dd4f58b621366e61c13e4f607012d9b9e378f40c36b276e944", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6ee9d997fc66f2dd4f58b621366e61c13e4f607012d9b9e378f40c36b276e944", kill_on_drop: false }`
[INFO] [stdout] 6ee9d997fc66f2dd4f58b621366e61c13e4f607012d9b9e378f40c36b276e944
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+5f6abd89da253a562ad85d235b9342a3ac336c28" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6c7dcc7f62c3512138df6d8d2b2642277e4d9d33ec7b5fa186a5c8972a72ff57
[INFO] running `Command { std: "docker" "start" "-a" "6c7dcc7f62c3512138df6d8d2b2642277e4d9d33ec7b5fa186a5c8972a72ff57", kill_on_drop: false }`
[INFO] [stderr]     Checking rust-http-server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `Arc` and `Mutex`
[INFO] [stdout]  --> src/threadpool/mod.rs:1:17
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::{Arc, Mutex};
[INFO] [stdout]   |                 ^^^  ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc`, `AtomicBool`, and `Ordering`
[INFO] [stdout]  --> src/cli_listener/mod.rs:1:30
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{io::{self}, sync::{Arc, atomic::{AtomicBool, Ordering}}};
[INFO] [stdout]   |                              ^^^           ^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Receiver`, `select`, and `unbounded`
[INFO] [stdout]  --> src/cli_listener/mod.rs:3:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crossbeam_channel::{select, unbounded, Receiver};
[INFO] [stdout]   |                         ^^^^^^  ^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc` and `Mutex`
[INFO] [stdout]  --> src/threadpool/mod.rs:1:17
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::{Arc, Mutex};
[INFO] [stdout]   |                 ^^^  ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc`, `AtomicBool`, and `Ordering`
[INFO] [stdout]  --> src/cli_listener/mod.rs:1:30
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{io::{self}, sync::{Arc, atomic::{AtomicBool, Ordering}}};
[INFO] [stdout]   |                              ^^^           ^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Receiver`, `select`, and `unbounded`
[INFO] [stdout]  --> src/cli_listener/mod.rs:3:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crossbeam_channel::{select, unbounded, Receiver};
[INFO] [stdout]   |                         ^^^^^^  ^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]   --> src/threadpool/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 60 | struct Worker {
[INFO] [stdout]    |        ------ field in this struct
[INFO] [stdout] 61 |     id: usize,
[INFO] [stdout]    |     ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]   --> src/threadpool/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 60 | struct Worker {
[INFO] [stdout]    |        ------ field in this struct
[INFO] [stdout] 61 |     id: usize,
[INFO] [stdout]    |     ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/cli_listener/mod.rs:28:21
[INFO] [stdout]    |
[INFO] [stdout] 28 |                     shutdown_tx.send(0);
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 28 |                     let _ = shutdown_tx.send(0);
[INFO] [stdout]    |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/cli_listener/mod.rs:28:21
[INFO] [stdout]    |
[INFO] [stdout] 28 |                     shutdown_tx.send(0);
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 28 |                     let _ = shutdown_tx.send(0);
[INFO] [stdout]    |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc`, `AtomicBool`, and `Ordering`
[INFO] [stdout]  --> src/main.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::sync::{Arc, atomic::{AtomicBool, Ordering}};
[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: `Receiver`
[INFO] [stdout]  --> src/main.rs:5:44
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crossbeam_channel::{select, unbounded, Receiver};
[INFO] [stdout]   |                                            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc`, `AtomicBool`, and `Ordering`
[INFO] [stdout]  --> src/cli_listener/mod.rs:1:30
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{io::{self}, sync::{Arc, atomic::{AtomicBool, Ordering}}};
[INFO] [stdout]   |                              ^^^           ^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Receiver`, `select`, and `unbounded`
[INFO] [stdout]  --> src/cli_listener/mod.rs:3:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crossbeam_channel::{select, unbounded, Receiver};
[INFO] [stdout]   |                         ^^^^^^  ^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc` and `Mutex`
[INFO] [stdout]  --> src/threadpool/mod.rs:1:17
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::{Arc, Mutex};
[INFO] [stdout]   |                 ^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Handler`
[INFO] [stdout]   --> src/main.rs:15:15
[INFO] [stdout]    |
[INFO] [stdout] 15 | use routing::{Handler, Router};
[INFO] [stdout]    |               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:80:9
[INFO] [stdout]    |
[INFO] [stdout] 80 |     let mut server = Server::new();
[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: `request`
[INFO] [stdout]   --> src/main.rs:92:9
[INFO] [stdout]    |
[INFO] [stdout] 92 |     let request: Request = Request::new(&buffer[0..size].to_vec());
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `router` is never read
[INFO] [stdout]   --> src/main.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub struct Server {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 18 |     router: Router,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]   --> src/threadpool/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 60 | struct Worker {
[INFO] [stdout]    |        ------ field in this struct
[INFO] [stdout] 61 |     id: usize,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `method`, `path`, `query`, `version`, `headers`, and `body` are never read
[INFO] [stdout]   --> src/http_structure/mod.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub struct Request {
[INFO] [stdout]    |            ------- fields in this struct
[INFO] [stdout] 28 |     pub method: Method,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 29 |     pub path: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 30 |     pub query: Query,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 31 |     pub version: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 32 |     pub headers: Headers,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 33 |     pub body: Vec<u8>
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Response` is never constructed
[INFO] [stdout]   --> src/http_structure/mod.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub struct Response {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_bytes` is never used
[INFO] [stdout]   --> src/http_structure/mod.rs:98:12
[INFO] [stdout]    |
[INFO] [stdout] 97 | impl Response {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] 98 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `handle` is never used
[INFO] [stdout]  --> src/routing/mod.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub trait Handler: Send + Sync + 'static {
[INFO] [stdout]   |           ------- method in this trait
[INFO] [stdout] 6 |     fn handle(&self, req: Request) -> Response;
[INFO] [stdout]   |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `routes` is never read
[INFO] [stdout]   --> src/routing/mod.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct Router {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 20 |     routes: HashMap<String, Box<dyn Handler>>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `register` and `route` are never used
[INFO] [stdout]   --> src/routing/mod.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Router {
[INFO] [stdout]    | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 31 |     pub fn register(&mut self, path: impl Into<String>, handler: impl Handler) {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn route(&self, path: &str) -> Option<&dyn Handler> {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/cli_listener/mod.rs:28:21
[INFO] [stdout]    |
[INFO] [stdout] 28 |                     shutdown_tx.send(0);
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 28 |                     let _ = shutdown_tx.send(0);
[INFO] [stdout]    |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc`, `AtomicBool`, and `Ordering`
[INFO] [stdout]  --> src/main.rs:3:17
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::sync::{Arc, atomic::{AtomicBool, Ordering}};
[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: `Receiver`
[INFO] [stdout]  --> src/main.rs:5:44
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crossbeam_channel::{select, unbounded, Receiver};
[INFO] [stdout]   |                                            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc`, `AtomicBool`, and `Ordering`
[INFO] [stdout]  --> src/cli_listener/mod.rs:1:30
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::{io::{self}, sync::{Arc, atomic::{AtomicBool, Ordering}}};
[INFO] [stdout]   |                              ^^^           ^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Receiver`, `select`, and `unbounded`
[INFO] [stdout]  --> src/cli_listener/mod.rs:3:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crossbeam_channel::{select, unbounded, Receiver};
[INFO] [stdout]   |                         ^^^^^^  ^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Arc` and `Mutex`
[INFO] [stdout]  --> src/threadpool/mod.rs:1:17
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::{Arc, Mutex};
[INFO] [stdout]   |                 ^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Handler`
[INFO] [stdout]   --> src/main.rs:15:15
[INFO] [stdout]    |
[INFO] [stdout] 15 | use routing::{Handler, Router};
[INFO] [stdout]    |               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:80:9
[INFO] [stdout]    |
[INFO] [stdout] 80 |     let mut server = Server::new();
[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: `request`
[INFO] [stdout]   --> src/main.rs:92:9
[INFO] [stdout]    |
[INFO] [stdout] 92 |     let request: Request = Request::new(&buffer[0..size].to_vec());
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `router` is never read
[INFO] [stdout]   --> src/main.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub struct Server {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 18 |     router: Router,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]   --> src/threadpool/mod.rs:61:5
[INFO] [stdout]    |
[INFO] [stdout] 60 | struct Worker {
[INFO] [stdout]    |        ------ field in this struct
[INFO] [stdout] 61 |     id: usize,
[INFO] [stdout]    |     ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `method`, `path`, `query`, `version`, `headers`, and `body` are never read
[INFO] [stdout]   --> src/http_structure/mod.rs:28:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub struct Request {
[INFO] [stdout]    |            ------- fields in this struct
[INFO] [stdout] 28 |     pub method: Method,
[INFO] [stdout]    |         ^^^^^^
[INFO] [stdout] 29 |     pub path: String,
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 30 |     pub query: Query,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 31 |     pub version: String,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 32 |     pub headers: Headers,
[INFO] [stdout]    |         ^^^^^^^
[INFO] [stdout] 33 |     pub body: Vec<u8>
[INFO] [stdout]    |         ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Response` is never constructed
[INFO] [stdout]   --> src/http_structure/mod.rs:36:12
[INFO] [stdout]    |
[INFO] [stdout] 36 | pub struct Response {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_bytes` is never used
[INFO] [stdout]   --> src/http_structure/mod.rs:98:12
[INFO] [stdout]    |
[INFO] [stdout] 97 | impl Response {
[INFO] [stdout]    | ------------- method in this implementation
[INFO] [stdout] 98 |     pub fn to_bytes(&self) -> Vec<u8> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `handle` is never used
[INFO] [stdout]  --> src/routing/mod.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub trait Handler: Send + Sync + 'static {
[INFO] [stdout]   |           ------- method in this trait
[INFO] [stdout] 6 |     fn handle(&self, req: Request) -> Response;
[INFO] [stdout]   |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `routes` is never read
[INFO] [stdout]   --> src/routing/mod.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | pub struct Router {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 20 |     routes: HashMap<String, Box<dyn Handler>>,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `register` and `route` are never used
[INFO] [stdout]   --> src/routing/mod.rs:31:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Router {
[INFO] [stdout]    | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 31 |     pub fn register(&mut self, path: impl Into<String>, handler: impl Handler) {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |     pub fn route(&self, path: &str) -> Option<&dyn Handler> {
[INFO] [stdout]    |            ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/cli_listener/mod.rs:28:21
[INFO] [stdout]    |
[INFO] [stdout] 28 |                     shutdown_tx.send(0);
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 28 |                     let _ = shutdown_tx.send(0);
[INFO] [stdout]    |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.56s
[INFO] running `Command { std: "docker" "inspect" "6c7dcc7f62c3512138df6d8d2b2642277e4d9d33ec7b5fa186a5c8972a72ff57", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6c7dcc7f62c3512138df6d8d2b2642277e4d9d33ec7b5fa186a5c8972a72ff57", kill_on_drop: false }`
[INFO] [stdout] 6c7dcc7f62c3512138df6d8d2b2642277e4d9d33ec7b5fa186a5c8972a72ff57
