[INFO] cloning repository https://github.com/kamlendras/mvbot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kamlendras/mvbot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamlendras%2Fmvbot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkamlendras%2Fmvbot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 871ba39384763c68afd1e32b708550fd889f9e14 [INFO] checking kamlendras/mvbot 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%2Fkamlendras%2Fmvbot" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kamlendras/mvbot [INFO] finished tweaking git repo https://github.com/kamlendras/mvbot [INFO] tweaked toml for git repo https://github.com/kamlendras/mvbot written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kamlendras/mvbot 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/kamlendras/mvbot 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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] a242cb1f9b5d2806b3d6fb5d7ae2d6872816d416b73e43a2e3e661dd082368c8 [INFO] running `Command { std: "docker" "start" "-a" "a242cb1f9b5d2806b3d6fb5d7ae2d6872816d416b73e43a2e3e661dd082368c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a242cb1f9b5d2806b3d6fb5d7ae2d6872816d416b73e43a2e3e661dd082368c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a242cb1f9b5d2806b3d6fb5d7ae2d6872816d416b73e43a2e3e661dd082368c8", kill_on_drop: false }` [INFO] [stdout] a242cb1f9b5d2806b3d6fb5d7ae2d6872816d416b73e43a2e3e661dd082368c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] acd988515875704d9617d86887766c204b54e21de22a9bf454e5883531ebc4fb [INFO] running `Command { std: "docker" "start" "-a" "acd988515875704d9617d86887766c204b54e21de22a9bf454e5883531ebc4fb", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking tokio v1.46.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking indexmap v2.10.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling unicase v2.8.1 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Compiling sqlx-sqlite v0.7.4 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking uuid_client_server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:49:89 [INFO] [stdout] | [INFO] [stdout] 49 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________________^ [INFO] [stdout] 50 | | if err.find::().is_some() { [INFO] [stdout] 51 | | let response = ApiResponse { [INFO] [stdout] 52 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [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/server.rs:49:89 [INFO] [stdout] | [INFO] [stdout] 49 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________________^ [INFO] [stdout] 50 | | if err.find::().is_some() { [INFO] [stdout] 51 | | let response = ApiResponse { [INFO] [stdout] 52 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / if err.find::().is_some() { [INFO] [stdout] 51 | | let response = ApiResponse { [INFO] [stdout] 52 | | success: false, [INFO] [stdout] 53 | | message: "Unauthorized: Invalid or missing API key".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 70 | | )) [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/server.rs:50:50 [INFO] [stdout] | [INFO] [stdout] 50 | if err.find::().is_some() { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 51 | | let response = ApiResponse { [INFO] [stdout] 52 | | success: false, [INFO] [stdout] 53 | | message: "Unauthorized: Invalid or missing API key".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 59 | | )) [INFO] [stdout] 60 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | / Ok(warp::reply::with_status( [INFO] [stdout] 57 | | warp::reply::json(&response), [INFO] [stdout] 58 | | warp::http::StatusCode::UNAUTHORIZED, [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/server.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 61 | | // Handle other rejections [INFO] [stdout] 62 | | let response = ApiResponse { [INFO] [stdout] 63 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 70 | | )) [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/server.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | / Ok(warp::reply::with_status( [INFO] [stdout] 68 | | warp::reply::json(&response), [INFO] [stdout] 69 | | warp::http::StatusCode::BAD_REQUEST, [INFO] [stdout] 70 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:163:43 [INFO] [stdout] | [INFO] [stdout] 163 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 164 | | println!("Received upload request:"); [INFO] [stdout] 165 | | println!(" UUID: {}", system_data.system_uuid); [INFO] [stdout] 166 | | println!(" Matrix User: {}", system_data.matrix_username); [INFO] [stdout] ... | [INFO] [stdout] 268 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:163:43 [INFO] [stdout] | [INFO] [stdout] 163 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 164 | | println!("Received upload request:"); [INFO] [stdout] 165 | | println!(" UUID: {}", system_data.system_uuid); [INFO] [stdout] 166 | | println!(" Matrix User: {}", system_data.matrix_username); [INFO] [stdout] ... | [INFO] [stdout] 268 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | / match existing_record { [INFO] [stdout] 178 | | Ok(Some(row)) => { [INFO] [stdout] 179 | | let existing_username: String = row.get("matrix_username"); [INFO] [stdout] 180 | | let record_id: i64 = row.get("id"); [INFO] [stdout] ... | [INFO] [stdout] 267 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:178:26 [INFO] [stdout] | [INFO] [stdout] 178 | Ok(Some(row)) => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 179 | | let existing_username: String = row.get("matrix_username"); [INFO] [stdout] 180 | | let record_id: i64 = row.get("id"); [INFO] [stdout] ... | [INFO] [stdout] 212 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | / if existing_username == system_data.matrix_username { [INFO] [stdout] 183 | | let response = ApiResponse { [INFO] [stdout] 184 | | success: true, [INFO] [stdout] 185 | | message: format!("System UUID already registered with the same Matrix username"), [INFO] [stdout] ... | [INFO] [stdout] 210 | | )); [INFO] [stdout] 211 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:188:24 [INFO] [stdout] | [INFO] [stdout] 188 | return Ok(warp::reply::with_status( [INFO] [stdout] | ________________________^ [INFO] [stdout] 189 | | warp::reply::json(&response), [INFO] [stdout] 190 | | warp::http::StatusCode::OK, [INFO] [stdout] 191 | | )); [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:207:24 [INFO] [stdout] | [INFO] [stdout] 207 | return Ok(warp::reply::with_status( [INFO] [stdout] | ________________________^ [INFO] [stdout] 208 | | warp::reply::json(&response), [INFO] [stdout] 209 | | warp::http::StatusCode::CONFLICT, [INFO] [stdout] 210 | | )); [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:213:21 [INFO] [stdout] | [INFO] [stdout] 213 | Ok(None) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 214 | | // Insert new record [INFO] [stdout] 215 | | let result = sqlx::query( [INFO] [stdout] 216 | | r#" [INFO] [stdout] ... | [INFO] [stdout] 254 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | / match result { [INFO] [stdout] 228 | | Ok(query_result) => { [INFO] [stdout] 229 | | let id = query_result.last_insert_rowid(); [INFO] [stdout] 230 | | println!("Inserted new record with ID: {}", id); [INFO] [stdout] ... | [INFO] [stdout] 253 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:236:28 [INFO] [stdout] | [INFO] [stdout] 236 | return Ok(warp::reply::with_status( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 237 | | warp::reply::json(&response), [INFO] [stdout] 238 | | warp::http::StatusCode::CREATED, [INFO] [stdout] 239 | | )); [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:248:28 [INFO] [stdout] | [INFO] [stdout] 248 | return Ok(warp::reply::with_status( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 249 | | warp::reply::json(&response), [INFO] [stdout] 250 | | warp::http::StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 251 | | )); [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:262:20 [INFO] [stdout] | [INFO] [stdout] 262 | return Ok(warp::reply::with_status( [INFO] [stdout] | ____________________^ [INFO] [stdout] 263 | | warp::reply::json(&response), [INFO] [stdout] 264 | | warp::http::StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 265 | | )); [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:270:80 [INFO] [stdout] | [INFO] [stdout] 270 | async fn handle_list(pool: SqlitePool) -> Result { [INFO] [stdout] | ________________________________________________________________________________^ [INFO] [stdout] 271 | | let result = sqlx::query( [INFO] [stdout] 272 | | "SELECT id, system_uuid, matrix_username, timestamp, created_at FROM system_records ORDER BY created_at DESC" [INFO] [stdout] ... | [INFO] [stdout] 308 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:270:80 [INFO] [stdout] | [INFO] [stdout] 270 | async fn handle_list(pool: SqlitePool) -> Result { [INFO] [stdout] | ________________________________________________________________________________^ [INFO] [stdout] 271 | | let result = sqlx::query( [INFO] [stdout] 272 | | "SELECT id, system_uuid, matrix_username, timestamp, created_at FROM system_records ORDER BY created_at DESC" [INFO] [stdout] ... | [INFO] [stdout] 308 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:277:5 [INFO] [stdout] | [INFO] [stdout] 277 | / match result { [INFO] [stdout] 278 | | Ok(rows) => { [INFO] [stdout] 279 | | let records: Vec = rows [INFO] [stdout] 280 | | .into_iter() [INFO] [stdout] ... | [INFO] [stdout] 307 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:278:21 [INFO] [stdout] | [INFO] [stdout] 278 | Ok(rows) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 279 | | let records: Vec = rows [INFO] [stdout] 280 | | .into_iter() [INFO] [stdout] 281 | | .map(|row| { [INFO] [stdout] ... | [INFO] [stdout] 295 | | )) [INFO] [stdout] 296 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / Ok(warp::reply::with_status( [INFO] [stdout] 293 | | warp::reply::json(&records), [INFO] [stdout] 294 | | warp::http::StatusCode::OK, [INFO] [stdout] 295 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:297:19 [INFO] [stdout] | [INFO] [stdout] 297 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 298 | | eprintln!("Database query error: {}", e); [INFO] [stdout] 299 | | let response = serde_json::json!({ [INFO] [stdout] 300 | | "error": format!("Database query error: {}", e) [INFO] [stdout] ... | [INFO] [stdout] 305 | | )) [INFO] [stdout] 306 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | / Ok(warp::reply::with_status( [INFO] [stdout] 303 | | warp::reply::json(&response), [INFO] [stdout] 304 | | warp::http::StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 305 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:49:89 [INFO] [stdout] | [INFO] [stdout] 49 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________________^ [INFO] [stdout] 50 | | if err.find::().is_some() { [INFO] [stdout] 51 | | let response = ApiResponse { [INFO] [stdout] 52 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [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/server.rs:49:89 [INFO] [stdout] | [INFO] [stdout] 49 | async fn handle_rejection(err: warp::Rejection) -> Result { [INFO] [stdout] | _________________________________________________________________________________________^ [INFO] [stdout] 50 | | if err.find::().is_some() { [INFO] [stdout] 51 | | let response = ApiResponse { [INFO] [stdout] 52 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 72 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / if err.find::().is_some() { [INFO] [stdout] 51 | | let response = ApiResponse { [INFO] [stdout] 52 | | success: false, [INFO] [stdout] 53 | | message: "Unauthorized: Invalid or missing API key".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 70 | | )) [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/server.rs:50:50 [INFO] [stdout] | [INFO] [stdout] 50 | if err.find::().is_some() { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 51 | | let response = ApiResponse { [INFO] [stdout] 52 | | success: false, [INFO] [stdout] 53 | | message: "Unauthorized: Invalid or missing API key".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 59 | | )) [INFO] [stdout] 60 | | } else { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | / Ok(warp::reply::with_status( [INFO] [stdout] 57 | | warp::reply::json(&response), [INFO] [stdout] 58 | | warp::http::StatusCode::UNAUTHORIZED, [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/server.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 60 | } else { [INFO] [stdout] | ____________^ [INFO] [stdout] 61 | | // Handle other rejections [INFO] [stdout] 62 | | let response = ApiResponse { [INFO] [stdout] 63 | | success: false, [INFO] [stdout] ... | [INFO] [stdout] 70 | | )) [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/server.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | / Ok(warp::reply::with_status( [INFO] [stdout] 68 | | warp::reply::json(&response), [INFO] [stdout] 69 | | warp::http::StatusCode::BAD_REQUEST, [INFO] [stdout] 70 | | )) [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:163:43 [INFO] [stdout] | [INFO] [stdout] 163 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 164 | | println!("Received upload request:"); [INFO] [stdout] 165 | | println!(" UUID: {}", system_data.system_uuid); [INFO] [stdout] 166 | | println!(" Matrix User: {}", system_data.matrix_username); [INFO] [stdout] ... | [INFO] [stdout] 268 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:163:43 [INFO] [stdout] | [INFO] [stdout] 163 | ) -> Result { [INFO] [stdout] | ___________________________________________^ [INFO] [stdout] 164 | | println!("Received upload request:"); [INFO] [stdout] 165 | | println!(" UUID: {}", system_data.system_uuid); [INFO] [stdout] 166 | | println!(" Matrix User: {}", system_data.matrix_username); [INFO] [stdout] ... | [INFO] [stdout] 268 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | / match existing_record { [INFO] [stdout] 178 | | Ok(Some(row)) => { [INFO] [stdout] 179 | | let existing_username: String = row.get("matrix_username"); [INFO] [stdout] 180 | | let record_id: i64 = row.get("id"); [INFO] [stdout] ... | [INFO] [stdout] 267 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:178:26 [INFO] [stdout] | [INFO] [stdout] 178 | Ok(Some(row)) => { [INFO] [stdout] | __________________________^ [INFO] [stdout] 179 | | let existing_username: String = row.get("matrix_username"); [INFO] [stdout] 180 | | let record_id: i64 = row.get("id"); [INFO] [stdout] ... | [INFO] [stdout] 212 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | / if existing_username == system_data.matrix_username { [INFO] [stdout] 183 | | let response = ApiResponse { [INFO] [stdout] 184 | | success: true, [INFO] [stdout] 185 | | message: format!("System UUID already registered with the same Matrix username"), [INFO] [stdout] ... | [INFO] [stdout] 210 | | )); [INFO] [stdout] 211 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:188:24 [INFO] [stdout] | [INFO] [stdout] 188 | return Ok(warp::reply::with_status( [INFO] [stdout] | ________________________^ [INFO] [stdout] 189 | | warp::reply::json(&response), [INFO] [stdout] 190 | | warp::http::StatusCode::OK, [INFO] [stdout] 191 | | )); [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:207:24 [INFO] [stdout] | [INFO] [stdout] 207 | return Ok(warp::reply::with_status( [INFO] [stdout] | ________________________^ [INFO] [stdout] 208 | | warp::reply::json(&response), [INFO] [stdout] 209 | | warp::http::StatusCode::CONFLICT, [INFO] [stdout] 210 | | )); [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:213:21 [INFO] [stdout] | [INFO] [stdout] 213 | Ok(None) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 214 | | // Insert new record [INFO] [stdout] 215 | | let result = sqlx::query( [INFO] [stdout] 216 | | r#" [INFO] [stdout] ... | [INFO] [stdout] 254 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | / match result { [INFO] [stdout] 228 | | Ok(query_result) => { [INFO] [stdout] 229 | | let id = query_result.last_insert_rowid(); [INFO] [stdout] 230 | | println!("Inserted new record with ID: {}", id); [INFO] [stdout] ... | [INFO] [stdout] 253 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:236:28 [INFO] [stdout] | [INFO] [stdout] 236 | return Ok(warp::reply::with_status( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 237 | | warp::reply::json(&response), [INFO] [stdout] 238 | | warp::http::StatusCode::CREATED, [INFO] [stdout] 239 | | )); [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:248:28 [INFO] [stdout] | [INFO] [stdout] 248 | return Ok(warp::reply::with_status( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 249 | | warp::reply::json(&response), [INFO] [stdout] 250 | | warp::http::StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 251 | | )); [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:262:20 [INFO] [stdout] | [INFO] [stdout] 262 | return Ok(warp::reply::with_status( [INFO] [stdout] | ____________________^ [INFO] [stdout] 263 | | warp::reply::json(&response), [INFO] [stdout] 264 | | warp::http::StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 265 | | )); [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:270:80 [INFO] [stdout] | [INFO] [stdout] 270 | async fn handle_list(pool: SqlitePool) -> Result { [INFO] [stdout] | ________________________________________________________________________________^ [INFO] [stdout] 271 | | let result = sqlx::query( [INFO] [stdout] 272 | | "SELECT id, system_uuid, matrix_username, timestamp, created_at FROM system_records ORDER BY created_at DESC" [INFO] [stdout] ... | [INFO] [stdout] 308 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:270:80 [INFO] [stdout] | [INFO] [stdout] 270 | async fn handle_list(pool: SqlitePool) -> Result { [INFO] [stdout] | ________________________________________________________________________________^ [INFO] [stdout] 271 | | let result = sqlx::query( [INFO] [stdout] 272 | | "SELECT id, system_uuid, matrix_username, timestamp, created_at FROM system_records ORDER BY created_at DESC" [INFO] [stdout] ... | [INFO] [stdout] 308 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:277:5 [INFO] [stdout] | [INFO] [stdout] 277 | / match result { [INFO] [stdout] 278 | | Ok(rows) => { [INFO] [stdout] 279 | | let records: Vec = rows [INFO] [stdout] 280 | | .into_iter() [INFO] [stdout] ... | [INFO] [stdout] 307 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:278:21 [INFO] [stdout] | [INFO] [stdout] 278 | Ok(rows) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 279 | | let records: Vec = rows [INFO] [stdout] 280 | | .into_iter() [INFO] [stdout] 281 | | .map(|row| { [INFO] [stdout] ... | [INFO] [stdout] 295 | | )) [INFO] [stdout] 296 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:292:13 [INFO] [stdout] | [INFO] [stdout] 292 | / Ok(warp::reply::with_status( [INFO] [stdout] 293 | | warp::reply::json(&records), [INFO] [stdout] 294 | | warp::http::StatusCode::OK, [INFO] [stdout] 295 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:297:19 [INFO] [stdout] | [INFO] [stdout] 297 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 298 | | eprintln!("Database query error: {}", e); [INFO] [stdout] 299 | | let response = serde_json::json!({ [INFO] [stdout] 300 | | "error": format!("Database query error: {}", e) [INFO] [stdout] ... | [INFO] [stdout] 305 | | )) [INFO] [stdout] 306 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/server.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | / Ok(warp::reply::with_status( [INFO] [stdout] 303 | | warp::reply::json(&response), [INFO] [stdout] 304 | | warp::http::StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 305 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `uuid_client_server` (bin "server" test) due to 26 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `uuid_client_server` (bin "server") due to 26 previous errors [INFO] running `Command { std: "docker" "inspect" "acd988515875704d9617d86887766c204b54e21de22a9bf454e5883531ebc4fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acd988515875704d9617d86887766c204b54e21de22a9bf454e5883531ebc4fb", kill_on_drop: false }` [INFO] [stdout] acd988515875704d9617d86887766c204b54e21de22a9bf454e5883531ebc4fb