[INFO] cloning repository https://github.com/AbhilashG12/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/AbhilashG12/http_server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAbhilashG12%2Fhttp_server", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAbhilashG12%2Fhttp_server'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] bb23421483273bbbb540188f289852e68034c475
[INFO] checking AbhilashG12/http_server against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAbhilashG12%2Fhttp_server" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/AbhilashG12/http_server
[INFO] finished tweaking git repo https://github.com/AbhilashG12/http_server
[INFO] tweaked toml for git repo https://github.com/AbhilashG12/http_server written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AbhilashG12/http_server on toolchain eca445e5ae4a6679cc27d3a09106ce245e13a5a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AbhilashG12/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" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: binary `Http_Server` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /workspace/builds/worker-0-tc1/source/target/.../Http_Server
[INFO] [stderr]    |                                                  ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::non_kebab_case_bins` is set to `warn` by default
[INFO] [stderr] help: to change the binary name to `http-server`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:14:8
[INFO] [stderr]    |
[INFO] [stderr] 14 - name = "Http_Server"
[INFO] [stderr] 14 + name = "http-server"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `http-server`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:15:19
[INFO] [stderr]    |
[INFO] [stderr] 15 ~ version = "0.1.0"
[INFO] [stderr] 16 + [[bin]]
[INFO] [stderr] 17 + name = "http-server"
[INFO] [stderr] 18 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `Http_Server` (manifest) generated 1 warning
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 80fae8bb1bbeca53aa6a4d84753ed0f85893e9f7aca0e5a7a8775212de30a4ea
[INFO] running `Command { std: "docker" "start" "80fae8bb1bbeca53aa6a4d84753ed0f85893e9f7aca0e5a7a8775212de30a4ea", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "80fae8bb1bbeca53aa6a4d84753ed0f85893e9f7aca0e5a7a8775212de30a4ea", 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" "80fae8bb1bbeca53aa6a4d84753ed0f85893e9f7aca0e5a7a8775212de30a4ea" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "80fae8bb1bbeca53aa6a4d84753ed0f85893e9f7aca0e5a7a8775212de30a4ea", 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" "80fae8bb1bbeca53aa6a4d84753ed0f85893e9f7aca0e5a7a8775212de30a4ea" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: binary `Http_Server` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /opt/rustwide/target/.../Http_Server
[INFO] [stderr]    |                          ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::non_kebab_case_bins` is set to `warn` by default
[INFO] [stderr] help: to change the binary name to `http-server`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:14:8
[INFO] [stderr]    |
[INFO] [stderr] 14 - name = "Http_Server"
[INFO] [stderr] 14 + name = "http-server"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `http-server`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:15:19
[INFO] [stderr]    |
[INFO] [stderr] 15 ~ version = "0.1.0"
[INFO] [stderr] 16 + [[bin]]
[INFO] [stderr] 17 + name = "http-server"
[INFO] [stderr] 18 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `Http_Server` (manifest) generated 1 warning
[INFO] [stderr]    Compiling libc v0.2.186
[INFO] [stderr]    Compiling quote v1.0.46
[INFO] [stderr]     Checking bitflags v2.13.0
[INFO] [stderr]    Compiling nix v0.31.3
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling getrandom v0.4.3
[INFO] [stderr]    Compiling rustix v1.1.4
[INFO] [stderr]    Compiling serde_json v1.0.150
[INFO] [stderr]     Checking memchr v2.8.2
[INFO] [stderr]     Checking linux-raw-sys v0.12.1
[INFO] [stderr]     Checking dotenv v0.15.0
[INFO] [stderr]     Checking fastrand v2.4.1
[INFO] [stderr]     Checking once_cell v1.21.4
[INFO] [stderr]    Compiling syn v2.0.118
[INFO] [stderr]     Checking urlencoding v2.1.3
[INFO] [stderr]     Checking num_cpus v1.17.0
[INFO] [stderr]     Checking tempfile v3.27.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]     Checking ctrlc v3.5.2
[INFO] [stderr]     Checking thiserror v1.0.69
[INFO] [stderr]     Checking Http_Server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Read`
[INFO] [stdout]  --> src/handler/static_handler.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{self, Read};
[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: `ServerResult`
[INFO] [stdout]  --> src/handler/error.rs:3:32
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::error::{ServerError,ServerResult};
[INFO] [stdout]   |                                ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::handler::StaticFileHandler`
[INFO] [stdout]  --> src/handler/error.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::handler::StaticFileHandler;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `response_helpers::*`
[INFO] [stdout]    --> src/http/response.rs:218:9
[INFO] [stdout]     |
[INFO] [stdout] 218 | pub use response_helpers::*;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ok` should have an upper camel case name
[INFO] [stdout]  --> src/http/status.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     ok = 200,
[INFO] [stdout]   |     ^^ help: convert the identifier to upper camel case (notice the capitalization): `Ok`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mime::MimeTypes`
[INFO] [stdout]  --> src/utils/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use mime::MimeTypes;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `PathError` and `PathSanitizer`
[INFO] [stdout]  --> src/utils/mod.rs:4:16
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub use path::{PathSanitizer, PathError};
[INFO] [stdout]   |                ^^^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/main.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Read`
[INFO] [stdout]  --> src/handler/static_handler.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{self, Read};
[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: `ServerResult`
[INFO] [stdout]  --> src/handler/error.rs:3:32
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::error::{ServerError,ServerResult};
[INFO] [stdout]   |                                ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::handler::StaticFileHandler`
[INFO] [stdout]  --> src/handler/error.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::handler::StaticFileHandler;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `response_helpers::*`
[INFO] [stdout]    --> src/http/response.rs:218:9
[INFO] [stdout]     |
[INFO] [stdout] 218 | pub use response_helpers::*;
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `ok` should have an upper camel case name
[INFO] [stdout]  --> src/http/status.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     ok = 200,
[INFO] [stdout]   |     ^^ help: convert the identifier to upper camel case (notice the capitalization): `Ok`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `mime::MimeTypes`
[INFO] [stdout]  --> src/utils/mod.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub use mime::MimeTypes;
[INFO] [stdout]   |         ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `PathError` and `PathSanitizer`
[INFO] [stdout]  --> src/utils/mod.rs:4:16
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub use path::{PathSanitizer, PathError};
[INFO] [stdout]   |                ^^^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/main.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/server/thread_pool.rs:118:13
[INFO] [stdout]     |
[INFO] [stdout] 102 | /             loop{
[INFO] [stdout] 103 | |                 let job={
[INFO] [stdout] 104 | |                     let receiver_guard = receiver.lock().unwrap();
[INFO] [stdout] 105 | |                     receiver_guard.recv()
[INFO] [stdout] ...   |
[INFO] [stdout] 117 | |             }
[INFO] [stdout]     | |_____________- any code following this expression is unreachable
[INFO] [stdout] 118 |               println!("Worker thread stopped {}",id);
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/server/thread_pool.rs:118:13
[INFO] [stdout]     |
[INFO] [stdout] 102 | /             loop{
[INFO] [stdout] 103 | |                 let job={
[INFO] [stdout] 104 | |                     let receiver_guard = receiver.lock().unwrap();
[INFO] [stdout] 105 | |                     receiver_guard.recv()
[INFO] [stdout] ...   |
[INFO] [stdout] 117 | |             }
[INFO] [stdout]     | |_____________- any code following this expression is unreachable
[INFO] [stdout] 118 |               println!("Worker thread stopped {}",id);
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/http/request.rs:119:26
[INFO] [stdout]     |
[INFO] [stdout] 119 |     pub fn parse_request(mut stream: &mut TcpStream) -> Result<HttpRequest,io::Error> {
[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]    --> src/http/request.rs:119:26
[INFO] [stdout]     |
[INFO] [stdout] 119 |     pub fn parse_request(mut stream: &mut TcpStream) -> Result<HttpRequest,io::Error> {
[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: variants `Shutdown` and `PermissionDenied` are never constructed
[INFO] [stdout]   --> src/error.rs:42:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub enum ServerError {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 42 |     Shutdown,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 |     PermissionDenied(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ServerError` 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: trait `IntoServerResult` is never used
[INFO] [stdout]    --> src/error.rs:197:11
[INFO] [stdout]     |
[INFO] [stdout] 197 | pub trait IntoServerResult<T> {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `root_dir` is never read
[INFO] [stdout]   --> src/handler/static_handler.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct StaticFileHandler {
[INFO] [stdout]    |            ----------------- field in this struct
[INFO] [stdout] 12 |     root_dir: PathBuf,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `StaticFileHandler` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `handle_request`, `file_exists`, and `get_mime_type` are never used
[INFO] [stdout]    --> src/handler/static_handler.rs:104:12
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl StaticFileHandler {
[INFO] [stdout]     | ---------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 104 |     pub fn handle_request(&self, url_path: &str) -> HttpResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 119 |     pub fn file_exists(&self, url_path: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 126 |     pub fn get_mime_type(&self, url_path: &str) -> Option<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_http_response` is never used
[INFO] [stdout]    --> src/handler/static_handler.rs:162:12
[INFO] [stdout]     |
[INFO] [stdout] 160 | impl StaticFileError {
[INFO] [stdout]     | -------------------- method in this implementation
[INFO] [stdout] 161 |     /// Converts the error to an HTTP response with correct status codes
[INFO] [stdout] 162 |     pub fn to_http_response(&self) -> HttpResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `not_found`, `internal_error`, `permission_denied`, `handle_io_error`, and `error_page` are never used
[INFO] [stdout]   --> src/handler/error.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl ErrorHandler {
[INFO] [stdout]    | ----------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 29 |     pub fn not_found(&self, message: impl Into<String>) -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub fn internal_error(&self, message: impl Into<String>) -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn permission_denied(&self, message: impl Into<String>) -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn handle_io_error(&self, error: io::Error) -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn error_page(title: &str, message: &str, code: u16) -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_static_error` is never used
[INFO] [stdout]    --> src/handler/error.rs:142:8
[INFO] [stdout]     |
[INFO] [stdout] 142 | pub fn handle_static_error(error:StaticFileError) -> HttpResponse {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_post`, `is_get`, `get_header`, and `content_length` are never used
[INFO] [stdout]   --> src/http/request.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl HttpRequest {
[INFO] [stdout]    | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub fn is_post(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 87 |     pub fn is_get(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 90 |     pub fn get_header(&self,key:&str) -> Option<&String> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 |     pub fn content_length(&self) -> Option<usize> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/http/response.rs:38:12
[INFO] [stdout]     |
[INFO] [stdout]  14 | impl HttpResponse {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  38 |     pub fn not_found() -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  48 |     pub fn bad_request() -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  58 |     pub fn internal_error() -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  86 |     pub fn header(mut self, key: impl Into<String>, value: impl Into<String>) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  92 |     pub fn headers(mut self, headers: HashMap<String, String>) -> Self {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 157 |     pub fn send_hello(stream: &mut TcpStream) -> io::Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub fn send_json(stream: &mut TcpStream, data: &str) -> io::Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 171 |     pub fn send_html(stream: &mut TcpStream, html: &str) -> io::Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `html_page` is never used
[INFO] [stdout]    --> src/http/response.rs:189:12
[INFO] [stdout]     |
[INFO] [stdout] 189 |     pub fn html_page(title: &str, content: &str) -> HttpResponse {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `json_error` is never used
[INFO] [stdout]    --> src/http/response.rs:211:12
[INFO] [stdout]     |
[INFO] [stdout] 211 |     pub fn json_error(message: &str, status: HttpStatus) -> HttpResponse {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]   --> src/http/status.rs:5:5
[INFO] [stdout]    |
[INFO] [stdout]  4 | pub enum HttpStatus {
[INFO] [stdout]    |          ---------- variants in this enum
[INFO] [stdout]  5 |     Continue = 100,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]  6 |     SwitchingProtocols = 101,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  9 |     Accepted = 202,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 10 |     NoContent = 204,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 11 |     MovedPermanently = 301,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     Found = 302,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 13 |     SeeOther = 303,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 14 |     NotModified = 304,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 15 |     TemporaryRedirect = 307,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |     PermanentRedirect = 308,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     BadRequest = 400,
[INFO] [stdout] 18 |     Unauthorized = 401,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 21 |     MethodNotAllowed = 405,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 22 |     RequestTimeout = 408,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 23 |     Conflict = 409,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 24 |     PayloadTooLarge = 413,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 25 |     UriTooLong = 414,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 26 |     UnsupportedMediaType = 415,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 27 |     TooManyRequests = 429,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 28 |     InternalServerError = 500,
[INFO] [stdout] 29 |     NotImplemented = 501,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 30 |     BadGateway = 502,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 31 |     ServiceUnavailable = 503,
[INFO] [stdout] 32 |     GatewayTimeout = 504,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HttpStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `Shutdown` and `PermissionDenied` are never constructed
[INFO] [stdout]   --> src/error.rs:42:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub enum ServerError {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] ...
[INFO] [stdout] 42 |     Shutdown,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 |     PermissionDenied(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ServerError` 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: associated items `from_code`, `is_informational`, `is_success`, `is_redirection`, `is_client_error`, and `is_server_error` are never used
[INFO] [stdout]    --> src/http/status.rs:77:12
[INFO] [stdout]     |
[INFO] [stdout]  35 | impl HttpStatus {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  77 |     pub fn from_code(code: u16) -> Option<Self> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub fn is_informational(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |     pub fn is_success(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 121 |     pub fn is_redirection(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 126 |     pub fn is_client_error(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 131 |     pub fn is_server_error(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `OK` is never used
[INFO] [stdout]    --> src/http/status.rs:147:15
[INFO] [stdout]     |
[INFO] [stdout] 147 |     pub const OK: HttpStatus = HttpStatus::ok;
[INFO] [stdout]     |               ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CREATED` is never used
[INFO] [stdout]    --> src/http/status.rs:148:15
[INFO] [stdout]     |
[INFO] [stdout] 148 |     pub const CREATED: HttpStatus = HttpStatus::Created;
[INFO] [stdout]     |               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BAD_REQUEST` is never used
[INFO] [stdout]    --> src/http/status.rs:149:15
[INFO] [stdout]     |
[INFO] [stdout] 149 |     pub const BAD_REQUEST: HttpStatus = HttpStatus::BadRequest;
[INFO] [stdout]     |               ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `NOT_FOUND` is never used
[INFO] [stdout]    --> src/http/status.rs:150:15
[INFO] [stdout]     |
[INFO] [stdout] 150 |     pub const NOT_FOUND: HttpStatus = HttpStatus::NotFound;
[INFO] [stdout]     |               ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `INTERNAL_SERVER_ERROR` is never used
[INFO] [stdout]    --> src/http/status.rs:151:15
[INFO] [stdout]     |
[INFO] [stdout] 151 |     pub const INTERNAL_SERVER_ERROR: HttpStatus = HttpStatus::InternalServerError;
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `with_default_size` and `is_shutdown` are never used
[INFO] [stdout]   --> src/server/thread_pool.rs:32:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl ThreadPool {
[INFO] [stdout]    | --------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn with_default_size() -> Self{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub fn is_shutdown(&self)->bool{
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `with_port`, `with_threads`, and `with_pub_dir` are never used
[INFO] [stdout]   --> src/server/config.rs:68:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl ServerConfig{
[INFO] [stdout]    | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 68 |     pub fn with_port(mut self,port:u16)->Self{
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 73 |     pub fn with_threads(mut self,count:usize)->Self{
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 80 |     pub fn with_pub_dir(mut self,dir:impl Into<PathBuf>)->Self{
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `path_exists`, `get_extension`, and `get_file_size` are never used
[INFO] [stdout]   --> src/utils/path.rs:49:12
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl PathSanitizer {
[INFO] [stdout]    | ------------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 49 |     pub fn path_exists(&self,path:&Path) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 53 |     pub fn get_extension(path:&Path)->Option<String>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 59 |     pub fn get_file_size(path:&Path) -> Option<u64>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `PermissionDenied` is never constructed
[INFO] [stdout]   --> src/utils/path.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub enum PathError{
[INFO] [stdout]    |          --------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 72 |     PermissionDenied(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PathError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sanitize_path` is never used
[INFO] [stdout]   --> src/utils/path.rs:92:8
[INFO] [stdout]    |
[INFO] [stdout] 92 | pub fn sanitize_path(url_path: &str) -> Result<PathBuf, PathError> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `add_mapping`, `remove_mapping`, `supports_extension`, and `supported_extensions` are never used
[INFO] [stdout]   --> src/utils/mime.rs:78:12
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl MimeTypes{
[INFO] [stdout]    | -------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 78 |     pub fn add_mapping(&mut self, extension: impl Into<String>, mime_type: impl Into<String>) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub fn remove_mapping(&mut self, extension: &str) -> Option<String> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 88 |     pub fn supports_extension(&self, extension: &str) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 |     pub fn supported_extensions(&self) -> Vec<&String> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `IntoServerResult` is never used
[INFO] [stdout]    --> src/error.rs:197:11
[INFO] [stdout]     |
[INFO] [stdout] 197 | pub trait IntoServerResult<T> {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `root_dir` is never read
[INFO] [stdout]   --> src/handler/static_handler.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct StaticFileHandler {
[INFO] [stdout]    |            ----------------- field in this struct
[INFO] [stdout] 12 |     root_dir: PathBuf,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `StaticFileHandler` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `handle_request`, `file_exists`, and `get_mime_type` are never used
[INFO] [stdout]    --> src/handler/static_handler.rs:104:12
[INFO] [stdout]     |
[INFO] [stdout]  17 | impl StaticFileHandler {
[INFO] [stdout]     | ---------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 104 |     pub fn handle_request(&self, url_path: &str) -> HttpResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 119 |     pub fn file_exists(&self, url_path: &str) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 126 |     pub fn get_mime_type(&self, url_path: &str) -> Option<String> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_http_response` is never used
[INFO] [stdout]    --> src/handler/static_handler.rs:162:12
[INFO] [stdout]     |
[INFO] [stdout] 160 | impl StaticFileError {
[INFO] [stdout]     | -------------------- method in this implementation
[INFO] [stdout] 161 |     /// Converts the error to an HTTP response with correct status codes
[INFO] [stdout] 162 |     pub fn to_http_response(&self) -> HttpResponse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `not_found`, `internal_error`, `permission_denied`, `handle_io_error`, and `error_page` are never used
[INFO] [stdout]   --> src/handler/error.rs:29:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | impl ErrorHandler {
[INFO] [stdout]    | ----------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 29 |     pub fn not_found(&self, message: impl Into<String>) -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 38 |     pub fn internal_error(&self, message: impl Into<String>) -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 43 |     pub fn permission_denied(&self, message: impl Into<String>) -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 52 |     pub fn handle_io_error(&self, error: io::Error) -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn error_page(title: &str, message: &str, code: u16) -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `handle_static_error` is never used
[INFO] [stdout]    --> src/handler/error.rs:142:8
[INFO] [stdout]     |
[INFO] [stdout] 142 | pub fn handle_static_error(error:StaticFileError) -> HttpResponse {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `is_post`, `is_get`, `get_header`, and `content_length` are never used
[INFO] [stdout]   --> src/http/request.rs:83:12
[INFO] [stdout]    |
[INFO] [stdout] 15 | impl HttpRequest {
[INFO] [stdout]    | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub fn is_post(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 87 |     pub fn is_get(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 90 |     pub fn get_header(&self,key:&str) -> Option<&String> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 |     pub fn content_length(&self) -> Option<usize> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]    --> src/http/response.rs:38:12
[INFO] [stdout]     |
[INFO] [stdout]  14 | impl HttpResponse {
[INFO] [stdout]     | ----------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  38 |     pub fn not_found() -> Self {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  48 |     pub fn bad_request() -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  58 |     pub fn internal_error() -> Self {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  86 |     pub fn header(mut self, key: impl Into<String>, value: impl Into<String>) -> Self {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  92 |     pub fn headers(mut self, headers: HashMap<String, String>) -> Self {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 157 |     pub fn send_hello(stream: &mut TcpStream) -> io::Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 164 |     pub fn send_json(stream: &mut TcpStream, data: &str) -> io::Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 171 |     pub fn send_html(stream: &mut TcpStream, html: &str) -> io::Result<()> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `html_page` is never used
[INFO] [stdout]    --> src/http/response.rs:189:12
[INFO] [stdout]     |
[INFO] [stdout] 189 |     pub fn html_page(title: &str, content: &str) -> HttpResponse {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_mime_type` is never used
[INFO] [stdout]    --> src/utils/mime.rs:106:8
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub fn get_mime_type(path: &Path) -> String {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `json_error` is never used
[INFO] [stdout]    --> src/http/response.rs:211:12
[INFO] [stdout]     |
[INFO] [stdout] 211 |     pub fn json_error(message: &str, status: HttpStatus) -> HttpResponse {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_mime_type_for_ext` is never used
[INFO] [stdout]    --> src/utils/mime.rs:111:8
[INFO] [stdout]     |
[INFO] [stdout] 111 | pub fn get_mime_type_for_ext(extension: &str) -> String {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple variants are never constructed
[INFO] [stdout]   --> src/http/status.rs:5:5
[INFO] [stdout]    |
[INFO] [stdout]  4 | pub enum HttpStatus {
[INFO] [stdout]    |          ---------- variants in this enum
[INFO] [stdout]  5 |     Continue = 100,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]  6 |     SwitchingProtocols = 101,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  9 |     Accepted = 202,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 10 |     NoContent = 204,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 11 |     MovedPermanently = 301,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 12 |     Found = 302,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 13 |     SeeOther = 303,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 14 |     NotModified = 304,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 15 |     TemporaryRedirect = 307,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 16 |     PermanentRedirect = 308,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     BadRequest = 400,
[INFO] [stdout] 18 |     Unauthorized = 401,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 21 |     MethodNotAllowed = 405,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 22 |     RequestTimeout = 408,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 23 |     Conflict = 409,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 24 |     PayloadTooLarge = 413,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 25 |     UriTooLong = 414,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 26 |     UnsupportedMediaType = 415,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 27 |     TooManyRequests = 429,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 28 |     InternalServerError = 500,
[INFO] [stdout] 29 |     NotImplemented = 501,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 30 |     BadGateway = 502,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 31 |     ServiceUnavailable = 503,
[INFO] [stdout] 32 |     GatewayTimeout = 504,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HttpStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `from_code`, `is_informational`, `is_success`, `is_redirection`, `is_client_error`, and `is_server_error` are never used
[INFO] [stdout]    --> src/http/status.rs:77:12
[INFO] [stdout]     |
[INFO] [stdout]  35 | impl HttpStatus {
[INFO] [stdout]     | --------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  77 |     pub fn from_code(code: u16) -> Option<Self> {
[INFO] [stdout]     |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub fn is_informational(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 116 |     pub fn is_success(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 121 |     pub fn is_redirection(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 126 |     pub fn is_client_error(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 131 |     pub fn is_server_error(&self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `OK` is never used
[INFO] [stdout]    --> src/http/status.rs:147:15
[INFO] [stdout]     |
[INFO] [stdout] 147 |     pub const OK: HttpStatus = HttpStatus::ok;
[INFO] [stdout]     |               ^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `CREATED` is never used
[INFO] [stdout]    --> src/http/status.rs:148:15
[INFO] [stdout]     |
[INFO] [stdout] 148 |     pub const CREATED: HttpStatus = HttpStatus::Created;
[INFO] [stdout]     |               ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BAD_REQUEST` is never used
[INFO] [stdout]    --> src/http/status.rs:149:15
[INFO] [stdout]     |
[INFO] [stdout] 149 |     pub const BAD_REQUEST: HttpStatus = HttpStatus::BadRequest;
[INFO] [stdout]     |               ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `NOT_FOUND` is never used
[INFO] [stdout]    --> src/http/status.rs:150:15
[INFO] [stdout]     |
[INFO] [stdout] 150 |     pub const NOT_FOUND: HttpStatus = HttpStatus::NotFound;
[INFO] [stdout]     |               ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `INTERNAL_SERVER_ERROR` is never used
[INFO] [stdout]    --> src/http/status.rs:151:15
[INFO] [stdout]     |
[INFO] [stdout] 151 |     pub const INTERNAL_SERVER_ERROR: HttpStatus = HttpStatus::InternalServerError;
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/server/config.rs:86:30
[INFO] [stdout]    |
[INFO] [stdout] 86 |         if self.port == 0 || self.port > 65535 {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `with_default_size` and `is_shutdown` are never used
[INFO] [stdout]   --> src/server/thread_pool.rs:32:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl ThreadPool {
[INFO] [stdout]    | --------------- associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub fn with_default_size() -> Self{
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 75 |     pub fn is_shutdown(&self)->bool{
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `with_port`, `with_threads`, and `with_pub_dir` are never used
[INFO] [stdout]   --> src/server/config.rs:68:12
[INFO] [stdout]    |
[INFO] [stdout] 14 | impl ServerConfig{
[INFO] [stdout]    | ----------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 68 |     pub fn with_port(mut self,port:u16)->Self{
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 73 |     pub fn with_threads(mut self,count:usize)->Self{
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 80 |     pub fn with_pub_dir(mut self,dir:impl Into<PathBuf>)->Self{
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `path_exists`, `get_extension`, and `get_file_size` are never used
[INFO] [stdout]   --> src/utils/path.rs:49:12
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl PathSanitizer {
[INFO] [stdout]    | ------------------ associated items in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 49 |     pub fn path_exists(&self,path:&Path) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 53 |     pub fn get_extension(path:&Path)->Option<String>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 59 |     pub fn get_file_size(path:&Path) -> Option<u64>{
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `PermissionDenied` is never constructed
[INFO] [stdout]   --> src/utils/path.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 66 | pub enum PathError{
[INFO] [stdout]    |          --------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 72 |     PermissionDenied(String),
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `PathError` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sanitize_path` is never used
[INFO] [stdout]   --> src/utils/path.rs:92:8
[INFO] [stdout]    |
[INFO] [stdout] 92 | pub fn sanitize_path(url_path: &str) -> Result<PathBuf, PathError> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `add_mapping`, `remove_mapping`, `supports_extension`, and `supported_extensions` are never used
[INFO] [stdout]   --> src/utils/mime.rs:78:12
[INFO] [stdout]    |
[INFO] [stdout]  9 | impl MimeTypes{
[INFO] [stdout]    | -------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 78 |     pub fn add_mapping(&mut self, extension: impl Into<String>, mime_type: impl Into<String>) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 83 |     pub fn remove_mapping(&mut self, extension: &str) -> Option<String> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 88 |     pub fn supports_extension(&self, extension: &str) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 |     pub fn supported_extensions(&self) -> Vec<&String> {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_mime_type` is never used
[INFO] [stdout]    --> src/utils/mime.rs:106:8
[INFO] [stdout]     |
[INFO] [stdout] 106 | pub fn get_mime_type(path: &Path) -> String {
[INFO] [stdout]     |        ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_mime_type_for_ext` is never used
[INFO] [stdout]    --> src/utils/mime.rs:111:8
[INFO] [stdout]     |
[INFO] [stdout] 111 | pub fn get_mime_type_for_ext(extension: &str) -> String {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: comparison is useless due to type limits
[INFO] [stdout]   --> src/server/config.rs:86:30
[INFO] [stdout]    |
[INFO] [stdout] 86 |         if self.port == 0 || self.port > 65535 {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_comparisons)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: unused dependency `dotenv`
[INFO] [stderr]  --> Cargo.toml:3:1
[INFO] [stderr]   |
[INFO] [stderr] 3 | dotenv = "0.15.0"
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `cargo::unused_dependencies` is set to `warn` by default
[INFO] [stderr] help: consider removing the dependency on `dotenv`
[INFO] [stderr] warning: `Http_Server` (manifest) generated 1 warning
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.20s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nix v0.31.3
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3`
[INFO] running `Command { std: "docker" "inspect" "80fae8bb1bbeca53aa6a4d84753ed0f85893e9f7aca0e5a7a8775212de30a4ea", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "80fae8bb1bbeca53aa6a4d84753ed0f85893e9f7aca0e5a7a8775212de30a4ea", kill_on_drop: false }`
[INFO] [stdout] 80fae8bb1bbeca53aa6a4d84753ed0f85893e9f7aca0e5a7a8775212de30a4ea
