[INFO] fetching crate AthenaEngine 0.1.7... [INFO] building AthenaEngine-0.1.7 against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] extracting crate AthenaEngine 0.1.7 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate AthenaEngine 0.1.7 on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate AthenaEngine 0.1.7 [INFO] finished tweaking crates.io crate AthenaEngine 0.1.7 [INFO] tweaked toml for crates.io crate AthenaEngine 0.1.7 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate AthenaEngine 0.1.7 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b318920391e16c22deeb5506d4b213a91f9f67f7e0b98a1e2a456f0e313f3dbc [INFO] running `Command { std: "docker" "start" "-a" "b318920391e16c22deeb5506d4b213a91f9f67f7e0b98a1e2a456f0e313f3dbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b318920391e16c22deeb5506d4b213a91f9f67f7e0b98a1e2a456f0e313f3dbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b318920391e16c22deeb5506d4b213a91f9f67f7e0b98a1e2a456f0e313f3dbc", kill_on_drop: false }` [INFO] [stdout] b318920391e16c22deeb5506d4b213a91f9f67f7e0b98a1e2a456f0e313f3dbc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] caaf66e1437c146be6eecd0b42351935c926870a5f16fbd7ea6af879bab105ab [INFO] running `Command { std: "docker" "start" "-a" "caaf66e1437c146be6eecd0b42351935c926870a5f16fbd7ea6af879bab105ab", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling libc v0.2.138 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling urlencoding v2.1.2 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling AthenaEngine v0.1.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/server/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender`, and `self` [INFO] [stdout] --> src/server/mod.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::mpsc::{self, Receiver, Sender}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Local` [INFO] [stdout] --> src/server/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NOT_SUPPORTED` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | GET, POST, NOT_SUPPORTED [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NotSupported` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_1_0` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | HTTP_1_0, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http1_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_1_1` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | HTTP_1_1, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http1_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_2_0` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | HTTP_2_0, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http2_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NOT_SUPPORTED` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | NOT_SUPPORTED [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NotSupported` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/server/response_parser.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Bytes` [INFO] [stdout] --> src/server/response_parser.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_110` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | HTTP_110, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http110` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_111` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | HTTP_111, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http111` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_200` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | HTTP_200, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http200` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_300` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | HTTP_300, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http300` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_301` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | HTTP_301, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http301` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_302` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | HTTP_302, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http302` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_303` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | HTTP_303, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http303` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_304` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | HTTP_304, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http304` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_307` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | HTTP_307, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http307` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_308` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | HTTP_308, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http308` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_310` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | HTTP_310, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http310` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_400` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | HTTP_400, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http400` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_401` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | HTTP_401, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http401` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_402` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | HTTP_402, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http402` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_403` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | HTTP_403, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http403` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_404` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | HTTP_404, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http404` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_405` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | HTTP_405, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http405` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_406` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | HTTP_406, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http406` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_407` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | HTTP_407, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http407` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_408` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | HTTP_408, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http408` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_409` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | HTTP_409, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http409` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_410` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | HTTP_410, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http410` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_411` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | HTTP_411, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http411` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_412` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | HTTP_412, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http412` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_413` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | HTTP_413, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http413` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_414` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | HTTP_414, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http414` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_415` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | HTTP_415, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http415` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_416` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | HTTP_416, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http416` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_417` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | HTTP_417, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http417` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_418` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | HTTP_418, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http418` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_420` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | HTTP_420, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http420` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_422` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | HTTP_422, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http422` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_423` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | HTTP_423, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http423` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_424` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | HTTP_424, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http424` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_425` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | HTTP_425, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http425` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_426` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | HTTP_426, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http426` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_428` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | HTTP_428, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http428` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_429` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | HTTP_429, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http429` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_431` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | HTTP_431, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http431` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_500` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | HTTP_500, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http500` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NO_DATA` should have an upper camel case name [INFO] [stdout] --> src/server/page_manager.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | SUCCESS, FAIL, NO_DATA [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `NoData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/request_parser.rs:125:37 [INFO] [stdout] | [INFO] [stdout] 125 | ... let mut header_split : Vec<&str> = line.trim().split(": ").collect(); [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/server/request_parser.rs:144:25 [INFO] [stdout] | [INFO] [stdout] 144 | let mut url_full : String = std; [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/server/request_parser.rs:146:29 [INFO] [stdout] | [INFO] [stdout] 146 | let mut params_full : Vec<&str> = url_full.split(&tag_params_root).collect(); [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/server/request_parser.rs:147:29 [INFO] [stdout] | [INFO] [stdout] 147 | let mut params_full : String = params_full[1].to_string(); [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/server/request_parser.rs:149:33 [INFO] [stdout] | [INFO] [stdout] 149 | ... let mut params_root_split : Vec<&str> = params_full.split(&tag_params_more).collect(); [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/server/request_parser.rs:151:37 [INFO] [stdout] | [INFO] [stdout] 151 | ... let mut params_key_value_split : Vec<&str> = params_ket_value.split(&tag_params_value).collect(); [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/server/request_parser.rs:166:33 [INFO] [stdout] | [INFO] [stdout] 166 | ... let mut params_root_split : Vec<&str> = params_full.split(&tag_params_value).collect(); [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/server/response_parser.rs:274:49 [INFO] [stdout] | [INFO] [stdout] 274 | ... let mut split: Vec<&str> = request_page.split("?").collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response_str` is never read [INFO] [stdout] --> src/server/response_parser.rs:366:17 [INFO] [stdout] | [INFO] [stdout] 366 | let mut response_str = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/page_manager.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | ... let mut read_value = std::fs::File::open(&page_info.file_path); [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/server/page_manager.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | let mut control_new_html = String::from(&new_html); [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/server/page_manager.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | let mut control_split = control_new_html.split("\r\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/server/page_manager.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | let mut control_split : Vec<&str> = control_split.collect(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/server/mod.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 135 | _Success => { // 작업 성공 [INFO] [stdout] | -------- matches any value [INFO] [stdout] ... [INFO] [stdout] 189 | _Error => { // 작업 실패 [INFO] [stdout] | ^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/mod.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | let mut http_request : Vec<&str> = binding.split("\r\n").collect(); [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/server/mod.rs:164:29 [INFO] [stdout] | [INFO] [stdout] 164 | let mut response = response_parser(result); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AthenaEngine` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `athena_engine` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `threadPoolArgs` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:111:26 [INFO] [stdout] | [INFO] [stdout] 111 | fn handle_connection(mut threadPoolArgs: ThreadTaskArgs) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `thread_pool_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Success` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | _Success => { // 작업 성공 [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/mod.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 140 | match &EVENT.event_request { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 140 | match &raw const EVENT.event_request { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Box` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:141:26 [INFO] [stdout] | [INFO] [stdout] 141 | Some(Box) => { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 141 | Some(r#box) => { [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/mod.rs:156:23 [INFO] [stdout] | [INFO] [stdout] 156 | match &EVENT.event_response { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | match &raw const EVENT.event_response { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Box` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:157:26 [INFO] [stdout] | [INFO] [stdout] 157 | Some(Box) => { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 157 | Some(r#box) => { [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Error` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | _Error => { // 작업 실패 [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_None` should have a snake case name [INFO] [stdout] --> src/server/request_parser.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | _None => {} [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/page_manager.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 67 | match &ALL_PAGES.pages { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 67 | match &raw const ALL_PAGES.pages { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/server/page_manager.rs:165:44 [INFO] [stdout] | [INFO] [stdout] 165 | let data = control_line.clone().replace(&tag_control_for, "").replace(" ", ""); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.71s [INFO] running `Command { std: "docker" "inspect" "caaf66e1437c146be6eecd0b42351935c926870a5f16fbd7ea6af879bab105ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caaf66e1437c146be6eecd0b42351935c926870a5f16fbd7ea6af879bab105ab", kill_on_drop: false }` [INFO] [stdout] caaf66e1437c146be6eecd0b42351935c926870a5f16fbd7ea6af879bab105ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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 -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 13a18bb884a250f88b4b820b697882bdb84ab250647ce01c440ba8617d775426 [INFO] running `Command { std: "docker" "start" "-a" "13a18bb884a250f88b4b820b697882bdb84ab250647ce01c440ba8617d775426", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/server/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender`, and `self` [INFO] [stdout] --> src/server/mod.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::mpsc::{self, Receiver, Sender}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Local` [INFO] [stdout] --> src/server/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NOT_SUPPORTED` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | GET, POST, NOT_SUPPORTED [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NotSupported` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_1_0` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | HTTP_1_0, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http1_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_1_1` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | HTTP_1_1, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http1_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_2_0` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | HTTP_2_0, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http2_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NOT_SUPPORTED` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | NOT_SUPPORTED [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NotSupported` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/server/response_parser.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Bytes` [INFO] [stdout] --> src/server/response_parser.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_110` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | HTTP_110, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http110` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_111` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | HTTP_111, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http111` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_200` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | HTTP_200, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http200` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_300` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | HTTP_300, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http300` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_301` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | HTTP_301, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http301` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_302` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | HTTP_302, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http302` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_303` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | HTTP_303, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http303` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_304` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | HTTP_304, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http304` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_307` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | HTTP_307, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http307` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_308` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | HTTP_308, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http308` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_310` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | HTTP_310, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http310` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_400` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | HTTP_400, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http400` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_401` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | HTTP_401, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http401` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_402` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | HTTP_402, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http402` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_403` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | HTTP_403, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http403` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_404` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | HTTP_404, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http404` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_405` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | HTTP_405, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http405` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_406` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | HTTP_406, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http406` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_407` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | HTTP_407, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http407` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_408` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | HTTP_408, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http408` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_409` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | HTTP_409, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http409` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_410` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | HTTP_410, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http410` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_411` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | HTTP_411, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http411` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_412` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | HTTP_412, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http412` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_413` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | HTTP_413, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http413` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_414` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | HTTP_414, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http414` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_415` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | HTTP_415, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http415` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_416` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | HTTP_416, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http416` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling AthenaEngine v0.1.7 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant `HTTP_417` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | HTTP_417, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http417` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_418` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | HTTP_418, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http418` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_420` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | HTTP_420, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http420` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_422` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | HTTP_422, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http422` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_423` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | HTTP_423, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http423` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_424` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | HTTP_424, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http424` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_425` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | HTTP_425, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http425` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_426` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | HTTP_426, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http426` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_428` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | HTTP_428, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http428` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_429` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | HTTP_429, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http429` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_431` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | HTTP_431, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http431` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_500` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | HTTP_500, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http500` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NO_DATA` should have an upper camel case name [INFO] [stdout] --> src/server/page_manager.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | SUCCESS, FAIL, NO_DATA [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `NoData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/request_parser.rs:125:37 [INFO] [stdout] | [INFO] [stdout] 125 | ... let mut header_split : Vec<&str> = line.trim().split(": ").collect(); [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/server/request_parser.rs:144:25 [INFO] [stdout] | [INFO] [stdout] 144 | let mut url_full : String = std; [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/server/request_parser.rs:146:29 [INFO] [stdout] | [INFO] [stdout] 146 | let mut params_full : Vec<&str> = url_full.split(&tag_params_root).collect(); [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/server/request_parser.rs:147:29 [INFO] [stdout] | [INFO] [stdout] 147 | let mut params_full : String = params_full[1].to_string(); [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/server/request_parser.rs:149:33 [INFO] [stdout] | [INFO] [stdout] 149 | ... let mut params_root_split : Vec<&str> = params_full.split(&tag_params_more).collect(); [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/server/request_parser.rs:151:37 [INFO] [stdout] | [INFO] [stdout] 151 | ... let mut params_key_value_split : Vec<&str> = params_ket_value.split(&tag_params_value).collect(); [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/server/request_parser.rs:166:33 [INFO] [stdout] | [INFO] [stdout] 166 | ... let mut params_root_split : Vec<&str> = params_full.split(&tag_params_value).collect(); [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/server/response_parser.rs:274:49 [INFO] [stdout] | [INFO] [stdout] 274 | ... let mut split: Vec<&str> = request_page.split("?").collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response_str` is never read [INFO] [stdout] --> src/server/response_parser.rs:366:17 [INFO] [stdout] | [INFO] [stdout] 366 | let mut response_str = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/page_manager.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | ... let mut read_value = std::fs::File::open(&page_info.file_path); [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/server/page_manager.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | let mut control_new_html = String::from(&new_html); [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/server/page_manager.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | let mut control_split = control_new_html.split("\r\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/server/page_manager.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | let mut control_split : Vec<&str> = control_split.collect(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/server/mod.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 135 | _Success => { // 작업 성공 [INFO] [stdout] | -------- matches any value [INFO] [stdout] ... [INFO] [stdout] 189 | _Error => { // 작업 실패 [INFO] [stdout] | ^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/mod.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | let mut http_request : Vec<&str> = binding.split("\r\n").collect(); [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/server/mod.rs:164:29 [INFO] [stdout] | [INFO] [stdout] 164 | let mut response = response_parser(result); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `AthenaEngine` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `athena_engine` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `threadPoolArgs` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:111:26 [INFO] [stdout] | [INFO] [stdout] 111 | fn handle_connection(mut threadPoolArgs: ThreadTaskArgs) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `thread_pool_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Success` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | _Success => { // 작업 성공 [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/mod.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 140 | match &EVENT.event_request { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 140 | match &raw const EVENT.event_request { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Box` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:141:26 [INFO] [stdout] | [INFO] [stdout] 141 | Some(Box) => { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 141 | Some(r#box) => { [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/mod.rs:156:23 [INFO] [stdout] | [INFO] [stdout] 156 | match &EVENT.event_response { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | match &raw const EVENT.event_response { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Box` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:157:26 [INFO] [stdout] | [INFO] [stdout] 157 | Some(Box) => { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 157 | Some(r#box) => { [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Error` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | _Error => { // 작업 실패 [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_None` should have a snake case name [INFO] [stdout] --> src/server/request_parser.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | _None => {} [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/page_manager.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 67 | match &ALL_PAGES.pages { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 67 | match &raw const ALL_PAGES.pages { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/server/page_manager.rs:165:44 [INFO] [stdout] | [INFO] [stdout] 165 | let data = control_line.clone().replace(&tag_control_for, "").replace(" ", ""); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/server/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Receiver`, `Sender`, and `self` [INFO] [stdout] --> src/server/mod.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::mpsc::{self, Receiver, Sender}; [INFO] [stdout] | ^^^^ ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Local` [INFO] [stdout] --> src/server/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NOT_SUPPORTED` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:15:20 [INFO] [stdout] | [INFO] [stdout] 15 | GET, POST, NOT_SUPPORTED [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NotSupported` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_1_0` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | HTTP_1_0, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http1_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_1_1` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | HTTP_1_1, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http1_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_2_0` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | HTTP_2_0, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http2_0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NOT_SUPPORTED` should have an upper camel case name [INFO] [stdout] --> src/server/request_parser.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | NOT_SUPPORTED [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `NotSupported` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/server/response_parser.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Bytes` [INFO] [stdout] --> src/server/response_parser.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_110` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | HTTP_110, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http110` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_111` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | HTTP_111, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http111` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_200` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | HTTP_200, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http200` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_300` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 57 | HTTP_300, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http300` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_301` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | HTTP_301, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http301` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_302` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 59 | HTTP_302, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http302` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_303` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | HTTP_303, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http303` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_304` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | HTTP_304, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http304` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_307` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | HTTP_307, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http307` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_308` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | HTTP_308, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http308` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_310` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | HTTP_310, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http310` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_400` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | HTTP_400, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http400` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_401` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | HTTP_401, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http401` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_402` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | HTTP_402, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http402` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_403` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | HTTP_403, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http403` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_404` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:70:9 [INFO] [stdout] | [INFO] [stdout] 70 | HTTP_404, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http404` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_405` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | HTTP_405, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http405` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_406` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | HTTP_406, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http406` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_407` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | HTTP_407, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http407` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_408` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | HTTP_408, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http408` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_409` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | HTTP_409, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http409` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_410` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | HTTP_410, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http410` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_411` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | HTTP_411, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http411` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_412` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | HTTP_412, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http412` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_413` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | HTTP_413, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http413` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_414` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | HTTP_414, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http414` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_415` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | HTTP_415, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http415` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_416` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | HTTP_416, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http416` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_417` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | HTTP_417, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http417` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_418` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | HTTP_418, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http418` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_420` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | HTTP_420, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http420` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_422` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | HTTP_422, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http422` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_423` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | HTTP_423, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http423` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_424` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | HTTP_424, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http424` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_425` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | HTTP_425, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http425` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_426` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | HTTP_426, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http426` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_428` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | HTTP_428, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http428` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_429` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | HTTP_429, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http429` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_431` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | HTTP_431, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http431` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HTTP_500` should have an upper camel case name [INFO] [stdout] --> src/server/response_parser.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | HTTP_500, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case: `Http500` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NO_DATA` should have an upper camel case name [INFO] [stdout] --> src/server/page_manager.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | SUCCESS, FAIL, NO_DATA [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `NoData` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/request_parser.rs:125:37 [INFO] [stdout] | [INFO] [stdout] 125 | ... let mut header_split : Vec<&str> = line.trim().split(": ").collect(); [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/server/request_parser.rs:144:25 [INFO] [stdout] | [INFO] [stdout] 144 | let mut url_full : String = std; [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/server/request_parser.rs:146:29 [INFO] [stdout] | [INFO] [stdout] 146 | let mut params_full : Vec<&str> = url_full.split(&tag_params_root).collect(); [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/server/request_parser.rs:147:29 [INFO] [stdout] | [INFO] [stdout] 147 | let mut params_full : String = params_full[1].to_string(); [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/server/request_parser.rs:149:33 [INFO] [stdout] | [INFO] [stdout] 149 | ... let mut params_root_split : Vec<&str> = params_full.split(&tag_params_more).collect(); [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/server/request_parser.rs:151:37 [INFO] [stdout] | [INFO] [stdout] 151 | ... let mut params_key_value_split : Vec<&str> = params_ket_value.split(&tag_params_value).collect(); [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/server/request_parser.rs:166:33 [INFO] [stdout] | [INFO] [stdout] 166 | ... let mut params_root_split : Vec<&str> = params_full.split(&tag_params_value).collect(); [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/server/response_parser.rs:274:49 [INFO] [stdout] | [INFO] [stdout] 274 | ... let mut split: Vec<&str> = request_page.split("?").collect(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `response_str` is never read [INFO] [stdout] --> src/server/response_parser.rs:366:17 [INFO] [stdout] | [INFO] [stdout] 366 | let mut response_str = String::new(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/page_manager.rs:74:41 [INFO] [stdout] | [INFO] [stdout] 74 | ... let mut read_value = std::fs::File::open(&page_info.file_path); [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/server/page_manager.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | let mut control_new_html = String::from(&new_html); [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/server/page_manager.rs:147:17 [INFO] [stdout] | [INFO] [stdout] 147 | let mut control_split = control_new_html.split("\r\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/server/page_manager.rs:148:17 [INFO] [stdout] | [INFO] [stdout] 148 | let mut control_split : Vec<&str> = control_split.collect(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/server/mod.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 135 | _Success => { // 작업 성공 [INFO] [stdout] | -------- matches any value [INFO] [stdout] ... [INFO] [stdout] 189 | _Error => { // 작업 실패 [INFO] [stdout] | ^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/server/mod.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 127 | let mut http_request : Vec<&str> = binding.split("\r\n").collect(); [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/server/mod.rs:164:29 [INFO] [stdout] | [INFO] [stdout] 164 | let mut response = response_parser(result); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `threadPoolArgs` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:111:26 [INFO] [stdout] | [INFO] [stdout] 111 | fn handle_connection(mut threadPoolArgs: ThreadTaskArgs) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `thread_pool_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Success` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | _Success => { // 작업 성공 [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `_success` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/mod.rs:140:23 [INFO] [stdout] | [INFO] [stdout] 140 | match &EVENT.event_request { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 140 | match &raw const EVENT.event_request { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Box` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:141:26 [INFO] [stdout] | [INFO] [stdout] 141 | Some(Box) => { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 141 | Some(r#box) => { [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/mod.rs:156:23 [INFO] [stdout] | [INFO] [stdout] 156 | match &EVENT.event_response { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 156 | match &raw const EVENT.event_response { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Box` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:157:26 [INFO] [stdout] | [INFO] [stdout] 157 | Some(Box) => { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: rename the identifier or convert it to a snake case raw identifier [INFO] [stdout] | [INFO] [stdout] 157 | Some(r#box) => { [INFO] [stdout] | ~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_Error` should have a snake case name [INFO] [stdout] --> src/server/mod.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | _Error => { // 작업 실패 [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `_None` should have a snake case name [INFO] [stdout] --> src/server/request_parser.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | _None => {} [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/server/page_manager.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 67 | match &ALL_PAGES.pages { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 67 | match &raw const ALL_PAGES.pages { [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/server/page_manager.rs:165:44 [INFO] [stdout] | [INFO] [stdout] 165 | let data = control_line.clone().replace(&tag_control_for, "").replace(" ", ""); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.40s [INFO] running `Command { std: "docker" "inspect" "13a18bb884a250f88b4b820b697882bdb84ab250647ce01c440ba8617d775426", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13a18bb884a250f88b4b820b697882bdb84ab250647ce01c440ba8617d775426", kill_on_drop: false }` [INFO] [stdout] 13a18bb884a250f88b4b820b697882bdb84ab250647ce01c440ba8617d775426