[INFO] cloning repository https://github.com/AIABHISHEK/http-web-server-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AIABHISHEK/http-web-server-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAIABHISHEK%2Fhttp-web-server-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAIABHISHEK%2Fhttp-web-server-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 96034285c26166f3b7854b09ea32dcdb7022f21b [INFO] linting AIABHISHEK/http-web-server-rust against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAIABHISHEK%2Fhttp-web-server-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/AIABHISHEK/http-web-server-rust [INFO] finished tweaking git repo https://github.com/AIABHISHEK/http-web-server-rust [INFO] tweaked toml for git repo https://github.com/AIABHISHEK/http-web-server-rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/AIABHISHEK/http-web-server-rust on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/AIABHISHEK/http-web-server-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v2.0.75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c8eba8207a438d0da47b3cc406a339b6d74525498f79919d30b2de6a2679ba27 [INFO] running `Command { std: "docker" "start" "-a" "c8eba8207a438d0da47b3cc406a339b6d74525498f79919d30b2de6a2679ba27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c8eba8207a438d0da47b3cc406a339b6d74525498f79919d30b2de6a2679ba27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8eba8207a438d0da47b3cc406a339b6d74525498f79919d30b2de6a2679ba27", kill_on_drop: false }` [INFO] [stdout] c8eba8207a438d0da47b3cc406a339b6d74525498f79919d30b2de6a2679ba27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] eb180b830aa59201019a17e4d598f690a81e0a9c1287e014ed9c8acec11f3500 [INFO] running `Command { std: "docker" "start" "-a" "eb180b830aa59201019a17e4d598f690a81e0a9c1287e014ed9c8acec11f3500", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking codecrafters-http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 77 | ContentEncodingType::GZIP => Some("gzip".to_string()), [INFO] [stdout] | ------------------------- matches all the relevant values [INFO] [stdout] 78 | _ => { None } [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 77 | ContentEncodingType::GZIP => Some("gzip".to_string()), [INFO] [stdout] | ------------------------- matches all the relevant values [INFO] [stdout] 78 | _ => { None } [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/req/mod.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | method: method, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `method` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/req/mod.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | method: method, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `method` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/req/mod.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | target: target, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `target` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/req/mod.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | target: target, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `target` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/req/mod.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | http_version: http_version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `http_version` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/req/mod.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | body: body, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `body` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/req/mod.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | stream: stream, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `stream` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/req/mod.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 19 | http_version: http_version, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `http_version` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/req/mod.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | body: body, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `body` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/res/mod.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | body: body, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `body` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/req/mod.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | stream: stream, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `stream` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> src/res/mod.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | body: body, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `body` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, and `Write` [INFO] [stdout] --> src/server.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | io::{BufRead, BufReader, Write}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, and `Write` [INFO] [stdout] --> src/server.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | io::{BufRead, BufReader, Write}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/res/mod.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn set_header(k: String, v: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> src/res/mod.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn set_header(k: String, v: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/res/mod.rs:32:34 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn set_header(k: String, v: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/res/mod.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn set_body(body: Vec) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/res/mod.rs:32:34 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn set_header(k: String, v: String) {} [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/res/mod.rs:34:21 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn set_body(body: Vec) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res_body` is never read [INFO] [stdout] --> src/res/mod.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | let mut res_body = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res_body` is never read [INFO] [stdout] --> src/res/mod.rs:75:28 [INFO] [stdout] | [INFO] [stdout] 75 | let mut res_body = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/server.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/server.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/util.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/util.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_header_complete` is never read [INFO] [stdout] --> src/util.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | is_header_complete = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `is_header_complete` is never read [INFO] [stdout] --> src/util.rs:19:21 [INFO] [stdout] | [INFO] [stdout] 19 | is_header_complete = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handler.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut dir = get_directory(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handler.rs:51:17 [INFO] [stdout] | [INFO] [stdout] 51 | let mut dir = get_directory(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handler.rs:61:40 [INFO] [stdout] | [INFO] [stdout] 61 | ... if let Err(e) = reader.read_to_string(&mut body) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handler.rs:61:40 [INFO] [stdout] | [INFO] [stdout] 61 | ... if let Err(e) = reader.read_to_string(&mut body) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 77 | ContentEncodingType::GZIP => Some("gzip".to_string()), [INFO] [stdout] | ------------------------- matches all the relevant values [INFO] [stdout] 78 | _ => { None } [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/lib.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 77 | ContentEncodingType::GZIP => Some("gzip".to_string()), [INFO] [stdout] | ------------------------- matches all the relevant values [INFO] [stdout] 78 | _ => { None } [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `http_version` and `stream` are never read [INFO] [stdout] --> src/req/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct HttpRequest { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub http_version: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub stream: TcpStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `status_code`, `http_version`, `headers`, and `body` are never read [INFO] [stdout] --> src/res/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HttpResponse { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 9 | pub status_code: StatusCode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub http_version: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | pub headers: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | pub body: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `set_header` and `set_body` are never used [INFO] [stdout] --> src/res/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl HttpResponse { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn set_header(k: String, v: String) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 33 | [INFO] [stdout] 34 | pub fn set_body(body: Vec) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `http_version` and `stream` are never read [INFO] [stdout] --> src/req/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct HttpRequest { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub http_version: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 11 | pub stream: TcpStream, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BadRequest` and `MethodNotAllowed` are never constructed [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum StatusCode { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 31 | BadRequest, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | InternalServerError, [INFO] [stdout] 33 | MethodNotAllowed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusCode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContentEncodingType` is never used [INFO] [stdout] --> src/lib.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum ContentEncodingType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `status_code`, `http_version`, `headers`, and `body` are never read [INFO] [stdout] --> src/res/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct HttpResponse { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 9 | pub status_code: StatusCode, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 10 | pub http_version: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | pub headers: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | pub body: Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_string` and `as_string` are never used [INFO] [stdout] --> src/lib.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl ContentEncodingType { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 66 | pub fn from_string(s: String) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn as_string(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `set_header` and `set_body` are never used [INFO] [stdout] --> src/res/mod.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl HttpResponse { [INFO] [stdout] | ----------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn set_header(k: String, v: String) {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 33 | [INFO] [stdout] 34 | pub fn set_body(body: Vec) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BadRequest` and `MethodNotAllowed` are never constructed [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub enum StatusCode { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 31 | BadRequest, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | InternalServerError, [INFO] [stdout] 33 | MethodNotAllowed, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StatusCode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ContentEncodingType` is never used [INFO] [stdout] --> src/lib.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum ContentEncodingType { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_string` and `as_string` are never used [INFO] [stdout] --> src/lib.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl ContentEncodingType { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 66 | pub fn from_string(s: String) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn as_string(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/res/mod.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | if !body.is_none() && compress_body { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `body.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this boolean expression can be simplified [INFO] [stdout] --> src/res/mod.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | if !body.is_none() && compress_body { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `body.is_some()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stdout] = note: `#[warn(clippy::nonminimal_bool)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `body` after checking its variant with `is_none` [INFO] [stdout] --> src/res/mod.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 76 | if !body.is_none() && compress_body { [INFO] [stdout] | -------------- the check is happening here [INFO] [stdout] 77 | let mut encoder = GzEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] 78 | encoder.write_all(body.as_ref().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `body` after checking its variant with `is_none` [INFO] [stdout] --> src/res/mod.rs:78:31 [INFO] [stdout] | [INFO] [stdout] 76 | if !body.is_none() && compress_body { [INFO] [stdout] | -------------- the check is happening here [INFO] [stdout] 77 | let mut encoder = GzEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] 78 | encoder.write_all(body.as_ref().unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] = note: `#[warn(clippy::unnecessary_unwrap)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `body` after checking its variant with `is_none` [INFO] [stdout] --> src/res/mod.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 76 | if !body.is_none() && compress_body { [INFO] [stdout] | -------------- the check is happening here [INFO] [stdout] ... [INFO] [stdout] 82 | res_body = body.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `unwrap` on `body` after checking its variant with `is_none` [INFO] [stdout] --> src/res/mod.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 76 | if !body.is_none() && compress_body { [INFO] [stdout] | -------------- the check is happening here [INFO] [stdout] ... [INFO] [stdout] 82 | res_body = body.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: try using `match` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_unwrap [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/res/mod.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 51 | && r.get(&"Content-Encoding".to_string()) == Some(&"gzip".to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `"Content-Encoding"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] = note: `#[warn(clippy::unnecessary_to_owned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `to_string` [INFO] [stdout] --> src/res/mod.rs:51:30 [INFO] [stdout] | [INFO] [stdout] 51 | && r.get(&"Content-Encoding".to_string()) == Some(&"gzip".to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `"Content-Encoding"` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned [INFO] [stdout] = note: `#[warn(clippy::unnecessary_to_owned)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: if let can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/res/mod.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | res_body = if let Some(b) = body { b } else { Vec::new() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `body.unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: if let can be simplified with `.unwrap_or_default()` [INFO] [stdout] --> src/res/mod.rs:86:24 [INFO] [stdout] | [INFO] [stdout] 86 | res_body = if let Some(b) = body { b } else { Vec::new() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `body.unwrap_or_default()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_unwrap_or_default [INFO] [stdout] = note: `#[warn(clippy::manual_unwrap_or_default)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | return Ok(req); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 54 - return Ok(req); [INFO] [stdout] 54 + Ok(req) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | return Ok(req); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] = note: `#[warn(clippy::needless_return)]` on by default [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 54 - return Ok(req); [INFO] [stdout] 54 + Ok(req) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u8` -> `u8`) [INFO] [stdout] --> src/util.rs:44:40 [INFO] [stdout] | [INFO] [stdout] 44 | body = buf.iter().map(|&b| b.clone() as u8).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `b.clone()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`u8` -> `u8`) [INFO] [stdout] --> src/util.rs:44:40 [INFO] [stdout] | [INFO] [stdout] 44 | body = buf.iter().map(|&b| b.clone() as u8).collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try: `b.clone()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `u8` which implements the `Copy` trait [INFO] [stdout] --> src/util.rs:44:40 [INFO] [stdout] | [INFO] [stdout] 44 | body = buf.iter().map(|&b| b.clone() as u8).collect(); [INFO] [stdout] | ^^^^^^^^^ help: try removing the `clone` call: `b` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `clone` on type `u8` which implements the `Copy` trait [INFO] [stdout] --> src/util.rs:44:40 [INFO] [stdout] | [INFO] [stdout] 44 | body = buf.iter().map(|&b| b.clone() as u8).collect(); [INFO] [stdout] | ^^^^^^^^^ help: try removing the `clone` call: `b` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy [INFO] [stdout] = note: `#[warn(clippy::clone_on_copy)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | return dir; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 73 - return dir; [INFO] [stdout] 73 + dir [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded `return` statement [INFO] [stdout] --> src/util.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | return dir; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stdout] help: remove `return` [INFO] [stdout] | [INFO] [stdout] 73 - return dir; [INFO] [stdout] 73 + dir [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/handler.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / match req.headers.get("Accept-Encoding") { [INFO] [stdout] 17 | | Some(r) => { [INFO] [stdout] 18 | | let encode_accepted = r.split(", ").into_iter().any(|v| v == "gzip"); [INFO] [stdout] 19 | | if encode_accepted { [INFO] [stdout] ... | [INFO] [stdout] 23 | | None => {} [INFO] [stdout] 24 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 16 ~ if let Some(r) = req.headers.get("Accept-Encoding") { [INFO] [stdout] 17 + let encode_accepted = r.split(", ").into_iter().any(|v| v == "gzip"); [INFO] [stdout] 18 + if encode_accepted { [INFO] [stdout] 19 + headers.insert("Content-Encoding".to_string(), "gzip".to_string()); [INFO] [stdout] 20 + } [INFO] [stdout] 21 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` [INFO] [stdout] --> src/handler.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | / match req.headers.get("Accept-Encoding") { [INFO] [stdout] 17 | | Some(r) => { [INFO] [stdout] 18 | | let encode_accepted = r.split(", ").into_iter().any(|v| v == "gzip"); [INFO] [stdout] 19 | | if encode_accepted { [INFO] [stdout] ... | [INFO] [stdout] 23 | | None => {} [INFO] [stdout] 24 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stdout] = note: `#[warn(clippy::single_match)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 16 ~ if let Some(r) = req.headers.get("Accept-Encoding") { [INFO] [stdout] 17 + let encode_accepted = r.split(", ").into_iter().any(|v| v == "gzip"); [INFO] [stdout] 18 + if encode_accepted { [INFO] [stdout] 19 + headers.insert("Content-Encoding".to_string(), "gzip".to_string()); [INFO] [stdout] 20 + } [INFO] [stdout] 21 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `GET` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | GET, [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Get` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `POST` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | POST, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Post` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `PUT` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | PUT, [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Put` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `GET` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | GET, [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Get` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] = note: `#[warn(clippy::upper_case_acronyms)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `PATCH` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | PATCH, [INFO] [stdout] | ^^^^^ help: consider making the acronym lowercase, except the initial letter: `Patch` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `POST` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | POST, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Post` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `DELETE` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | DELETE, [INFO] [stdout] | ^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Delete` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `OPTIONS` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | OPTIONS [INFO] [stdout] | ^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Options` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `PUT` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | PUT, [INFO] [stdout] | ^^^ help: consider making the acronym lowercase, except the initial letter: `Put` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `PATCH` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | PATCH, [INFO] [stdout] | ^^^^^ help: consider making the acronym lowercase, except the initial letter: `Patch` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `DELETE` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | DELETE, [INFO] [stdout] | ^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Delete` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `OPTIONS` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | OPTIONS [INFO] [stdout] | ^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `Options` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `GZIP` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | GZIP, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Gzip` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: name `GZIP` contains a capitalized acronym [INFO] [stdout] --> src/lib.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 62 | GZIP, [INFO] [stdout] | ^^^^ help: consider making the acronym lowercase, except the initial letter: `Gzip` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.22s [INFO] running `Command { std: "docker" "inspect" "eb180b830aa59201019a17e4d598f690a81e0a9c1287e014ed9c8acec11f3500", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb180b830aa59201019a17e4d598f690a81e0a9c1287e014ed9c8acec11f3500", kill_on_drop: false }` [INFO] [stdout] eb180b830aa59201019a17e4d598f690a81e0a9c1287e014ed9c8acec11f3500