[INFO] cloning repository https://github.com/threeh11/web_server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/threeh11/web_server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthreeh11%2Fweb_server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthreeh11%2Fweb_server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1ea8b1ef23e6751fee689238c69c6815bed66c90 [INFO] checking threeh11/web_server against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthreeh11%2Fweb_server" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/threeh11/web_server [INFO] finished tweaking git repo https://github.com/threeh11/web_server [INFO] tweaked toml for git repo https://github.com/threeh11/web_server written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/threeh11/web_server on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/threeh11/web_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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 456f6a97fa8c27e2bf1e7de58c0d470c3625c39b0f205c7d91c9c4f087cf86ee [INFO] running `Command { std: "docker" "start" "-a" "456f6a97fa8c27e2bf1e7de58c0d470c3625c39b0f205c7d91c9c4f087cf86ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "456f6a97fa8c27e2bf1e7de58c0d470c3625c39b0f205c7d91c9c4f087cf86ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "456f6a97fa8c27e2bf1e7de58c0d470c3625c39b0f205c7d91c9c4f087cf86ee", kill_on_drop: false }` [INFO] [stdout] 456f6a97fa8c27e2bf1e7de58c0d470c3625c39b0f205c7d91c9c4f087cf86ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0e6eb7b8b6288b03c6fcff0cc8da5cd2fc5ea725f73afde08c4799eb965f959 [INFO] running `Command { std: "docker" "start" "-a" "c0e6eb7b8b6288b03c6fcff0cc8da5cd2fc5ea725f73afde08c4799eb965f959", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling syn v2.0.70 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking nu-ansi-term v0.50.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Checking tokio v1.38.0 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking thiserror v1.0.63 [INFO] [stderr] Checking flexi_logger v0.28.5 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking serde v1.0.204 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Checking serde_yaml v0.8.26 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking hyper-util v0.1.6 [INFO] [stderr] Checking web_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::core::server::VirtualHost` [INFO] [stdout] --> src/core/jexus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::core::server::VirtualHost; [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 import: `Response` [INFO] [stdout] --> src/core/location.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use hyper::{Response, Uri}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/os/file_manager.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs, io}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::server::VirtualHost` [INFO] [stdout] --> src/core/jexus.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::core::server::VirtualHost; [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 import: `Response` [INFO] [stdout] --> src/core/location.rs:1:13 [INFO] [stdout] | [INFO] [stdout] 1 | use hyper::{Response, Uri}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io` [INFO] [stdout] --> src/os/file_manager.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs, io}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_agent` [INFO] [stdout] --> src/core/server.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let user_agent = request.headers().get("User-Agent").map(|value| value.to_str().unwrap_or("Unknown")).unwrap_or("Unknown"); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_agent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `jexus_config::User` is more private than the item `GlobalContext::user` [INFO] [stdout] --> src/config/jexus_config.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub user: User, [INFO] [stdout] | ^^^^^^^^^^^^^^ field `GlobalContext::user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `jexus_config::User` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/config/jexus_config.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `jexus_config::User` is more private than the item `JxsMain::user` [INFO] [stdout] --> src/config/jexus_config.rs:281:5 [INFO] [stdout] | [INFO] [stdout] 281 | pub user: User, [INFO] [stdout] | ^^^^^^^^^^^^^^ field `JxsMain::user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `jexus_config::User` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/config/jexus_config.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `main` is never read [INFO] [stdout] --> src/config/jexus_config.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 275 | pub struct JxsValidConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 276 | pub main: JxsMain, [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 `user` and `worker_processes` are never read [INFO] [stdout] --> src/config/jexus_config.rs:281:9 [INFO] [stdout] | [INFO] [stdout] 280 | pub struct JxsMain { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 281 | pub user: User, [INFO] [stdout] | ^^^^ [INFO] [stdout] 282 | pub worker_processes: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/config/jexus_config.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 290 | pub struct JxsServer { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 291 | pub listen: usize, [INFO] [stdout] 292 | pub root: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JxsServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `auto_index`, `random_index`, and `fastcgi_pass` are never read [INFO] [stdout] --> src/config/jexus_config.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 297 | pub struct JxsLocation { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 298 | pub uri: Uri, [INFO] [stdout] 299 | pub index: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 300 | pub auto_index: AutoIndex, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 301 | pub random_index: RandomIndex, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 302 | pub proxy_pass: String, [INFO] [stdout] 303 | pub fastcgi_pass: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JxsLocation` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_tcp_listener` is never used [INFO] [stdout] --> src/core/server.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 23 | impl VirtualHost<'_> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn get_tcp_listener(&mut self) -> TcpListener { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `jxs_valid_config` and `resolver` are never read [INFO] [stdout] --> src/core/jexus.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Jexus { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 9 | pub jxs_valid_config: JxsValidConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub resolver: JxsResolver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jxs_valid_config` is never read [INFO] [stdout] --> src/core/resolver.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct JxsResolver { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 8 | jxs_valid_config: Box [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `uri` and `module` are never read [INFO] [stdout] --> src/core/location.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct LocationInstance { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 6 | uri: Uri, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | module: ProxyModule [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocationInstance` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_root` is never used [INFO] [stdout] --> src/os/capabilities.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn is_root() -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexModule` is never constructed [INFO] [stdout] --> src/jxs/http/index.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct IndexModule { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexListModule` is never constructed [INFO] [stdout] --> src/jxs/http/index.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct IndexListModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `proxy_pass` is never read [INFO] [stdout] --> src/jxs/http/proxy.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ProxyModule { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 5 | proxy_pass: String, // todo на какой нибудь удобо читаемый тип [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProxyModule` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_proxy_pass` and `build` are never used [INFO] [stdout] --> src/jxs/http/proxy.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 9 | impl ProxyModule { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn set_proxy_pass(&mut self, proxy_pass: String) -> &mut ProxyModule { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn build(&self) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_agent` [INFO] [stdout] --> src/core/server.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let user_agent = request.headers().get("User-Agent").map(|value| value.to_str().unwrap_or("Unknown")).unwrap_or("Unknown"); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_agent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/jexus_server_manager.rs:42:52 [INFO] [stdout] | [INFO] [stdout] 42 | ... async move { server_conf.handler(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/jexus_server_manager.rs:42:54 [INFO] [stdout] | [INFO] [stdout] 42 | ... async move { server_conf.handler(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/jexus_server_manager.rs:42:79 [INFO] [stdout] | [INFO] [stdout] 42 | ... async move { server_conf.handler(req).await } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/jexus_server_manager.rs:42:54 [INFO] [stdout] | [INFO] [stdout] 42 | ... async move { server_conf.handler(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/server.rs:73:113 [INFO] [stdout] | [INFO] [stdout] 73 | pub async fn handler(&self, request: Request) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________________________________________________________^ [INFO] [stdout] 74 | | let user_agent = request.headers().get("User-Agent").map(|value| value.to_str().unwrap_or("Unknown")).unwrap_or("Unknown"); [INFO] [stdout] 75 | | // info!("Request: {} {} - User-Agent: {}", request.method(), request.uri(), user_agent); [INFO] [stdout] 76 | | let base_path = Path::new("/home/threeh/test"); [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/server.rs:73:113 [INFO] [stdout] | [INFO] [stdout] 73 | pub async fn handler(&self, request: Request) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________________________________________________________^ [INFO] [stdout] 74 | | let user_agent = request.headers().get("User-Agent").map(|value| value.to_str().unwrap_or("Unknown")).unwrap_or("Unknown"); [INFO] [stdout] 75 | | // info!("Request: {} {} - User-Agent: {}", request.method(), request.uri(), user_agent); [INFO] [stdout] 76 | | let base_path = Path::new("/home/threeh/test"); [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/server.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | / match fs::read(full_path) { [INFO] [stdout] 90 | | Ok(contents) => Ok(Response::new(Full::from(Bytes::from(contents)))), [INFO] [stdout] 91 | | Err(_) => Ok(Response::builder() [INFO] [stdout] 92 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 93 | | .body(Full::from("File not found")) [INFO] [stdout] 94 | | .unwrap()), [INFO] [stdout] 95 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/server.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | Ok(contents) => Ok(Response::new(Full::from(Bytes::from(contents)))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/server.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | Err(_) => Ok(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 92 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 93 | | .body(Full::from("File not found")) [INFO] [stdout] 94 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `jexus_config::User` is more private than the item `GlobalContext::user` [INFO] [stdout] --> src/config/jexus_config.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub user: User, [INFO] [stdout] | ^^^^^^^^^^^^^^ field `GlobalContext::user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `jexus_config::User` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/config/jexus_config.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `jexus_config::User` is more private than the item `JxsMain::user` [INFO] [stdout] --> src/config/jexus_config.rs:281:5 [INFO] [stdout] | [INFO] [stdout] 281 | pub user: User, [INFO] [stdout] | ^^^^^^^^^^^^^^ field `JxsMain::user` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `jexus_config::User` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/config/jexus_config.rs:59:1 [INFO] [stdout] | [INFO] [stdout] 59 | struct User { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `main` is never read [INFO] [stdout] --> src/config/jexus_config.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 275 | pub struct JxsValidConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 276 | pub main: JxsMain, [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 `user` and `worker_processes` are never read [INFO] [stdout] --> src/config/jexus_config.rs:281:9 [INFO] [stdout] | [INFO] [stdout] 280 | pub struct JxsMain { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 281 | pub user: User, [INFO] [stdout] | ^^^^ [INFO] [stdout] 282 | pub worker_processes: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `root` is never read [INFO] [stdout] --> src/config/jexus_config.rs:292:9 [INFO] [stdout] | [INFO] [stdout] 290 | pub struct JxsServer { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 291 | pub listen: usize, [INFO] [stdout] 292 | pub root: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JxsServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `index`, `auto_index`, `random_index`, and `fastcgi_pass` are never read [INFO] [stdout] --> src/config/jexus_config.rs:299:9 [INFO] [stdout] | [INFO] [stdout] 297 | pub struct JxsLocation { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 298 | pub uri: Uri, [INFO] [stdout] 299 | pub index: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 300 | pub auto_index: AutoIndex, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 301 | pub random_index: RandomIndex, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 302 | pub proxy_pass: String, [INFO] [stdout] 303 | pub fastcgi_pass: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JxsLocation` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_tcp_listener` is never used [INFO] [stdout] --> src/core/server.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 23 | impl VirtualHost<'_> { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn get_tcp_listener(&mut self) -> TcpListener { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `jxs_valid_config` and `resolver` are never read [INFO] [stdout] --> src/core/jexus.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Jexus { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 9 | pub jxs_valid_config: JxsValidConfig, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | pub resolver: JxsResolver, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `jxs_valid_config` is never read [INFO] [stdout] --> src/core/resolver.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct JxsResolver { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 8 | jxs_valid_config: Box [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `uri` and `module` are never read [INFO] [stdout] --> src/core/location.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct LocationInstance { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 6 | uri: Uri, [INFO] [stdout] | ^^^ [INFO] [stdout] 7 | module: ProxyModule [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LocationInstance` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_root` is never used [INFO] [stdout] --> src/os/capabilities.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn is_root() -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexModule` is never constructed [INFO] [stdout] --> src/jxs/http/index.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct IndexModule { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IndexListModule` is never constructed [INFO] [stdout] --> src/jxs/http/index.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct IndexListModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `proxy_pass` is never read [INFO] [stdout] --> src/jxs/http/proxy.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct ProxyModule { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 5 | proxy_pass: String, // todo на какой нибудь удобо читаемый тип [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProxyModule` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_proxy_pass` and `build` are never used [INFO] [stdout] --> src/jxs/http/proxy.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 9 | impl ProxyModule { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn set_proxy_pass(&mut self, proxy_pass: String) -> &mut ProxyModule { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn build(&self) -> Box { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/jexus_server_manager.rs:42:52 [INFO] [stdout] | [INFO] [stdout] 42 | ... async move { server_conf.handler(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `web_server` (bin "web_server") due to 9 previous errors; 19 warnings emitted [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/jexus_server_manager.rs:42:54 [INFO] [stdout] | [INFO] [stdout] 42 | ... async move { server_conf.handler(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/jexus_server_manager.rs:42:79 [INFO] [stdout] | [INFO] [stdout] 42 | ... async move { server_conf.handler(req).await } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/jexus_server_manager.rs:42:54 [INFO] [stdout] | [INFO] [stdout] 42 | ... async move { server_conf.handler(req).await } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/server.rs:73:113 [INFO] [stdout] | [INFO] [stdout] 73 | pub async fn handler(&self, request: Request) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________________________________________________________^ [INFO] [stdout] 74 | | let user_agent = request.headers().get("User-Agent").map(|value| value.to_str().unwrap_or("Unknown")).unwrap_or("Unknown"); [INFO] [stdout] 75 | | // info!("Request: {} {} - User-Agent: {}", request.method(), request.uri(), user_agent); [INFO] [stdout] 76 | | let base_path = Path::new("/home/threeh/test"); [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/server.rs:73:113 [INFO] [stdout] | [INFO] [stdout] 73 | pub async fn handler(&self, request: Request) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________________________________________________________^ [INFO] [stdout] 74 | | let user_agent = request.headers().get("User-Agent").map(|value| value.to_str().unwrap_or("Unknown")).unwrap_or("Unknown"); [INFO] [stdout] 75 | | // info!("Request: {} {} - User-Agent: {}", request.method(), request.uri(), user_agent); [INFO] [stdout] 76 | | let base_path = Path::new("/home/threeh/test"); [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/server.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | / match fs::read(full_path) { [INFO] [stdout] 90 | | Ok(contents) => Ok(Response::new(Full::from(Bytes::from(contents)))), [INFO] [stdout] 91 | | Err(_) => Ok(Response::builder() [INFO] [stdout] 92 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 93 | | .body(Full::from("File not found")) [INFO] [stdout] 94 | | .unwrap()), [INFO] [stdout] 95 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/server.rs:90:29 [INFO] [stdout] | [INFO] [stdout] 90 | Ok(contents) => Ok(Response::new(Full::from(Bytes::from(contents)))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/core/server.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 91 | Err(_) => Ok(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 92 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 93 | | .body(Full::from("File not found")) [INFO] [stdout] 94 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `web_server` (bin "web_server" test) due to 9 previous errors; 19 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c0e6eb7b8b6288b03c6fcff0cc8da5cd2fc5ea725f73afde08c4799eb965f959", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0e6eb7b8b6288b03c6fcff0cc8da5cd2fc5ea725f73afde08c4799eb965f959", kill_on_drop: false }` [INFO] [stdout] c0e6eb7b8b6288b03c6fcff0cc8da5cd2fc5ea725f73afde08c4799eb965f959