[INFO] fetching crate firestore-rust 0.1.0... [INFO] checking firestore-rust-0.1.0 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate firestore-rust 0.1.0 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate firestore-rust 0.1.0 [INFO] finished tweaking crates.io crate firestore-rust 0.1.0 [INFO] tweaked toml for crates.io crate firestore-rust 0.1.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate firestore-rust 0.1.0 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 crates.io crate firestore-rust 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c10aaa73cdd31334e2ca0e66fce79da60eb00d7eff5e49be3fe6bb35ae950e8e [INFO] running `Command { std: "docker" "start" "-a" "c10aaa73cdd31334e2ca0e66fce79da60eb00d7eff5e49be3fe6bb35ae950e8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c10aaa73cdd31334e2ca0e66fce79da60eb00d7eff5e49be3fe6bb35ae950e8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c10aaa73cdd31334e2ca0e66fce79da60eb00d7eff5e49be3fe6bb35ae950e8e", kill_on_drop: false }` [INFO] [stdout] c10aaa73cdd31334e2ca0e66fce79da60eb00d7eff5e49be3fe6bb35ae950e8e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dunmustuse_in_always_ok" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cee26db0b8731458e3a86227c458d619d30d409c334288047582e45295239235 [INFO] running `Command { std: "docker" "start" "-a" "cee26db0b8731458e3a86227c458d619d30d409c334288047582e45295239235", kill_on_drop: false }` [INFO] [stderr] Checking bytes v1.7.2 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Compiling serde_core v1.0.225 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling cc v1.2.38 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling serde v1.0.225 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking crc32fast v1.5.0 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Checking deranged v0.5.3 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking compression-codecs v0.4.30 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking serde_json v1.0.145 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Compiling convert_case v0.8.0 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Compiling struct-path v0.2.4 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Compiling rvs_derive v0.3.2 [INFO] [stderr] Compiling rsb_derive v0.5.1 [INFO] [stderr] Checking rvstruct v0.3.2 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling serde_derive v1.0.225 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling prost-derive v0.14.1 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking rustls-webpki v0.103.6 [INFO] [stderr] Checking rustls-native-certs v0.8.1 [INFO] [stderr] Checking prost v0.14.1 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking prost-types v0.14.1 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking secret-vault-value v1.0.1 [INFO] [stderr] Checking chrono v0.4.42 [INFO] [stderr] Checking uuid v1.18.1 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking async-compression v0.4.30 [INFO] [stderr] Checking backoff v0.4.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] Checking h2 v0.4.12 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-rustls v0.26.3 [INFO] [stderr] Checking axum v0.8.4 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking hyper-timeout v0.5.2 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Checking tonic v0.14.2 [INFO] [stderr] Checking tonic-prost v0.14.2 [INFO] [stderr] Checking gcloud-sdk v0.28.2 [INFO] [stderr] Checking firestore v0.47.0 [INFO] [stderr] Checking firestore-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:32:70 [INFO] [stdout] | [INFO] [stdout] 32 | async fn health_check() -> Result>, Infallible> { [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 33 | | Ok(Response::new(Full::new(Bytes::from("ok")))) [INFO] [stdout] 34 | | } [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:32:70 [INFO] [stdout] | [INFO] [stdout] 32 | async fn health_check() -> Result>, Infallible> { [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 33 | | Ok(Response::new(Full::new(Bytes::from("ok")))) [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Ok(Response::new(Full::new(Bytes::from("ok")))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:40:48 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 41 | | info!("Add inventory endpoint called"); [INFO] [stdout] 42 | | let collection_id = "inventory"; [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:40:48 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 41 | | info!("Add inventory endpoint called"); [INFO] [stdout] 42 | | let collection_id = "inventory"; [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | / match result { [INFO] [stdout] 76 | | Ok(doc) => Ok(Response::new(Full::new(Bytes::from(format!( [INFO] [stdout] 77 | | "Document created: {}", [INFO] [stdout] 78 | | doc.name [INFO] [stdout] ... | [INFO] [stdout] 83 | | ))))), [INFO] [stdout] 84 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(doc) => Ok(Response::new(Full::new(Bytes::from(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 77 | | "Document created: {}", [INFO] [stdout] 78 | | doc.name [INFO] [stdout] 79 | | ))))), [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:80:19 [INFO] [stdout] | [INFO] [stdout] 80 | Err(e) => Ok(Response::new(Full::new(Bytes::from(format!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 81 | | "Error creating document: {}", [INFO] [stdout] 82 | | e [INFO] [stdout] 83 | | ))))), [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:88:91 [INFO] [stdout] | [INFO] [stdout] 88 | async fn get_inventory(db: Arc) -> Result>, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 89 | | info!("Get inventory endpoint called"); [INFO] [stdout] 90 | | let collection_id = "inventory"; [INFO] [stdout] ... | [INFO] [stdout] 122 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:88:91 [INFO] [stdout] | [INFO] [stdout] 88 | async fn get_inventory(db: Arc) -> Result>, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 89 | | info!("Get inventory endpoint called"); [INFO] [stdout] 90 | | let collection_id = "inventory"; [INFO] [stdout] ... | [INFO] [stdout] 122 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | / match object_stream { [INFO] [stdout] 101 | | Ok(stream) => { [INFO] [stdout] 102 | | let items: Vec = stream.collect().await; [INFO] [stdout] 103 | | let json_body = serde_json::to_string(&items) [INFO] [stdout] ... | [INFO] [stdout] 121 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | Ok(stream) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 102 | | let items: Vec = stream.collect().await; [INFO] [stdout] 103 | | let json_body = serde_json::to_string(&items) [INFO] [stdout] 104 | | .unwrap_or_else(|e| format!("Error serializing inventory: {}", e)); [INFO] [stdout] ... | [INFO] [stdout] 111 | | Ok(response) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 114 | | let mut response = Response::new(Full::new(Bytes::from(format!( [INFO] [stdout] 115 | | "Error listing documents: {}", [INFO] [stdout] 116 | | e [INFO] [stdout] ... | [INFO] [stdout] 119 | | Ok(response) [INFO] [stdout] 120 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:128:48 [INFO] [stdout] | [INFO] [stdout] 128 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 129 | | match (req.method(), req.uri().path()) { [INFO] [stdout] 130 | | (&Method::GET, "/health") => health_check().await, [INFO] [stdout] 131 | | (&Method::POST, "/products") => add_inventory(req, db).await, [INFO] [stdout] ... | [INFO] [stdout] 139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:128:48 [INFO] [stdout] | [INFO] [stdout] 128 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 129 | | match (req.method(), req.uri().path()) { [INFO] [stdout] 130 | | (&Method::GET, "/health") => health_check().await, [INFO] [stdout] 131 | | (&Method::POST, "/products") => add_inventory(req, db).await, [INFO] [stdout] ... | [INFO] [stdout] 139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | / match (req.method(), req.uri().path()) { [INFO] [stdout] 130 | | (&Method::GET, "/health") => health_check().await, [INFO] [stdout] 131 | | (&Method::POST, "/products") => add_inventory(req, db).await, [INFO] [stdout] 132 | | (&Method::GET, "/products") => get_inventory(db).await, [INFO] [stdout] ... | [INFO] [stdout] 138 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | (&Method::GET, "/health") => health_check().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:130:53 [INFO] [stdout] | [INFO] [stdout] 130 | (&Method::GET, "/health") => health_check().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:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | (&Method::GET, "/health") => health_check().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:131:41 [INFO] [stdout] | [INFO] [stdout] 131 | (&Method::POST, "/products") => add_inventory(req, db).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:131:64 [INFO] [stdout] | [INFO] [stdout] 131 | (&Method::POST, "/products") => add_inventory(req, db).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:131:41 [INFO] [stdout] | [INFO] [stdout] 131 | (&Method::POST, "/products") => add_inventory(req, db).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:132:40 [INFO] [stdout] | [INFO] [stdout] 132 | (&Method::GET, "/products") => get_inventory(db).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:132:58 [INFO] [stdout] | [INFO] [stdout] 132 | (&Method::GET, "/products") => get_inventory(db).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:132:40 [INFO] [stdout] | [INFO] [stdout] 132 | (&Method::GET, "/products") => get_inventory(db).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:133:14 [INFO] [stdout] | [INFO] [stdout] 133 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 134 | | let mut not_found = Response::new(Full::new(Bytes::from("Not Found"))); [INFO] [stdout] 135 | | *not_found.status_mut() = StatusCode::NOT_FOUND; [INFO] [stdout] 136 | | Ok(not_found) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | Ok(not_found) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `firestore-rust` (bin "firestore-rust" test) due to 31 previous errors [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/main.rs:32:70 [INFO] [stdout] | [INFO] [stdout] 32 | async fn health_check() -> Result>, Infallible> { [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 33 | | Ok(Response::new(Full::new(Bytes::from("ok")))) [INFO] [stdout] 34 | | } [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:32:70 [INFO] [stdout] | [INFO] [stdout] 32 | async fn health_check() -> Result>, Infallible> { [INFO] [stdout] | ______________________________________________________________________^ [INFO] [stdout] 33 | | Ok(Response::new(Full::new(Bytes::from("ok")))) [INFO] [stdout] 34 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Ok(Response::new(Full::new(Bytes::from("ok")))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:40:48 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 41 | | info!("Add inventory endpoint called"); [INFO] [stdout] 42 | | let collection_id = "inventory"; [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:40:48 [INFO] [stdout] | [INFO] [stdout] 40 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 41 | | info!("Add inventory endpoint called"); [INFO] [stdout] 42 | | let collection_id = "inventory"; [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | return Ok(response); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | / match result { [INFO] [stdout] 76 | | Ok(doc) => Ok(Response::new(Full::new(Bytes::from(format!( [INFO] [stdout] 77 | | "Document created: {}", [INFO] [stdout] 78 | | doc.name [INFO] [stdout] ... | [INFO] [stdout] 83 | | ))))), [INFO] [stdout] 84 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:76:20 [INFO] [stdout] | [INFO] [stdout] 76 | Ok(doc) => Ok(Response::new(Full::new(Bytes::from(format!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 77 | | "Document created: {}", [INFO] [stdout] 78 | | doc.name [INFO] [stdout] 79 | | ))))), [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:80:19 [INFO] [stdout] | [INFO] [stdout] 80 | Err(e) => Ok(Response::new(Full::new(Bytes::from(format!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 81 | | "Error creating document: {}", [INFO] [stdout] 82 | | e [INFO] [stdout] 83 | | ))))), [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:88:91 [INFO] [stdout] | [INFO] [stdout] 88 | async fn get_inventory(db: Arc) -> Result>, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 89 | | info!("Get inventory endpoint called"); [INFO] [stdout] 90 | | let collection_id = "inventory"; [INFO] [stdout] ... | [INFO] [stdout] 122 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:88:91 [INFO] [stdout] | [INFO] [stdout] 88 | async fn get_inventory(db: Arc) -> Result>, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 89 | | info!("Get inventory endpoint called"); [INFO] [stdout] 90 | | let collection_id = "inventory"; [INFO] [stdout] ... | [INFO] [stdout] 122 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | / match object_stream { [INFO] [stdout] 101 | | Ok(stream) => { [INFO] [stdout] 102 | | let items: Vec = stream.collect().await; [INFO] [stdout] 103 | | let json_body = serde_json::to_string(&items) [INFO] [stdout] ... | [INFO] [stdout] 121 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:101:23 [INFO] [stdout] | [INFO] [stdout] 101 | Ok(stream) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 102 | | let items: Vec = stream.collect().await; [INFO] [stdout] 103 | | let json_body = serde_json::to_string(&items) [INFO] [stdout] 104 | | .unwrap_or_else(|e| format!("Error serializing inventory: {}", e)); [INFO] [stdout] ... | [INFO] [stdout] 111 | | Ok(response) [INFO] [stdout] 112 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:113:19 [INFO] [stdout] | [INFO] [stdout] 113 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 114 | | let mut response = Response::new(Full::new(Bytes::from(format!( [INFO] [stdout] 115 | | "Error listing documents: {}", [INFO] [stdout] 116 | | e [INFO] [stdout] ... | [INFO] [stdout] 119 | | Ok(response) [INFO] [stdout] 120 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:128:48 [INFO] [stdout] | [INFO] [stdout] 128 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 129 | | match (req.method(), req.uri().path()) { [INFO] [stdout] 130 | | (&Method::GET, "/health") => health_check().await, [INFO] [stdout] 131 | | (&Method::POST, "/products") => add_inventory(req, db).await, [INFO] [stdout] ... | [INFO] [stdout] 139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:128:48 [INFO] [stdout] | [INFO] [stdout] 128 | ) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________^ [INFO] [stdout] 129 | | match (req.method(), req.uri().path()) { [INFO] [stdout] 130 | | (&Method::GET, "/health") => health_check().await, [INFO] [stdout] 131 | | (&Method::POST, "/products") => add_inventory(req, db).await, [INFO] [stdout] ... | [INFO] [stdout] 139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | / match (req.method(), req.uri().path()) { [INFO] [stdout] 130 | | (&Method::GET, "/health") => health_check().await, [INFO] [stdout] 131 | | (&Method::POST, "/products") => add_inventory(req, db).await, [INFO] [stdout] 132 | | (&Method::GET, "/products") => get_inventory(db).await, [INFO] [stdout] ... | [INFO] [stdout] 138 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | (&Method::GET, "/health") => health_check().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:130:53 [INFO] [stdout] | [INFO] [stdout] 130 | (&Method::GET, "/health") => health_check().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:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | (&Method::GET, "/health") => health_check().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:131:41 [INFO] [stdout] | [INFO] [stdout] 131 | (&Method::POST, "/products") => add_inventory(req, db).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:131:64 [INFO] [stdout] | [INFO] [stdout] 131 | (&Method::POST, "/products") => add_inventory(req, db).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:131:41 [INFO] [stdout] | [INFO] [stdout] 131 | (&Method::POST, "/products") => add_inventory(req, db).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:132:40 [INFO] [stdout] | [INFO] [stdout] 132 | (&Method::GET, "/products") => get_inventory(db).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:132:58 [INFO] [stdout] | [INFO] [stdout] 132 | (&Method::GET, "/products") => get_inventory(db).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:132:40 [INFO] [stdout] | [INFO] [stdout] 132 | (&Method::GET, "/products") => get_inventory(db).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:133:14 [INFO] [stdout] | [INFO] [stdout] 133 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 134 | | let mut not_found = Response::new(Full::new(Bytes::from("Not Found"))); [INFO] [stdout] 135 | | *not_found.status_mut() = StatusCode::NOT_FOUND; [INFO] [stdout] 136 | | Ok(not_found) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> src/main.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | Ok(not_found) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `firestore-rust` (bin "firestore-rust") due to 31 previous errors [INFO] running `Command { std: "docker" "inspect" "cee26db0b8731458e3a86227c458d619d30d409c334288047582e45295239235", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cee26db0b8731458e3a86227c458d619d30d409c334288047582e45295239235", kill_on_drop: false }` [INFO] [stdout] cee26db0b8731458e3a86227c458d619d30d409c334288047582e45295239235