[INFO] cloning repository https://github.com/Creeeeeeeeeeper/local-file-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Creeeeeeeeeeper/local-file-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreeeeeeeeeeper%2Flocal-file-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCreeeeeeeeeeper%2Flocal-file-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d2de1004a749dcdfcf49e352e7d08f8ebb96e055 [INFO] checking Creeeeeeeeeeper/local-file-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%2FCreeeeeeeeeeper%2Flocal-file-server" "/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/Creeeeeeeeeeper/local-file-server [INFO] finished tweaking git repo https://github.com/Creeeeeeeeeeper/local-file-server [INFO] tweaked toml for git repo https://github.com/Creeeeeeeeeeper/local-file-server written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Creeeeeeeeeeper/local-file-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/Creeeeeeeeeeper/local-file-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-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] d1e0c03d271c6e72a704e2b78942887a27821a19b712c5bb422d992af2ea7ab1 [INFO] running `Command { std: "docker" "start" "-a" "d1e0c03d271c6e72a704e2b78942887a27821a19b712c5bb422d992af2ea7ab1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d1e0c03d271c6e72a704e2b78942887a27821a19b712c5bb422d992af2ea7ab1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1e0c03d271c6e72a704e2b78942887a27821a19b712c5bb422d992af2ea7ab1", kill_on_drop: false }` [INFO] [stdout] d1e0c03d271c6e72a704e2b78942887a27821a19b712c5bb422d992af2ea7ab1 [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] c85f0b1462da271b7e7ff93169d5efb146070e168132bdde489372f3efbb2bb3 [INFO] running `Command { std: "docker" "start" "-a" "c85f0b1462da271b7e7ff93169d5efb146070e168132bdde489372f3efbb2bb3", kill_on_drop: false }` [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking clap_builder v4.5.41 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Checking tokio v1.46.1 [INFO] [stderr] Checking clap v4.5.41 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking file_server v1.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:124:16 [INFO] [stdout] | [INFO] [stdout] 124 | async move { [INFO] [stdout] | ________________^ [INFO] [stdout] 125 | | Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 126 | | let root_dir = root_dir.clone(); [INFO] [stdout] 127 | | let log_mode = log_mode.clone(); [INFO] [stdout] ... | [INFO] [stdout] 138 | | })) [INFO] [stdout] 139 | | } [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/main.rs:124:16 [INFO] [stdout] | [INFO] [stdout] 124 | async move { [INFO] [stdout] | ________________^ [INFO] [stdout] 125 | | Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 126 | | let root_dir = root_dir.clone(); [INFO] [stdout] 127 | | let log_mode = log_mode.clone(); [INFO] [stdout] ... | [INFO] [stdout] 138 | | })) [INFO] [stdout] 139 | | } [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/main.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | / Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 126 | | let root_dir = root_dir.clone(); [INFO] [stdout] 127 | | let log_mode = log_mode.clone(); [INFO] [stdout] 128 | | let logger = logger.clone(); [INFO] [stdout] ... | [INFO] [stdout] 138 | | })) [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | / Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 126 | | let root_dir = root_dir.clone(); [INFO] [stdout] 127 | | let log_mode = log_mode.clone(); [INFO] [stdout] 128 | | let logger = logger.clone(); [INFO] [stdout] ... | [INFO] [stdout] 138 | | })) [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:207:41 [INFO] [stdout] | [INFO] [stdout] 207 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 208 | | let uri_path = req.uri().path(); [INFO] [stdout] 209 | | let decoded_path = percent_decode_str(uri_path) [INFO] [stdout] 210 | | .decode_utf8() [INFO] [stdout] ... | [INFO] [stdout] 649 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:207:41 [INFO] [stdout] | [INFO] [stdout] 207 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 208 | | let uri_path = req.uri().path(); [INFO] [stdout] 209 | | let decoded_path = percent_decode_str(uri_path) [INFO] [stdout] 210 | | .decode_utf8() [INFO] [stdout] ... | [INFO] [stdout] 649 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:207:41 [INFO] [stdout] | [INFO] [stdout] 207 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 208 | | let uri_path = req.uri().path(); [INFO] [stdout] 209 | | let decoded_path = percent_decode_str(uri_path) [INFO] [stdout] 210 | | .decode_utf8() [INFO] [stdout] ... | [INFO] [stdout] 649 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:207:41 [INFO] [stdout] | [INFO] [stdout] 207 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 208 | | let uri_path = req.uri().path(); [INFO] [stdout] 209 | | let decoded_path = percent_decode_str(uri_path) [INFO] [stdout] 210 | | .decode_utf8() [INFO] [stdout] ... | [INFO] [stdout] 649 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:220:5 [INFO] [stdout] | [INFO] [stdout] 220 | / if full_path.is_dir() { [INFO] [stdout] 221 | | match fs::read_dir(&full_path).await { [INFO] [stdout] 222 | | Ok(mut entries) => { [INFO] [stdout] 223 | | let current_path = if relative_path.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 647 | | .unwrap()) [INFO] [stdout] 648 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:220:5 [INFO] [stdout] | [INFO] [stdout] 220 | / if full_path.is_dir() { [INFO] [stdout] 221 | | match fs::read_dir(&full_path).await { [INFO] [stdout] 222 | | Ok(mut entries) => { [INFO] [stdout] 223 | | let current_path = if relative_path.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 647 | | .unwrap()) [INFO] [stdout] 648 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:220:27 [INFO] [stdout] | [INFO] [stdout] 220 | if full_path.is_dir() { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 221 | | match fs::read_dir(&full_path).await { [INFO] [stdout] 222 | | Ok(mut entries) => { [INFO] [stdout] 223 | | let current_path = if relative_path.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 627 | | } else if full_path.is_file() { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:220:27 [INFO] [stdout] | [INFO] [stdout] 220 | if full_path.is_dir() { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 221 | | match fs::read_dir(&full_path).await { [INFO] [stdout] 222 | | Ok(mut entries) => { [INFO] [stdout] 223 | | let current_path = if relative_path.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 627 | | } else if full_path.is_file() { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / match fs::read_dir(&full_path).await { [INFO] [stdout] 222 | | Ok(mut entries) => { [INFO] [stdout] 223 | | let current_path = if relative_path.is_empty() { [INFO] [stdout] 224 | | "/".to_string() [INFO] [stdout] ... | [INFO] [stdout] 625 | | .unwrap()), [INFO] [stdout] 626 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | / match fs::read_dir(&full_path).await { [INFO] [stdout] 222 | | Ok(mut entries) => { [INFO] [stdout] 223 | | let current_path = if relative_path.is_empty() { [INFO] [stdout] 224 | | "/".to_string() [INFO] [stdout] ... | [INFO] [stdout] 625 | | .unwrap()), [INFO] [stdout] 626 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:222:32 [INFO] [stdout] | [INFO] [stdout] 222 | Ok(mut entries) => { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 223 | | let current_path = if relative_path.is_empty() { [INFO] [stdout] 224 | | "/".to_string() [INFO] [stdout] 225 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 620 | | .unwrap()) [INFO] [stdout] 621 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:616:17 [INFO] [stdout] | [INFO] [stdout] 616 | / Ok(Response::builder() [INFO] [stdout] 617 | | .header("Content-Type", "text/html; charset=utf-8") [INFO] [stdout] 618 | | .header("Access-Control-Allow-Origin", "*") [INFO] [stdout] 619 | | .body(Body::from(html)) [INFO] [stdout] 620 | | .unwrap()) [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:622:23 [INFO] [stdout] | [INFO] [stdout] 622 | Err(_) => Ok(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 623 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 624 | | .body(Body::from("无法读取目录")) [INFO] [stdout] 625 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:222:32 [INFO] [stdout] | [INFO] [stdout] 222 | Ok(mut entries) => { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 223 | | let current_path = if relative_path.is_empty() { [INFO] [stdout] 224 | | "/".to_string() [INFO] [stdout] 225 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 620 | | .unwrap()) [INFO] [stdout] 621 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:627:12 [INFO] [stdout] | [INFO] [stdout] 627 | } else if full_path.is_file() { [INFO] [stdout] | ____________^ [INFO] [stdout] 628 | | match File::open(&full_path).await { [INFO] [stdout] 629 | | Ok(file) => { [INFO] [stdout] 630 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] ... | [INFO] [stdout] 647 | | .unwrap()) [INFO] [stdout] 648 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:627:35 [INFO] [stdout] | [INFO] [stdout] 627 | } else if full_path.is_file() { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 628 | | match File::open(&full_path).await { [INFO] [stdout] 629 | | Ok(file) => { [INFO] [stdout] 630 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] ... | [INFO] [stdout] 642 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:616:17 [INFO] [stdout] | [INFO] [stdout] 616 | / Ok(Response::builder() [INFO] [stdout] 617 | | .header("Content-Type", "text/html; charset=utf-8") [INFO] [stdout] 618 | | .header("Access-Control-Allow-Origin", "*") [INFO] [stdout] 619 | | .body(Body::from(html)) [INFO] [stdout] 620 | | .unwrap()) [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:622:23 [INFO] [stdout] | [INFO] [stdout] 622 | Err(_) => Ok(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 623 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 624 | | .body(Body::from("无法读取目录")) [INFO] [stdout] 625 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:628:9 [INFO] [stdout] | [INFO] [stdout] 628 | / match File::open(&full_path).await { [INFO] [stdout] 629 | | Ok(file) => { [INFO] [stdout] 630 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] 631 | | let stream = ReaderStream::new(file); [INFO] [stdout] ... | [INFO] [stdout] 640 | | .unwrap()), [INFO] [stdout] 641 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:629:25 [INFO] [stdout] | [INFO] [stdout] 629 | Ok(file) => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 630 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] 631 | | let stream = ReaderStream::new(file); [INFO] [stdout] 632 | | Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 635 | | .unwrap()) [INFO] [stdout] 636 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:632:17 [INFO] [stdout] | [INFO] [stdout] 632 | / Ok(Response::builder() [INFO] [stdout] 633 | | .header("Content-Type", mime.as_ref()) [INFO] [stdout] 634 | | .body(Body::wrap_stream(stream)) [INFO] [stdout] 635 | | .unwrap()) [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:637:23 [INFO] [stdout] | [INFO] [stdout] 637 | Err(_) => Ok(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 638 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 639 | | .body(Body::from("无法打开文件")) [INFO] [stdout] 640 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:642:12 [INFO] [stdout] | [INFO] [stdout] 642 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 643 | | Ok(Response::builder() [INFO] [stdout] 644 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 645 | | .header("Content-Type", "text/plain; charset=utf-8") [INFO] [stdout] 646 | | .body(Body::from("404 - 文件未找到")) [INFO] [stdout] 647 | | .unwrap()) [INFO] [stdout] 648 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:643:9 [INFO] [stdout] | [INFO] [stdout] 643 | / Ok(Response::builder() [INFO] [stdout] 644 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 645 | | .header("Content-Type", "text/plain; charset=utf-8") [INFO] [stdout] 646 | | .body(Body::from("404 - 文件未找到")) [INFO] [stdout] 647 | | .unwrap()) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:657:41 [INFO] [stdout] | [INFO] [stdout] 657 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 658 | | let uri_path = req.uri().path(); [INFO] [stdout] 659 | | let decoded_path = percent_decode_str(uri_path) [INFO] [stdout] 660 | | .decode_utf8() [INFO] [stdout] ... | [INFO] [stdout] 728 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:657:41 [INFO] [stdout] | [INFO] [stdout] 657 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 658 | | let uri_path = req.uri().path(); [INFO] [stdout] 659 | | let decoded_path = percent_decode_str(uri_path) [INFO] [stdout] 660 | | .decode_utf8() [INFO] [stdout] ... | [INFO] [stdout] 728 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:670:5 [INFO] [stdout] | [INFO] [stdout] 670 | / if full_path.is_dir() { [INFO] [stdout] 671 | | match fs::read_dir(&full_path).await { [INFO] [stdout] 672 | | Ok(mut entries) => { [INFO] [stdout] 673 | | let mut html = format!( [INFO] [stdout] ... | [INFO] [stdout] 726 | | .unwrap()) [INFO] [stdout] 727 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:670:27 [INFO] [stdout] | [INFO] [stdout] 670 | if full_path.is_dir() { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 671 | | match fs::read_dir(&full_path).await { [INFO] [stdout] 672 | | Ok(mut entries) => { [INFO] [stdout] 673 | | let mut html = format!( [INFO] [stdout] ... | [INFO] [stdout] 706 | | } else if full_path.is_file() { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:671:9 [INFO] [stdout] | [INFO] [stdout] 671 | / match fs::read_dir(&full_path).await { [INFO] [stdout] 672 | | Ok(mut entries) => { [INFO] [stdout] 673 | | let mut html = format!( [INFO] [stdout] 674 | | "Index of {}

📁 Index of {}

    ", [INFO] [stdout] ... | [INFO] [stdout] 704 | | .unwrap()), [INFO] [stdout] 705 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:672:32 [INFO] [stdout] | [INFO] [stdout] 672 | Ok(mut entries) => { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 673 | | let mut html = format!( [INFO] [stdout] 674 | | "Index of {}

    📁 Index of {}

      ", [INFO] [stdout] 675 | | full_path.display(), [INFO] [stdout] ... | [INFO] [stdout] 699 | | .unwrap()) [INFO] [stdout] 700 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:696:17 [INFO] [stdout] | [INFO] [stdout] 696 | / Ok(Response::builder() [INFO] [stdout] 697 | | .header("Content-Type", "text/html; charset=utf-8") [INFO] [stdout] 698 | | .body(Body::from(html)) [INFO] [stdout] 699 | | .unwrap()) [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:701:23 [INFO] [stdout] | [INFO] [stdout] 701 | Err(_) => Ok(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 702 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 703 | | .body(Body::from("无法读取目录")) [INFO] [stdout] 704 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:706:12 [INFO] [stdout] | [INFO] [stdout] 706 | } else if full_path.is_file() { [INFO] [stdout] | ____________^ [INFO] [stdout] 707 | | match File::open(&full_path).await { [INFO] [stdout] 708 | | Ok(file) => { [INFO] [stdout] 709 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] ... | [INFO] [stdout] 726 | | .unwrap()) [INFO] [stdout] 727 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:706:35 [INFO] [stdout] | [INFO] [stdout] 706 | } else if full_path.is_file() { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 707 | | match File::open(&full_path).await { [INFO] [stdout] 708 | | Ok(file) => { [INFO] [stdout] 709 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] ... | [INFO] [stdout] 721 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:707:9 [INFO] [stdout] | [INFO] [stdout] 707 | / match File::open(&full_path).await { [INFO] [stdout] 708 | | Ok(file) => { [INFO] [stdout] 709 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] 710 | | let stream = ReaderStream::new(file); [INFO] [stdout] ... | [INFO] [stdout] 719 | | .unwrap()), [INFO] [stdout] 720 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:708:25 [INFO] [stdout] | [INFO] [stdout] 708 | Ok(file) => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 709 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] 710 | | let stream = ReaderStream::new(file); [INFO] [stdout] 711 | | Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 714 | | .unwrap()) [INFO] [stdout] 715 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:711:17 [INFO] [stdout] | [INFO] [stdout] 711 | / Ok(Response::builder() [INFO] [stdout] 712 | | .header("Content-Type", mime.as_ref()) [INFO] [stdout] 713 | | .body(Body::wrap_stream(stream)) [INFO] [stdout] 714 | | .unwrap()) [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:716:23 [INFO] [stdout] | [INFO] [stdout] 716 | Err(_) => Ok(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 717 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 718 | | .body(Body::from("无法打开文件")) [INFO] [stdout] 719 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:721:12 [INFO] [stdout] | [INFO] [stdout] 721 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 722 | | Ok(Response::builder() [INFO] [stdout] 723 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 724 | | .header("Content-Type", "text/plain; charset=utf-8") [INFO] [stdout] 725 | | .body(Body::from("404 - 文件未找到")) [INFO] [stdout] 726 | | .unwrap()) [INFO] [stdout] 727 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:722:9 [INFO] [stdout] | [INFO] [stdout] 722 | / Ok(Response::builder() [INFO] [stdout] 723 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 724 | | .header("Content-Type", "text/plain; charset=utf-8") [INFO] [stdout] 725 | | .body(Body::from("404 - 文件未找到")) [INFO] [stdout] 726 | | .unwrap()) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:627:12 [INFO] [stdout] | [INFO] [stdout] 627 | } else if full_path.is_file() { [INFO] [stdout] | ____________^ [INFO] [stdout] 628 | | match File::open(&full_path).await { [INFO] [stdout] 629 | | Ok(file) => { [INFO] [stdout] 630 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] ... | [INFO] [stdout] 647 | | .unwrap()) [INFO] [stdout] 648 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:627:35 [INFO] [stdout] | [INFO] [stdout] 627 | } else if full_path.is_file() { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 628 | | match File::open(&full_path).await { [INFO] [stdout] 629 | | Ok(file) => { [INFO] [stdout] 630 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] ... | [INFO] [stdout] 642 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:628:9 [INFO] [stdout] | [INFO] [stdout] 628 | / match File::open(&full_path).await { [INFO] [stdout] 629 | | Ok(file) => { [INFO] [stdout] 630 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] 631 | | let stream = ReaderStream::new(file); [INFO] [stdout] ... | [INFO] [stdout] 640 | | .unwrap()), [INFO] [stdout] 641 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:629:25 [INFO] [stdout] | [INFO] [stdout] 629 | Ok(file) => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 630 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] 631 | | let stream = ReaderStream::new(file); [INFO] [stdout] 632 | | Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 635 | | .unwrap()) [INFO] [stdout] 636 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:632:17 [INFO] [stdout] | [INFO] [stdout] 632 | / Ok(Response::builder() [INFO] [stdout] 633 | | .header("Content-Type", mime.as_ref()) [INFO] [stdout] 634 | | .body(Body::wrap_stream(stream)) [INFO] [stdout] 635 | | .unwrap()) [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:637:23 [INFO] [stdout] | [INFO] [stdout] 637 | Err(_) => Ok(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 638 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 639 | | .body(Body::from("无法打开文件")) [INFO] [stdout] 640 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:642:12 [INFO] [stdout] | [INFO] [stdout] 642 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 643 | | Ok(Response::builder() [INFO] [stdout] 644 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 645 | | .header("Content-Type", "text/plain; charset=utf-8") [INFO] [stdout] 646 | | .body(Body::from("404 - 文件未找到")) [INFO] [stdout] 647 | | .unwrap()) [INFO] [stdout] 648 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:643:9 [INFO] [stdout] | [INFO] [stdout] 643 | / Ok(Response::builder() [INFO] [stdout] 644 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 645 | | .header("Content-Type", "text/plain; charset=utf-8") [INFO] [stdout] 646 | | .body(Body::from("404 - 文件未找到")) [INFO] [stdout] 647 | | .unwrap()) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:657:41 [INFO] [stdout] | [INFO] [stdout] 657 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 658 | | let uri_path = req.uri().path(); [INFO] [stdout] 659 | | let decoded_path = percent_decode_str(uri_path) [INFO] [stdout] 660 | | .decode_utf8() [INFO] [stdout] ... | [INFO] [stdout] 728 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:657:41 [INFO] [stdout] | [INFO] [stdout] 657 | ) -> Result, Infallible> { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 658 | | let uri_path = req.uri().path(); [INFO] [stdout] 659 | | let decoded_path = percent_decode_str(uri_path) [INFO] [stdout] 660 | | .decode_utf8() [INFO] [stdout] ... | [INFO] [stdout] 728 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:670:5 [INFO] [stdout] | [INFO] [stdout] 670 | / if full_path.is_dir() { [INFO] [stdout] 671 | | match fs::read_dir(&full_path).await { [INFO] [stdout] 672 | | Ok(mut entries) => { [INFO] [stdout] 673 | | let mut html = format!( [INFO] [stdout] ... | [INFO] [stdout] 726 | | .unwrap()) [INFO] [stdout] 727 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:670:27 [INFO] [stdout] | [INFO] [stdout] 670 | if full_path.is_dir() { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 671 | | match fs::read_dir(&full_path).await { [INFO] [stdout] 672 | | Ok(mut entries) => { [INFO] [stdout] 673 | | let mut html = format!( [INFO] [stdout] ... | [INFO] [stdout] 706 | | } else if full_path.is_file() { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:671:9 [INFO] [stdout] | [INFO] [stdout] 671 | / match fs::read_dir(&full_path).await { [INFO] [stdout] 672 | | Ok(mut entries) => { [INFO] [stdout] 673 | | let mut html = format!( [INFO] [stdout] 674 | | "Index of {}

      📁 Index of {}

        ", [INFO] [stdout] ... | [INFO] [stdout] 704 | | .unwrap()), [INFO] [stdout] 705 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:672:32 [INFO] [stdout] | [INFO] [stdout] 672 | Ok(mut entries) => { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 673 | | let mut html = format!( [INFO] [stdout] 674 | | "Index of {}

        📁 Index of {}

          ", [INFO] [stdout] 675 | | full_path.display(), [INFO] [stdout] ... | [INFO] [stdout] 699 | | .unwrap()) [INFO] [stdout] 700 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:696:17 [INFO] [stdout] | [INFO] [stdout] 696 | / Ok(Response::builder() [INFO] [stdout] 697 | | .header("Content-Type", "text/html; charset=utf-8") [INFO] [stdout] 698 | | .body(Body::from(html)) [INFO] [stdout] 699 | | .unwrap()) [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:701:23 [INFO] [stdout] | [INFO] [stdout] 701 | Err(_) => Ok(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 702 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 703 | | .body(Body::from("无法读取目录")) [INFO] [stdout] 704 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:706:12 [INFO] [stdout] | [INFO] [stdout] 706 | } else if full_path.is_file() { [INFO] [stdout] | ____________^ [INFO] [stdout] 707 | | match File::open(&full_path).await { [INFO] [stdout] 708 | | Ok(file) => { [INFO] [stdout] 709 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] ... | [INFO] [stdout] 726 | | .unwrap()) [INFO] [stdout] 727 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:706:35 [INFO] [stdout] | [INFO] [stdout] 706 | } else if full_path.is_file() { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 707 | | match File::open(&full_path).await { [INFO] [stdout] 708 | | Ok(file) => { [INFO] [stdout] 709 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] ... | [INFO] [stdout] 721 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:707:9 [INFO] [stdout] | [INFO] [stdout] 707 | / match File::open(&full_path).await { [INFO] [stdout] 708 | | Ok(file) => { [INFO] [stdout] 709 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] 710 | | let stream = ReaderStream::new(file); [INFO] [stdout] ... | [INFO] [stdout] 719 | | .unwrap()), [INFO] [stdout] 720 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:708:25 [INFO] [stdout] | [INFO] [stdout] 708 | Ok(file) => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 709 | | let mime = from_path(&full_path).first_or_octet_stream(); [INFO] [stdout] 710 | | let stream = ReaderStream::new(file); [INFO] [stdout] 711 | | Ok(Response::builder() [INFO] [stdout] ... | [INFO] [stdout] 714 | | .unwrap()) [INFO] [stdout] 715 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:711:17 [INFO] [stdout] | [INFO] [stdout] 711 | / Ok(Response::builder() [INFO] [stdout] 712 | | .header("Content-Type", mime.as_ref()) [INFO] [stdout] 713 | | .body(Body::wrap_stream(stream)) [INFO] [stdout] 714 | | .unwrap()) [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:716:23 [INFO] [stdout] | [INFO] [stdout] 716 | Err(_) => Ok(Response::builder() [INFO] [stdout] | _______________________^ [INFO] [stdout] 717 | | .status(StatusCode::INTERNAL_SERVER_ERROR) [INFO] [stdout] 718 | | .body(Body::from("无法打开文件")) [INFO] [stdout] 719 | | .unwrap()), [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:721:12 [INFO] [stdout] | [INFO] [stdout] 721 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 722 | | Ok(Response::builder() [INFO] [stdout] 723 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 724 | | .header("Content-Type", "text/plain; charset=utf-8") [INFO] [stdout] 725 | | .body(Body::from("404 - 文件未找到")) [INFO] [stdout] 726 | | .unwrap()) [INFO] [stdout] 727 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:722:9 [INFO] [stdout] | [INFO] [stdout] 722 | / Ok(Response::builder() [INFO] [stdout] 723 | | .status(StatusCode::NOT_FOUND) [INFO] [stdout] 724 | | .header("Content-Type", "text/plain; charset=utf-8") [INFO] [stdout] 725 | | .body(Body::from("404 - 文件未找到")) [INFO] [stdout] 726 | | .unwrap()) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `file_server` (bin "file_server") due to 34 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `file_server` (bin "file_server" test) due to 34 previous errors [INFO] running `Command { std: "docker" "inspect" "c85f0b1462da271b7e7ff93169d5efb146070e168132bdde489372f3efbb2bb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c85f0b1462da271b7e7ff93169d5efb146070e168132bdde489372f3efbb2bb3", kill_on_drop: false }` [INFO] [stdout] c85f0b1462da271b7e7ff93169d5efb146070e168132bdde489372f3efbb2bb3