[INFO] cloning repository https://github.com/ivyjsgit/Rust-HTTP-Server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ivyjsgit/Rust-HTTP-Server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivyjsgit%2FRust-HTTP-Server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivyjsgit%2FRust-HTTP-Server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 946dda8cd0f1ea1bcfd924c05d4aed11e240fb1d [INFO] checking ivyjsgit/Rust-HTTP-Server against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fivyjsgit%2FRust-HTTP-Server" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ivyjsgit/Rust-HTTP-Server on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ivyjsgit/Rust-HTTP-Server [INFO] finished tweaking git repo https://github.com/ivyjsgit/Rust-HTTP-Server [INFO] tweaked toml for git repo https://github.com/ivyjsgit/Rust-HTTP-Server written to /workspace/builds/worker-13/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9797db7a72876c3e38b2019f1159b05d6796f10372d95bcdc70a3130ceee4a51 [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" "9797db7a72876c3e38b2019f1159b05d6796f10372d95bcdc70a3130ceee4a51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9797db7a72876c3e38b2019f1159b05d6796f10372d95bcdc70a3130ceee4a51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9797db7a72876c3e38b2019f1159b05d6796f10372d95bcdc70a3130ceee4a51", kill_on_drop: false }` [INFO] [stdout] 9797db7a72876c3e38b2019f1159b05d6796f10372d95bcdc70a3130ceee4a51 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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] 02b5d568d95229aa15c7edfec9485c21d1e6727ef4e85f0c2e13a1a9f84dd33b [INFO] running `Command { std: "docker" "start" "-a" "02b5d568d95229aa15c7edfec9485c21d1e6727ef4e85f0c2e13a1a9f84dd33b", 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] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking ucd-util v0.1.8 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking aho-corasick v0.6.10 [INFO] [stderr] Checking WebServer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | if (index == "/") { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | if (path == "/") { [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::Regex` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use regex::Regex; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | if (index == "/") { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 112 | if (path == "/") { [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 16 | / loop { [INFO] [stdout] 17 | | for stream in listener.accept() { [INFO] [stdout] 18 | | let count = count.clone(); [INFO] [stdout] 19 | | let success = success.clone(); [INFO] [stdout] ... | [INFO] [stdout] 24 | | } [INFO] [stdout] 25 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 26 | [INFO] [stdout] 27 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 16 | / loop { [INFO] [stdout] 17 | | for stream in listener.accept() { [INFO] [stdout] 18 | | let count = count.clone(); [INFO] [stdout] 19 | | let success = success.clone(); [INFO] [stdout] ... | [INFO] [stdout] 24 | | } [INFO] [stdout] 25 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 26 | [INFO] [stdout] 27 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `socketAddr` [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let socketAddr = stream.1; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_socketAddr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut output = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asVec` [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let asVec = File::read_to_end(&mut mutE, &mut byteBuff); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_asVec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::prelude` [INFO] [stdout] --> src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `socketAddr` [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let socketAddr = stream.1; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_socketAddr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `output` [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut output = String::new(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `asVec` [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let asVec = File::read_to_end(&mut mutE, &mut byteBuff); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_asVec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/main.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | Err(e) => { [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:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut success = success.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut success = success.lock().unwrap(); [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:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut output = String::new(); [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:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let mut success = success.lock().unwrap(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | let mut success = success.lock().unwrap(); [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:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let mut relPath = "www".to_string() + mutPath; [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:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut file = File::open(relPath); [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:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | ... let mut buf: String = "HTTP/1.1 200 OK\nCount:".to_string() + &completed.to_string() + "\nSuccessful:" + &success.to_string() + "\n... [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:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | let mut success = success.lock().unwrap(); [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:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let mut output = String::new(); [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:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let mut splitted: Vec<&str> = getRequest.split("\n").collect(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `getPathFromGET` [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn getPathFromGET(getRequest: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | let mut relPath = "www".to_string() + mutPath; [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:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | let mut file = File::open(relPath); [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:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | ... let mut buf: String = "HTTP/1.1 200 OK\nCount:".to_string() + &completed.to_string() + "\nSuccessful:" + &success.to_string() + "\n... [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:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | let mut success = success.lock().unwrap(); [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:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | let mut splitted: Vec<&str> = getRequest.split("\n").collect(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `getPathFromGET` [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn getPathFromGET(getRequest: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `WebServer` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `web_server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `acceptAndRespond` should have a snake case name [INFO] [stdout] --> src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn acceptAndRespond(stream: (TcpStream, SocketAddr), count: Arc>, success: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accept_and_respond` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutStream` should have a snake case name [INFO] [stdout] --> src/main.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut mutStream = stream.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `mut_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `socketAddr` should have a snake case name [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let socketAddr = stream.1; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `socket_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getRequest` should have a snake case name [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let getRequest = get_GET_request(&mut mutStream); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `actualRequest` should have a snake case name [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let actualRequest = betweenGetHTTP(&getRequest); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `actual_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `multiRequest` should have a snake case name [INFO] [stdout] --> src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let multiRequest = getMultiplePaths(&actualRequest); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `multi_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `requestedPath` should have a snake case name [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | for requestedPath in multiRequest{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `requested_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `returnMe` should have a snake case name [INFO] [stdout] --> src/main.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | ... let returnMe: String = "HTTP/1.1 403 Forbidden\nCount:".to_string() + &count.to_string() + "\nSuccessful: " + &success.to_string() ... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `return_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `WebServer` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `web_server` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `acceptAndRespond` should have a snake case name [INFO] [stdout] --> src/main.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn acceptAndRespond(stream: (TcpStream, SocketAddr), count: Arc>, success: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `accept_and_respond` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutStream` should have a snake case name [INFO] [stdout] --> src/main.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let mut mutStream = stream.0; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `mut_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `socketAddr` should have a snake case name [INFO] [stdout] --> src/main.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let socketAddr = stream.1; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `socket_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getRequest` should have a snake case name [INFO] [stdout] --> src/main.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | let getRequest = get_GET_request(&mut mutStream); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `actualRequest` should have a snake case name [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let actualRequest = betweenGetHTTP(&getRequest); [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `actual_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `multiRequest` should have a snake case name [INFO] [stdout] --> src/main.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | let multiRequest = getMultiplePaths(&actualRequest); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `multi_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `requestedPath` should have a snake case name [INFO] [stdout] --> src/main.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | for requestedPath in multiRequest{ [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `requested_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `returnMe` should have a snake case name [INFO] [stdout] --> src/main.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | ... let returnMe: String = "HTTP/1.1 403 Forbidden\nCount:".to_string() + &count.to_string() + "\nSuccessful: " + &success.to_string() ... [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `return_me` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | mutStream.write(returnMe.as_bytes()); [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: variable `responseToSend` should have a snake case name [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let responseToSend = openFileFromPath(&requestedPath, &count, &success); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `response_to_send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `responseAsBytes` should have a snake case name [INFO] [stdout] --> src/main.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let responseAsBytes = responseToSend.0.as_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `response_as_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | mutStream.write(responseAsBytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | mutStream.write(&responseToSend.1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_GET_request` should have a snake case name [INFO] [stdout] --> src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn get_GET_request(mutStream: &mut TcpStream) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_get_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutStream` should have a snake case name [INFO] [stdout] --> src/main.rs:65:20 [INFO] [stdout] | [INFO] [stdout] 65 | fn get_GET_request(mutStream: &mut TcpStream) -> String { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `mut_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | mutStream.read(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `asString` should have a snake case name [INFO] [stdout] --> src/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let asString = str::from_utf8(&mut buffer).unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `as_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getPathFromGET` should have a snake case name [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn getPathFromGET(getRequest: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_path_from_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getRequest` should have a snake case name [INFO] [stdout] --> src/main.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | fn getPathFromGET(getRequest: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openFileFromPath` should have a snake case name [INFO] [stdout] --> src/main.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn openFileFromPath(path: &String, completed: &MutexGuard, success: &Arc>) -> (String,Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `open_file_from_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutPath` should have a snake case name [INFO] [stdout] --> src/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let mutPath = &path; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `mut_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `relPath` should have a snake case name [INFO] [stdout] --> src/main.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut relPath = "www".to_string() + mutPath; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `rel_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutE` should have a snake case name [INFO] [stdout] --> src/main.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let mut mutE = e; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `mut_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `byteBuff` should have a snake case name [INFO] [stdout] --> src/main.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | let mut byteBuff = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `byte_buff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `asVec` should have a snake case name [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let asVec = File::read_to_end(&mut mutE, &mut byteBuff); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `as_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getMultiplePaths` should have a snake case name [INFO] [stdout] --> src/main.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn getMultiplePaths(getRequest: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_multiple_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getRequest` should have a snake case name [INFO] [stdout] --> src/main.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | fn getMultiplePaths(getRequest: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `betweenGetHTTP` should have a snake case name [INFO] [stdout] --> src/main.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn betweenGetHTTP(line: &str) -> String{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `between_get_http` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `withoutGet` should have a snake case name [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let withoutGet: String = line.splitn(2, "GET").collect(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `without_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `withoutHTTP` should have a snake case name [INFO] [stdout] --> src/main.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let mut withoutHTTP: String = withoutGet.splitn(2, "HTTP/1.1").collect(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `without_http` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | mutStream.write(returnMe.as_bytes()); [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: variable `responseToSend` should have a snake case name [INFO] [stdout] --> src/main.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let responseToSend = openFileFromPath(&requestedPath, &count, &success); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `response_to_send` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `responseAsBytes` should have a snake case name [INFO] [stdout] --> src/main.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let responseAsBytes = responseToSend.0.as_bytes(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `response_as_bytes` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | mutStream.write(responseAsBytes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | mutStream.write(&responseToSend.1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_GET_request` should have a snake case name [INFO] [stdout] --> src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn get_GET_request(mutStream: &mut TcpStream) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_get_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutStream` should have a snake case name [INFO] [stdout] --> src/main.rs:65:20 [INFO] [stdout] | [INFO] [stdout] 65 | fn get_GET_request(mutStream: &mut TcpStream) -> String { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `mut_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | mutStream.read(&mut buffer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `asString` should have a snake case name [INFO] [stdout] --> src/main.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let asString = str::from_utf8(&mut buffer).unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `as_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getPathFromGET` should have a snake case name [INFO] [stdout] --> src/main.rs:74:4 [INFO] [stdout] | [INFO] [stdout] 74 | fn getPathFromGET(getRequest: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_path_from_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getRequest` should have a snake case name [INFO] [stdout] --> src/main.rs:74:19 [INFO] [stdout] | [INFO] [stdout] 74 | fn getPathFromGET(getRequest: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `openFileFromPath` should have a snake case name [INFO] [stdout] --> src/main.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn openFileFromPath(path: &String, completed: &MutexGuard, success: &Arc>) -> (String,Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `open_file_from_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutPath` should have a snake case name [INFO] [stdout] --> src/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let mutPath = &path; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `mut_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `relPath` should have a snake case name [INFO] [stdout] --> src/main.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let mut relPath = "www".to_string() + mutPath; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `rel_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mutE` should have a snake case name [INFO] [stdout] --> src/main.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let mut mutE = e; [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `mut_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `byteBuff` should have a snake case name [INFO] [stdout] --> src/main.rs:93:21 [INFO] [stdout] | [INFO] [stdout] 93 | let mut byteBuff = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `byte_buff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `asVec` should have a snake case name [INFO] [stdout] --> src/main.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | let asVec = File::read_to_end(&mut mutE, &mut byteBuff); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `as_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `getMultiplePaths` should have a snake case name [INFO] [stdout] --> src/main.rs:105:4 [INFO] [stdout] | [INFO] [stdout] 105 | fn getMultiplePaths(getRequest: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_multiple_paths` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `getRequest` should have a snake case name [INFO] [stdout] --> src/main.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | fn getMultiplePaths(getRequest: &String) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `get_request` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `betweenGetHTTP` should have a snake case name [INFO] [stdout] --> src/main.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 120 | fn betweenGetHTTP(line: &str) -> String{ [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `between_get_http` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `withoutGet` should have a snake case name [INFO] [stdout] --> src/main.rs:121:9 [INFO] [stdout] | [INFO] [stdout] 121 | let withoutGet: String = line.splitn(2, "GET").collect(); [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `without_get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `withoutHTTP` should have a snake case name [INFO] [stdout] --> src/main.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | let mut withoutHTTP: String = withoutGet.splitn(2, "HTTP/1.1").collect(); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `without_http` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 50 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 50 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.35s [INFO] running `Command { std: "docker" "inspect" "02b5d568d95229aa15c7edfec9485c21d1e6727ef4e85f0c2e13a1a9f84dd33b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02b5d568d95229aa15c7edfec9485c21d1e6727ef4e85f0c2e13a1a9f84dd33b", kill_on_drop: false }` [INFO] [stdout] 02b5d568d95229aa15c7edfec9485c21d1e6727ef4e85f0c2e13a1a9f84dd33b