[INFO] cloning repository https://github.com/GGmiddle/benlovytemplate [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GGmiddle/benlovytemplate" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGGmiddle%2Fbenlovytemplate", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGGmiddle%2Fbenlovytemplate'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c042d1d82fe933eb6e0ca3c71f30bf867161cd12 [INFO] checking GGmiddle/benlovytemplate 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%2FGGmiddle%2Fbenlovytemplate" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/GGmiddle/benlovytemplate [INFO] finished tweaking git repo https://github.com/GGmiddle/benlovytemplate [INFO] tweaked toml for git repo https://github.com/GGmiddle/benlovytemplate written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/GGmiddle/benlovytemplate 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/GGmiddle/benlovytemplate already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c03c750214499972d9d4837031cd487bc0605923d49b7224f77dd8bec8d65590 [INFO] running `Command { std: "docker" "start" "-a" "c03c750214499972d9d4837031cd487bc0605923d49b7224f77dd8bec8d65590", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c03c750214499972d9d4837031cd487bc0605923d49b7224f77dd8bec8d65590", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c03c750214499972d9d4837031cd487bc0605923d49b7224f77dd8bec8d65590", kill_on_drop: false }` [INFO] [stdout] c03c750214499972d9d4837031cd487bc0605923d49b7224f77dd8bec8d65590 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a560e8af52b0d27bb95326b5169ce2e07e1b5c7018afedd020b31047a94e532 [INFO] running `Command { std: "docker" "start" "-a" "9a560e8af52b0d27bb95326b5169ce2e07e1b5c7018afedd020b31047a94e532", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling rustversion v1.0.2 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking futures-core v0.3.4 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking itoa v0.4.5 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking pin-project-lite v0.1.4 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Compiling humansize v1.1.0 [INFO] [stderr] Checking futures-task v0.3.4 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking pin-utils v0.1.0-alpha.4 [INFO] [stderr] Checking regex-syntax v0.6.14 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Checking aho-corasick v0.7.8 [INFO] [stderr] Compiling askama_escape v0.3.0 [INFO] [stderr] Compiling nom v5.1.0 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking futures-sink v0.3.4 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking futures-util v0.3.4 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Checking mio v0.6.21 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling tokio v1.8.4 [INFO] [stderr] Checking http v0.2.0 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Checking arc-swap v0.4.4 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking signal-hook-registry v1.2.0 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking miniz_oxide v0.3.6 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking futures-channel v0.3.4 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking tokio v0.2.24 [INFO] [stderr] Checking pretty_assertions v0.6.1 [INFO] [stderr] Checking flate2 v1.0.13 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking regex v1.3.4 [INFO] [stderr] Checking tokio-util v0.2.0 [INFO] [stderr] Checking h2 v0.2.1 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling pin-project-internal v0.4.8 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling proc-macro-error v0.4.9 [INFO] [stderr] Compiling proc-macro-error-attr v0.4.9 [INFO] [stderr] Compiling structopt-derive v0.4.2 [INFO] [stderr] Checking pin-project v0.4.8 [INFO] [stderr] Checking hyper v0.13.2 [INFO] [stderr] Checking structopt v0.3.9 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Checking askama_shared v0.9.1 [INFO] [stderr] Compiling askama_derive v0.9.0 [INFO] [stderr] Checking askama v0.9.0 [INFO] [stderr] Checking hyper-template v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize, StructOpt)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize, StructOpt)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SkelTemplate` is never constructed [INFO] [stdout] --> src/templates.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct SkelTemplate {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result) -> impl Future, Infallible>> {router}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:26:50 [INFO] [stdout] | [INFO] [stdout] 26 | let make_svc = make_service_fn(|_conn| async { Ok::<_, Infallible>(service_fn(router)) }); [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>> {router}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:26:52 [INFO] [stdout] | [INFO] [stdout] 26 | let make_svc = make_service_fn(|_conn| async { Ok::<_, Infallible>(service_fn(router)) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/config.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize, StructOpt)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Opt` [INFO] [stdout] 11 | #[structopt(name = "deciduously-com")] [INFO] [stdout] 12 | pub struct Opt { [INFO] [stdout] | --- `Opt` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / /// Server address [INFO] [stdout] 14 | | #[structopt(short, long, default_value = "127.0.0.1")] [INFO] [stdout] 15 | | pub address: String, [INFO] [stdout] | |_______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | ) -> HandlerResult { [INFO] [stdout] | ____________________^ [INFO] [stdout] 22 | | // Compress [INFO] [stdout] 23 | | let mut e = ZlibEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] 24 | | e.write_all(body).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 32 | | .unwrap()) [INFO] [stdout] 33 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | ) -> HandlerResult { [INFO] [stdout] | ____________________^ [INFO] [stdout] 22 | | // Compress [INFO] [stdout] 23 | | let mut e = ZlibEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] 24 | | e.write_all(body).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 32 | | .unwrap()) [INFO] [stdout] 33 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / Ok(Response::builder() [INFO] [stdout] 28 | | .status(status.unwrap_or_default()) [INFO] [stdout] 29 | | .header(header::CONTENT_TYPE, content_type) [INFO] [stdout] 30 | | .header(header::CONTENT_ENCODING, "deflate") [INFO] [stdout] 31 | | .body(Body::from(compressed)) [INFO] [stdout] 32 | | .unwrap()) [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> HandlerResult { [INFO] [stdout] | ____________________^ [INFO] [stdout] 41 | | bytes_handler(body.as_bytes(), content_type, status).await [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> HandlerResult { [INFO] [stdout] | ____________________^ [INFO] [stdout] 41 | | bytes_handler(body.as_bytes(), content_type, status).await [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | bytes_handler(body.as_bytes(), content_type, status).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:41:58 [INFO] [stdout] | [INFO] [stdout] 41 | bytes_handler(body.as_bytes(), content_type, status).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | bytes_handler(body.as_bytes(), content_type, status).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:44:60 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn html_str_handler(body: &str) -> HandlerResult { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 45 | | string_handler(body, "text/html", None).await [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:44:60 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn html_str_handler(body: &str) -> HandlerResult { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 45 | | string_handler(body, "text/html", None).await [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | string_handler(body, "text/html", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:45:45 [INFO] [stdout] | [INFO] [stdout] 45 | string_handler(body, "text/html", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | string_handler(body, "text/html", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:50:53 [INFO] [stdout] | [INFO] [stdout] 50 | pub async fn image(path_str: &str) -> HandlerResult { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 51 | | let path_buf = PathBuf::from(path_str); [INFO] [stdout] 52 | | let file_name = path_buf.file_name().unwrap().to_str().unwrap(); [INFO] [stdout] 53 | | if let Some(ext) = path_buf.extension() { [INFO] [stdout] ... | [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:50:53 [INFO] [stdout] | [INFO] [stdout] 50 | pub async fn image(path_str: &str) -> HandlerResult { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 51 | | let path_buf = PathBuf::from(path_str); [INFO] [stdout] 52 | | let file_name = path_buf.file_name().unwrap().to_str().unwrap(); [INFO] [stdout] 53 | | if let Some(ext) = path_buf.extension() { [INFO] [stdout] ... | [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / if let Some(ext) = path_buf.extension() { [INFO] [stdout] 54 | | match ext.to_str().unwrap() { [INFO] [stdout] 55 | | "ico" => { [INFO] [stdout] 56 | | let mut file = [INFO] [stdout] ... | [INFO] [stdout] 73 | | four_oh_four().await [INFO] [stdout] 74 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:53:45 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some(ext) = path_buf.extension() { [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 54 | | match ext.to_str().unwrap() { [INFO] [stdout] 55 | | "ico" => { [INFO] [stdout] 56 | | let mut file = [INFO] [stdout] ... | [INFO] [stdout] 72 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | / match ext.to_str().unwrap() { [INFO] [stdout] 55 | | "ico" => { [INFO] [stdout] 56 | | let mut file = [INFO] [stdout] 57 | | File::open("images/favicon.ico").expect("Should open icon file"); [INFO] [stdout] ... | [INFO] [stdout] 70 | | _ => four_oh_four().await, [INFO] [stdout] 71 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | "ico" => { [INFO] [stdout] | ______________________^ [INFO] [stdout] 56 | | let mut file = [INFO] [stdout] 57 | | File::open("images/favicon.ico").expect("Should open icon file"); [INFO] [stdout] 58 | | let mut buf = Vec::new(); [INFO] [stdout] 59 | | file.read_to_end(&mut buf).expect("Should read icon file"); [INFO] [stdout] 60 | | bytes_handler(&buf, "image/x-icon", None).await [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | bytes_handler(&buf, "image/x-icon", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:60:59 [INFO] [stdout] | [INFO] [stdout] 60 | bytes_handler(&buf, "image/x-icon", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | bytes_handler(&buf, "image/x-icon", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | "svg" => { [INFO] [stdout] | ______________________^ [INFO] [stdout] 63 | | // build the response [INFO] [stdout] 64 | | let xml = match file_name { [INFO] [stdout] ... | [INFO] [stdout] 68 | | string_handler(xml, "image/svg+xml", None).await [INFO] [stdout] 69 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | string_handler(xml, "image/svg+xml", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:68:60 [INFO] [stdout] | [INFO] [stdout] 68 | string_handler(xml, "image/svg+xml", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | string_handler(xml, "image/svg+xml", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:70:33 [INFO] [stdout] | [INFO] [stdout] 70 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 73 | | four_oh_four().await [INFO] [stdout] 74 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | four_oh_four().await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn index() -> HandlerResult { [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 78 | | let template = IndexTemplate::default(); [INFO] [stdout] 79 | | let html = template.render().expect("Should render markup"); [INFO] [stdout] 80 | | html_str_handler(&html).await [INFO] [stdout] 81 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn index() -> HandlerResult { [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 78 | | let template = IndexTemplate::default(); [INFO] [stdout] 79 | | let html = template.render().expect("Should render markup"); [INFO] [stdout] 80 | | html_str_handler(&html).await [INFO] [stdout] 81 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | html_str_handler(&html).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | html_str_handler(&html).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | html_str_handler(&html).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:83:46 [INFO] [stdout] | [INFO] [stdout] 83 | pub async fn four_oh_four() -> HandlerResult { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 84 | | let template = FourOhFourTemplate::default(); [INFO] [stdout] 85 | | let html = template.render().expect("Should render markup"); [INFO] [stdout] 86 | | string_handler(&html, "text/html", Some(StatusCode::NOT_FOUND)).await [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/handlers.rs:83:46 [INFO] [stdout] | [INFO] [stdout] 83 | pub async fn four_oh_four() -> HandlerResult { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 84 | | let template = FourOhFourTemplate::default(); [INFO] [stdout] 85 | | let html = template.render().expect("Should render markup"); [INFO] [stdout] 86 | | string_handler(&html, "text/html", Some(StatusCode::NOT_FOUND)).await [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/handlers.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | string_handler(&html, "text/html", Some(StatusCode::NOT_FOUND)).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:86:69 [INFO] [stdout] | [INFO] [stdout] 86 | string_handler(&html, "text/html", Some(StatusCode::NOT_FOUND)).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | string_handler(&html, "text/html", Some(StatusCode::NOT_FOUND)).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:5:58 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn router(req: Request) -> HandlerResult { [INFO] [stdout] | __________________________________________________________^ [INFO] [stdout] 6 | | let (method, path) = (req.method(), req.uri().path()); [INFO] [stdout] 7 | | info!("{} {}", method, path); [INFO] [stdout] 8 | | match (method, path) { [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:5:58 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn router(req: Request) -> HandlerResult { [INFO] [stdout] | __________________________________________________________^ [INFO] [stdout] 6 | | let (method, path) = (req.method(), req.uri().path()); [INFO] [stdout] 7 | | info!("{} {}", method, path); [INFO] [stdout] 8 | | match (method, path) { [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | / match (method, path) { [INFO] [stdout] 9 | | (&Method::GET, "/") | (&Method::GET, "/index.html") => index().await, [INFO] [stdout] 10 | | (&Method::GET, "/main.css") => { [INFO] [stdout] 11 | | string_handler(include_str!("assets/main.css"), "text/css", None).await [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:9:64 [INFO] [stdout] | [INFO] [stdout] 9 | (&Method::GET, "/") | (&Method::GET, "/index.html") => index().await, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:9:72 [INFO] [stdout] | [INFO] [stdout] 9 | (&Method::GET, "/") | (&Method::GET, "/index.html") => index().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:9:64 [INFO] [stdout] | [INFO] [stdout] 9 | (&Method::GET, "/") | (&Method::GET, "/index.html") => index().await, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:10:40 [INFO] [stdout] | [INFO] [stdout] 10 | (&Method::GET, "/main.css") => { [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 11 | | string_handler(include_str!("assets/main.css"), "text/css", None).await [INFO] [stdout] 12 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | string_handler(include_str!("assets/main.css"), "text/css", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:11:79 [INFO] [stdout] | [INFO] [stdout] 11 | string_handler(include_str!("assets/main.css"), "text/css", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | string_handler(include_str!("assets/main.css"), "text/css", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:13:45 [INFO] [stdout] | [INFO] [stdout] 13 | (&Method::GET, "/manifest.json") => { [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 14 | | string_handler(include_str!("assets/manifest.json"), "text/json", None).await [INFO] [stdout] 15 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | string_handler(include_str!("assets/manifest.json"), "text/json", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:14:85 [INFO] [stdout] | [INFO] [stdout] 14 | string_handler(include_str!("assets/manifest.json"), "text/json", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | string_handler(include_str!("assets/manifest.json"), "text/json", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | (&Method::GET, "/robots.txt") => { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 18 | | string_handler(include_str!("assets/robots.txt"), "text", None).await [INFO] [stdout] 19 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | string_handler(include_str!("assets/robots.txt"), "text", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:18:77 [INFO] [stdout] | [INFO] [stdout] 18 | string_handler(include_str!("assets/robots.txt"), "text", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | string_handler(include_str!("assets/robots.txt"), "text", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:20:37 [INFO] [stdout] | [INFO] [stdout] 20 | (&Method::GET, path_str) => { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 21 | | // Otherwise... [INFO] [stdout] 22 | | // is it an image? [INFO] [stdout] 23 | | if let Some(ext) = path_str.split('.').nth(1) { [INFO] [stdout] ... | [INFO] [stdout] 31 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | / if let Some(ext) = path_str.split('.').nth(1) { [INFO] [stdout] 24 | | match ext { [INFO] [stdout] 25 | | "ico" | "svg" => image(path).await, [INFO] [stdout] 26 | | _ => four_oh_four().await, [INFO] [stdout] ... | [INFO] [stdout] 29 | | four_oh_four().await [INFO] [stdout] 30 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | if let Some(ext) = path_str.split('.').nth(1) { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 24 | | match ext { [INFO] [stdout] 25 | | "ico" | "svg" => image(path).await, [INFO] [stdout] 26 | | _ => four_oh_four().await, [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | / match ext { [INFO] [stdout] 25 | | "ico" | "svg" => image(path).await, [INFO] [stdout] 26 | | _ => four_oh_four().await, [INFO] [stdout] 27 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | "ico" | "svg" => image(path).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:25:50 [INFO] [stdout] | [INFO] [stdout] 25 | "ico" | "svg" => image(path).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | "ico" | "svg" => image(path).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:26:41 [INFO] [stdout] | [INFO] [stdout] 26 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 29 | | four_oh_four().await [INFO] [stdout] 30 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:29:32 [INFO] [stdout] | [INFO] [stdout] 29 | four_oh_four().await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 33 | | warn!("{}: 404!", path); [INFO] [stdout] 34 | | four_oh_four().await [INFO] [stdout] 35 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | four_oh_four().await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SkelTemplate` is never constructed [INFO] [stdout] --> src/templates.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct SkelTemplate {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result) -> impl Future, Infallible>> {router}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:26:50 [INFO] [stdout] | [INFO] [stdout] 26 | let make_svc = make_service_fn(|_conn| async { Ok::<_, Infallible>(service_fn(router)) }); [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>> {router}, Body>, Infallible> [INFO] [stdout] --> src/main.rs:26:52 [INFO] [stdout] | [INFO] [stdout] 26 | let make_svc = make_service_fn(|_conn| async { Ok::<_, Infallible>(service_fn(router)) }); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/config.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Debug, Deserialize, StructOpt)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Opt` [INFO] [stdout] 11 | #[structopt(name = "deciduously-com")] [INFO] [stdout] 12 | pub struct Opt { [INFO] [stdout] | --- `Opt` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | / /// Server address [INFO] [stdout] 14 | | #[structopt(short, long, default_value = "127.0.0.1")] [INFO] [stdout] 15 | | pub address: String, [INFO] [stdout] | |_______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | ) -> HandlerResult { [INFO] [stdout] | ____________________^ [INFO] [stdout] 22 | | // Compress [INFO] [stdout] 23 | | let mut e = ZlibEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] 24 | | e.write_all(body).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 32 | | .unwrap()) [INFO] [stdout] 33 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | ) -> HandlerResult { [INFO] [stdout] | ____________________^ [INFO] [stdout] 22 | | // Compress [INFO] [stdout] 23 | | let mut e = ZlibEncoder::new(Vec::new(), Compression::default()); [INFO] [stdout] 24 | | e.write_all(body).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 32 | | .unwrap()) [INFO] [stdout] 33 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | / Ok(Response::builder() [INFO] [stdout] 28 | | .status(status.unwrap_or_default()) [INFO] [stdout] 29 | | .header(header::CONTENT_TYPE, content_type) [INFO] [stdout] 30 | | .header(header::CONTENT_ENCODING, "deflate") [INFO] [stdout] 31 | | .body(Body::from(compressed)) [INFO] [stdout] 32 | | .unwrap()) [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hyper-template` (bin "hyper-template") due to 82 previous errors; 3 warnings emitted [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> HandlerResult { [INFO] [stdout] | ____________________^ [INFO] [stdout] 41 | | bytes_handler(body.as_bytes(), content_type, status).await [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:40:20 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> HandlerResult { [INFO] [stdout] | ____________________^ [INFO] [stdout] 41 | | bytes_handler(body.as_bytes(), content_type, status).await [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | bytes_handler(body.as_bytes(), content_type, status).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:41:58 [INFO] [stdout] | [INFO] [stdout] 41 | bytes_handler(body.as_bytes(), content_type, status).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | bytes_handler(body.as_bytes(), content_type, status).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:44:60 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn html_str_handler(body: &str) -> HandlerResult { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 45 | | string_handler(body, "text/html", None).await [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:44:60 [INFO] [stdout] | [INFO] [stdout] 44 | pub async fn html_str_handler(body: &str) -> HandlerResult { [INFO] [stdout] | ____________________________________________________________^ [INFO] [stdout] 45 | | string_handler(body, "text/html", None).await [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | string_handler(body, "text/html", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:45:45 [INFO] [stdout] | [INFO] [stdout] 45 | string_handler(body, "text/html", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | string_handler(body, "text/html", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:50:53 [INFO] [stdout] | [INFO] [stdout] 50 | pub async fn image(path_str: &str) -> HandlerResult { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 51 | | let path_buf = PathBuf::from(path_str); [INFO] [stdout] 52 | | let file_name = path_buf.file_name().unwrap().to_str().unwrap(); [INFO] [stdout] 53 | | if let Some(ext) = path_buf.extension() { [INFO] [stdout] ... | [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:50:53 [INFO] [stdout] | [INFO] [stdout] 50 | pub async fn image(path_str: &str) -> HandlerResult { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 51 | | let path_buf = PathBuf::from(path_str); [INFO] [stdout] 52 | | let file_name = path_buf.file_name().unwrap().to_str().unwrap(); [INFO] [stdout] 53 | | if let Some(ext) = path_buf.extension() { [INFO] [stdout] ... | [INFO] [stdout] 75 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | / if let Some(ext) = path_buf.extension() { [INFO] [stdout] 54 | | match ext.to_str().unwrap() { [INFO] [stdout] 55 | | "ico" => { [INFO] [stdout] 56 | | let mut file = [INFO] [stdout] ... | [INFO] [stdout] 73 | | four_oh_four().await [INFO] [stdout] 74 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:53:45 [INFO] [stdout] | [INFO] [stdout] 53 | if let Some(ext) = path_buf.extension() { [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 54 | | match ext.to_str().unwrap() { [INFO] [stdout] 55 | | "ico" => { [INFO] [stdout] 56 | | let mut file = [INFO] [stdout] ... | [INFO] [stdout] 72 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | / match ext.to_str().unwrap() { [INFO] [stdout] 55 | | "ico" => { [INFO] [stdout] 56 | | let mut file = [INFO] [stdout] 57 | | File::open("images/favicon.ico").expect("Should open icon file"); [INFO] [stdout] ... | [INFO] [stdout] 70 | | _ => four_oh_four().await, [INFO] [stdout] 71 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | "ico" => { [INFO] [stdout] | ______________________^ [INFO] [stdout] 56 | | let mut file = [INFO] [stdout] 57 | | File::open("images/favicon.ico").expect("Should open icon file"); [INFO] [stdout] 58 | | let mut buf = Vec::new(); [INFO] [stdout] 59 | | file.read_to_end(&mut buf).expect("Should read icon file"); [INFO] [stdout] 60 | | bytes_handler(&buf, "image/x-icon", None).await [INFO] [stdout] 61 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | bytes_handler(&buf, "image/x-icon", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:60:59 [INFO] [stdout] | [INFO] [stdout] 60 | bytes_handler(&buf, "image/x-icon", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | bytes_handler(&buf, "image/x-icon", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:62:22 [INFO] [stdout] | [INFO] [stdout] 62 | "svg" => { [INFO] [stdout] | ______________________^ [INFO] [stdout] 63 | | // build the response [INFO] [stdout] 64 | | let xml = match file_name { [INFO] [stdout] ... | [INFO] [stdout] 68 | | string_handler(xml, "image/svg+xml", None).await [INFO] [stdout] 69 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | string_handler(xml, "image/svg+xml", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:68:60 [INFO] [stdout] | [INFO] [stdout] 68 | string_handler(xml, "image/svg+xml", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | string_handler(xml, "image/svg+xml", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:70:33 [INFO] [stdout] | [INFO] [stdout] 70 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 70 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 73 | | four_oh_four().await [INFO] [stdout] 74 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:73:24 [INFO] [stdout] | [INFO] [stdout] 73 | four_oh_four().await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn index() -> HandlerResult { [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 78 | | let template = IndexTemplate::default(); [INFO] [stdout] 79 | | let html = template.render().expect("Should render markup"); [INFO] [stdout] 80 | | html_str_handler(&html).await [INFO] [stdout] 81 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:77:39 [INFO] [stdout] | [INFO] [stdout] 77 | pub async fn index() -> HandlerResult { [INFO] [stdout] | _______________________________________^ [INFO] [stdout] 78 | | let template = IndexTemplate::default(); [INFO] [stdout] 79 | | let html = template.render().expect("Should render markup"); [INFO] [stdout] 80 | | html_str_handler(&html).await [INFO] [stdout] 81 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | html_str_handler(&html).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:80:29 [INFO] [stdout] | [INFO] [stdout] 80 | html_str_handler(&html).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | html_str_handler(&html).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:83:46 [INFO] [stdout] | [INFO] [stdout] 83 | pub async fn four_oh_four() -> HandlerResult { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 84 | | let template = FourOhFourTemplate::default(); [INFO] [stdout] 85 | | let html = template.render().expect("Should render markup"); [INFO] [stdout] 86 | | string_handler(&html, "text/html", Some(StatusCode::NOT_FOUND)).await [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/handlers.rs:83:46 [INFO] [stdout] | [INFO] [stdout] 83 | pub async fn four_oh_four() -> HandlerResult { [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 84 | | let template = FourOhFourTemplate::default(); [INFO] [stdout] 85 | | let html = template.render().expect("Should render markup"); [INFO] [stdout] 86 | | string_handler(&html, "text/html", Some(StatusCode::NOT_FOUND)).await [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/handlers.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | string_handler(&html, "text/html", Some(StatusCode::NOT_FOUND)).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:86:69 [INFO] [stdout] | [INFO] [stdout] 86 | string_handler(&html, "text/html", Some(StatusCode::NOT_FOUND)).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | string_handler(&html, "text/html", Some(StatusCode::NOT_FOUND)).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:5:58 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn router(req: Request) -> HandlerResult { [INFO] [stdout] | __________________________________________________________^ [INFO] [stdout] 6 | | let (method, path) = (req.method(), req.uri().path()); [INFO] [stdout] 7 | | info!("{} {}", method, path); [INFO] [stdout] 8 | | match (method, path) { [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:5:58 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn router(req: Request) -> HandlerResult { [INFO] [stdout] | __________________________________________________________^ [INFO] [stdout] 6 | | let (method, path) = (req.method(), req.uri().path()); [INFO] [stdout] 7 | | info!("{} {}", method, path); [INFO] [stdout] 8 | | match (method, path) { [INFO] [stdout] ... | [INFO] [stdout] 37 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | / match (method, path) { [INFO] [stdout] 9 | | (&Method::GET, "/") | (&Method::GET, "/index.html") => index().await, [INFO] [stdout] 10 | | (&Method::GET, "/main.css") => { [INFO] [stdout] 11 | | string_handler(include_str!("assets/main.css"), "text/css", None).await [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:9:64 [INFO] [stdout] | [INFO] [stdout] 9 | (&Method::GET, "/") | (&Method::GET, "/index.html") => index().await, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:9:72 [INFO] [stdout] | [INFO] [stdout] 9 | (&Method::GET, "/") | (&Method::GET, "/index.html") => index().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:9:64 [INFO] [stdout] | [INFO] [stdout] 9 | (&Method::GET, "/") | (&Method::GET, "/index.html") => index().await, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:10:40 [INFO] [stdout] | [INFO] [stdout] 10 | (&Method::GET, "/main.css") => { [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 11 | | string_handler(include_str!("assets/main.css"), "text/css", None).await [INFO] [stdout] 12 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | string_handler(include_str!("assets/main.css"), "text/css", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:11:79 [INFO] [stdout] | [INFO] [stdout] 11 | string_handler(include_str!("assets/main.css"), "text/css", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | string_handler(include_str!("assets/main.css"), "text/css", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:13:45 [INFO] [stdout] | [INFO] [stdout] 13 | (&Method::GET, "/manifest.json") => { [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 14 | | string_handler(include_str!("assets/manifest.json"), "text/json", None).await [INFO] [stdout] 15 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | string_handler(include_str!("assets/manifest.json"), "text/json", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:14:85 [INFO] [stdout] | [INFO] [stdout] 14 | string_handler(include_str!("assets/manifest.json"), "text/json", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | string_handler(include_str!("assets/manifest.json"), "text/json", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | (&Method::GET, "/robots.txt") => { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 18 | | string_handler(include_str!("assets/robots.txt"), "text", None).await [INFO] [stdout] 19 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | string_handler(include_str!("assets/robots.txt"), "text", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:18:77 [INFO] [stdout] | [INFO] [stdout] 18 | string_handler(include_str!("assets/robots.txt"), "text", None).await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:18:13 [INFO] [stdout] | [INFO] [stdout] 18 | string_handler(include_str!("assets/robots.txt"), "text", None).await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:20:37 [INFO] [stdout] | [INFO] [stdout] 20 | (&Method::GET, path_str) => { [INFO] [stdout] | _____________________________________^ [INFO] [stdout] 21 | | // Otherwise... [INFO] [stdout] 22 | | // is it an image? [INFO] [stdout] 23 | | if let Some(ext) = path_str.split('.').nth(1) { [INFO] [stdout] ... | [INFO] [stdout] 31 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:23:13 [INFO] [stdout] | [INFO] [stdout] 23 | / if let Some(ext) = path_str.split('.').nth(1) { [INFO] [stdout] 24 | | match ext { [INFO] [stdout] 25 | | "ico" | "svg" => image(path).await, [INFO] [stdout] 26 | | _ => four_oh_four().await, [INFO] [stdout] ... | [INFO] [stdout] 29 | | four_oh_four().await [INFO] [stdout] 30 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | if let Some(ext) = path_str.split('.').nth(1) { [INFO] [stdout] | ___________________________________________________________^ [INFO] [stdout] 24 | | match ext { [INFO] [stdout] 25 | | "ico" | "svg" => image(path).await, [INFO] [stdout] 26 | | _ => four_oh_four().await, [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | } else { [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:24:17 [INFO] [stdout] | [INFO] [stdout] 24 | / match ext { [INFO] [stdout] 25 | | "ico" | "svg" => image(path).await, [INFO] [stdout] 26 | | _ => four_oh_four().await, [INFO] [stdout] 27 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | "ico" | "svg" => image(path).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:25:50 [INFO] [stdout] | [INFO] [stdout] 25 | "ico" | "svg" => image(path).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | "ico" | "svg" => image(path).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:26:41 [INFO] [stdout] | [INFO] [stdout] 26 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | _ => four_oh_four().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:28:20 [INFO] [stdout] | [INFO] [stdout] 28 | } else { [INFO] [stdout] | ____________________^ [INFO] [stdout] 29 | | four_oh_four().await [INFO] [stdout] 30 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:29:32 [INFO] [stdout] | [INFO] [stdout] 29 | four_oh_four().await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 33 | | warn!("{}: 404!", path); [INFO] [stdout] 34 | | four_oh_four().await [INFO] [stdout] 35 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:34:28 [INFO] [stdout] | [INFO] [stdout] 34 | four_oh_four().await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/router.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | four_oh_four().await [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hyper-template` (bin "hyper-template" test) due to 82 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9a560e8af52b0d27bb95326b5169ce2e07e1b5c7018afedd020b31047a94e532", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a560e8af52b0d27bb95326b5169ce2e07e1b5c7018afedd020b31047a94e532", kill_on_drop: false }` [INFO] [stdout] 9a560e8af52b0d27bb95326b5169ce2e07e1b5c7018afedd020b31047a94e532