[INFO] cloning repository https://github.com/samicpp/rust-http-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/samicpp/rust-http-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamicpp%2Frust-http-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsamicpp%2Frust-http-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7998f4c49cef678fc5cba851193bc9d3a03ebb3a [INFO] checking samicpp/rust-http-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%2Fsamicpp%2Frust-http-server" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/samicpp/rust-http-server [INFO] finished tweaking git repo https://github.com/samicpp/rust-http-server [INFO] tweaked toml for git repo https://github.com/samicpp/rust-http-server written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/samicpp/rust-http-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/samicpp/rust-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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 2be1930e98fe8e6e0978c22d8fb6511c1e979afb057ac41aad336294c1d45ae7 [INFO] running `Command { std: "docker" "start" "-a" "2be1930e98fe8e6e0978c22d8fb6511c1e979afb057ac41aad336294c1d45ae7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2be1930e98fe8e6e0978c22d8fb6511c1e979afb057ac41aad336294c1d45ae7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2be1930e98fe8e6e0978c22d8fb6511c1e979afb057ac41aad336294c1d45ae7", kill_on_drop: false }` [INFO] [stdout] 2be1930e98fe8e6e0978c22d8fb6511c1e979afb057ac41aad336294c1d45ae7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 8ec8ec00c4a5d0999571e1ac0436e134263472270be394aa18ea44e13f91edda [INFO] running `Command { std: "docker" "start" "-a" "8ec8ec00c4a5d0999571e1ac0436e134263472270be394aa18ea44e13f91edda", kill_on_drop: false }` [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling aws-lc-rs v1.13.1 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Compiling rustls v0.23.28 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling syn v2.0.103 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling aws-lc-sys v0.29.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking h2 v0.4.10 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking rustls-webpki v0.103.3 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking tokio-rustls v0.26.2 [INFO] [stderr] Checking http_server v0.1.3 (/opt/rustwide/workdir/http_server) [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/main.rs:110:60 [INFO] [stdout] | [INFO] [stdout] 110 | .serve_connection(io, service_fn(async|req|handler(&serve_dir, 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] --> http_server/src/main.rs:110:60 [INFO] [stdout] | [INFO] [stdout] 110 | .serve_connection(io, service_fn(async|req|handler(&serve_dir, req).await)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/main.rs:110:85 [INFO] [stdout] | [INFO] [stdout] 110 | .serve_connection(io, service_fn(async|req|handler(&serve_dir, req).await)) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/main.rs:110:60 [INFO] [stdout] | [INFO] [stdout] 110 | .serve_connection(io, service_fn(async|req|handler(&serve_dir, req).await)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:12:121 [INFO] [stdout] | [INFO] [stdout] 12 | pub async fn handler(serve_dir: &str, req: Request) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________________________________________________________________^ [INFO] [stdout] 13 | | println!("Serving connection"); [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | let path_cleanup1: Regex = Regex::new(r"/+").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:12:121 [INFO] [stdout] | [INFO] [stdout] 12 | pub async fn handler(serve_dir: &str, req: Request) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________________________________________________________________^ [INFO] [stdout] 13 | | println!("Serving connection"); [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | let path_cleanup1: Regex = Regex::new(r"/+").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / match info_res{ [INFO] [stdout] 38 | | Ok(info) => { [INFO] [stdout] 39 | | if info.is_file() { [INFO] [stdout] 40 | | file_handler(&full_path).await [INFO] [stdout] ... | [INFO] [stdout] 74 | | }, [INFO] [stdout] 75 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | Ok(info) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 39 | | if info.is_file() { [INFO] [stdout] 40 | | file_handler(&full_path).await [INFO] [stdout] ... | [INFO] [stdout] 67 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | / if info.is_file() { [INFO] [stdout] 40 | | file_handler(&full_path).await [INFO] [stdout] ... | [INFO] [stdout] 65 | | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | if info.is_file() { [INFO] [stdout] | _______________________________^ [INFO] [stdout] 40 | | file_handler(&full_path).await [INFO] [stdout] ... | [INFO] [stdout] 45 | | } else if info.is_dir(){ [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | file_handler(&full_path).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:40:42 [INFO] [stdout] | [INFO] [stdout] 40 | file_handler(&full_path).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | file_handler(&full_path).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | } else if info.is_dir(){ [INFO] [stdout] | ____________________^ [INFO] [stdout] 46 | | dir_handler(req, &full_path).await [INFO] [stdout] ... | [INFO] [stdout] 65 | | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:45:36 [INFO] [stdout] | [INFO] [stdout] 45 | } else if info.is_dir(){ [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 46 | | dir_handler(req, &full_path).await [INFO] [stdout] ... | [INFO] [stdout] 64 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | dir_handler(req, &full_path).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:46:46 [INFO] [stdout] | [INFO] [stdout] 46 | dir_handler(req, &full_path).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | dir_handler(req, &full_path).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 65 | | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:65:115 [INFO] [stdout] | [INFO] [stdout] 65 | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | Err(err) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 69 | | if err.kind() == std::io::ErrorKind::NotFound { [INFO] [stdout] 70 | | error_handler(404, err, req).await [INFO] [stdout] 71 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 74 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | / if err.kind() == std::io::ErrorKind::NotFound { [INFO] [stdout] 70 | | error_handler(404, err, req).await [INFO] [stdout] 71 | | } else { [INFO] [stdout] 72 | | error_handler(500, err, req).await [INFO] [stdout] 73 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:69:59 [INFO] [stdout] | [INFO] [stdout] 69 | if err.kind() == std::io::ErrorKind::NotFound { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 70 | | error_handler(404, err, req).await [INFO] [stdout] 71 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | error_handler(404, err, req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:70:46 [INFO] [stdout] | [INFO] [stdout] 70 | error_handler(404, err, req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | error_handler(404, err, req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 72 | | error_handler(500, err, req).await [INFO] [stdout] 73 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | error_handler(500, err, req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:72:46 [INFO] [stdout] | [INFO] [stdout] 72 | error_handler(500, err, req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | error_handler(500, err, req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:80:141 [INFO] [stdout] | [INFO] [stdout] 80 | pub async fn error_handler(code: u16, err: std::io::Error, req: Request) -> Result>, Infallible>{ [INFO] [stdout] | _____________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 81 | | eprintln!("Error of status {} occoured\n\x1b[31m{}\x1b[0m",code,err); [INFO] [stdout] 82 | | match code { [INFO] [stdout] 83 | | 404 => { [INFO] [stdout] ... | [INFO] [stdout] 113 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:80:141 [INFO] [stdout] | [INFO] [stdout] 80 | pub async fn error_handler(code: u16, err: std::io::Error, req: Request) -> Result>, Infallible>{ [INFO] [stdout] | _____________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 81 | | eprintln!("Error of status {} occoured\n\x1b[31m{}\x1b[0m",code,err); [INFO] [stdout] 82 | | match code { [INFO] [stdout] 83 | | 404 => { [INFO] [stdout] ... | [INFO] [stdout] 113 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | / match code { [INFO] [stdout] 83 | | 404 => { [INFO] [stdout] 84 | | println!("404 Not Found: {}", req.uri()); [INFO] [stdout] 85 | | Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:83:16 [INFO] [stdout] | [INFO] [stdout] 83 | 404 => { [INFO] [stdout] | ________________^ [INFO] [stdout] 84 | | println!("404 Not Found: {}", req.uri()); [INFO] [stdout] 85 | | Ok(Response::builder() [INFO] [stdout] 86 | | .status(404) [INFO] [stdout] 87 | | .body(Full::new(Bytes::from("404 Not Found"))) [INFO] [stdout] 88 | | .unwrap()) [INFO] [stdout] 89 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | / Ok(Response::builder() [INFO] [stdout] 86 | | .status(404) [INFO] [stdout] 87 | | .body(Full::new(Bytes::from("404 Not Found"))) [INFO] [stdout] 88 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | 409 => { [INFO] [stdout] | ________________^ [INFO] [stdout] 91 | | println!("409 Conflict: {}", req.uri()); [INFO] [stdout] 92 | | Ok(Response::builder() [INFO] [stdout] 93 | | .status(409) [INFO] [stdout] 94 | | .body(Full::new(Bytes::from("409 Conflict"))) [INFO] [stdout] 95 | | .unwrap()) [INFO] [stdout] 96 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | / Ok(Response::builder() [INFO] [stdout] 93 | | .status(409) [INFO] [stdout] 94 | | .body(Full::new(Bytes::from("409 Conflict"))) [INFO] [stdout] 95 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:97:16 [INFO] [stdout] | [INFO] [stdout] 97 | 500 => { [INFO] [stdout] | ________________^ [INFO] [stdout] 98 | | println!("500 Internal Server Error: {}", req.uri()); [INFO] [stdout] 99 | | Ok(Response::builder() [INFO] [stdout] 100 | | .status(500) [INFO] [stdout] 101 | | .body(Full::new(Bytes::from("500 Internal Server Error"))) [INFO] [stdout] 102 | | .unwrap()) [INFO] [stdout] 103 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | / Ok(Response::builder() [INFO] [stdout] 100 | | .status(500) [INFO] [stdout] 101 | | .body(Full::new(Bytes::from("500 Internal Server Error"))) [INFO] [stdout] 102 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 105 | | println!("{}: {}", code, req.uri()); [INFO] [stdout] 106 | | Ok(Response::builder() [INFO] [stdout] 107 | | .status(code) [INFO] [stdout] 108 | | .body(Full::new(Bytes::from(format!("{}: {}", code, err)))) [INFO] [stdout] 109 | | .unwrap()) [INFO] [stdout] 110 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | / Ok(Response::builder() [INFO] [stdout] 107 | | .status(code) [INFO] [stdout] 108 | | .body(Full::new(Bytes::from(format!("{}: {}", code, err)))) [INFO] [stdout] 109 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:115:84 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn file_handler(path: &str) -> Result>, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________^ [INFO] [stdout] 116 | | let mut file = File::open(path).unwrap(); [INFO] [stdout] 117 | | let mut buffer = vec![]; [INFO] [stdout] 118 | | file.read_to_end(&mut buffer).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 137 | | Ok(res) [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:115:84 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn file_handler(path: &str) -> Result>, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________^ [INFO] [stdout] 116 | | let mut file = File::open(path).unwrap(); [INFO] [stdout] 117 | | let mut buffer = vec![]; [INFO] [stdout] 118 | | file.read_to_end(&mut buffer).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 137 | | Ok(res) [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:140:119 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn dir_handler(req: Request,path: &str) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________________________^ [INFO] [stdout] 141 | | let dir: fs::ReadDir = fs::read_dir(&path).unwrap(); [INFO] [stdout] 142 | | let mut file: String = "".to_string(); [INFO] [stdout] ... | [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:140:119 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn dir_handler(req: Request,path: &str) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________________________^ [INFO] [stdout] 141 | | let dir: fs::ReadDir = fs::read_dir(&path).unwrap(); [INFO] [stdout] 142 | | let mut file: String = "".to_string(); [INFO] [stdout] ... | [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | / if fs::metadata(&file).unwrap().is_file(){ [INFO] [stdout] 168 | | file_handler(&file).await [INFO] [stdout] 169 | | } else { [INFO] [stdout] 170 | | error_handler(409, std::io::Error::new(std::io::ErrorKind::IsADirectory,"Cannot find index file in directory"), req).await [INFO] [stdout] 171 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:167:46 [INFO] [stdout] | [INFO] [stdout] 167 | if fs::metadata(&file).unwrap().is_file(){ [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 168 | | file_handler(&file).await [INFO] [stdout] 169 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | file_handler(&file).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:168:29 [INFO] [stdout] | [INFO] [stdout] 168 | file_handler(&file).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | file_handler(&file).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 170 | | error_handler(409, std::io::Error::new(std::io::ErrorKind::IsADirectory,"Cannot find index file in directory"), req).await [INFO] [stdout] 171 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | error_handler(409, std::io::Error::new(std::io::ErrorKind::IsADirectory,"Cannot find index file in directory"), req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:170:126 [INFO] [stdout] | [INFO] [stdout] 170 | error_handler(409, std::io::Error::new(std::io::ErrorKind::IsADirectory,"Cannot find index file in directory"), req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | error_handler(409, std::io::Error::new(std::io::ErrorKind::IsADirectory,"Cannot find index file in directory"), req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `http_server` (bin "http_server") due to 57 previous errors [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] --> http_server/src/main.rs:110:60 [INFO] [stdout] | [INFO] [stdout] 110 | .serve_connection(io, service_fn(async|req|handler(&serve_dir, 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] --> http_server/src/main.rs:110:60 [INFO] [stdout] | [INFO] [stdout] 110 | .serve_connection(io, service_fn(async|req|handler(&serve_dir, req).await)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/main.rs:110:85 [INFO] [stdout] | [INFO] [stdout] 110 | .serve_connection(io, service_fn(async|req|handler(&serve_dir, req).await)) [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/main.rs:110:60 [INFO] [stdout] | [INFO] [stdout] 110 | .serve_connection(io, service_fn(async|req|handler(&serve_dir, req).await)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:12:121 [INFO] [stdout] | [INFO] [stdout] 12 | pub async fn handler(serve_dir: &str, req: Request) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________________________________________________________________^ [INFO] [stdout] 13 | | println!("Serving connection"); [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | let path_cleanup1: Regex = Regex::new(r"/+").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:12:121 [INFO] [stdout] | [INFO] [stdout] 12 | pub async fn handler(serve_dir: &str, req: Request) -> Result>, Infallible> { [INFO] [stdout] | _________________________________________________________________________________________________________________________^ [INFO] [stdout] 13 | | println!("Serving connection"); [INFO] [stdout] 14 | | [INFO] [stdout] 15 | | let path_cleanup1: Regex = Regex::new(r"/+").unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 78 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / match info_res{ [INFO] [stdout] 38 | | Ok(info) => { [INFO] [stdout] 39 | | if info.is_file() { [INFO] [stdout] 40 | | file_handler(&full_path).await [INFO] [stdout] ... | [INFO] [stdout] 74 | | }, [INFO] [stdout] 75 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | Ok(info) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 39 | | if info.is_file() { [INFO] [stdout] 40 | | file_handler(&full_path).await [INFO] [stdout] ... | [INFO] [stdout] 67 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | / if info.is_file() { [INFO] [stdout] 40 | | file_handler(&full_path).await [INFO] [stdout] ... | [INFO] [stdout] 65 | | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | if info.is_file() { [INFO] [stdout] | _______________________________^ [INFO] [stdout] 40 | | file_handler(&full_path).await [INFO] [stdout] ... | [INFO] [stdout] 45 | | } else if info.is_dir(){ [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | file_handler(&full_path).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:40:42 [INFO] [stdout] | [INFO] [stdout] 40 | file_handler(&full_path).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | file_handler(&full_path).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | } else if info.is_dir(){ [INFO] [stdout] | ____________________^ [INFO] [stdout] 46 | | dir_handler(req, &full_path).await [INFO] [stdout] ... | [INFO] [stdout] 65 | | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:45:36 [INFO] [stdout] | [INFO] [stdout] 45 | } else if info.is_dir(){ [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 46 | | dir_handler(req, &full_path).await [INFO] [stdout] ... | [INFO] [stdout] 64 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | dir_handler(req, &full_path).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:46:46 [INFO] [stdout] | [INFO] [stdout] 46 | dir_handler(req, &full_path).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | dir_handler(req, &full_path).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 65 | | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:65:115 [INFO] [stdout] | [INFO] [stdout] 65 | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | error_handler(409, std::io::Error::new(std::io::ErrorKind::Unsupported, "File is unusable"), req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:68:21 [INFO] [stdout] | [INFO] [stdout] 68 | Err(err) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 69 | | if err.kind() == std::io::ErrorKind::NotFound { [INFO] [stdout] 70 | | error_handler(404, err, req).await [INFO] [stdout] 71 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 74 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | / if err.kind() == std::io::ErrorKind::NotFound { [INFO] [stdout] 70 | | error_handler(404, err, req).await [INFO] [stdout] 71 | | } else { [INFO] [stdout] 72 | | error_handler(500, err, req).await [INFO] [stdout] 73 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:69:59 [INFO] [stdout] | [INFO] [stdout] 69 | if err.kind() == std::io::ErrorKind::NotFound { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 70 | | error_handler(404, err, req).await [INFO] [stdout] 71 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | error_handler(404, err, req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:70:46 [INFO] [stdout] | [INFO] [stdout] 70 | error_handler(404, err, req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:70:17 [INFO] [stdout] | [INFO] [stdout] 70 | error_handler(404, err, req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 72 | | error_handler(500, err, req).await [INFO] [stdout] 73 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | error_handler(500, err, req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:72:46 [INFO] [stdout] | [INFO] [stdout] 72 | error_handler(500, err, req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | error_handler(500, err, req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:80:141 [INFO] [stdout] | [INFO] [stdout] 80 | pub async fn error_handler(code: u16, err: std::io::Error, req: Request) -> Result>, Infallible>{ [INFO] [stdout] | _____________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 81 | | eprintln!("Error of status {} occoured\n\x1b[31m{}\x1b[0m",code,err); [INFO] [stdout] 82 | | match code { [INFO] [stdout] 83 | | 404 => { [INFO] [stdout] ... | [INFO] [stdout] 113 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:80:141 [INFO] [stdout] | [INFO] [stdout] 80 | pub async fn error_handler(code: u16, err: std::io::Error, req: Request) -> Result>, Infallible>{ [INFO] [stdout] | _____________________________________________________________________________________________________________________________________________^ [INFO] [stdout] 81 | | eprintln!("Error of status {} occoured\n\x1b[31m{}\x1b[0m",code,err); [INFO] [stdout] 82 | | match code { [INFO] [stdout] 83 | | 404 => { [INFO] [stdout] ... | [INFO] [stdout] 113 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | / match code { [INFO] [stdout] 83 | | 404 => { [INFO] [stdout] 84 | | println!("404 Not Found: {}", req.uri()); [INFO] [stdout] 85 | | Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 112 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:83:16 [INFO] [stdout] | [INFO] [stdout] 83 | 404 => { [INFO] [stdout] | ________________^ [INFO] [stdout] 84 | | println!("404 Not Found: {}", req.uri()); [INFO] [stdout] 85 | | Ok(Response::builder() [INFO] [stdout] 86 | | .status(404) [INFO] [stdout] 87 | | .body(Full::new(Bytes::from("404 Not Found"))) [INFO] [stdout] 88 | | .unwrap()) [INFO] [stdout] 89 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | / Ok(Response::builder() [INFO] [stdout] 86 | | .status(404) [INFO] [stdout] 87 | | .body(Full::new(Bytes::from("404 Not Found"))) [INFO] [stdout] 88 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | 409 => { [INFO] [stdout] | ________________^ [INFO] [stdout] 91 | | println!("409 Conflict: {}", req.uri()); [INFO] [stdout] 92 | | Ok(Response::builder() [INFO] [stdout] 93 | | .status(409) [INFO] [stdout] 94 | | .body(Full::new(Bytes::from("409 Conflict"))) [INFO] [stdout] 95 | | .unwrap()) [INFO] [stdout] 96 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | / Ok(Response::builder() [INFO] [stdout] 93 | | .status(409) [INFO] [stdout] 94 | | .body(Full::new(Bytes::from("409 Conflict"))) [INFO] [stdout] 95 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:97:16 [INFO] [stdout] | [INFO] [stdout] 97 | 500 => { [INFO] [stdout] | ________________^ [INFO] [stdout] 98 | | println!("500 Internal Server Error: {}", req.uri()); [INFO] [stdout] 99 | | Ok(Response::builder() [INFO] [stdout] 100 | | .status(500) [INFO] [stdout] 101 | | .body(Full::new(Bytes::from("500 Internal Server Error"))) [INFO] [stdout] 102 | | .unwrap()) [INFO] [stdout] 103 | | }, [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | / Ok(Response::builder() [INFO] [stdout] 100 | | .status(500) [INFO] [stdout] 101 | | .body(Full::new(Bytes::from("500 Internal Server Error"))) [INFO] [stdout] 102 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 105 | | println!("{}: {}", code, req.uri()); [INFO] [stdout] 106 | | Ok(Response::builder() [INFO] [stdout] 107 | | .status(code) [INFO] [stdout] 108 | | .body(Full::new(Bytes::from(format!("{}: {}", code, err)))) [INFO] [stdout] 109 | | .unwrap()) [INFO] [stdout] 110 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | / Ok(Response::builder() [INFO] [stdout] 107 | | .status(code) [INFO] [stdout] 108 | | .body(Full::new(Bytes::from(format!("{}: {}", code, err)))) [INFO] [stdout] 109 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:115:84 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn file_handler(path: &str) -> Result>, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________^ [INFO] [stdout] 116 | | let mut file = File::open(path).unwrap(); [INFO] [stdout] 117 | | let mut buffer = vec![]; [INFO] [stdout] 118 | | file.read_to_end(&mut buffer).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 137 | | Ok(res) [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:115:84 [INFO] [stdout] | [INFO] [stdout] 115 | pub async fn file_handler(path: &str) -> Result>, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________^ [INFO] [stdout] 116 | | let mut file = File::open(path).unwrap(); [INFO] [stdout] 117 | | let mut buffer = vec![]; [INFO] [stdout] 118 | | file.read_to_end(&mut buffer).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 137 | | Ok(res) [INFO] [stdout] 138 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | Ok(res) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:140:119 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn dir_handler(req: Request,path: &str) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________________________^ [INFO] [stdout] 141 | | let dir: fs::ReadDir = fs::read_dir(&path).unwrap(); [INFO] [stdout] 142 | | let mut file: String = "".to_string(); [INFO] [stdout] ... | [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:140:119 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn dir_handler(req: Request,path: &str) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________________________^ [INFO] [stdout] 141 | | let dir: fs::ReadDir = fs::read_dir(&path).unwrap(); [INFO] [stdout] 142 | | let mut file: String = "".to_string(); [INFO] [stdout] ... | [INFO] [stdout] 172 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 167 | / if fs::metadata(&file).unwrap().is_file(){ [INFO] [stdout] 168 | | file_handler(&file).await [INFO] [stdout] 169 | | } else { [INFO] [stdout] 170 | | error_handler(409, std::io::Error::new(std::io::ErrorKind::IsADirectory,"Cannot find index file in directory"), req).await [INFO] [stdout] 171 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:167:46 [INFO] [stdout] | [INFO] [stdout] 167 | if fs::metadata(&file).unwrap().is_file(){ [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 168 | | file_handler(&file).await [INFO] [stdout] 169 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | file_handler(&file).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:168:29 [INFO] [stdout] | [INFO] [stdout] 168 | file_handler(&file).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | file_handler(&file).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 169 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 170 | | error_handler(409, std::io::Error::new(std::io::ErrorKind::IsADirectory,"Cannot find index file in directory"), req).await [INFO] [stdout] 171 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | error_handler(409, std::io::Error::new(std::io::ErrorKind::IsADirectory,"Cannot find index file in directory"), req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:170:126 [INFO] [stdout] | [INFO] [stdout] 170 | error_handler(409, std::io::Error::new(std::io::ErrorKind::IsADirectory,"Cannot find index file in directory"), req).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> http_server/src/handlers.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | error_handler(409, std::io::Error::new(std::io::ErrorKind::IsADirectory,"Cannot find index file in directory"), req).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `http_server` (bin "http_server" test) due to 57 previous errors [INFO] running `Command { std: "docker" "inspect" "8ec8ec00c4a5d0999571e1ac0436e134263472270be394aa18ea44e13f91edda", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ec8ec00c4a5d0999571e1ac0436e134263472270be394aa18ea44e13f91edda", kill_on_drop: false }` [INFO] [stdout] 8ec8ec00c4a5d0999571e1ac0436e134263472270be394aa18ea44e13f91edda