[INFO] cloning repository https://github.com/cstyles/http_server_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cstyles/http_server_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcstyles%2Fhttp_server_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcstyles%2Fhttp_server_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 929e00e69e5372d7837d8be75e8ff2d1ecf2e704
[INFO] checking cstyles/http_server_rust 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%2Fcstyles%2Fhttp_server_rust" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/cstyles/http_server_rust
[INFO] finished tweaking git repo https://github.com/cstyles/http_server_rust
[INFO] tweaked toml for git repo https://github.com/cstyles/http_server_rust written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/cstyles/http_server_rust 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/cstyles/http_server_rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 5a2c5eeb615f01c7b60fec9b05ff14158521f74003b653e77c77321aec363896
[INFO] running `Command { std: "docker" "start" "-a" "5a2c5eeb615f01c7b60fec9b05ff14158521f74003b653e77c77321aec363896", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5a2c5eeb615f01c7b60fec9b05ff14158521f74003b653e77c77321aec363896", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5a2c5eeb615f01c7b60fec9b05ff14158521f74003b653e77c77321aec363896", kill_on_drop: false }`
[INFO] [stdout] 5a2c5eeb615f01c7b60fec9b05ff14158521f74003b653e77c77321aec363896
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 7db56da68ee9a00fc7d1b404b64d691d07a34b96b913c8c9ccb428d8c8640be3
[INFO] running `Command { std: "docker" "start" "-a" "7db56da68ee9a00fc7d1b404b64d691d07a34b96b913c8c9ccb428d8c8640be3", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v1.0.96
[INFO] [stderr]     Checking once_cell v1.12.0
[INFO] [stderr]    Compiling proc-macro2 v1.0.39
[INFO] [stderr]    Compiling futures-core v0.3.21
[INFO] [stderr]     Checking regex-syntax v0.6.26
[INFO] [stderr]     Checking aho-corasick v0.7.18
[INFO] [stderr]    Compiling ucd-trie v0.1.3
[INFO] [stderr]     Checking bstr v0.2.17
[INFO] [stderr]     Checking unic-common v0.9.0
[INFO] [stderr]    Compiling serde v1.0.137
[INFO] [stderr]    Compiling pest v2.1.3
[INFO] [stderr]    Compiling maplit v1.0.2
[INFO] [stderr]     Checking unic-char-range v0.9.0
[INFO] [stderr]     Checking walkdir v2.3.2
[INFO] [stderr]     Checking unic-ucd-version v0.9.0
[INFO] [stderr]     Checking thread_local v1.1.4
[INFO] [stderr]     Checking unic-char-property v0.9.0
[INFO] [stderr]    Compiling indexmap v1.8.2
[INFO] [stderr]     Checking mio v0.8.3
[INFO] [stderr]     Checking num_cpus v1.13.1
[INFO] [stderr]     Checking socket2 v0.4.4
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]    Compiling quote v1.0.18
[INFO] [stderr]    Compiling httparse v1.7.1
[INFO] [stderr]     Checking http v0.2.8
[INFO] [stderr]     Checking futures-util v0.3.21
[INFO] [stderr]    Compiling serde_json v1.0.81
[INFO] [stderr]     Checking tracing v0.1.34
[INFO] [stderr]     Checking unic-ucd-segment v0.9.0
[INFO] [stderr]     Checking os_str_bytes v6.1.0
[INFO] [stderr]    Compiling pest_meta v2.1.3
[INFO] [stderr]     Checking unic-segment v0.9.0
[INFO] [stderr]     Checking clap_lex v0.2.0
[INFO] [stderr]     Checking http-body v0.4.5
[INFO] [stderr]     Checking want v0.3.0
[INFO] [stderr]     Checking regex v1.5.6
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking tower-layer v0.3.1
[INFO] [stderr]     Checking clap v3.1.18
[INFO] [stderr]     Checking globset v0.4.8
[INFO] [stderr]     Checking ignore v0.4.18
[INFO] [stderr]     Checking globwalk v0.8.1
[INFO] [stderr]    Compiling pest_generator v2.1.3
[INFO] [stderr]    Compiling tokio-macros v1.8.0
[INFO] [stderr]    Compiling pest_derive v2.1.0
[INFO] [stderr]     Checking tokio v1.19.2
[INFO] [stderr]     Checking tera v1.15.0
[INFO] [stderr]     Checking tower v0.4.12
[INFO] [stderr]     Checking hyper v0.14.19
[INFO] [stderr]     Checking http_server_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:31:15
[INFO] [stdout]    |
[INFO] [stdout] 31 |         async { my_server(request, directory, tera).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<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:31:17
[INFO] [stdout]    |
[INFO] [stdout] 31 |         async { my_server(request, directory, tera).await }
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:31:53
[INFO] [stdout]    |
[INFO] [stdout] 31 |         async { my_server(request, directory, tera).await }
[INFO] [stdout]    |                                                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:31:17
[INFO] [stdout]    |
[INFO] [stdout] 31 |         async { my_server(request, directory, tera).await }
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:78:41
[INFO] [stdout]     |
[INFO] [stdout]  78 |   ) -> Result<Response<Body>, Infallible> {
[INFO] [stdout]     |  _________________________________________^
[INFO] [stdout]  79 | |     // TODO: Handle method (i.e., return error for POSTs, etc.)
[INFO] [stdout]  80 | |     let uri_path = percent_decode(req.uri().path().as_bytes()).decode_utf8_lossy();
[INFO] [stdout]  81 | |     let fs_path_string = format!("{}{}", directory, uri_path);
[INFO] [stdout] ...   |
[INFO] [stdout] 121 | | }
[INFO] [stdout]     | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:78:41
[INFO] [stdout]     |
[INFO] [stdout]  78 |   ) -> Result<Response<Body>, Infallible> {
[INFO] [stdout]     |  _________________________________________^
[INFO] [stdout]  79 | |     // TODO: Handle method (i.e., return error for POSTs, etc.)
[INFO] [stdout]  80 | |     let uri_path = percent_decode(req.uri().path().as_bytes()).decode_utf8_lossy();
[INFO] [stdout]  81 | |     let fs_path_string = format!("{}{}", directory, uri_path);
[INFO] [stdout] ...   |
[INFO] [stdout] 121 | | }
[INFO] [stdout]     | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:84:5
[INFO] [stdout]     |
[INFO] [stdout]  84 | /     if fs_path.is_dir() {
[INFO] [stdout]  85 | |         if uri_path.ends_with('/') {
[INFO] [stdout]  86 | |             // List the contents of the directory
[INFO] [stdout]  87 | |             println!("path: {} || listing directory", uri_path);
[INFO] [stdout] ...   |
[INFO] [stdout] 119 | |         Ok(result)
[INFO] [stdout] 120 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:84:25
[INFO] [stdout]    |
[INFO] [stdout] 84 |       if fs_path.is_dir() {
[INFO] [stdout]    |  _________________________^
[INFO] [stdout] 85 | |         if uri_path.ends_with('/') {
[INFO] [stdout] 86 | |             // List the contents of the directory
[INFO] [stdout] 87 | |             println!("path: {} || listing directory", uri_path);
[INFO] [stdout] ...  |
[INFO] [stdout] 99 | |     } else if fs_path.is_file() {
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:85:9
[INFO] [stdout]    |
[INFO] [stdout] 85 | /         if uri_path.ends_with('/') {
[INFO] [stdout] 86 | |             // List the contents of the directory
[INFO] [stdout] 87 | |             println!("path: {} || listing directory", uri_path);
[INFO] [stdout] 88 | |             Ok(list_directory(&tera, fs_path, &uri_path).await)
[INFO] [stdout] ...  |
[INFO] [stdout] 97 | |                 .unwrap())
[INFO] [stdout] 98 | |         }
[INFO] [stdout]    | |_________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:85:36
[INFO] [stdout]    |
[INFO] [stdout] 85 |           if uri_path.ends_with('/') {
[INFO] [stdout]    |  ____________________________________^
[INFO] [stdout] 86 | |             // List the contents of the directory
[INFO] [stdout] 87 | |             println!("path: {} || listing directory", uri_path);
[INFO] [stdout] 88 | |             Ok(list_directory(&tera, fs_path, &uri_path).await)
[INFO] [stdout] 89 | |         } else {
[INFO] [stdout]    | |_________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:88:13
[INFO] [stdout]    |
[INFO] [stdout] 88 |             Ok(list_directory(&tera, fs_path, &uri_path).await)
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:89:16
[INFO] [stdout]    |
[INFO] [stdout] 89 |           } else {
[INFO] [stdout]    |  ________________^
[INFO] [stdout] 90 | |             // Redirect to the same directory but with a trailing /
[INFO] [stdout] 91 | |             let new_path_string = format!("{}/", uri_path);
[INFO] [stdout] 92 | |             println!("path: {} || redirecting to {}", uri_path, new_path_string);
[INFO] [stdout] ...  |
[INFO] [stdout] 97 | |                 .unwrap())
[INFO] [stdout] 98 | |         }
[INFO] [stdout]    | |_________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:93:13
[INFO] [stdout]    |
[INFO] [stdout] 93 | /             Ok(Response::builder()
[INFO] [stdout] 94 | |                 .status(StatusCode::MOVED_PERMANENTLY)
[INFO] [stdout] 95 | |                 .header("Location", new_path_string)
[INFO] [stdout] 96 | |                 .body(Body::empty())
[INFO] [stdout] 97 | |                 .unwrap())
[INFO] [stdout]    | |__________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:99:12
[INFO] [stdout]     |
[INFO] [stdout]  99 |       } else if fs_path.is_file() {
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 100 | |         // Return the file object
[INFO] [stdout] 101 | |         println!("path: {} || reading file", uri_path);
[INFO] [stdout] 102 | |         Ok(read_file(fs_path).await)
[INFO] [stdout] ...   |
[INFO] [stdout] 119 | |         Ok(result)
[INFO] [stdout] 120 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:99:33
[INFO] [stdout]     |
[INFO] [stdout]  99 |       } else if fs_path.is_file() {
[INFO] [stdout]     |  _________________________________^
[INFO] [stdout] 100 | |         // Return the file object
[INFO] [stdout] 101 | |         println!("path: {} || reading file", uri_path);
[INFO] [stdout] 102 | |         Ok(read_file(fs_path).await)
[INFO] [stdout] 103 | |     } else {
[INFO] [stdout]     | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:102:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         Ok(read_file(fs_path).await)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:103:12
[INFO] [stdout]     |
[INFO] [stdout] 103 |       } else {
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 104 | |         // Doesn't exist
[INFO] [stdout] 105 | |         eprintln!("Error: File/dir ({}) doesn't exist", uri_path);
[INFO] [stdout] ...   |
[INFO] [stdout] 119 | |         Ok(result)
[INFO] [stdout] 120 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:119:9
[INFO] [stdout]     |
[INFO] [stdout] 119 |         Ok(result)
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `http_server_rust` (bin "http_server_rust") due to 18 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<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:31:15
[INFO] [stdout]    |
[INFO] [stdout] 31 |         async { my_server(request, directory, tera).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<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:31:17
[INFO] [stdout]    |
[INFO] [stdout] 31 |         async { my_server(request, directory, tera).await }
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:31:53
[INFO] [stdout]    |
[INFO] [stdout] 31 |         async { my_server(request, directory, tera).await }
[INFO] [stdout]    |                                                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:31:17
[INFO] [stdout]    |
[INFO] [stdout] 31 |         async { my_server(request, directory, tera).await }
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:78:41
[INFO] [stdout]     |
[INFO] [stdout]  78 |   ) -> Result<Response<Body>, Infallible> {
[INFO] [stdout]     |  _________________________________________^
[INFO] [stdout]  79 | |     // TODO: Handle method (i.e., return error for POSTs, etc.)
[INFO] [stdout]  80 | |     let uri_path = percent_decode(req.uri().path().as_bytes()).decode_utf8_lossy();
[INFO] [stdout]  81 | |     let fs_path_string = format!("{}{}", directory, uri_path);
[INFO] [stdout] ...   |
[INFO] [stdout] 121 | | }
[INFO] [stdout]     | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:78:41
[INFO] [stdout]     |
[INFO] [stdout]  78 |   ) -> Result<Response<Body>, Infallible> {
[INFO] [stdout]     |  _________________________________________^
[INFO] [stdout]  79 | |     // TODO: Handle method (i.e., return error for POSTs, etc.)
[INFO] [stdout]  80 | |     let uri_path = percent_decode(req.uri().path().as_bytes()).decode_utf8_lossy();
[INFO] [stdout]  81 | |     let fs_path_string = format!("{}{}", directory, uri_path);
[INFO] [stdout] ...   |
[INFO] [stdout] 121 | | }
[INFO] [stdout]     | |_^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:84:5
[INFO] [stdout]     |
[INFO] [stdout]  84 | /     if fs_path.is_dir() {
[INFO] [stdout]  85 | |         if uri_path.ends_with('/') {
[INFO] [stdout]  86 | |             // List the contents of the directory
[INFO] [stdout]  87 | |             println!("path: {} || listing directory", uri_path);
[INFO] [stdout] ...   |
[INFO] [stdout] 119 | |         Ok(result)
[INFO] [stdout] 120 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:84:25
[INFO] [stdout]    |
[INFO] [stdout] 84 |       if fs_path.is_dir() {
[INFO] [stdout]    |  _________________________^
[INFO] [stdout] 85 | |         if uri_path.ends_with('/') {
[INFO] [stdout] 86 | |             // List the contents of the directory
[INFO] [stdout] 87 | |             println!("path: {} || listing directory", uri_path);
[INFO] [stdout] ...  |
[INFO] [stdout] 99 | |     } else if fs_path.is_file() {
[INFO] [stdout]    | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:85:9
[INFO] [stdout]    |
[INFO] [stdout] 85 | /         if uri_path.ends_with('/') {
[INFO] [stdout] 86 | |             // List the contents of the directory
[INFO] [stdout] 87 | |             println!("path: {} || listing directory", uri_path);
[INFO] [stdout] 88 | |             Ok(list_directory(&tera, fs_path, &uri_path).await)
[INFO] [stdout] ...  |
[INFO] [stdout] 97 | |                 .unwrap())
[INFO] [stdout] 98 | |         }
[INFO] [stdout]    | |_________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:85:36
[INFO] [stdout]    |
[INFO] [stdout] 85 |           if uri_path.ends_with('/') {
[INFO] [stdout]    |  ____________________________________^
[INFO] [stdout] 86 | |             // List the contents of the directory
[INFO] [stdout] 87 | |             println!("path: {} || listing directory", uri_path);
[INFO] [stdout] 88 | |             Ok(list_directory(&tera, fs_path, &uri_path).await)
[INFO] [stdout] 89 | |         } else {
[INFO] [stdout]    | |_________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:88:13
[INFO] [stdout]    |
[INFO] [stdout] 88 |             Ok(list_directory(&tera, fs_path, &uri_path).await)
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:89:16
[INFO] [stdout]    |
[INFO] [stdout] 89 |           } else {
[INFO] [stdout]    |  ________________^
[INFO] [stdout] 90 | |             // Redirect to the same directory but with a trailing /
[INFO] [stdout] 91 | |             let new_path_string = format!("{}/", uri_path);
[INFO] [stdout] 92 | |             println!("path: {} || redirecting to {}", uri_path, new_path_string);
[INFO] [stdout] ...  |
[INFO] [stdout] 97 | |                 .unwrap())
[INFO] [stdout] 98 | |         }
[INFO] [stdout]    | |_________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]   --> src/main.rs:93:13
[INFO] [stdout]    |
[INFO] [stdout] 93 | /             Ok(Response::builder()
[INFO] [stdout] 94 | |                 .status(StatusCode::MOVED_PERMANENTLY)
[INFO] [stdout] 95 | |                 .header("Location", new_path_string)
[INFO] [stdout] 96 | |                 .body(Body::empty())
[INFO] [stdout] 97 | |                 .unwrap())
[INFO] [stdout]    | |__________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:99:12
[INFO] [stdout]     |
[INFO] [stdout]  99 |       } else if fs_path.is_file() {
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 100 | |         // Return the file object
[INFO] [stdout] 101 | |         println!("path: {} || reading file", uri_path);
[INFO] [stdout] 102 | |         Ok(read_file(fs_path).await)
[INFO] [stdout] ...   |
[INFO] [stdout] 119 | |         Ok(result)
[INFO] [stdout] 120 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:99:33
[INFO] [stdout]     |
[INFO] [stdout]  99 |       } else if fs_path.is_file() {
[INFO] [stdout]     |  _________________________________^
[INFO] [stdout] 100 | |         // Return the file object
[INFO] [stdout] 101 | |         println!("path: {} || reading file", uri_path);
[INFO] [stdout] 102 | |         Ok(read_file(fs_path).await)
[INFO] [stdout] 103 | |     } else {
[INFO] [stdout]     | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:102:9
[INFO] [stdout]     |
[INFO] [stdout] 102 |         Ok(read_file(fs_path).await)
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:103:12
[INFO] [stdout]     |
[INFO] [stdout] 103 |       } else {
[INFO] [stdout]     |  ____________^
[INFO] [stdout] 104 | |         // Doesn't exist
[INFO] [stdout] 105 | |         eprintln!("Error: File/dir ({}) doesn't exist", uri_path);
[INFO] [stdout] ...   |
[INFO] [stdout] 119 | |         Ok(result)
[INFO] [stdout] 120 | |     }
[INFO] [stdout]     | |_____^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: this type will no longer be must used: Result<Response<Body>, Infallible>
[INFO] [stdout]    --> src/main.rs:119:9
[INFO] [stdout]     |
[INFO] [stdout] 119 |         Ok(result)
[INFO] [stdout]     |         ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `http_server_rust` (bin "http_server_rust" test) due to 18 previous errors
[INFO] running `Command { std: "docker" "inspect" "7db56da68ee9a00fc7d1b404b64d691d07a34b96b913c8c9ccb428d8c8640be3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7db56da68ee9a00fc7d1b404b64d691d07a34b96b913c8c9ccb428d8c8640be3", kill_on_drop: false }`
[INFO] [stdout] 7db56da68ee9a00fc7d1b404b64d691d07a34b96b913c8c9ccb428d8c8640be3
