[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#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSinimaWath%2Fhighload_dz1" "/workspace/builds/worker-30/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-30/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SinimaWath/highload_dz1 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-30/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 699211ffb9b76540d51df485fd37a6497751b85dbbfe02f5b16a96475e1735a6 [INFO] running `Command { std: "docker" "start" "-a" "699211ffb9b76540d51df485fd37a6497751b85dbbfe02f5b16a96475e1735a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "699211ffb9b76540d51df485fd37a6497751b85dbbfe02f5b16a96475e1735a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "699211ffb9b76540d51df485fd37a6497751b85dbbfe02f5b16a96475e1735a6", kill_on_drop: false }` [INFO] [stdout] 699211ffb9b76540d51df485fd37a6497751b85dbbfe02f5b16a96475e1735a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-30/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4bf7ca102e9997637af300490d22e076912a36716d8e8c464ec9aec3ccec8b8 [INFO] running `Command { std: "docker" "start" "-a" "a4bf7ca102e9997637af300490d22e076912a36716d8e8c464ec9aec3ccec8b8", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.50 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking textwrap v0.10.0 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking chrono v0.3.0 [INFO] [stderr] Checking dz1 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/thread_pool/thread_pool.rs (2 fixes) [INFO] [stderr] Fixed src/http/request.rs (1 fix) [INFO] [stderr] Fixed src/config/config.rs (4 fixes) [INFO] [stderr] Fixed src/thread_pool/worker.rs (1 fix) [INFO] [stderr] Fixed src/http/response.rs (1 fix) [INFO] [stderr] Fixed src/server/server.rs (5 fixes) [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 `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: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/http/request_test.rs (16 fixes) [INFO] [stderr] Fixed src/main.rs (2 fixes) [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 `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: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 31.91s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking dz1 v0.1.0 (/tmp/fixit) [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 `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: 24 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 `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: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.69s [INFO] running `Command { std: "docker" "inspect" "a4bf7ca102e9997637af300490d22e076912a36716d8e8c464ec9aec3ccec8b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4bf7ca102e9997637af300490d22e076912a36716d8e8c464ec9aec3ccec8b8", kill_on_drop: false }` [INFO] [stdout] a4bf7ca102e9997637af300490d22e076912a36716d8e8c464ec9aec3ccec8b8