[INFO] cloning repository https://github.com/artech-git/http-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/artech-git/http-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fartech-git%2Fhttp-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fartech-git%2Fhttp-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] af3c893fcdc408e379ec1aea3c8d05036c091c98 [INFO] checking artech-git/http-server against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fartech-git%2Fhttp-server" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/artech-git/http-server on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/artech-git/http-server [INFO] finished tweaking git repo https://github.com/artech-git/http-server [INFO] tweaked toml for git repo https://github.com/artech-git/http-server written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/artech-git/http-server 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 18d9392213a70845b70b514ea77b1371e43b7b7763d36782a7f096f26d94e807 [INFO] running `Command { std: "docker" "start" "-a" "18d9392213a70845b70b514ea77b1371e43b7b7763d36782a7f096f26d94e807", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "18d9392213a70845b70b514ea77b1371e43b7b7763d36782a7f096f26d94e807", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18d9392213a70845b70b514ea77b1371e43b7b7763d36782a7f096f26d94e807", kill_on_drop: false }` [INFO] [stdout] 18d9392213a70845b70b514ea77b1371e43b7b7763d36782a7f096f26d94e807 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0789d7bd21b1ed2f16422e462419672fb276e4290600c23ff2b3a76ca65bedae [INFO] running `Command { std: "docker" "start" "-a" "0789d7bd21b1ed2f16422e462419672fb276e4290600c23ff2b3a76ca65bedae", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking bytes v1.3.0 [INFO] [stderr] Checking clap_builder v4.5.7 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Compiling syn v2.0.27 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Checking clap v4.5.7 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling swc_macros_common v0.3.11 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling string_enum v0.4.4 [INFO] [stderr] Checking http-server-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/handlers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/handlers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_data_response` [INFO] [stdout] --> src/handlers.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::objects::{create_data_response, ServerEncoding}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_data_response` [INFO] [stdout] --> src/handlers.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::objects::{create_data_response, ServerEncoding}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/objects.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, io::Write, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/objects.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, io::Write, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handlers.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let mut filename = filename.into(); [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/handlers.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let mut filename = filename.into(); [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: unused variable: `err` [INFO] [stdout] --> src/handlers.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/handlers.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handlers.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | let mut file = tokio::fs::File::open(path).await; [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/handlers.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | let mut file = tokio::fs::File::open(path).await; [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/handlers.rs:166:73 [INFO] [stdout] | [INFO] [stdout] 166 | pub async fn write_buffer_to_file(mut path: PathBuf, filename: PathBuf, mut buffer: Vec) -> Result<(), ()>{ [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/handlers.rs:166:73 [INFO] [stdout] | [INFO] [stdout] 166 | pub async fn write_buffer_to_file(mut path: PathBuf, filename: PathBuf, mut buffer: Vec) -> Result<(), ()>{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/handlers.rs:222:16 [INFO] [stdout] | [INFO] [stdout] 222 | Ok(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/handlers.rs:222:16 [INFO] [stdout] | [INFO] [stdout] 222 | Ok(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | 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/handlers.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | 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 `vec_string` is never read [INFO] [stdout] --> src/handlers.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut vec_string = vec![]; [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: value assigned to `vec_string` is never read [INFO] [stdout] --> src/handlers.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut vec_string = vec![]; [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/handlers.rs:189:38 [INFO] [stdout] | [INFO] [stdout] 189 | pub async fn convert_stream_to_lines(mut stream: &mut BufStream) -> Vec { [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/handlers.rs:189:38 [INFO] [stdout] | [INFO] [stdout] 189 | pub async fn convert_stream_to_lines(mut stream: &mut BufStream) -> Vec { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncBufReadExt` [INFO] [stdout] --> src/handlers.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufStream, BufWriter}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncBufReadExt` [INFO] [stdout] --> src/handlers.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufStream, BufWriter}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/objects.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | mut data: Vec, [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/objects.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | mut data: Vec, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `version_value` [INFO] [stdout] --> src/objects.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let version_value = broken_data.next().ok_or(HttpRequestError::InvalidVersion)?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `version_value` [INFO] [stdout] --> src/objects.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let version_value = broken_data.next().ok_or(HttpRequestError::InvalidVersion)?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/objects.rs:100:62 [INFO] [stdout] | [INFO] [stdout] 100 | let method = Method::from_str(method_input).map_err(|v| HttpRequestError::InvalidMethod)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/objects.rs:100:62 [INFO] [stdout] | [INFO] [stdout] 100 | let method = Method::from_str(method_input).map_err(|v| HttpRequestError::InvalidMethod)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/objects.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut encoded_list = val.to_str().unwrap().split(",").map(|val| val.trim().to_string()).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/objects.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut encoded_list = val.to_str().unwrap().split(",").map(|val| val.trim().to_string()).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/objects.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let mut encoded_list = val.to_str().unwrap().split(",").map(|val| val.trim().to_string()).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/objects.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let mut encoded_list = val.to_str().unwrap().split(",").map(|val| val.trim().to_string()).collect::>(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/objects.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 187 | Self::GZIP => { [INFO] [stdout] | ---------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 202 | _ => { [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: unreachable pattern [INFO] [stdout] --> src/objects.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 187 | Self::GZIP => { [INFO] [stdout] | ---------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 202 | _ => { [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 `counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut counter = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_counter` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut counter = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_counter` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/main.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | while let Ok((tcpstream, addr)) = listener.accept().await { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/main.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | while let Ok((tcpstream, addr)) = listener.accept().await { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:99:25 [INFO] [stdout] | [INFO] [stdout] 99 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:99:25 [INFO] [stdout] | [INFO] [stdout] 99 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:131:25 [INFO] [stdout] | [INFO] [stdout] 131 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:136:25 [INFO] [stdout] | [INFO] [stdout] 136 | let err = buffered_stream.write(&resp_data).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:151:25 [INFO] [stdout] | [INFO] [stdout] 151 | let err = buffered_stream.write(&data_response).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:178:25 [INFO] [stdout] | [INFO] [stdout] 178 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:131:25 [INFO] [stdout] | [INFO] [stdout] 131 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:136:25 [INFO] [stdout] | [INFO] [stdout] 136 | let err = buffered_stream.write(&resp_data).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:151:25 [INFO] [stdout] | [INFO] [stdout] 151 | let err = buffered_stream.write(&data_response).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:178:25 [INFO] [stdout] | [INFO] [stdout] 178 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | let mut file_name = OsString::from(file_name); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | let mut buffer = if let Ok(val) = [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | let mut resp_body = get_path_name(val).as_bytes().to_vec(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | let mut file_name = OsString::from(file_name); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | let mut buffer = if let Ok(val) = [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | let mut resp_body = get_path_name(val).as_bytes().to_vec(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut listener = TcpListener::bind("127.0.0.1:4221").await.unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut listener = TcpListener::bind("127.0.0.1:4221").await.unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HeaderMapError` is never constructed [INFO] [stdout] --> src/error.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum HttpRequestError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | HeaderMapError(HeaderError), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpRequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `response_to_raw_string` is never used [INFO] [stdout] --> src/handlers.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn response_to_raw_string(mut response: http::Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_buffer_to_response_buffer` is never used [INFO] [stdout] --> src/handlers.rs:158:14 [INFO] [stdout] | [INFO] [stdout] 158 | pub async fn process_buffer_to_response_buffer(buffer: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_req_mut` is never used [INFO] [stdout] --> src/objects.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl HttpRequest { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_req_mut(&mut self) -> &mut Request { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> src/objects.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct Request { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | version: HTTPVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_header_encoding` and `select_valid_encoding` are never used [INFO] [stdout] --> src/objects.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 183 | impl ServerEncoding { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn get_header_encoding(headervalue: &HeaderValue) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn select_valid_encoding(list: Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HeaderMapError` is never constructed [INFO] [stdout] --> src/error.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum HttpRequestError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | HeaderMapError(HeaderError), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpRequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `response_to_raw_string` is never used [INFO] [stdout] --> src/handlers.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn response_to_raw_string(mut response: http::Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_buffer_to_response_buffer` is never used [INFO] [stdout] --> src/handlers.rs:158:14 [INFO] [stdout] | [INFO] [stdout] 158 | pub async fn process_buffer_to_response_buffer(buffer: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_req_mut` is never used [INFO] [stdout] --> src/objects.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl HttpRequest { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_req_mut(&mut self) -> &mut Request { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> src/objects.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct Request { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | version: HTTPVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_header_encoding` and `select_valid_encoding` are never used [INFO] [stdout] --> src/objects.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 183 | impl ServerEncoding { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn get_header_encoding(headervalue: &HeaderValue) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn select_valid_encoding(list: Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.11s [INFO] running `Command { std: "docker" "inspect" "0789d7bd21b1ed2f16422e462419672fb276e4290600c23ff2b3a76ca65bedae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0789d7bd21b1ed2f16422e462419672fb276e4290600c23ff2b3a76ca65bedae", kill_on_drop: false }` [INFO] [stdout] 0789d7bd21b1ed2f16422e462419672fb276e4290600c23ff2b3a76ca65bedae [INFO] checking artech-git/http-server against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fartech-git%2Fhttp-server" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/artech-git/http-server on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/artech-git/http-server [INFO] finished tweaking git repo https://github.com/artech-git/http-server [INFO] tweaked toml for git repo https://github.com/artech-git/http-server written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/artech-git/http-server 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4a7bc0d855001e189fa8899156b141a815b2efd716fdb79bd967a1ecec7f5280 [INFO] running `Command { std: "docker" "start" "-a" "4a7bc0d855001e189fa8899156b141a815b2efd716fdb79bd967a1ecec7f5280", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4a7bc0d855001e189fa8899156b141a815b2efd716fdb79bd967a1ecec7f5280", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a7bc0d855001e189fa8899156b141a815b2efd716fdb79bd967a1ecec7f5280", kill_on_drop: false }` [INFO] [stdout] 4a7bc0d855001e189fa8899156b141a815b2efd716fdb79bd967a1ecec7f5280 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0027c95453c140c5027f8aea59b47a1e0bf597e1a6f9fed7c669f2108046b0e2 [INFO] running `Command { std: "docker" "start" "-a" "0027c95453c140c5027f8aea59b47a1e0bf597e1a6f9fed7c669f2108046b0e2", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling syn v1.0.48 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking anstyle-parse v0.2.4 [INFO] [stderr] Checking is_terminal_polyfill v1.70.0 [INFO] [stderr] Checking colorchoice v1.0.1 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking anstyle-query v1.1.0 [INFO] [stderr] Checking anstyle v1.0.7 [INFO] [stderr] Checking clap_lex v0.7.1 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Checking bytes v1.3.0 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Checking anstream v0.6.14 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking clap_builder v4.5.7 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking pin-project-lite v0.2.10 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling syn v2.0.27 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Checking clap v4.5.7 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling swc_macros_common v0.3.11 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling string_enum v0.4.4 [INFO] [stderr] Checking http-server-starter-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/handlers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_data_response` [INFO] [stdout] --> src/handlers.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::objects::{create_data_response, ServerEncoding}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/objects.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, io::Write, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/handlers.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create_data_response` [INFO] [stdout] --> src/handlers.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::objects::{create_data_response, ServerEncoding}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/objects.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{collections::HashMap, io::Write, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handlers.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let mut filename = filename.into(); [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/handlers.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | let mut filename = filename.into(); [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: unused variable: `err` [INFO] [stdout] --> src/handlers.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/handlers.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/handlers.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | let mut file = tokio::fs::File::open(path).await; [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/handlers.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | let mut file = tokio::fs::File::open(path).await; [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/handlers.rs:166:73 [INFO] [stdout] | [INFO] [stdout] 166 | pub async fn write_buffer_to_file(mut path: PathBuf, filename: PathBuf, mut buffer: Vec) -> Result<(), ()>{ [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/handlers.rs:166:73 [INFO] [stdout] | [INFO] [stdout] 166 | pub async fn write_buffer_to_file(mut path: PathBuf, filename: PathBuf, mut buffer: Vec) -> Result<(), ()>{ [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/handlers.rs:222:16 [INFO] [stdout] | [INFO] [stdout] 222 | Ok(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | 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 `vec_string` is never read [INFO] [stdout] --> src/handlers.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut vec_string = vec![]; [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: unused variable: `n` [INFO] [stdout] --> src/handlers.rs:222:16 [INFO] [stdout] | [INFO] [stdout] 222 | Ok(n) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/handlers.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | 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 `vec_string` is never read [INFO] [stdout] --> src/handlers.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | let mut vec_string = vec![]; [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/handlers.rs:189:38 [INFO] [stdout] | [INFO] [stdout] 189 | pub async fn convert_stream_to_lines(mut stream: &mut BufStream) -> Vec { [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/handlers.rs:189:38 [INFO] [stdout] | [INFO] [stdout] 189 | pub async fn convert_stream_to_lines(mut stream: &mut BufStream) -> Vec { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncBufReadExt` [INFO] [stdout] --> src/handlers.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufStream, BufWriter}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncBufReadExt` [INFO] [stdout] --> src/handlers.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufStream, BufWriter}, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/objects.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | mut data: Vec, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `version_value` [INFO] [stdout] --> src/objects.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let version_value = broken_data.next().ok_or(HttpRequestError::InvalidVersion)?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/objects.rs:100:62 [INFO] [stdout] | [INFO] [stdout] 100 | let method = Method::from_str(method_input).map_err(|v| HttpRequestError::InvalidMethod)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/objects.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | mut data: Vec, [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `version_value` [INFO] [stdout] --> src/objects.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let version_value = broken_data.next().ok_or(HttpRequestError::InvalidVersion)?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/objects.rs:100:62 [INFO] [stdout] | [INFO] [stdout] 100 | let method = Method::from_str(method_input).map_err(|v| HttpRequestError::InvalidMethod)?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/objects.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut encoded_list = val.to_str().unwrap().split(",").map(|val| val.trim().to_string()).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/objects.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut encoded_list = val.to_str().unwrap().split(",").map(|val| val.trim().to_string()).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/objects.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let mut encoded_list = val.to_str().unwrap().split(",").map(|val| val.trim().to_string()).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/objects.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let mut encoded_list = val.to_str().unwrap().split(",").map(|val| val.trim().to_string()).collect::>(); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/objects.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 187 | Self::GZIP => { [INFO] [stdout] | ---------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 202 | _ => { [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: unreachable pattern [INFO] [stdout] --> src/objects.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 187 | Self::GZIP => { [INFO] [stdout] | ---------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 202 | _ => { [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 `counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut counter = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_counter` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/main.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | while let Ok((tcpstream, addr)) = listener.accept().await { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let mut counter = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_counter` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `addr` [INFO] [stdout] --> src/main.rs:45:30 [INFO] [stdout] | [INFO] [stdout] 45 | while let Ok((tcpstream, addr)) = listener.accept().await { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_addr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:99:25 [INFO] [stdout] | [INFO] [stdout] 99 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:131:25 [INFO] [stdout] | [INFO] [stdout] 131 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:136:25 [INFO] [stdout] | [INFO] [stdout] 136 | let err = buffered_stream.write(&resp_data).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:151:25 [INFO] [stdout] | [INFO] [stdout] 151 | let err = buffered_stream.write(&data_response).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:178:25 [INFO] [stdout] | [INFO] [stdout] 178 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:99:25 [INFO] [stdout] | [INFO] [stdout] 99 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:121:33 [INFO] [stdout] | [INFO] [stdout] 121 | ... Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:131:25 [INFO] [stdout] | [INFO] [stdout] 131 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:136:25 [INFO] [stdout] | [INFO] [stdout] 136 | let err = buffered_stream.write(&resp_data).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:151:25 [INFO] [stdout] | [INFO] [stdout] 151 | let err = buffered_stream.write(&data_response).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:178:25 [INFO] [stdout] | [INFO] [stdout] 178 | let err = buffered_stream.write(&buffer).await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | let mut file_name = OsString::from(file_name); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | let mut buffer = if let Ok(val) = [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | let mut resp_body = get_path_name(val).as_bytes().to_vec(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | let mut file_name = OsString::from(file_name); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:109:25 [INFO] [stdout] | [INFO] [stdout] 109 | let mut buffer = if let Ok(val) = [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:141:25 [INFO] [stdout] | [INFO] [stdout] 141 | let mut resp_body = get_path_name(val).as_bytes().to_vec(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut listener = TcpListener::bind("127.0.0.1:4221").await.unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let mut listener = TcpListener::bind("127.0.0.1:4221").await.unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HeaderMapError` is never constructed [INFO] [stdout] --> src/error.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum HttpRequestError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | HeaderMapError(HeaderError), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpRequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `response_to_raw_string` is never used [INFO] [stdout] --> src/handlers.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn response_to_raw_string(mut response: http::Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_buffer_to_response_buffer` is never used [INFO] [stdout] --> src/handlers.rs:158:14 [INFO] [stdout] | [INFO] [stdout] 158 | pub async fn process_buffer_to_response_buffer(buffer: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_req_mut` is never used [INFO] [stdout] --> src/objects.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl HttpRequest { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_req_mut(&mut self) -> &mut Request { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> src/objects.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct Request { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | version: HTTPVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_header_encoding` and `select_valid_encoding` are never used [INFO] [stdout] --> src/objects.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 183 | impl ServerEncoding { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn get_header_encoding(headervalue: &HeaderValue) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn select_valid_encoding(list: Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `HeaderMapError` is never constructed [INFO] [stdout] --> src/error.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum HttpRequestError { [INFO] [stdout] | ---------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 20 | HeaderMapError(HeaderError), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpRequestError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `response_to_raw_string` is never used [INFO] [stdout] --> src/handlers.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn response_to_raw_string(mut response: http::Response) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_buffer_to_response_buffer` is never used [INFO] [stdout] --> src/handlers.rs:158:14 [INFO] [stdout] | [INFO] [stdout] 158 | pub async fn process_buffer_to_response_buffer(buffer: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_req_mut` is never used [INFO] [stdout] --> src/objects.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl HttpRequest { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_req_mut(&mut self) -> &mut Request { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `version` is never read [INFO] [stdout] --> src/objects.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub struct Request { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 83 | version: HTTPVersion, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Request` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_header_encoding` and `select_valid_encoding` are never used [INFO] [stdout] --> src/objects.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 183 | impl ServerEncoding { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 207 | pub fn get_header_encoding(headervalue: &HeaderValue) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn select_valid_encoding(list: Vec) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/objects.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 47 | let request = Request::from_str(&request_data).map_err(|val| format!("{:?}", val))?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 48 | [INFO] [stdout] 49 | let mut headermap = HeaderMap::default(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 71 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 72 | | request: request, [INFO] [stdout] 73 | | headers: headermap, [INFO] [stdout] 74 | | body: body_data [INFO] [stdout] 75 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/objects.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 106 | let uri = Uri::from_str(&uri_string).map_err(|_| HttpRequestError::InvalidTarget)?; [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 110 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 111 | | method, [INFO] [stdout] 112 | | uri, [INFO] [stdout] 113 | | version, [INFO] [stdout] 114 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/objects.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 47 | let request = Request::from_str(&request_data).map_err(|val| format!("{:?}", val))?; [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 48 | [INFO] [stdout] 49 | let mut headermap = HeaderMap::default(); [INFO] [stdout] | --------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 71 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 72 | | request: request, [INFO] [stdout] 73 | | headers: headermap, [INFO] [stdout] 74 | | body: body_data [INFO] [stdout] 75 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/objects.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 106 | let uri = Uri::from_str(&uri_string).map_err(|_| HttpRequestError::InvalidTarget)?; [INFO] [stdout] | --- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 110 | Ok(Self { [INFO] [stdout] | ____________^ [INFO] [stdout] 111 | | method, [INFO] [stdout] 112 | | uri, [INFO] [stdout] 113 | | version, [INFO] [stdout] 114 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `http-server-starter-rust` (bin "http-server-starter-rust") due to 3 previous errors; 37 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `http-server-starter-rust` (bin "http-server-starter-rust" test) due to 3 previous errors; 37 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0027c95453c140c5027f8aea59b47a1e0bf597e1a6f9fed7c669f2108046b0e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0027c95453c140c5027f8aea59b47a1e0bf597e1a6f9fed7c669f2108046b0e2", kill_on_drop: false }` [INFO] [stdout] 0027c95453c140c5027f8aea59b47a1e0bf597e1a6f9fed7c669f2108046b0e2