[INFO] cloning repository https://github.com/17ms/http-filehost-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/17ms/http-filehost-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F17ms%2Fhttp-filehost-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F17ms%2Fhttp-filehost-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5bd68735b086d59c6a07a221d5084e5ff4e015ce [INFO] checking 17ms/http-filehost-demo 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%2F17ms%2Fhttp-filehost-demo" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/17ms/http-filehost-demo [INFO] finished tweaking git repo https://github.com/17ms/http-filehost-demo [INFO] tweaked toml for git repo https://github.com/17ms/http-filehost-demo written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/17ms/http-filehost-demo 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/17ms/http-filehost-demo 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] fb8cdcdf99dd8bee0095fc9130d13999d6873a5e5b294e692fc42f210c566a6b [INFO] running `Command { std: "docker" "start" "-a" "fb8cdcdf99dd8bee0095fc9130d13999d6873a5e5b294e692fc42f210c566a6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb8cdcdf99dd8bee0095fc9130d13999d6873a5e5b294e692fc42f210c566a6b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb8cdcdf99dd8bee0095fc9130d13999d6873a5e5b294e692fc42f210c566a6b", kill_on_drop: false }` [INFO] [stdout] fb8cdcdf99dd8bee0095fc9130d13999d6873a5e5b294e692fc42f210c566a6b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 9853699aa10998e4d164f2940854e09ff40bbcb29fc09e1c95723e0750902868 [INFO] running `Command { std: "docker" "start" "-a" "9853699aa10998e4d164f2940854e09ff40bbcb29fc09e1c95723e0750902868", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling proc-macro2 v1.0.40 [INFO] [stderr] Compiling quote v1.0.20 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Checking once_cell v1.12.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking tracing-core v0.1.28 [INFO] [stderr] Checking hashbrown v0.12.1 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling serde v1.0.142 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking os_str_bytes v6.1.0 [INFO] [stderr] Compiling serde_json v1.0.83 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking tracing v0.1.35 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Checking mio v0.8.4 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling clap_derive v3.2.7 [INFO] [stderr] Checking tokio v1.19.2 [INFO] [stderr] Checking clap v3.2.7 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking h2 v0.3.13 [INFO] [stderr] Checking hyper v0.14.19 [INFO] [stderr] Checking http-filehost-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result) -> impl Future, Infallible>> {file_service}, Body>, Infallible> [INFO] [stdout] --> src/server.rs:31:55 [INFO] [stdout] | [INFO] [stdout] 31 | let make_svc = make_service_fn(|_conn| async move { Ok::<_, Infallible>(service) }); [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) -> impl Future, Infallible>> {file_service}, Body>, Infallible> [INFO] [stdout] --> src/server.rs:31:55 [INFO] [stdout] | [INFO] [stdout] 31 | let make_svc = make_service_fn(|_conn| async move { Ok::<_, Infallible>(service) }); [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) -> impl Future, Infallible>> {file_service}, Body>, Infallible> [INFO] [stdout] --> src/server.rs:31:57 [INFO] [stdout] | [INFO] [stdout] 31 | let make_svc = make_service_fn(|_conn| async move { Ok::<_, Infallible>(service) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result) -> impl Future, Infallible>> {file_service}, Body>, Infallible> [INFO] [stdout] --> src/server.rs:31:57 [INFO] [stdout] | [INFO] [stdout] 31 | let make_svc = make_service_fn(|_conn| async move { Ok::<_, Infallible>(service) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:41:81 [INFO] [stdout] | [INFO] [stdout] 41 | async fn file_service(req: Request) -> Result, Infallible> { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 42 | | // HTTP-service for serving files [INFO] [stdout] 43 | | [INFO] [stdout] 44 | | let args = Args::parse(); [INFO] [stdout] ... | [INFO] [stdout] 68 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:41:81 [INFO] [stdout] | [INFO] [stdout] 41 | async fn file_service(req: Request) -> Result, Infallible> { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 42 | | // HTTP-service for serving files [INFO] [stdout] 43 | | [INFO] [stdout] 44 | | let args = Args::parse(); [INFO] [stdout] ... | [INFO] [stdout] 68 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | / match *req.method() { [INFO] [stdout] 48 | | Method::GET => { [INFO] [stdout] ... | [INFO] [stdout] 66 | | _ => Ok(Response::new(Body::from("Only GET-requests supported"))), [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:41:81 [INFO] [stdout] | [INFO] [stdout] 41 | async fn file_service(req: Request) -> Result, Infallible> { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 42 | | // HTTP-service for serving files [INFO] [stdout] 43 | | [INFO] [stdout] 44 | | let args = Args::parse(); [INFO] [stdout] ... | [INFO] [stdout] 68 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | Method::GET => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 49 | | // Use defined root-directory for files or default to ./data [INFO] [stdout] 50 | | [INFO] [stdout] 51 | | let data_root = match args.rootdir { [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:41:81 [INFO] [stdout] | [INFO] [stdout] 41 | async fn file_service(req: Request) -> Result, Infallible> { [INFO] [stdout] | _________________________________________________________________________________^ [INFO] [stdout] 42 | | // HTTP-service for serving files [INFO] [stdout] 43 | | [INFO] [stdout] 44 | | let args = Args::parse(); [INFO] [stdout] ... | [INFO] [stdout] 68 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | / match path_from_req(req.uri().path(), &data_root, &encoding_map) { [INFO] [stdout] 62 | | Some(filepath) => serve_file(filepath).await, [INFO] [stdout] 63 | | None => Ok(Response::new(Body::from("404 File not found"))), [INFO] [stdout] 64 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:62:35 [INFO] [stdout] | [INFO] [stdout] 62 | Some(filepath) => serve_file(filepath).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | / match *req.method() { [INFO] [stdout] 48 | | Method::GET => { [INFO] [stdout] ... | [INFO] [stdout] 66 | | _ => Ok(Response::new(Body::from("Only GET-requests supported"))), [INFO] [stdout] 67 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:62:56 [INFO] [stdout] | [INFO] [stdout] 62 | Some(filepath) => serve_file(filepath).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:62:35 [INFO] [stdout] | [INFO] [stdout] 62 | Some(filepath) => serve_file(filepath).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | Method::GET => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 49 | | // Use defined root-directory for files or default to ./data [INFO] [stdout] 50 | | [INFO] [stdout] 51 | | let data_root = match args.rootdir { [INFO] [stdout] ... | [INFO] [stdout] 65 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | None => Ok(Response::new(Body::from("404 File not found"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | _ => Ok(Response::new(Body::from("Only GET-requests supported"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 61 | / match path_from_req(req.uri().path(), &data_root, &encoding_map) { [INFO] [stdout] 62 | | Some(filepath) => serve_file(filepath).await, [INFO] [stdout] 63 | | None => Ok(Response::new(Body::from("404 File not found"))), [INFO] [stdout] 64 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:62:35 [INFO] [stdout] | [INFO] [stdout] 62 | Some(filepath) => serve_file(filepath).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:62:56 [INFO] [stdout] | [INFO] [stdout] 62 | Some(filepath) => serve_file(filepath).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:62:35 [INFO] [stdout] | [INFO] [stdout] 62 | Some(filepath) => serve_file(filepath).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | None => Ok(Response::new(Body::from("404 File not found"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | _ => Ok(Response::new(Body::from("Only GET-requests supported"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:70:78 [INFO] [stdout] | [INFO] [stdout] 70 | async fn serve_file(filepath: PathBuf) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 71 | | // Serve a single file asynchronously [INFO] [stdout] 72 | | [INFO] [stdout] 73 | | match tokio::fs::read(&filepath).await { [INFO] [stdout] ... | [INFO] [stdout] 88 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:70:78 [INFO] [stdout] | [INFO] [stdout] 70 | async fn serve_file(filepath: PathBuf) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 71 | | // Serve a single file asynchronously [INFO] [stdout] 72 | | [INFO] [stdout] 73 | | match tokio::fs::read(&filepath).await { [INFO] [stdout] ... | [INFO] [stdout] 88 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:70:78 [INFO] [stdout] | [INFO] [stdout] 70 | async fn serve_file(filepath: PathBuf) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 71 | | // Serve a single file asynchronously [INFO] [stdout] 72 | | [INFO] [stdout] 73 | | match tokio::fs::read(&filepath).await { [INFO] [stdout] ... | [INFO] [stdout] 88 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / match tokio::fs::read(&filepath).await { [INFO] [stdout] 74 | | Ok(contents) => { [INFO] [stdout] 75 | | println!("Served file [{:#?}]", filepath); [INFO] [stdout] 76 | | let body = contents.into(); [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | Ok(contents) => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | println!("Served file [{:#?}]", filepath); [INFO] [stdout] 76 | | let body = contents.into(); [INFO] [stdout] 77 | | Ok(Response::new(body)) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:70:78 [INFO] [stdout] | [INFO] [stdout] 70 | async fn serve_file(filepath: PathBuf) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 71 | | // Serve a single file asynchronously [INFO] [stdout] 72 | | [INFO] [stdout] 73 | | match tokio::fs::read(&filepath).await { [INFO] [stdout] ... | [INFO] [stdout] 88 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | Ok(Response::new(body)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 80 | | if filepath.ends_with("favicon.ico") { [INFO] [stdout] 81 | | Ok(Response::new(Body::from(""))) [INFO] [stdout] 82 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 86 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | / if filepath.ends_with("favicon.ico") { [INFO] [stdout] 81 | | Ok(Response::new(Body::from(""))) [INFO] [stdout] 82 | | } else { [INFO] [stdout] 83 | | eprintln!("Error serving file ({:#?}): {}", filepath, e); [INFO] [stdout] 84 | | Ok(Response::new(Body::from("404 File not found"))) [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / match tokio::fs::read(&filepath).await { [INFO] [stdout] 74 | | Ok(contents) => { [INFO] [stdout] 75 | | println!("Served file [{:#?}]", filepath); [INFO] [stdout] 76 | | let body = contents.into(); [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:80:50 [INFO] [stdout] | [INFO] [stdout] 80 | if filepath.ends_with("favicon.ico") { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 81 | | Ok(Response::new(Body::from(""))) [INFO] [stdout] 82 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | Ok(Response::new(Body::from(""))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:74:25 [INFO] [stdout] | [INFO] [stdout] 74 | Ok(contents) => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 75 | | println!("Served file [{:#?}]", filepath); [INFO] [stdout] 76 | | let body = contents.into(); [INFO] [stdout] 77 | | Ok(Response::new(body)) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | Ok(Response::new(body)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 83 | | eprintln!("Error serving file ({:#?}): {}", filepath, e); [INFO] [stdout] 84 | | Ok(Response::new(Body::from("404 File not found"))) [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | Ok(Response::new(Body::from("404 File not found"))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 80 | | if filepath.ends_with("favicon.ico") { [INFO] [stdout] 81 | | Ok(Response::new(Body::from(""))) [INFO] [stdout] 82 | | } else { [INFO] [stdout] ... | [INFO] [stdout] 86 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | / if filepath.ends_with("favicon.ico") { [INFO] [stdout] 81 | | Ok(Response::new(Body::from(""))) [INFO] [stdout] 82 | | } else { [INFO] [stdout] 83 | | eprintln!("Error serving file ({:#?}): {}", filepath, e); [INFO] [stdout] 84 | | Ok(Response::new(Body::from("404 File not found"))) [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:80:50 [INFO] [stdout] | [INFO] [stdout] 80 | if filepath.ends_with("favicon.ico") { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 81 | | Ok(Response::new(Body::from(""))) [INFO] [stdout] 82 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | Ok(Response::new(Body::from(""))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 82 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 83 | | eprintln!("Error serving file ({:#?}): {}", filepath, e); [INFO] [stdout] 84 | | Ok(Response::new(Body::from("404 File not found"))) [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | Ok(Response::new(Body::from("404 File not found"))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `http-filehost-demo` (bin "http-filehost-demo") due to 23 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `http-filehost-demo` (bin "http-filehost-demo" test) due to 23 previous errors [INFO] running `Command { std: "docker" "inspect" "9853699aa10998e4d164f2940854e09ff40bbcb29fc09e1c95723e0750902868", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9853699aa10998e4d164f2940854e09ff40bbcb29fc09e1c95723e0750902868", kill_on_drop: false }` [INFO] [stdout] 9853699aa10998e4d164f2940854e09ff40bbcb29fc09e1c95723e0750902868