[INFO] cloning repository https://github.com/SinimaWath/highload_dz1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SinimaWath/highload_dz1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSinimaWath%2Fhighload_dz1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSinimaWath%2Fhighload_dz1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0d3216be68743aa955e35689193fa26eea7d8b0c [INFO] checking SinimaWath/highload_dz1 against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSinimaWath%2Fhighload_dz1" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SinimaWath/highload_dz1 on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SinimaWath/highload_dz1 [INFO] finished tweaking git repo https://github.com/SinimaWath/highload_dz1 [INFO] tweaked toml for git repo https://github.com/SinimaWath/highload_dz1 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/SinimaWath/highload_dz1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded chrono v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5459ead9bf9e9068c0a04ca4748978f338ecce5efdeb4da9131d56ab17bab0ff [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5459ead9bf9e9068c0a04ca4748978f338ecce5efdeb4da9131d56ab17bab0ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5459ead9bf9e9068c0a04ca4748978f338ecce5efdeb4da9131d56ab17bab0ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5459ead9bf9e9068c0a04ca4748978f338ecce5efdeb4da9131d56ab17bab0ff", kill_on_drop: false }` [INFO] [stdout] 5459ead9bf9e9068c0a04ca4748978f338ecce5efdeb4da9131d56ab17bab0ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d4f499599d61185de9bdee6bbe49b006633a53a99a3432805fda42201739202a [INFO] running `Command { std: "docker" "start" "-a" "d4f499599d61185de9bdee6bbe49b006633a53a99a3432805fda42201739202a", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Checking num-iter v0.1.37 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking chrono v0.3.0 [INFO] [stderr] Checking dz1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/http/request.rs:20:43 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn parse(buffer: &[u8]) -> Result<(HTTPRequest), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDateTime`, `TimeZone` [INFO] [stdout] --> src/http/response.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::{DateTime, TimeZone, NaiveDateTime, UTC}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/config/config.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/config/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/config/config.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | if (document_root_pair.len() != 2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/config/config.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | if (thread_limit_pair.len() != 2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/server/server.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::{HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/server/server.rs:127:20 [INFO] [stdout] | [INFO] [stdout] 127 | if (isAutoIndex) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/server/server.rs:152:20 [INFO] [stdout] | [INFO] [stdout] 152 | if (isAutoIndex) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Task` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::thread_pool::worker::{Worker, Task, Message}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/thread_pool/worker.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | pub type Task = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnBox + Send + 'static` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/http/request.rs:20:43 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn parse(buffer: &[u8]) -> Result<(HTTPRequest), ()> { [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDateTime`, `TimeZone` [INFO] [stdout] --> src/http/response.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | use chrono::{DateTime, TimeZone, NaiveDateTime, UTC}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/config/config.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/config/config.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/config/config.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | if (document_root_pair.len() != 2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/config/config.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | if (thread_limit_pair.len() != 2) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashMap` [INFO] [stdout] --> src/server/server.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::{HashMap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/server/server.rs:127:20 [INFO] [stdout] | [INFO] [stdout] 127 | if (isAutoIndex) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/server/server.rs:152:20 [INFO] [stdout] | [INFO] [stdout] 152 | if (isAutoIndex) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Task` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::thread_pool::worker::{Worker, Task, Message}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/thread_pool/worker.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 23 | pub type Task = Box; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn FnBox + Send + 'static` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/server/server.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TestCase` [INFO] [stdout] --> src/http/request_test.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | struct TestCase { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TestCase` [INFO] [stdout] --> src/config/config_test.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct TestCase { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_invalid_format_thread_limit` [INFO] [stdout] --> src/config/config_test.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn test_invalid_format_thread_limit() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `workers` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | workers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isAutoIndex` should have a snake case name [INFO] [stdout] --> src/http/request.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub isAutoIndex: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_auto_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stringRaw` should have a snake case name [INFO] [stdout] --> src/http/request.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let stringRaw = std::str::from_utf8(buffer).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `string_raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstLine` should have a snake case name [INFO] [stdout] --> src/http/request.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let firstLine = stringRaw.split("\r\n").nth(0).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `first_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `requestVec` should have a snake case name [INFO] [stdout] --> src/http/request.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let requestVec: Vec<&str> = firstLine.split(" ").collect(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `request_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parsedPath` should have a snake case name [INFO] [stdout] --> src/http/request.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 34 | let (parsedPath, isAutoIndex) = match parsePath(requestVec[1]) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parsed_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isAutoIndex` should have a snake case name [INFO] [stdout] --> src/http/request.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | let (parsedPath, isAutoIndex) = match parsePath(requestVec[1]) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_auto_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parsePath` should have a snake case name [INFO] [stdout] --> src/http/request.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn parsePath(path: &str) -> Result<(String, bool), ()> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parse_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rawPath` should have a snake case name [INFO] [stdout] --> src/http/request.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let rawPath = path.split("?").nth(0).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `raw_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/http/request_test.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 69 | Ok(req) => panic!("Unexpected header"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 148 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/http/request_test.rs:175:12 [INFO] [stdout] | [INFO] [stdout] 175 | Ok(req) => panic!("Unexpected OK"), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/http/request_test.rs:187:9 [INFO] [stdout] | [INFO] [stdout] 187 | let result = match request::HTTPRequest::parse(testCase.raw_http) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/server/server.rs:126:17 [INFO] [stdout] | [INFO] [stdout] 126 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/http/response.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | ... f.seek(SeekFrom::Start(n as u64)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setContentType` should have a snake case name [INFO] [stdout] --> src/http/response.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn setContentType(&mut self, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_content_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setContentLength` should have a snake case name [INFO] [stdout] --> src/http/response.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn setContentLength(&mut self, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setOk` should have a snake case name [INFO] [stdout] --> src/http/response.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn setOk(&mut self, file: Option) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `set_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setNotFound` should have a snake case name [INFO] [stdout] --> src/http/response.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn setNotFound(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `set_not_found` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setBadRequest` should have a snake case name [INFO] [stdout] --> src/http/response.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn setBadRequest(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_bad_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setNotAllowed` should have a snake case name [INFO] [stdout] --> src/http/response.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn setNotAllowed(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_not_allowed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setDate` should have a snake case name [INFO] [stdout] --> src/http/response.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn setDate(&mut self) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `set_date` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setServer` should have a snake case name [INFO] [stdout] --> src/http/response.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn setServer(&mut self, server: &str) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `set_server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setConnection` should have a snake case name [INFO] [stdout] --> src/http/response.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn setConnection(&mut self, conn: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isAutoIndex` should have a snake case name [INFO] [stdout] --> src/server/server.rs:115:48 [INFO] [stdout] | [INFO] [stdout] 115 | fn handle_get(path: String, root: &String, isAutoIndex: bool) -> HTTPResponse { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_auto_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isAutoIndex` should have a snake case name [INFO] [stdout] --> src/server/server.rs:138:49 [INFO] [stdout] | [INFO] [stdout] 138 | fn handle_head(path: String, root: &String, isAutoIndex: bool) -> HTTPResponse { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_auto_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `test_invalid_format_thread_limit` [INFO] [stdout] --> src/config/config_test.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn test_invalid_format_thread_limit() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `workers` [INFO] [stdout] --> src/thread_pool/thread_pool.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | workers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isAutoIndex` should have a snake case name [INFO] [stdout] --> src/http/request.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub isAutoIndex: bool, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_auto_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stringRaw` should have a snake case name [INFO] [stdout] --> src/http/request.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let stringRaw = std::str::from_utf8(buffer).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `string_raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstLine` should have a snake case name [INFO] [stdout] --> src/http/request.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let firstLine = stringRaw.split("\r\n").nth(0).unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `first_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `requestVec` should have a snake case name [INFO] [stdout] --> src/http/request.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let requestVec: Vec<&str> = firstLine.split(" ").collect(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `request_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parsedPath` should have a snake case name [INFO] [stdout] --> src/http/request.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 34 | let (parsedPath, isAutoIndex) = match parsePath(requestVec[1]) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `parsed_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isAutoIndex` should have a snake case name [INFO] [stdout] --> src/http/request.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 34 | let (parsedPath, isAutoIndex) = match parsePath(requestVec[1]) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_auto_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parsePath` should have a snake case name [INFO] [stdout] --> src/http/request.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn parsePath(path: &str) -> Result<(String, bool), ()> { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parse_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `rawPath` should have a snake case name [INFO] [stdout] --> src/http/request.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let rawPath = path.split("?").nth(0).unwrap(); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `raw_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 143 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:169:9 [INFO] [stdout] | [INFO] [stdout] 169 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `testCase` should have a snake case name [INFO] [stdout] --> src/http/request_test.rs:182:9 [INFO] [stdout] | [INFO] [stdout] 182 | let testCase = TestCase{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `test_case` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/http/response.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | ... f.seek(SeekFrom::Start(n as u64)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setContentType` should have a snake case name [INFO] [stdout] --> src/http/response.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn setContentType(&mut self, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_content_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setContentLength` should have a snake case name [INFO] [stdout] --> src/http/response.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn setContentLength(&mut self, path: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_content_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setOk` should have a snake case name [INFO] [stdout] --> src/http/response.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn setOk(&mut self, file: Option) { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `set_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setNotFound` should have a snake case name [INFO] [stdout] --> src/http/response.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn setNotFound(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `set_not_found` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setBadRequest` should have a snake case name [INFO] [stdout] --> src/http/response.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn setBadRequest(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_bad_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setNotAllowed` should have a snake case name [INFO] [stdout] --> src/http/response.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn setNotAllowed(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_not_allowed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setDate` should have a snake case name [INFO] [stdout] --> src/http/response.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn setDate(&mut self) { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `set_date` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setServer` should have a snake case name [INFO] [stdout] --> src/http/response.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn setServer(&mut self, server: &str) { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `set_server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `setConnection` should have a snake case name [INFO] [stdout] --> src/http/response.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn setConnection(&mut self, conn: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `set_connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isAutoIndex` should have a snake case name [INFO] [stdout] --> src/server/server.rs:115:48 [INFO] [stdout] | [INFO] [stdout] 115 | fn handle_get(path: String, root: &String, isAutoIndex: bool) -> HTTPResponse { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_auto_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isAutoIndex` should have a snake case name [INFO] [stdout] --> src/server/server.rs:138:49 [INFO] [stdout] | [INFO] [stdout] 138 | fn handle_head(path: String, root: &String, isAutoIndex: bool) -> HTTPResponse { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_auto_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 65 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.86s [INFO] running `Command { std: "docker" "inspect" "d4f499599d61185de9bdee6bbe49b006633a53a99a3432805fda42201739202a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4f499599d61185de9bdee6bbe49b006633a53a99a3432805fda42201739202a", kill_on_drop: false }` [INFO] [stdout] d4f499599d61185de9bdee6bbe49b006633a53a99a3432805fda42201739202a