[INFO] cloning repository https://github.com/iseruuuuu/rust_todos_app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iseruuuuu/rust_todos_app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiseruuuuu%2Frust_todos_app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiseruuuuu%2Frust_todos_app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c16f4f355230271ba54c04c3afc7f20cf07a00f6 [INFO] checking iseruuuuu/rust_todos_app 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%2Fiseruuuuu%2Frust_todos_app" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/iseruuuuu/rust_todos_app [INFO] finished tweaking git repo https://github.com/iseruuuuu/rust_todos_app [INFO] tweaked toml for git repo https://github.com/iseruuuuu/rust_todos_app written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/iseruuuuu/rust_todos_app 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/iseruuuuu/rust_todos_app 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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] f5ccc496a992f3df67b4d7a4c340ff39c467a21a6e0a7bf6dcd6e772cc8cbd40 [INFO] running `Command { std: "docker" "start" "-a" "f5ccc496a992f3df67b4d7a4c340ff39c467a21a6e0a7bf6dcd6e772cc8cbd40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f5ccc496a992f3df67b4d7a4c340ff39c467a21a6e0a7bf6dcd6e772cc8cbd40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5ccc496a992f3df67b4d7a4c340ff39c467a21a6e0a7bf6dcd6e772cc8cbd40", kill_on_drop: false }` [INFO] [stdout] f5ccc496a992f3df67b4d7a4c340ff39c467a21a6e0a7bf6dcd6e772cc8cbd40 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] c117f26c7e1590262ffebfa73b4a80e442e93a0dc3f03c818a5df8634a1624ef [INFO] running `Command { std: "docker" "start" "-a" "c117f26c7e1590262ffebfa73b4a80e442e93a0dc3f03c818a5df8634a1624ef", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling syn v1.0.96 [INFO] [stderr] Checking log v0.4.17 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking http v0.2.8 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking mio v0.8.3 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking tracing-core v0.1.27 [INFO] [stderr] Compiling indexmap v1.8.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Checking crypto-common v0.1.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.10.2 [INFO] [stderr] Checking tracing v0.1.34 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking fastrand v1.7.0 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking buf_redux v0.8.4 [INFO] [stderr] Checking sha-1 v0.10.0 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking twoway v0.1.8 [INFO] [stderr] Checking headers v0.3.7 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking multipart v0.18.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-macros v1.8.0 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Checking tokio v1.19.2 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking tungstenite v0.14.0 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking tokio-util v0.7.3 [INFO] [stderr] Checking tokio-tungstenite v0.15.0 [INFO] [stderr] Checking tokio-stream v0.1.9 [INFO] [stderr] Checking tokio-util v0.6.10 [INFO] [stderr] Checking h2 v0.3.13 [INFO] [stderr] Checking hyper v0.14.19 [INFO] [stderr] Checking warp v0.3.2 [INFO] [stderr] Checking todo_app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `warp::Filter` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use warp::Filter; [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: `warp::Filter` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use warp::Filter; [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 [INFO] [stdout] --> src/main.rs:91:77 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn list_todos(db: Db) -> Result { [INFO] [stdout] | _____________________________________________________________________________^ [INFO] [stdout] 92 | | let todos = db.lock().await; [INFO] [stdout] 93 | | let todos: Vec = todos.clone().into_iter().collect(); [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [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 [INFO] [stdout] --> src/main.rs:91:77 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn list_todos(db: Db) -> Result { [INFO] [stdout] | _____________________________________________________________________________^ [INFO] [stdout] 92 | | let todos = db.lock().await; [INFO] [stdout] 93 | | let todos: Vec = todos.clone().into_iter().collect(); [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | Ok(warp::reply::json(&todos)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:98:92 [INFO] [stdout] | [INFO] [stdout] 98 | pub async fn create_todo(create: Todo, db: Db) -> Result { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 99 | | let mut vec = db.lock().await; [INFO] [stdout] 100 | | //idが重複していた場合弾く [INFO] [stdout] 101 | | for todo in vec.iter() { [INFO] [stdout] ... | [INFO] [stdout] 108 | | Ok(StatusCode::CREATED) [INFO] [stdout] 109 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:98:92 [INFO] [stdout] | [INFO] [stdout] 98 | pub async fn create_todo(create: Todo, db: Db) -> Result { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 99 | | let mut vec = db.lock().await; [INFO] [stdout] 100 | | //idが重複していた場合弾く [INFO] [stdout] 101 | | for todo in vec.iter() { [INFO] [stdout] ... | [INFO] [stdout] 108 | | Ok(StatusCode::CREATED) [INFO] [stdout] 109 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:103:24 [INFO] [stdout] | [INFO] [stdout] 103 | return Ok(StatusCode::BAD_REQUEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | Ok(StatusCode::CREATED) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:116:47 [INFO] [stdout] | [INFO] [stdout] 116 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 117 | | let mut vec = db.lock().await; [INFO] [stdout] 118 | | [INFO] [stdout] 119 | | for todo in vec.iter_mut() { [INFO] [stdout] ... | [INFO] [stdout] 126 | | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:116:47 [INFO] [stdout] | [INFO] [stdout] 116 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 117 | | let mut vec = db.lock().await; [INFO] [stdout] 118 | | [INFO] [stdout] 119 | | for todo in vec.iter_mut() { [INFO] [stdout] ... | [INFO] [stdout] 126 | | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | return Ok(StatusCode::OK); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:130:87 [INFO] [stdout] | [INFO] [stdout] 130 | pub async fn delete_todo(id: u64, db: Db) -> Result { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 131 | | let mut vec = db.lock().await; [INFO] [stdout] 132 | | [INFO] [stdout] 133 | | let len = vec.len(); [INFO] [stdout] ... | [INFO] [stdout] 143 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:130:87 [INFO] [stdout] | [INFO] [stdout] 130 | pub async fn delete_todo(id: u64, db: Db) -> Result { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 131 | | let mut vec = db.lock().await; [INFO] [stdout] 132 | | [INFO] [stdout] 133 | | let len = vec.len(); [INFO] [stdout] ... | [INFO] [stdout] 143 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | / if deleted { [INFO] [stdout] 139 | | Ok(StatusCode::NO_CONTENT) [INFO] [stdout] 140 | | } else { [INFO] [stdout] 141 | | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] 142 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:138:20 [INFO] [stdout] | [INFO] [stdout] 138 | if deleted { [INFO] [stdout] | ____________________^ [INFO] [stdout] 139 | | Ok(StatusCode::NO_CONTENT) [INFO] [stdout] 140 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | Ok(StatusCode::NO_CONTENT) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 141 | | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] 142 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `todo_app` (bin "todo_app") due to 18 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 [INFO] [stdout] --> src/main.rs:91:77 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn list_todos(db: Db) -> Result { [INFO] [stdout] | _____________________________________________________________________________^ [INFO] [stdout] 92 | | let todos = db.lock().await; [INFO] [stdout] 93 | | let todos: Vec = todos.clone().into_iter().collect(); [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [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 [INFO] [stdout] --> src/main.rs:91:77 [INFO] [stdout] | [INFO] [stdout] 91 | pub async fn list_todos(db: Db) -> Result { [INFO] [stdout] | _____________________________________________________________________________^ [INFO] [stdout] 92 | | let todos = db.lock().await; [INFO] [stdout] 93 | | let todos: Vec = todos.clone().into_iter().collect(); [INFO] [stdout] ... | [INFO] [stdout] 96 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | Ok(warp::reply::json(&todos)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:98:92 [INFO] [stdout] | [INFO] [stdout] 98 | pub async fn create_todo(create: Todo, db: Db) -> Result { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 99 | | let mut vec = db.lock().await; [INFO] [stdout] 100 | | //idが重複していた場合弾く [INFO] [stdout] 101 | | for todo in vec.iter() { [INFO] [stdout] ... | [INFO] [stdout] 108 | | Ok(StatusCode::CREATED) [INFO] [stdout] 109 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:98:92 [INFO] [stdout] | [INFO] [stdout] 98 | pub async fn create_todo(create: Todo, db: Db) -> Result { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 99 | | let mut vec = db.lock().await; [INFO] [stdout] 100 | | //idが重複していた場合弾く [INFO] [stdout] 101 | | for todo in vec.iter() { [INFO] [stdout] ... | [INFO] [stdout] 108 | | Ok(StatusCode::CREATED) [INFO] [stdout] 109 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:103:24 [INFO] [stdout] | [INFO] [stdout] 103 | return Ok(StatusCode::BAD_REQUEST); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | Ok(StatusCode::CREATED) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:116:47 [INFO] [stdout] | [INFO] [stdout] 116 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 117 | | let mut vec = db.lock().await; [INFO] [stdout] 118 | | [INFO] [stdout] 119 | | for todo in vec.iter_mut() { [INFO] [stdout] ... | [INFO] [stdout] 126 | | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:116:47 [INFO] [stdout] | [INFO] [stdout] 116 | ) -> Result { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 117 | | let mut vec = db.lock().await; [INFO] [stdout] 118 | | [INFO] [stdout] 119 | | for todo in vec.iter_mut() { [INFO] [stdout] ... | [INFO] [stdout] 126 | | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:122:24 [INFO] [stdout] | [INFO] [stdout] 122 | return Ok(StatusCode::OK); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:126:9 [INFO] [stdout] | [INFO] [stdout] 126 | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:130:87 [INFO] [stdout] | [INFO] [stdout] 130 | pub async fn delete_todo(id: u64, db: Db) -> Result { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 131 | | let mut vec = db.lock().await; [INFO] [stdout] 132 | | [INFO] [stdout] 133 | | let len = vec.len(); [INFO] [stdout] ... | [INFO] [stdout] 143 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:130:87 [INFO] [stdout] | [INFO] [stdout] 130 | pub async fn delete_todo(id: u64, db: Db) -> Result { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 131 | | let mut vec = db.lock().await; [INFO] [stdout] 132 | | [INFO] [stdout] 133 | | let len = vec.len(); [INFO] [stdout] ... | [INFO] [stdout] 143 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | / if deleted { [INFO] [stdout] 139 | | Ok(StatusCode::NO_CONTENT) [INFO] [stdout] 140 | | } else { [INFO] [stdout] 141 | | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] 142 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:138:20 [INFO] [stdout] | [INFO] [stdout] 138 | if deleted { [INFO] [stdout] | ____________________^ [INFO] [stdout] 139 | | Ok(StatusCode::NO_CONTENT) [INFO] [stdout] 140 | | } else { [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:139:13 [INFO] [stdout] | [INFO] [stdout] 139 | Ok(StatusCode::NO_CONTENT) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | } else { [INFO] [stdout] | ________________^ [INFO] [stdout] 141 | | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] 142 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | Ok(StatusCode::NOT_FOUND) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `todo_app` (bin "todo_app" test) due to 18 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "c117f26c7e1590262ffebfa73b4a80e442e93a0dc3f03c818a5df8634a1624ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c117f26c7e1590262ffebfa73b4a80e442e93a0dc3f03c818a5df8634a1624ef", kill_on_drop: false }` [INFO] [stdout] c117f26c7e1590262ffebfa73b4a80e442e93a0dc3f03c818a5df8634a1624ef