[INFO] cloning repository https://github.com/Deeppanchal2108/rust-http-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Deeppanchal2108/rust-http-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeeppanchal2108%2Frust-http-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeeppanchal2108%2Frust-http-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0686b482806534b909c2f3cc70cd448174f9f324 [INFO] checking Deeppanchal2108/rust-http-server against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDeeppanchal2108%2Frust-http-server" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Deeppanchal2108/rust-http-server [INFO] finished tweaking git repo https://github.com/Deeppanchal2108/rust-http-server [INFO] tweaked toml for git repo https://github.com/Deeppanchal2108/rust-http-server written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Deeppanchal2108/rust-http-server on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Deeppanchal2108/rust-http-server already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] b3234d92f73293e3bc6f838b90a7fe4901beefdebf81824f39142c13023713a4 [INFO] running `Command { std: "docker" "start" "-a" "b3234d92f73293e3bc6f838b90a7fe4901beefdebf81824f39142c13023713a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3234d92f73293e3bc6f838b90a7fe4901beefdebf81824f39142c13023713a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3234d92f73293e3bc6f838b90a7fe4901beefdebf81824f39142c13023713a4", kill_on_drop: false }` [INFO] [stdout] b3234d92f73293e3bc6f838b90a7fe4901beefdebf81824f39142c13023713a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] b1f83710a8e10f8f765cc8753982c2f5156582d0b7cc5b75b24d099c18c1ff97 [INFO] running `Command { std: "docker" "start" "-a" "b1f83710a8e10f8f765cc8753982c2f5156582d0b7cc5b75b24d099c18c1ff97", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking hashlink v0.10.0 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking rustls-webpki v0.103.4 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking rust-http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `dotenvy` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dotenvy` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dotenvy; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:17:95 [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(_req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________^ [INFO] [stdout] 18 | | match (_req.method().as_str(), _req.uri().path()) { [INFO] [stdout] 19 | | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] 20 | | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] ... | [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:17:95 [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(_req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________^ [INFO] [stdout] 18 | | match (_req.method().as_str(), _req.uri().path()) { [INFO] [stdout] 19 | | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] 20 | | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] ... | [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | / match (_req.method().as_str(), _req.uri().path()) { [INFO] [stdout] 19 | | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] 20 | | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] 21 | | ("POST", "/tasks") => create_task(_req, pool).await, [INFO] [stdout] 22 | | ("GET", "/tasks") => get_user_tasks(_req, pool).await, [INFO] [stdout] 23 | | _ => Ok(Response::new(Body::from("Not Found"))), [INFO] [stdout] 24 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:19:55 [INFO] [stdout] | [INFO] [stdout] 19 | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:20:52 [INFO] [stdout] | [INFO] [stdout] 20 | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | ("POST", "/tasks") => create_task(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:21:55 [INFO] [stdout] | [INFO] [stdout] 21 | ("POST", "/tasks") => create_task(_req, pool).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | ("POST", "/tasks") => create_task(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | ("GET", "/tasks") => get_user_tasks(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:22:57 [INFO] [stdout] | [INFO] [stdout] 22 | ("GET", "/tasks") => get_user_tasks(_req, pool).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | ("GET", "/tasks") => get_user_tasks(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | _ => Ok(Response::new(Body::from("Not Found"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:70:24 [INFO] [stdout] | [INFO] [stdout] 70 | async move { [INFO] [stdout] | ________________________^ [INFO] [stdout] 71 | | Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 72 | | let pool = pool.clone(); [INFO] [stdout] 73 | | handle(req, pool) [INFO] [stdout] 74 | | })) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | / Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 72 | | let pool = pool.clone(); [INFO] [stdout] 73 | | handle(req, pool) [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:8:104 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn create_user( req : Request, pool :Arc)-> Result , Infallible>{ [INFO] [stdout] | ________________________________________________________________________________________________________^ [INFO] [stdout] 9 | | let body =hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 10 | | let new_user: NewUser = from_slice(&body).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 25 | | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] 26 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:8:104 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn create_user( req : Request, pool :Arc)-> Result , Infallible>{ [INFO] [stdout] | ________________________________________________________________________________________________________^ [INFO] [stdout] 9 | | let body =hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 10 | | let new_user: NewUser = from_slice(&body).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 25 | | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] 26 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:29:102 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn get_users(_req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________________^ [INFO] [stdout] 30 | | let rows: Vec = sqlx::query_as("SELECT id, name, email FROM users") [INFO] [stdout] 31 | | .fetch_all(&*pool) [INFO] [stdout] 32 | | .await [INFO] [stdout] ... | [INFO] [stdout] 36 | | Ok(Response::new(Body::from(response_body))) [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/handlers.rs:29:102 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn get_users(_req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________________^ [INFO] [stdout] 30 | | let rows: Vec = sqlx::query_as("SELECT id, name, email FROM users") [INFO] [stdout] 31 | | .fetch_all(&*pool) [INFO] [stdout] 32 | | .await [INFO] [stdout] ... | [INFO] [stdout] 36 | | Ok(Response::new(Body::from(response_body))) [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/handlers.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(Response::new(Body::from(response_body))) [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:103 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn create_task(req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________^ [INFO] [stdout] 42 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 43 | | let new_task: NewTask = from_slice(&body_bytes).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 58 | | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] 59 | | } [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:103 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn create_task(req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________^ [INFO] [stdout] 42 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 43 | | let new_task: NewTask = from_slice(&body_bytes).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 58 | | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] 59 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | Ok(Response::new(Body::from(response_body))) [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:106 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn get_user_tasks(req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | __________________________________________________________________________________________________________^ [INFO] [stdout] 63 | | let query = req.uri().query().unwrap_or(""); // e.g., ?user_id=1 [INFO] [stdout] 64 | | let user_id: i32 = query.strip_prefix("user_id=").unwrap_or("0").parse().unwrap_or(0); [INFO] [stdout] ... | [INFO] [stdout] 73 | | Ok(Response::new(Body::from(response_body))) [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:62:106 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn get_user_tasks(req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | __________________________________________________________________________________________________________^ [INFO] [stdout] 63 | | let query = req.uri().query().unwrap_or(""); // e.g., ?user_id=1 [INFO] [stdout] 64 | | let user_id: i32 = query.strip_prefix("user_id=").unwrap_or("0").parse().unwrap_or(0); [INFO] [stdout] ... | [INFO] [stdout] 73 | | Ok(Response::new(Body::from(response_body))) [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:5 [INFO] [stdout] | [INFO] [stdout] 73 | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:17:95 [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(_req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________^ [INFO] [stdout] 18 | | match (_req.method().as_str(), _req.uri().path()) { [INFO] [stdout] 19 | | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] 20 | | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] ... | [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:17:95 [INFO] [stdout] | [INFO] [stdout] 17 | async fn handle(_req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________^ [INFO] [stdout] 18 | | match (_req.method().as_str(), _req.uri().path()) { [INFO] [stdout] 19 | | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] 20 | | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] ... | [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | / match (_req.method().as_str(), _req.uri().path()) { [INFO] [stdout] 19 | | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] 20 | | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] 21 | | ("POST", "/tasks") => create_task(_req, pool).await, [INFO] [stdout] 22 | | ("GET", "/tasks") => get_user_tasks(_req, pool).await, [INFO] [stdout] 23 | | _ => Ok(Response::new(Body::from("Not Found"))), [INFO] [stdout] 24 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:19:55 [INFO] [stdout] | [INFO] [stdout] 19 | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:19:31 [INFO] [stdout] | [INFO] [stdout] 19 | ("POST", "/users") => create_user(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:20:52 [INFO] [stdout] | [INFO] [stdout] 20 | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | ("GET", "/users") => get_users(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | ("POST", "/tasks") => create_task(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:21:55 [INFO] [stdout] | [INFO] [stdout] 21 | ("POST", "/tasks") => create_task(_req, pool).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:21:31 [INFO] [stdout] | [INFO] [stdout] 21 | ("POST", "/tasks") => create_task(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | ("GET", "/tasks") => get_user_tasks(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:22:57 [INFO] [stdout] | [INFO] [stdout] 22 | ("GET", "/tasks") => get_user_tasks(_req, pool).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:22:30 [INFO] [stdout] | [INFO] [stdout] 22 | ("GET", "/tasks") => get_user_tasks(_req, pool).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | _ => Ok(Response::new(Body::from("Not Found"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:70:24 [INFO] [stdout] | [INFO] [stdout] 70 | async move { [INFO] [stdout] | ________________________^ [INFO] [stdout] 71 | | Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 72 | | let pool = pool.clone(); [INFO] [stdout] 73 | | handle(req, pool) [INFO] [stdout] 74 | | })) [INFO] [stdout] 75 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | / Ok::<_, Infallible>(service_fn(move |req| { [INFO] [stdout] 72 | | let pool = pool.clone(); [INFO] [stdout] 73 | | handle(req, pool) [INFO] [stdout] 74 | | })) [INFO] [stdout] | |___________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-http-server` (bin "rust-http-server") due to 30 previous errors; 1 warning emitted [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:8:104 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn create_user( req : Request, pool :Arc)-> Result , Infallible>{ [INFO] [stdout] | ________________________________________________________________________________________________________^ [INFO] [stdout] 9 | | let body =hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 10 | | let new_user: NewUser = from_slice(&body).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 25 | | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] 26 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:8:104 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn create_user( req : Request, pool :Arc)-> Result , Infallible>{ [INFO] [stdout] | ________________________________________________________________________________________________________^ [INFO] [stdout] 9 | | let body =hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 10 | | let new_user: NewUser = from_slice(&body).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 25 | | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] 26 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:29:102 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn get_users(_req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________________^ [INFO] [stdout] 30 | | let rows: Vec = sqlx::query_as("SELECT id, name, email FROM users") [INFO] [stdout] 31 | | .fetch_all(&*pool) [INFO] [stdout] 32 | | .await [INFO] [stdout] ... | [INFO] [stdout] 36 | | Ok(Response::new(Body::from(response_body))) [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/handlers.rs:29:102 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn get_users(_req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | ______________________________________________________________________________________________________^ [INFO] [stdout] 30 | | let rows: Vec = sqlx::query_as("SELECT id, name, email FROM users") [INFO] [stdout] 31 | | .fetch_all(&*pool) [INFO] [stdout] 32 | | .await [INFO] [stdout] ... | [INFO] [stdout] 36 | | Ok(Response::new(Body::from(response_body))) [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/handlers.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | Ok(Response::new(Body::from(response_body))) [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:103 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn create_task(req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________^ [INFO] [stdout] 42 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 43 | | let new_task: NewTask = from_slice(&body_bytes).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 58 | | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] 59 | | } [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:103 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn create_task(req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________________________^ [INFO] [stdout] 42 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 43 | | let new_task: NewTask = from_slice(&body_bytes).unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 58 | | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] 59 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/handlers.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | Ok(Response::new(Body::from(response_body))) [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:106 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn get_user_tasks(req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | __________________________________________________________________________________________________________^ [INFO] [stdout] 63 | | let query = req.uri().query().unwrap_or(""); // e.g., ?user_id=1 [INFO] [stdout] 64 | | let user_id: i32 = query.strip_prefix("user_id=").unwrap_or("0").parse().unwrap_or(0); [INFO] [stdout] ... | [INFO] [stdout] 73 | | Ok(Response::new(Body::from(response_body))) [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:62:106 [INFO] [stdout] | [INFO] [stdout] 62 | pub async fn get_user_tasks(req: Request, pool: Arc) -> Result, Infallible> { [INFO] [stdout] | __________________________________________________________________________________________________________^ [INFO] [stdout] 63 | | let query = req.uri().query().unwrap_or(""); // e.g., ?user_id=1 [INFO] [stdout] 64 | | let user_id: i32 = query.strip_prefix("user_id=").unwrap_or("0").parse().unwrap_or(0); [INFO] [stdout] ... | [INFO] [stdout] 73 | | Ok(Response::new(Body::from(response_body))) [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:5 [INFO] [stdout] | [INFO] [stdout] 73 | Ok(Response::new(Body::from(response_body))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-http-server` (bin "rust-http-server" test) due to 30 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "b1f83710a8e10f8f765cc8753982c2f5156582d0b7cc5b75b24d099c18c1ff97", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1f83710a8e10f8f765cc8753982c2f5156582d0b7cc5b75b24d099c18c1ff97", kill_on_drop: false }` [INFO] [stdout] b1f83710a8e10f8f765cc8753982c2f5156582d0b7cc5b75b24d099c18c1ff97