[INFO] cloning repository https://github.com/HustonMmmavr/epoll_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HustonMmmavr/epoll_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHustonMmmavr%2Fepoll_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHustonMmmavr%2Fepoll_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 9d6d68b49e8a772eeaf9fa6c754e59eb7b58845f
[INFO] checking HustonMmmavr/epoll_rust against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHustonMmmavr%2Fepoll_rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/HustonMmmavr/epoll_rust
[INFO] finished tweaking git repo https://github.com/HustonMmmavr/epoll_rust
[INFO] tweaked toml for git repo https://github.com/HustonMmmavr/epoll_rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/HustonMmmavr/epoll_rust 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/HustonMmmavr/epoll_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" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: binary `epoll_rust` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /workspace/builds/worker-3-tc1/source/target/.../epoll_rust
[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 `epoll-rust`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:12:8
[INFO] [stderr]    |
[INFO] [stderr] 12 - name = "epoll_rust"
[INFO] [stderr] 12 + name = "epoll-rust"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `epoll-rust`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:13:19
[INFO] [stderr]    |
[INFO] [stderr] 13 ~ version = "0.1.0"
[INFO] [stderr] 14 + [[bin]]
[INFO] [stderr] 15 + name = "epoll-rust"
[INFO] [stderr] 16 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `epoll_rust` (manifest) generated 2 warnings
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded time v0.1.40
[INFO] [stderr]   Downloaded cfg-if v0.1.5
[INFO] [stderr]   Downloaded num_cpus v0.2.13
[INFO] [stderr]   Downloaded cc v1.0.25
[INFO] [stderr]   Downloaded redox_syscall v0.1.40
[INFO] [stderr]   Downloaded libc v0.2.43
[INFO] [stderr]   Downloaded winapi v0.3.6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 5d2e9ec3959087e28b20eac874b4870911e010d4396e486d5b8ecfc09a982e93
[INFO] running `Command { std: "docker" "start" "5d2e9ec3959087e28b20eac874b4870911e010d4396e486d5b8ecfc09a982e93", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5d2e9ec3959087e28b20eac874b4870911e010d4396e486d5b8ecfc09a982e93", 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" "5d2e9ec3959087e28b20eac874b4870911e010d4396e486d5b8ecfc09a982e93" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5d2e9ec3959087e28b20eac874b4870911e010d4396e486d5b8ecfc09a982e93", 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" "5d2e9ec3959087e28b20eac874b4870911e010d4396e486d5b8ecfc09a982e93" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: Cargo.toml: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr] warning: binary `epoll_rust` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /opt/rustwide/target/.../epoll_rust
[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 `epoll-rust`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:12:8
[INFO] [stderr]    |
[INFO] [stderr] 12 - name = "epoll_rust"
[INFO] [stderr] 12 + name = "epoll-rust"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `epoll-rust`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:13:19
[INFO] [stderr]    |
[INFO] [stderr] 13 ~ version = "0.1.0"
[INFO] [stderr] 14 + [[bin]]
[INFO] [stderr] 15 + name = "epoll-rust"
[INFO] [stderr] 16 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `epoll_rust` (manifest) generated 2 warnings
[INFO] [stderr]    Compiling num-traits v0.2.6
[INFO] [stderr]     Checking libc v0.2.43
[INFO] [stderr]    Compiling num-integer v0.1.39
[INFO] [stderr]    Compiling nix v0.11.0
[INFO] [stderr]     Checking void v1.0.2
[INFO] [stderr]     Checking bitflags v1.0.4
[INFO] [stderr]     Checking cfg-if v0.1.5
[INFO] [stderr]     Checking time v0.1.40
[INFO] [stderr]     Checking num_cpus v0.2.13
[INFO] [stderr]     Checking chrono v0.4.6
[INFO] [stderr]     Checking epoll_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/file_handler/hanlder.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fs::File;
[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: `std::io::prelude::*`
[INFO] [stdout]  --> src/file_handler/hanlder.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::prelude::*`
[INFO] [stdout]  --> src/client/client.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cell::Cell`
[INFO] [stdout]  --> src/client/client.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::cell::Cell;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/client/client.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::sys::socket::*`
[INFO] [stdout]  --> src/client/client.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use nix::sys::socket::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::panic`
[INFO] [stdout]   --> src/client/client.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use std::panic;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `SocketError`
[INFO] [stdout]   --> src/client/client.rs:21:33
[INFO] [stdout]    |
[INFO] [stdout] 21 | use nix::sys::socket::sockopt::{SocketError};
[INFO] [stdout]    |                                 ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `REQUEST_READED` should have an upper camel case name
[INFO] [stdout]   --> src/client/client.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 |     REQUEST_READED,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RequestReaded`
[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: variant `RESPONSE_WRITED` should have an upper camel case name
[INFO] [stdout]   --> src/client/client.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 32 |     RESPONSE_WRITED,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ResponseWrited`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `OPENING_FILE` should have an upper camel case name
[INFO] [stdout]   --> src/client/client.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 33 |     OPENING_FILE,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OpeningFile`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `FILE_WRITING` should have an upper camel case name
[INFO] [stdout]   --> src/client/client.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     FILE_WRITING,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FileWriting`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `FILE_WRITED` should have an upper camel case name
[INFO] [stdout]   --> src/client/client.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 35 |     FILE_WRITED,
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `FileWrited`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/client/client.rs:282:12
[INFO] [stdout]     |
[INFO] [stdout] 282 |         if (self.file_fd != -1) {
[INFO] [stdout]     |            ^                  ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 282 -         if (self.file_fd != -1) {
[INFO] [stdout] 282 +         if self.file_fd != -1 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::errno::Errno`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use nix::errno::Errno;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::Error`
[INFO] [stdout]   --> src/main.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use nix::Error;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `read` and `write`
[INFO] [stdout]   --> src/main.rs:19:19
[INFO] [stdout]    |
[INFO] [stdout] 19 | use nix::unistd::{read, write, close};
[INFO] [stdout]    |                   ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::Error::Sys`
[INFO] [stdout]   --> src/main.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use nix::Error::Sys;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SystemTime` and `UNIX_EPOCH`
[INFO] [stdout]   --> src/main.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::time::{SystemTime, UNIX_EPOCH};
[INFO] [stdout]    |                 ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Sub`
[INFO] [stdout]   --> src/main.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use std::ops::Sub;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::unistd::Pid`
[INFO] [stdout]   --> src/main.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 | use nix::unistd::Pid;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::process`
[INFO] [stdout]   --> src/main.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 31 | use std::process;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:195:24
[INFO] [stdout]     |
[INFO] [stdout] 195 |                     if (need_to_close) {
[INFO] [stdout]     |                        ^             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 195 -                     if (need_to_close) {
[INFO] [stdout] 195 +                     if need_to_close {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fs::File`
[INFO] [stdout]  --> src/file_handler/hanlder.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fs::File;
[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: `std::io::prelude::*`
[INFO] [stdout]  --> src/file_handler/hanlder.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::prelude::*`
[INFO] [stdout]  --> src/client/client.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cell::Cell`
[INFO] [stdout]  --> src/client/client.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::cell::Cell;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io`
[INFO] [stdout]  --> src/client/client.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::io;
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::sys::socket::*`
[INFO] [stdout]  --> src/client/client.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use nix::sys::socket::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::panic`
[INFO] [stdout]   --> src/client/client.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use std::panic;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `SocketError`
[INFO] [stdout]   --> src/client/client.rs:21:33
[INFO] [stdout]    |
[INFO] [stdout] 21 | use nix::sys::socket::sockopt::{SocketError};
[INFO] [stdout]    |                                 ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `REQUEST_READED` should have an upper camel case name
[INFO] [stdout]   --> src/client/client.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 |     REQUEST_READED,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `RequestReaded`
[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: variant `RESPONSE_WRITED` should have an upper camel case name
[INFO] [stdout]   --> src/client/client.rs:32:5
[INFO] [stdout]    |
[INFO] [stdout] 32 |     RESPONSE_WRITED,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ResponseWrited`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `OPENING_FILE` should have an upper camel case name
[INFO] [stdout]   --> src/client/client.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 33 |     OPENING_FILE,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `OpeningFile`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `FILE_WRITING` should have an upper camel case name
[INFO] [stdout]   --> src/client/client.rs:34:5
[INFO] [stdout]    |
[INFO] [stdout] 34 |     FILE_WRITING,
[INFO] [stdout]    |     ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `FileWriting`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `FILE_WRITED` should have an upper camel case name
[INFO] [stdout]   --> src/client/client.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 35 |     FILE_WRITED,
[INFO] [stdout]    |     ^^^^^^^^^^^ help: convert the identifier to upper camel case: `FileWrited`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/client/client.rs:282:12
[INFO] [stdout]     |
[INFO] [stdout] 282 |         if (self.file_fd != -1) {
[INFO] [stdout]     |            ^                  ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 282 -         if (self.file_fd != -1) {
[INFO] [stdout] 282 +         if self.file_fd != -1 {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::errno::Errno`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use nix::errno::Errno;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::Error`
[INFO] [stdout]   --> src/main.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use nix::Error;
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `read` and `write`
[INFO] [stdout]   --> src/main.rs:19:19
[INFO] [stdout]    |
[INFO] [stdout] 19 | use nix::unistd::{read, write, close};
[INFO] [stdout]    |                   ^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::Error::Sys`
[INFO] [stdout]   --> src/main.rs:22:5
[INFO] [stdout]    |
[INFO] [stdout] 22 | use nix::Error::Sys;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SystemTime` and `UNIX_EPOCH`
[INFO] [stdout]   --> src/main.rs:24:17
[INFO] [stdout]    |
[INFO] [stdout] 24 | use std::time::{SystemTime, UNIX_EPOCH};
[INFO] [stdout]    |                 ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Sub`
[INFO] [stdout]   --> src/main.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 25 | use std::ops::Sub;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `nix::unistd::Pid`
[INFO] [stdout]   --> src/main.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 30 | use nix::unistd::Pid;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::process`
[INFO] [stdout]   --> src/main.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 31 | use std::process;
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/main.rs:195:24
[INFO] [stdout]     |
[INFO] [stdout] 195 |                     if (need_to_close) {
[INFO] [stdout]     |                        ^             ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 195 -                     if (need_to_close) {
[INFO] [stdout] 195 +                     if need_to_close {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_right_matches`: superseded by `trim_end_matches`
[INFO] [stdout]   --> src/config_reader/reader.rs:55:32
[INFO] [stdout]    |
[INFO] [stdout] 55 |             let val = parts[1].trim_right_matches("\n");
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]    |
[INFO] [stdout] 55 -             let val = parts[1].trim_right_matches("\n");
[INFO] [stdout] 55 +             let val = parts[1].trim_end_matches("\n");
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `core::str::<impl str>::trim_right_matches`: superseded by `trim_end_matches`
[INFO] [stdout]   --> src/config_reader/reader.rs:55:32
[INFO] [stdout]    |
[INFO] [stdout] 55 |             let val = parts[1].trim_right_matches("\n");
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] help: replace the use of the deprecated method
[INFO] [stdout]    |
[INFO] [stdout] 55 -             let val = parts[1].trim_right_matches("\n");
[INFO] [stdout] 55 +             let val = parts[1].trim_end_matches("\n");
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/file_handler/hanlder.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut path_to_file_ref: &str = &new_path_to_file;
[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: `need_to_read`
[INFO] [stdout]   --> src/file_handler/hanlder.rs:10:60
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub fn get_file(path: &str, path_to_file: &mut String, need_to_read: bool) -> Result<(u64, String, String), bool> {
[INFO] [stdout]    |                                                            ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_need_to_read`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `d`
[INFO] [stdout]   --> src/file_handler/hanlder.rs:22:21
[INFO] [stdout]    |
[INFO] [stdout] 22 |                 let d = ch;        
[INFO] [stdout]    |                     ^ help: if this is intentional, prefix it with an underscore: `_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/client/client.rs:85:17
[INFO] [stdout]    |
[INFO] [stdout] 85 |             let mut total_len = self.readed;
[INFO] [stdout]    |                 ----^^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `total_len`
[INFO] [stdout]   --> src/client/client.rs:85:17
[INFO] [stdout]    |
[INFO] [stdout] 85 |             let mut total_len = self.readed;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]    --> src/client/client.rs:183:29
[INFO] [stdout]     |
[INFO] [stdout] 183 |     pub fn write(&mut self, path: &str) -> Result<ClientState, Error> {
[INFO] [stdout]     |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/http/request.rs:53:25
[INFO] [stdout]    |
[INFO] [stdout] 49 |                         'd' => 13,
[INFO] [stdout]    |                         --- matches all the relevant values
[INFO] [stdout] ...
[INFO] [stdout] 53 |                         'd' => 15,
[INFO] [stdout]    |                         ^^^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/http/request.rs:54:25
[INFO] [stdout]    |
[INFO] [stdout] 50 |                         'D' => 13,
[INFO] [stdout]    |                         --- matches all the relevant values
[INFO] [stdout] ...
[INFO] [stdout] 54 |                         'D' => 15,
[INFO] [stdout]    |                         ^^^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/http/request.rs:70:17
[INFO] [stdout]    |
[INFO] [stdout] 70 |             Err(e) => return Err(())
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/http/request.rs:91:13
[INFO] [stdout]    |
[INFO] [stdout] 91 |         let mut stopPath: usize = 0;
[INFO] [stdout]    |             ----^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `stopPath`
[INFO] [stdout]   --> src/http/request.rs:91:13
[INFO] [stdout]    |
[INFO] [stdout] 91 |         let mut stopPath: usize = 0;
[INFO] [stdout]    |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stopPath`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/http/request.rs:110:17
[INFO] [stdout]     |
[INFO] [stdout] 110 |             Err(e) => return Err(())
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let mut closed = 0;
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:69:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let mut refused = 0;
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let mut counter_wait = 0;
[INFO] [stdout]    |         ----^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:83:17
[INFO] [stdout]    |
[INFO] [stdout] 83 |             let mut cli_size = 0;
[INFO] [stdout]    |                 ----^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:95:21
[INFO] [stdout]    |
[INFO] [stdout] 95 |                 let mut count_acc = 0;  
[INFO] [stdout]    |                     ----^^^^^^^^^
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `worker_count`
[INFO] [stdout]   --> src/main.rs:58:39
[INFO] [stdout]    |
[INFO] [stdout] 58 | fn epoll_loop<'a>(server_sock: RawFd, worker_count: usize, path: &'a str) -> nix::Result<()> {
[INFO] [stdout]    |                                       ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_worker_count`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `critical_error`
[INFO] [stdout]   --> src/main.rs:66:9
[INFO] [stdout]    |
[INFO] [stdout] 66 |     let critical_error = false;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_critical_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `accepted` is assigned to, but never used
[INFO] [stdout]   --> src/main.rs:67:9
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let mut accepted = 0;
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider using `_accepted` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `closed`
[INFO] [stdout]   --> src/main.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let mut closed = 0;
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_closed`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `refused`
[INFO] [stdout]   --> src/main.rs:69:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let mut refused = 0;
[INFO] [stdout]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_refused`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `counter_wait`
[INFO] [stdout]   --> src/main.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let mut counter_wait = 0;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter_wait`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cli_size`
[INFO] [stdout]   --> src/main.rs:83:17
[INFO] [stdout]    |
[INFO] [stdout] 83 |             let mut cli_size = 0;
[INFO] [stdout]    |                 ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cli_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `count_acc`
[INFO] [stdout]   --> src/main.rs:95:21
[INFO] [stdout]    |
[INFO] [stdout] 95 |                 let mut count_acc = 0;  
[INFO] [stdout]    |                     ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_count_acc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout]    --> src/main.rs:106:33
[INFO] [stdout]     |
[INFO] [stdout] 106 | ...                   Err(err) => {
[INFO] [stdout]     |                           ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/main.rs:124:32
[INFO] [stdout]     |
[INFO] [stdout] 124 | ...                   Ok(e) => {},
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/main.rs:152:48
[INFO] [stdout]     |
[INFO] [stdout] 152 | ...                   Ok(e) => {},
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cl`
[INFO] [stdout]    --> src/main.rs:171:29
[INFO] [stdout]     |
[INFO] [stdout] 171 |                         let cl = clients.remove(&cur_socket);
[INFO] [stdout]     |                             ^^ help: if this is intentional, prefix it with an underscore: `_cl`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout]    --> src/main.rs:189:33
[INFO] [stdout]     |
[INFO] [stdout] 189 | ...                   Err(err) => {
[INFO] [stdout]     |                           ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/main.rs:197:32
[INFO] [stdout]     |
[INFO] [stdout] 197 | ...                   Ok(e) => {},
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `accepted` is never read
[INFO] [stdout]    --> src/main.rs:131:25
[INFO] [stdout]     |
[INFO] [stdout] 131 |                         accepted += 1;
[INFO] [stdout]     |                         ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/main.rs:260:15
[INFO] [stdout]     |
[INFO] [stdout] 260 |         .map(|i| {
[INFO] [stdout]     |               ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `acc_locker`
[INFO] [stdout]    --> src/main.rs:263:17
[INFO] [stdout]     |
[INFO] [stdout] 263 |             let acc_locker = accpet_locker.clone(); 
[INFO] [stdout]     |                 ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_acc_locker`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `d`
[INFO] [stdout]    --> src/main.rs:223:9
[INFO] [stdout]     |
[INFO] [stdout] 223 |     let d = unsafe {setrlimit64(libc::RLIMIT_NOFILE, &lim) };
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `START`, `OPENING_FILE`, and `FILE_WRITED` are never constructed
[INFO] [stdout]   --> src/client/client.rs:28:5
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub enum ClientState {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] 28 |     START,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     OPENING_FILE,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 34 |     FILE_WRITING,
[INFO] [stdout] 35 |     FILE_WRITED,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ClientState` has derived impls for the traits `Debug` and `Clone`, but these are 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: fields `interest`, `len_write`, and `path` are never read
[INFO] [stdout]   --> src/client/client.rs:44:5
[INFO] [stdout]    |
[INFO] [stdout] 41 | pub struct HttpClient<'a> {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 44 |     interest: EpollFlags,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     len_write: usize,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 52 |     path: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HttpClient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/http/request.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl HttpRequest {
[INFO] [stdout]    | ---------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 16 |     fn new() -> HttpRequest {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `body_exist` and `connection` are never read
[INFO] [stdout]   --> src/http/response.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct HttpResponse {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 12 |     pub body_exist: bool,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 13 |     pub connection: String,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HttpResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/http/response.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl HttpResponse {
[INFO] [stdout]    | ----------------- associated items in this implementation
[INFO] [stdout] 17 |     pub fn new_empty() -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn new(status: i32, headers: Option<HashMap<String, String>>) -> HttpResponse {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub fn bad_request() -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 80 |     pub fn set_status(&mut self, status: i32) {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     pub fn set_body_exist(&mut self, body_exist: bool) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 88 |     pub fn set_headers(&mut self, headers: HashMap<String, String>) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 92 |     pub fn set_connection(&mut self, connection: String) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:89:21
[INFO] [stdout]    |
[INFO] [stdout] 89 |                     close(epoll_events[i].data() as i32);
[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] 89 |                     let _ = close(epoll_events[i].data() as i32);
[INFO] [stdout]    |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:90:21
[INFO] [stdout]    |
[INFO] [stdout] 90 |                     epoll_ctl(epfd, EpollOp::EpollCtlDel, cur_socket, &mut epoll_events[i]);
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 90 |                     let _ = epoll_ctl(epfd, EpollOp::EpollCtlDel, cur_socket, &mut epoll_events[i]);
[INFO] [stdout]    |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:117:33
[INFO] [stdout]     |
[INFO] [stdout] 117 | ...                   close(client_fd);
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 117 |                                 let _ = close(client_fd);
[INFO] [stdout]     |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:127:33
[INFO] [stdout]     |
[INFO] [stdout] 127 | ...                   close(client_fd);
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 127 |                                 let _ = close(client_fd);
[INFO] [stdout]     |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:169:25
[INFO] [stdout]     |
[INFO] [stdout] 169 |                         close(cur_socket);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 169 |                         let _ = close(cur_socket);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:170:25
[INFO] [stdout]     |
[INFO] [stdout] 170 |                         epoll_ctl(epfd, EpollOp::EpollCtlDel, cur_socket, &mut epoll_events[i]);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 170 |                         let _ = epoll_ctl(epfd, EpollOp::EpollCtlDel, cur_socket, &mut epoll_events[i]);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:249:5
[INFO] [stdout]     |
[INFO] [stdout] 249 |     socket_to_nonblock(server_sock);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 249 |     let _ = socket_to_nonblock(server_sock);
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:265:17
[INFO] [stdout]     |
[INFO] [stdout] 265 |                 epoll_loop(server_sock.clone(), worker_count, &path);//, acc_locker);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 265 |                 let _ = epoll_loop(server_sock.clone(), worker_count, &path);//, acc_locker);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:293:9
[INFO] [stdout]     |
[INFO] [stdout] 293 |         h.join();
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 293 |         let _ = h.join();
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/client/client.rs:61:68
[INFO] [stdout]    |
[INFO] [stdout] 61 |     pub fn new(client: RawFd, interest: EpollFlags, s: &'a str) -> HttpClient {
[INFO] [stdout]    |                                                         --         ^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                                                         |
[INFO] [stdout]    |                                                         the lifetime is named here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]    |
[INFO] [stdout] 61 |     pub fn new(client: RawFd, interest: EpollFlags, s: &'a str) -> HttpClient<'a> {
[INFO] [stdout]    |                                                                              ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/client/client.rs:283:13
[INFO] [stdout]     |
[INFO] [stdout] 283 |             close(self.file_fd);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 283 |             let _ = close(self.file_fd);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `stopPath` should have a snake case name
[INFO] [stdout]   --> src/http/request.rs:91:17
[INFO] [stdout]    |
[INFO] [stdout] 91 |         let mut stopPath: usize = 0;
[INFO] [stdout]    |                 ^^^^^^^^ help: convert the identifier to snake case: `stop_path`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/http/request.rs:96:41
[INFO] [stdout]    |
[INFO] [stdout] 96 |         let path_bytes = request_info[1].clone();
[INFO] [stdout]    |                                         ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `stopPath` should have a snake case name
[INFO] [stdout]   --> src/http/request.rs:98:17
[INFO] [stdout]    |
[INFO] [stdout] 98 |         let mut stopPath = 0;
[INFO] [stdout]    |                 ^^^^^^^^ help: convert the identifier to snake case: `stop_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/file_handler/hanlder.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut path_to_file_ref: &str = &new_path_to_file;
[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: `need_to_read`
[INFO] [stdout]   --> src/file_handler/hanlder.rs:10:60
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub fn get_file(path: &str, path_to_file: &mut String, need_to_read: bool) -> Result<(u64, String, String), bool> {
[INFO] [stdout]    |                                                            ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_need_to_read`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `d`
[INFO] [stdout]   --> src/file_handler/hanlder.rs:22:21
[INFO] [stdout]    |
[INFO] [stdout] 22 |                 let d = ch;        
[INFO] [stdout]    |                     ^ help: if this is intentional, prefix it with an underscore: `_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/client/client.rs:85:17
[INFO] [stdout]    |
[INFO] [stdout] 85 |             let mut total_len = self.readed;
[INFO] [stdout]    |                 ----^^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `total_len`
[INFO] [stdout]   --> src/client/client.rs:85:17
[INFO] [stdout]    |
[INFO] [stdout] 85 |             let mut total_len = self.readed;
[INFO] [stdout]    |                 ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_total_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `path`
[INFO] [stdout]    --> src/client/client.rs:183:29
[INFO] [stdout]     |
[INFO] [stdout] 183 |     pub fn write(&mut self, path: &str) -> Result<ClientState, Error> {
[INFO] [stdout]     |                             ^^^^ help: if this is intentional, prefix it with an underscore: `_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/http/request.rs:53:25
[INFO] [stdout]    |
[INFO] [stdout] 49 |                         'd' => 13,
[INFO] [stdout]    |                         --- matches all the relevant values
[INFO] [stdout] ...
[INFO] [stdout] 53 |                         'd' => 15,
[INFO] [stdout]    |                         ^^^ no value can reach this
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable pattern
[INFO] [stdout]   --> src/http/request.rs:54:25
[INFO] [stdout]    |
[INFO] [stdout] 50 |                         'D' => 13,
[INFO] [stdout]    |                         --- matches all the relevant values
[INFO] [stdout] ...
[INFO] [stdout] 54 |                         'D' => 15,
[INFO] [stdout]    |                         ^^^ no value can reach this
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/http/request.rs:70:17
[INFO] [stdout]    |
[INFO] [stdout] 70 |             Err(e) => return Err(())
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/http/request.rs:91:13
[INFO] [stdout]    |
[INFO] [stdout] 91 |         let mut stopPath: usize = 0;
[INFO] [stdout]    |             ----^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `stopPath`
[INFO] [stdout]   --> src/http/request.rs:91:13
[INFO] [stdout]    |
[INFO] [stdout] 91 |         let mut stopPath: usize = 0;
[INFO] [stdout]    |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stopPath`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/http/request.rs:110:17
[INFO] [stdout]     |
[INFO] [stdout] 110 |             Err(e) => return Err(())
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let mut closed = 0;
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:69:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let mut refused = 0;
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let mut counter_wait = 0;
[INFO] [stdout]    |         ----^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:83:17
[INFO] [stdout]    |
[INFO] [stdout] 83 |             let mut cli_size = 0;
[INFO] [stdout]    |                 ----^^^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:95:21
[INFO] [stdout]    |
[INFO] [stdout] 95 |                 let mut count_acc = 0;  
[INFO] [stdout]    |                     ----^^^^^^^^^
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `worker_count`
[INFO] [stdout]   --> src/main.rs:58:39
[INFO] [stdout]    |
[INFO] [stdout] 58 | fn epoll_loop<'a>(server_sock: RawFd, worker_count: usize, path: &'a str) -> nix::Result<()> {
[INFO] [stdout]    |                                       ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_worker_count`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `critical_error`
[INFO] [stdout]   --> src/main.rs:66:9
[INFO] [stdout]    |
[INFO] [stdout] 66 |     let critical_error = false;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_critical_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `accepted` is assigned to, but never used
[INFO] [stdout]   --> src/main.rs:67:9
[INFO] [stdout]    |
[INFO] [stdout] 67 |     let mut accepted = 0;
[INFO] [stdout]    |         ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: consider using `_accepted` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `closed`
[INFO] [stdout]   --> src/main.rs:68:9
[INFO] [stdout]    |
[INFO] [stdout] 68 |     let mut closed = 0;
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_closed`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `refused`
[INFO] [stdout]   --> src/main.rs:69:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |     let mut refused = 0;
[INFO] [stdout]    |         ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_refused`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `counter_wait`
[INFO] [stdout]   --> src/main.rs:70:9
[INFO] [stdout]    |
[INFO] [stdout] 70 |     let mut counter_wait = 0;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter_wait`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cli_size`
[INFO] [stdout]   --> src/main.rs:83:17
[INFO] [stdout]    |
[INFO] [stdout] 83 |             let mut cli_size = 0;
[INFO] [stdout]    |                 ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cli_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `count_acc`
[INFO] [stdout]   --> src/main.rs:95:21
[INFO] [stdout]    |
[INFO] [stdout] 95 |                 let mut count_acc = 0;  
[INFO] [stdout]    |                     ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_count_acc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout]    --> src/main.rs:106:33
[INFO] [stdout]     |
[INFO] [stdout] 106 | ...                   Err(err) => {
[INFO] [stdout]     |                           ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/main.rs:124:32
[INFO] [stdout]     |
[INFO] [stdout] 124 | ...                   Ok(e) => {},
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/main.rs:152:48
[INFO] [stdout]     |
[INFO] [stdout] 152 | ...                   Ok(e) => {},
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cl`
[INFO] [stdout]    --> src/main.rs:171:29
[INFO] [stdout]     |
[INFO] [stdout] 171 |                         let cl = clients.remove(&cur_socket);
[INFO] [stdout]     |                             ^^ help: if this is intentional, prefix it with an underscore: `_cl`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout]    --> src/main.rs:189:33
[INFO] [stdout]     |
[INFO] [stdout] 189 | ...                   Err(err) => {
[INFO] [stdout]     |                           ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/main.rs:197:32
[INFO] [stdout]     |
[INFO] [stdout] 197 | ...                   Ok(e) => {},
[INFO] [stdout]     |                          ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `accepted` is never read
[INFO] [stdout]    --> src/main.rs:131:25
[INFO] [stdout]     |
[INFO] [stdout] 131 |                         accepted += 1;
[INFO] [stdout]     |                         ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/main.rs:260:15
[INFO] [stdout]     |
[INFO] [stdout] 260 |         .map(|i| {
[INFO] [stdout]     |               ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `acc_locker`
[INFO] [stdout]    --> src/main.rs:263:17
[INFO] [stdout]     |
[INFO] [stdout] 263 |             let acc_locker = accpet_locker.clone(); 
[INFO] [stdout]     |                 ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_acc_locker`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `d`
[INFO] [stdout]    --> src/main.rs:223:9
[INFO] [stdout]     |
[INFO] [stdout] 223 |     let d = unsafe {setrlimit64(libc::RLIMIT_NOFILE, &lim) };
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `START`, `OPENING_FILE`, and `FILE_WRITED` are never constructed
[INFO] [stdout]   --> src/client/client.rs:28:5
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub enum ClientState {
[INFO] [stdout]    |          ----------- variants in this enum
[INFO] [stdout] 28 |     START,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 33 |     OPENING_FILE,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 34 |     FILE_WRITING,
[INFO] [stdout] 35 |     FILE_WRITED,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `ClientState` has derived impls for the traits `Debug` and `Clone`, but these are 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: fields `interest`, `len_write`, and `path` are never read
[INFO] [stdout]   --> src/client/client.rs:44:5
[INFO] [stdout]    |
[INFO] [stdout] 41 | pub struct HttpClient<'a> {
[INFO] [stdout]    |            ---------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 44 |     interest: EpollFlags,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     len_write: usize,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 52 |     path: String,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HttpClient` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/http/request.rs:16:8
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl HttpRequest {
[INFO] [stdout]    | ---------------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 16 |     fn new() -> HttpRequest {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `body_exist` and `connection` are never read
[INFO] [stdout]   --> src/http/response.rs:12:9
[INFO] [stdout]    |
[INFO] [stdout]  9 | pub struct HttpResponse {
[INFO] [stdout]    |            ------------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 12 |     pub body_exist: bool,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] 13 |     pub connection: String,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `HttpResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated items are never used
[INFO] [stdout]   --> src/http/response.rs:17:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl HttpResponse {
[INFO] [stdout]    | ----------------- associated items in this implementation
[INFO] [stdout] 17 |     pub fn new_empty() -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn new(status: i32, headers: Option<HashMap<String, String>>) -> HttpResponse {
[INFO] [stdout]    |            ^^^
[INFO] [stdout] ...
[INFO] [stdout] 44 |     pub fn bad_request() -> HttpResponse {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 80 |     pub fn set_status(&mut self, status: i32) {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 84 |     pub fn set_body_exist(&mut self, body_exist: bool) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 88 |     pub fn set_headers(&mut self, headers: HashMap<String, String>) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 92 |     pub fn set_connection(&mut self, connection: String) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:89:21
[INFO] [stdout]    |
[INFO] [stdout] 89 |                     close(epoll_events[i].data() as i32);
[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] 89 |                     let _ = close(epoll_events[i].data() as i32);
[INFO] [stdout]    |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:90:21
[INFO] [stdout]    |
[INFO] [stdout] 90 |                     epoll_ctl(epfd, EpollOp::EpollCtlDel, cur_socket, &mut epoll_events[i]);
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 90 |                     let _ = epoll_ctl(epfd, EpollOp::EpollCtlDel, cur_socket, &mut epoll_events[i]);
[INFO] [stdout]    |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:117:33
[INFO] [stdout]     |
[INFO] [stdout] 117 | ...                   close(client_fd);
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 117 |                                 let _ = close(client_fd);
[INFO] [stdout]     |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:127:33
[INFO] [stdout]     |
[INFO] [stdout] 127 | ...                   close(client_fd);
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 127 |                                 let _ = close(client_fd);
[INFO] [stdout]     |                                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:169:25
[INFO] [stdout]     |
[INFO] [stdout] 169 |                         close(cur_socket);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 169 |                         let _ = close(cur_socket);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:170:25
[INFO] [stdout]     |
[INFO] [stdout] 170 |                         epoll_ctl(epfd, EpollOp::EpollCtlDel, cur_socket, &mut epoll_events[i]);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 170 |                         let _ = epoll_ctl(epfd, EpollOp::EpollCtlDel, cur_socket, &mut epoll_events[i]);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:249:5
[INFO] [stdout]     |
[INFO] [stdout] 249 |     socket_to_nonblock(server_sock);
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 249 |     let _ = socket_to_nonblock(server_sock);
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:265:17
[INFO] [stdout]     |
[INFO] [stdout] 265 |                 epoll_loop(server_sock.clone(), worker_count, &path);//, acc_locker);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 265 |                 let _ = epoll_loop(server_sock.clone(), worker_count, &path);//, acc_locker);
[INFO] [stdout]     |                 +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:293:9
[INFO] [stdout]     |
[INFO] [stdout] 293 |         h.join();
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 293 |         let _ = h.join();
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]   --> src/client/client.rs:61:68
[INFO] [stdout]    |
[INFO] [stdout] 61 |     pub fn new(client: RawFd, interest: EpollFlags, s: &'a str) -> HttpClient {
[INFO] [stdout]    |                                                         --         ^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                                                         |
[INFO] [stdout]    |                                                         the lifetime is named here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]    |
[INFO] [stdout] 61 |     pub fn new(client: RawFd, interest: EpollFlags, s: &'a str) -> HttpClient<'a> {
[INFO] [stdout]    |                                                                              ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/client/client.rs:283:13
[INFO] [stdout]     |
[INFO] [stdout] 283 |             close(self.file_fd);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 283 |             let _ = close(self.file_fd);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `stopPath` should have a snake case name
[INFO] [stdout]   --> src/http/request.rs:91:17
[INFO] [stdout]    |
[INFO] [stdout] 91 |         let mut stopPath: usize = 0;
[INFO] [stdout]    |                 ^^^^^^^^ help: convert the identifier to snake case: `stop_path`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/http/request.rs:96:41
[INFO] [stdout]    |
[INFO] [stdout] 96 |         let path_bytes = request_info[1].clone();
[INFO] [stdout]    |                                         ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `stopPath` should have a snake case name
[INFO] [stdout]   --> src/http/request.rs:98:17
[INFO] [stdout]    |
[INFO] [stdout] 98 |         let mut stopPath = 0;
[INFO] [stdout]    |                 ^^^^^^^^ help: convert the identifier to snake case: `stop_path`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.69s
[INFO] running `Command { std: "docker" "inspect" "5d2e9ec3959087e28b20eac874b4870911e010d4396e486d5b8ecfc09a982e93", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5d2e9ec3959087e28b20eac874b4870911e010d4396e486d5b8ecfc09a982e93", kill_on_drop: false }`
[INFO] [stdout] 5d2e9ec3959087e28b20eac874b4870911e010d4396e486d5b8ecfc09a982e93
