[INFO] cloning repository https://github.com/Rei-ath/j-chain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Rei-ath/j-chain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRei-ath%2Fj-chain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRei-ath%2Fj-chain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ea5f130dcc6c0d7e1d4d85a6e1113405454c2bfa [INFO] checking Rei-ath/j-chain 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%2FRei-ath%2Fj-chain" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Rei-ath/j-chain [INFO] finished tweaking git repo https://github.com/Rei-ath/j-chain [INFO] tweaked toml for git repo https://github.com/Rei-ath/j-chain written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Rei-ath/j-chain 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/Rei-ath/j-chain 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] bdad8673fa86d00e9b51f7345ca4b8849a53f3ca191a6aaa045e1df1ec7f57c6 [INFO] running `Command { std: "docker" "start" "-a" "bdad8673fa86d00e9b51f7345ca4b8849a53f3ca191a6aaa045e1df1ec7f57c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdad8673fa86d00e9b51f7345ca4b8849a53f3ca191a6aaa045e1df1ec7f57c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdad8673fa86d00e9b51f7345ca4b8849a53f3ca191a6aaa045e1df1ec7f57c6", kill_on_drop: false }` [INFO] [stdout] bdad8673fa86d00e9b51f7345ca4b8849a53f3ca191a6aaa045e1df1ec7f57c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 9a7a4b3263469af6422c1e846d893f034d0990858c4dac5452c3751dc0fff049 [INFO] running `Command { std: "docker" "start" "-a" "9a7a4b3263469af6422c1e846d893f034d0990858c4dac5452c3751dc0fff049", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Compiling cc v1.0.94 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling zerocopy v0.8.0-alpha.6 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling serde_json v1.0.115 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Checking http-body v1.0.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking match_cfg v0.1.0 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking semver-parser v0.7.0 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking matches v0.1.10 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking bitflags v2.5.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking semver v0.9.0 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Compiling rustc_version_runtime v0.2.1 [INFO] [stderr] Checking radium v0.7.0 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking sled v0.34.7 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking rustc_version v0.2.3 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking rand_core v0.9.0-alpha.1 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking finl_unicode v1.2.0 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking either v1.11.0 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Checking rand_chacha v0.9.0-alpha.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Checking stringprep v0.1.4 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking http-body-util v0.1.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking rand v0.9.0-alpha.1 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking chrono v0.4.37 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Checking sysinfo v0.30.10 [INFO] [stderr] Compiling enum-as-inner v0.4.0 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Checking pretty_env_logger v0.5.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking thiserror v1.0.58 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking trust-dns-proto v0.21.2 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking tls-listener v0.10.0 [INFO] [stderr] Checking serde_bytes v0.11.14 [INFO] [stderr] Checking uuid v1.8.0 [INFO] [stderr] Checking serde_with v1.14.0 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking h2 v0.4.4 [INFO] [stderr] Checking jchain-core v0.1.0 (/opt/rustwide/workdir/crates/core) [INFO] [stderr] Checking bson v2.10.0 [INFO] [stderr] Checking trust-dns-resolver v0.21.2 [INFO] [stderr] Checking mongodb v2.8.2 [INFO] [stderr] Checking hyper v1.2.0 [INFO] [stderr] Checking hyper-util v0.1.3 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking jchain-server v0.1.0 (/opt/rustwide/workdir/crates/server) [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:77:63 [INFO] [stdout] | [INFO] [stdout] 77 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 78 | | let method = req.method().clone(); [INFO] [stdout] 79 | | let path = req.uri().path().to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 100 | | Ok(response) [INFO] [stdout] 101 | | } [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] --> crates/server/src/http_api.rs:77:63 [INFO] [stdout] | [INFO] [stdout] 77 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 78 | | let method = req.method().clone(); [INFO] [stdout] 79 | | let path = req.uri().path().to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 100 | | Ok(response) [INFO] [stdout] 101 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, http::Response>> [INFO] [stdout] --> crates/server/src/http_api.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | let response = match (method, path.as_str()) { [INFO] [stdout] | ____________________^ [INFO] [stdout] 82 | | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] 83 | | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] 84 | | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] ... | [INFO] [stdout] 97 | | )), [INFO] [stdout] 98 | | }?; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | let response = match (method, path.as_str()) { [INFO] [stdout] | ____________________^ [INFO] [stdout] 82 | | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] 83 | | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] 84 | | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] ... | [INFO] [stdout] 97 | | )), [INFO] [stdout] 98 | | }?; [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:82:45 [INFO] [stdout] | [INFO] [stdout] 82 | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:82:77 [INFO] [stdout] | [INFO] [stdout] 82 | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:82:45 [INFO] [stdout] | [INFO] [stdout] 82 | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:83:49 [INFO] [stdout] | [INFO] [stdout] 83 | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:83:85 [INFO] [stdout] | [INFO] [stdout] 83 | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:83:49 [INFO] [stdout] | [INFO] [stdout] 83 | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:84:71 [INFO] [stdout] | [INFO] [stdout] 84 | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:85:44 [INFO] [stdout] | [INFO] [stdout] 85 | (Method::POST, "/api/v1/login") => login(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:85:67 [INFO] [stdout] | [INFO] [stdout] 85 | (Method::POST, "/api/v1/login") => login(req.into_body()).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:85:44 [INFO] [stdout] | [INFO] [stdout] 85 | (Method::POST, "/api/v1/login") => login(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:86:43 [INFO] [stdout] | [INFO] [stdout] 86 | (Method::GET, "/api/v1/tally") => tally().await, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:86:51 [INFO] [stdout] | [INFO] [stdout] 86 | (Method::GET, "/api/v1/tally") => tally().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:86:43 [INFO] [stdout] | [INFO] [stdout] 86 | (Method::GET, "/api/v1/tally") => tally().await, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | (Method::GET, "/api/v1/candidates") => list_candidates().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:87:66 [INFO] [stdout] | [INFO] [stdout] 87 | (Method::GET, "/api/v1/candidates") => list_candidates().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | (Method::GET, "/api/v1/candidates") => list_candidates().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:88:43 [INFO] [stdout] | [INFO] [stdout] 88 | (Method::GET, "/api/v1/chain") => chain_snapshot().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:88:60 [INFO] [stdout] | [INFO] [stdout] 88 | (Method::GET, "/api/v1/chain") => chain_snapshot().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:88:43 [INFO] [stdout] | [INFO] [stdout] 88 | (Method::GET, "/api/v1/chain") => chain_snapshot().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:89:36 [INFO] [stdout] | [INFO] [stdout] 89 | (Method::GET, "/chain") => Ok(chain_view()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | (Method::OPTIONS, _) => Ok(cors_response(StatusCode::NO_CONTENT, None)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | _ => Ok(json_response( [INFO] [stdout] | ______________^ [INFO] [stdout] 92 | | StatusCode::NOT_FOUND, [INFO] [stdout] 93 | | json!({ [INFO] [stdout] 94 | | "error": "not_found", [INFO] [stdout] 95 | | "message": "Route not found", [INFO] [stdout] 96 | | }), [INFO] [stdout] 97 | | )), [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | let response = match (method, path.as_str()) { [INFO] [stdout] | ____________________^ [INFO] [stdout] 82 | | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] 83 | | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] 84 | | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] ... | [INFO] [stdout] 97 | | )), [INFO] [stdout] 98 | | }?; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:105:63 [INFO] [stdout] | [INFO] [stdout] 105 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 106 | | match read_json::(body).await { [INFO] [stdout] 107 | | Ok(payload) => { [INFO] [stdout] 108 | | let voter_id = payload.id.unwrap_or_else(|| timestamp_id().unwrap_or(0)); [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:105:63 [INFO] [stdout] | [INFO] [stdout] 105 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 106 | | match read_json::(body).await { [INFO] [stdout] 107 | | Ok(payload) => { [INFO] [stdout] 108 | | let voter_id = payload.id.unwrap_or_else(|| timestamp_id().unwrap_or(0)); [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | / match read_json::(body).await { [INFO] [stdout] 107 | | Ok(payload) => { [INFO] [stdout] 108 | | let voter_id = payload.id.unwrap_or_else(|| timestamp_id().unwrap_or(0)); [INFO] [stdout] 109 | | let voter = Voter::new( [INFO] [stdout] ... | [INFO] [stdout] 131 | | Err(err_response) => Ok(err_response), [INFO] [stdout] 132 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 107 | Ok(payload) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 108 | | let voter_id = payload.id.unwrap_or_else(|| timestamp_id().unwrap_or(0)); [INFO] [stdout] 109 | | let voter = Voter::new( [INFO] [stdout] 110 | | voter_id, [INFO] [stdout] ... | [INFO] [stdout] 129 | | Ok(response) [INFO] [stdout] 130 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:131:30 [INFO] [stdout] | [INFO] [stdout] 131 | Err(err_response) => Ok(err_response), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:137:63 [INFO] [stdout] | [INFO] [stdout] 137 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 138 | | match read_json::(body).await { [INFO] [stdout] 139 | | Ok(payload) => { [INFO] [stdout] 140 | | let response = match LEDGER.register_candidate(payload.name.clone()) { [INFO] [stdout] ... | [INFO] [stdout] 154 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:137:63 [INFO] [stdout] | [INFO] [stdout] 137 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 138 | | match read_json::(body).await { [INFO] [stdout] 139 | | Ok(payload) => { [INFO] [stdout] 140 | | let response = match LEDGER.register_candidate(payload.name.clone()) { [INFO] [stdout] ... | [INFO] [stdout] 154 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | / match read_json::(body).await { [INFO] [stdout] 139 | | Ok(payload) => { [INFO] [stdout] 140 | | let response = match LEDGER.register_candidate(payload.name.clone()) { [INFO] [stdout] 141 | | Ok(()) => json_response( [INFO] [stdout] ... | [INFO] [stdout] 152 | | Err(err_response) => Ok(err_response), [INFO] [stdout] 153 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:139:24 [INFO] [stdout] | [INFO] [stdout] 139 | Ok(payload) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 140 | | let response = match LEDGER.register_candidate(payload.name.clone()) { [INFO] [stdout] 141 | | Ok(()) => json_response( [INFO] [stdout] 142 | | StatusCode::CREATED, [INFO] [stdout] ... | [INFO] [stdout] 150 | | Ok(response) [INFO] [stdout] 151 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:152:30 [INFO] [stdout] | [INFO] [stdout] 152 | Err(err_response) => Ok(err_response), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:156:96 [INFO] [stdout] | [INFO] [stdout] 156 | async fn cast_vote(body: Incoming) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 157 | | match read_json::(body).await { [INFO] [stdout] 158 | | Ok(payload) => { [INFO] [stdout] 159 | | let response = [INFO] [stdout] ... | [INFO] [stdout] 174 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:156:96 [INFO] [stdout] | [INFO] [stdout] 156 | async fn cast_vote(body: Incoming) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 157 | | match read_json::(body).await { [INFO] [stdout] 158 | | Ok(payload) => { [INFO] [stdout] 159 | | let response = [INFO] [stdout] ... | [INFO] [stdout] 174 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | / match read_json::(body).await { [INFO] [stdout] 158 | | Ok(payload) => { [INFO] [stdout] 159 | | let response = [INFO] [stdout] 160 | | match LEDGER.cast_vote(&payload.username, &payload.password, &payload.candidate) { [INFO] [stdout] ... | [INFO] [stdout] 172 | | Err(err_response) => Ok(err_response), [INFO] [stdout] 173 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:158:24 [INFO] [stdout] | [INFO] [stdout] 158 | Ok(payload) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 159 | | let response = [INFO] [stdout] 160 | | match LEDGER.cast_vote(&payload.username, &payload.password, &payload.candidate) { [INFO] [stdout] 161 | | Ok(block_hash) => json_response( [INFO] [stdout] ... | [INFO] [stdout] 170 | | Ok(response) [INFO] [stdout] 171 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:172:30 [INFO] [stdout] | [INFO] [stdout] 172 | Err(err_response) => Ok(err_response), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:176:92 [INFO] [stdout] | [INFO] [stdout] 176 | async fn login(body: Incoming) -> Result>, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 177 | | match read_json::(body).await { [INFO] [stdout] 178 | | Ok(payload) => { [INFO] [stdout] 179 | | let response = match LEDGER.authenticate(&payload.username, &payload.password) { [INFO] [stdout] ... | [INFO] [stdout] 193 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:176:92 [INFO] [stdout] | [INFO] [stdout] 176 | async fn login(body: Incoming) -> Result>, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 177 | | match read_json::(body).await { [INFO] [stdout] 178 | | Ok(payload) => { [INFO] [stdout] 179 | | let response = match LEDGER.authenticate(&payload.username, &payload.password) { [INFO] [stdout] ... | [INFO] [stdout] 193 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | / match read_json::(body).await { [INFO] [stdout] 178 | | Ok(payload) => { [INFO] [stdout] 179 | | let response = match LEDGER.authenticate(&payload.username, &payload.password) { [INFO] [stdout] 180 | | Ok(()) => json_response( [INFO] [stdout] ... | [INFO] [stdout] 191 | | Err(err_response) => Ok(err_response), [INFO] [stdout] 192 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:178:24 [INFO] [stdout] | [INFO] [stdout] 178 | Ok(payload) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 179 | | let response = match LEDGER.authenticate(&payload.username, &payload.password) { [INFO] [stdout] 180 | | Ok(()) => json_response( [INFO] [stdout] 181 | | StatusCode::OK, [INFO] [stdout] ... | [INFO] [stdout] 189 | | Ok(response) [INFO] [stdout] 190 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:191:30 [INFO] [stdout] | [INFO] [stdout] 191 | Err(err_response) => Ok(err_response), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:195:78 [INFO] [stdout] | [INFO] [stdout] 195 | async fn tally() -> Result>, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 196 | | let response = match LEDGER.tally() { [INFO] [stdout] 197 | | Ok(map) => json_response(StatusCode::OK, json!({ "tally": map })), [INFO] [stdout] 198 | | Err(err) => ledger_read_error(err), [INFO] [stdout] 199 | | }; [INFO] [stdout] 200 | | Ok(response) [INFO] [stdout] 201 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:195:78 [INFO] [stdout] | [INFO] [stdout] 195 | async fn tally() -> Result>, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 196 | | let response = match LEDGER.tally() { [INFO] [stdout] 197 | | Ok(map) => json_response(StatusCode::OK, json!({ "tally": map })), [INFO] [stdout] 198 | | Err(err) => ledger_read_error(err), [INFO] [stdout] 199 | | }; [INFO] [stdout] 200 | | Ok(response) [INFO] [stdout] 201 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:203:88 [INFO] [stdout] | [INFO] [stdout] 203 | async fn list_candidates() -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 204 | | let response = match LEDGER.candidates() { [INFO] [stdout] 205 | | Ok(candidates) => json_response(StatusCode::OK, json!({ "candidates": candidates })), [INFO] [stdout] 206 | | Err(err) => ledger_read_error(err), [INFO] [stdout] 207 | | }; [INFO] [stdout] 208 | | Ok(response) [INFO] [stdout] 209 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:203:88 [INFO] [stdout] | [INFO] [stdout] 203 | async fn list_candidates() -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 204 | | let response = match LEDGER.candidates() { [INFO] [stdout] 205 | | Ok(candidates) => json_response(StatusCode::OK, json!({ "candidates": candidates })), [INFO] [stdout] 206 | | Err(err) => ledger_read_error(err), [INFO] [stdout] 207 | | }; [INFO] [stdout] 208 | | Ok(response) [INFO] [stdout] 209 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:208:5 [INFO] [stdout] | [INFO] [stdout] 208 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:211:87 [INFO] [stdout] | [INFO] [stdout] 211 | async fn chain_snapshot() -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 212 | | let response = match LEDGER.blocks() { [INFO] [stdout] 213 | | Ok(blocks) => json_response( [INFO] [stdout] 214 | | StatusCode::OK, [INFO] [stdout] ... | [INFO] [stdout] 222 | | Ok(response) [INFO] [stdout] 223 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:211:87 [INFO] [stdout] | [INFO] [stdout] 211 | async fn chain_snapshot() -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 212 | | let response = match LEDGER.blocks() { [INFO] [stdout] 213 | | Ok(blocks) => json_response( [INFO] [stdout] 214 | | StatusCode::OK, [INFO] [stdout] ... | [INFO] [stdout] 222 | | Ok(response) [INFO] [stdout] 223 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 222 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:77:63 [INFO] [stdout] | [INFO] [stdout] 77 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 78 | | let method = req.method().clone(); [INFO] [stdout] 79 | | let path = req.uri().path().to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 100 | | Ok(response) [INFO] [stdout] 101 | | } [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] --> crates/server/src/http_api.rs:77:63 [INFO] [stdout] | [INFO] [stdout] 77 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 78 | | let method = req.method().clone(); [INFO] [stdout] 79 | | let path = req.uri().path().to_owned(); [INFO] [stdout] ... | [INFO] [stdout] 100 | | Ok(response) [INFO] [stdout] 101 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, http::Response>> [INFO] [stdout] --> crates/server/src/http_api.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | let response = match (method, path.as_str()) { [INFO] [stdout] | ____________________^ [INFO] [stdout] 82 | | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] 83 | | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] 84 | | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] ... | [INFO] [stdout] 97 | | )), [INFO] [stdout] 98 | | }?; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | let response = match (method, path.as_str()) { [INFO] [stdout] | ____________________^ [INFO] [stdout] 82 | | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] 83 | | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] 84 | | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] ... | [INFO] [stdout] 97 | | )), [INFO] [stdout] 98 | | }?; [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:82:45 [INFO] [stdout] | [INFO] [stdout] 82 | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:82:77 [INFO] [stdout] | [INFO] [stdout] 82 | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:82:45 [INFO] [stdout] | [INFO] [stdout] 82 | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:83:49 [INFO] [stdout] | [INFO] [stdout] 83 | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:83:85 [INFO] [stdout] | [INFO] [stdout] 83 | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jchain-server` (bin "jchain-server") due to 63 previous errors [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:83:49 [INFO] [stdout] | [INFO] [stdout] 83 | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:84:71 [INFO] [stdout] | [INFO] [stdout] 84 | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:84:44 [INFO] [stdout] | [INFO] [stdout] 84 | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:85:44 [INFO] [stdout] | [INFO] [stdout] 85 | (Method::POST, "/api/v1/login") => login(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:85:67 [INFO] [stdout] | [INFO] [stdout] 85 | (Method::POST, "/api/v1/login") => login(req.into_body()).await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:85:44 [INFO] [stdout] | [INFO] [stdout] 85 | (Method::POST, "/api/v1/login") => login(req.into_body()).await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:86:43 [INFO] [stdout] | [INFO] [stdout] 86 | (Method::GET, "/api/v1/tally") => tally().await, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:86:51 [INFO] [stdout] | [INFO] [stdout] 86 | (Method::GET, "/api/v1/tally") => tally().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:86:43 [INFO] [stdout] | [INFO] [stdout] 86 | (Method::GET, "/api/v1/tally") => tally().await, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | (Method::GET, "/api/v1/candidates") => list_candidates().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:87:66 [INFO] [stdout] | [INFO] [stdout] 87 | (Method::GET, "/api/v1/candidates") => list_candidates().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:87:48 [INFO] [stdout] | [INFO] [stdout] 87 | (Method::GET, "/api/v1/candidates") => list_candidates().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:88:43 [INFO] [stdout] | [INFO] [stdout] 88 | (Method::GET, "/api/v1/chain") => chain_snapshot().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:88:60 [INFO] [stdout] | [INFO] [stdout] 88 | (Method::GET, "/api/v1/chain") => chain_snapshot().await, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:88:43 [INFO] [stdout] | [INFO] [stdout] 88 | (Method::GET, "/api/v1/chain") => chain_snapshot().await, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:89:36 [INFO] [stdout] | [INFO] [stdout] 89 | (Method::GET, "/chain") => Ok(chain_view()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | (Method::OPTIONS, _) => Ok(cors_response(StatusCode::NO_CONTENT, None)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | _ => Ok(json_response( [INFO] [stdout] | ______________^ [INFO] [stdout] 92 | | StatusCode::NOT_FOUND, [INFO] [stdout] 93 | | json!({ [INFO] [stdout] 94 | | "error": "not_found", [INFO] [stdout] 95 | | "message": "Route not found", [INFO] [stdout] 96 | | }), [INFO] [stdout] 97 | | )), [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | let response = match (method, path.as_str()) { [INFO] [stdout] | ____________________^ [INFO] [stdout] 82 | | (Method::POST, "/api/v1/voters") => register_voter(req.into_body()).await, [INFO] [stdout] 83 | | (Method::POST, "/api/v1/candidates") => register_candidate(req.into_body()).await, [INFO] [stdout] 84 | | (Method::POST, "/api/v1/votes") => cast_vote(req.into_body()).await, [INFO] [stdout] ... | [INFO] [stdout] 97 | | )), [INFO] [stdout] 98 | | }?; [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:105:63 [INFO] [stdout] | [INFO] [stdout] 105 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 106 | | match read_json::(body).await { [INFO] [stdout] 107 | | Ok(payload) => { [INFO] [stdout] 108 | | let voter_id = payload.id.unwrap_or_else(|| timestamp_id().unwrap_or(0)); [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:105:63 [INFO] [stdout] | [INFO] [stdout] 105 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 106 | | match read_json::(body).await { [INFO] [stdout] 107 | | Ok(payload) => { [INFO] [stdout] 108 | | let voter_id = payload.id.unwrap_or_else(|| timestamp_id().unwrap_or(0)); [INFO] [stdout] ... | [INFO] [stdout] 133 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | / match read_json::(body).await { [INFO] [stdout] 107 | | Ok(payload) => { [INFO] [stdout] 108 | | let voter_id = payload.id.unwrap_or_else(|| timestamp_id().unwrap_or(0)); [INFO] [stdout] 109 | | let voter = Voter::new( [INFO] [stdout] ... | [INFO] [stdout] 131 | | Err(err_response) => Ok(err_response), [INFO] [stdout] 132 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 107 | Ok(payload) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 108 | | let voter_id = payload.id.unwrap_or_else(|| timestamp_id().unwrap_or(0)); [INFO] [stdout] 109 | | let voter = Voter::new( [INFO] [stdout] 110 | | voter_id, [INFO] [stdout] ... | [INFO] [stdout] 129 | | Ok(response) [INFO] [stdout] 130 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:131:30 [INFO] [stdout] | [INFO] [stdout] 131 | Err(err_response) => Ok(err_response), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:137:63 [INFO] [stdout] | [INFO] [stdout] 137 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 138 | | match read_json::(body).await { [INFO] [stdout] 139 | | Ok(payload) => { [INFO] [stdout] 140 | | let response = match LEDGER.register_candidate(payload.name.clone()) { [INFO] [stdout] ... | [INFO] [stdout] 154 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:137:63 [INFO] [stdout] | [INFO] [stdout] 137 | ) -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________^ [INFO] [stdout] 138 | | match read_json::(body).await { [INFO] [stdout] 139 | | Ok(payload) => { [INFO] [stdout] 140 | | let response = match LEDGER.register_candidate(payload.name.clone()) { [INFO] [stdout] ... | [INFO] [stdout] 154 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | / match read_json::(body).await { [INFO] [stdout] 139 | | Ok(payload) => { [INFO] [stdout] 140 | | let response = match LEDGER.register_candidate(payload.name.clone()) { [INFO] [stdout] 141 | | Ok(()) => json_response( [INFO] [stdout] ... | [INFO] [stdout] 152 | | Err(err_response) => Ok(err_response), [INFO] [stdout] 153 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:139:24 [INFO] [stdout] | [INFO] [stdout] 139 | Ok(payload) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 140 | | let response = match LEDGER.register_candidate(payload.name.clone()) { [INFO] [stdout] 141 | | Ok(()) => json_response( [INFO] [stdout] 142 | | StatusCode::CREATED, [INFO] [stdout] ... | [INFO] [stdout] 150 | | Ok(response) [INFO] [stdout] 151 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:152:30 [INFO] [stdout] | [INFO] [stdout] 152 | Err(err_response) => Ok(err_response), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:156:96 [INFO] [stdout] | [INFO] [stdout] 156 | async fn cast_vote(body: Incoming) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 157 | | match read_json::(body).await { [INFO] [stdout] 158 | | Ok(payload) => { [INFO] [stdout] 159 | | let response = [INFO] [stdout] ... | [INFO] [stdout] 174 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:156:96 [INFO] [stdout] | [INFO] [stdout] 156 | async fn cast_vote(body: Incoming) -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________________^ [INFO] [stdout] 157 | | match read_json::(body).await { [INFO] [stdout] 158 | | Ok(payload) => { [INFO] [stdout] 159 | | let response = [INFO] [stdout] ... | [INFO] [stdout] 174 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:157:5 [INFO] [stdout] | [INFO] [stdout] 157 | / match read_json::(body).await { [INFO] [stdout] 158 | | Ok(payload) => { [INFO] [stdout] 159 | | let response = [INFO] [stdout] 160 | | match LEDGER.cast_vote(&payload.username, &payload.password, &payload.candidate) { [INFO] [stdout] ... | [INFO] [stdout] 172 | | Err(err_response) => Ok(err_response), [INFO] [stdout] 173 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:158:24 [INFO] [stdout] | [INFO] [stdout] 158 | Ok(payload) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 159 | | let response = [INFO] [stdout] 160 | | match LEDGER.cast_vote(&payload.username, &payload.password, &payload.candidate) { [INFO] [stdout] 161 | | Ok(block_hash) => json_response( [INFO] [stdout] ... | [INFO] [stdout] 170 | | Ok(response) [INFO] [stdout] 171 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:172:30 [INFO] [stdout] | [INFO] [stdout] 172 | Err(err_response) => Ok(err_response), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:176:92 [INFO] [stdout] | [INFO] [stdout] 176 | async fn login(body: Incoming) -> Result>, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 177 | | match read_json::(body).await { [INFO] [stdout] 178 | | Ok(payload) => { [INFO] [stdout] 179 | | let response = match LEDGER.authenticate(&payload.username, &payload.password) { [INFO] [stdout] ... | [INFO] [stdout] 193 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:176:92 [INFO] [stdout] | [INFO] [stdout] 176 | async fn login(body: Incoming) -> Result>, Infallible> { [INFO] [stdout] | ____________________________________________________________________________________________^ [INFO] [stdout] 177 | | match read_json::(body).await { [INFO] [stdout] 178 | | Ok(payload) => { [INFO] [stdout] 179 | | let response = match LEDGER.authenticate(&payload.username, &payload.password) { [INFO] [stdout] ... | [INFO] [stdout] 193 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | / match read_json::(body).await { [INFO] [stdout] 178 | | Ok(payload) => { [INFO] [stdout] 179 | | let response = match LEDGER.authenticate(&payload.username, &payload.password) { [INFO] [stdout] 180 | | Ok(()) => json_response( [INFO] [stdout] ... | [INFO] [stdout] 191 | | Err(err_response) => Ok(err_response), [INFO] [stdout] 192 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:178:24 [INFO] [stdout] | [INFO] [stdout] 178 | Ok(payload) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 179 | | let response = match LEDGER.authenticate(&payload.username, &payload.password) { [INFO] [stdout] 180 | | Ok(()) => json_response( [INFO] [stdout] 181 | | StatusCode::OK, [INFO] [stdout] ... | [INFO] [stdout] 189 | | Ok(response) [INFO] [stdout] 190 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:189:13 [INFO] [stdout] | [INFO] [stdout] 189 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:191:30 [INFO] [stdout] | [INFO] [stdout] 191 | Err(err_response) => Ok(err_response), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:195:78 [INFO] [stdout] | [INFO] [stdout] 195 | async fn tally() -> Result>, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 196 | | let response = match LEDGER.tally() { [INFO] [stdout] 197 | | Ok(map) => json_response(StatusCode::OK, json!({ "tally": map })), [INFO] [stdout] 198 | | Err(err) => ledger_read_error(err), [INFO] [stdout] 199 | | }; [INFO] [stdout] 200 | | Ok(response) [INFO] [stdout] 201 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:195:78 [INFO] [stdout] | [INFO] [stdout] 195 | async fn tally() -> Result>, Infallible> { [INFO] [stdout] | ______________________________________________________________________________^ [INFO] [stdout] 196 | | let response = match LEDGER.tally() { [INFO] [stdout] 197 | | Ok(map) => json_response(StatusCode::OK, json!({ "tally": map })), [INFO] [stdout] 198 | | Err(err) => ledger_read_error(err), [INFO] [stdout] 199 | | }; [INFO] [stdout] 200 | | Ok(response) [INFO] [stdout] 201 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:203:88 [INFO] [stdout] | [INFO] [stdout] 203 | async fn list_candidates() -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 204 | | let response = match LEDGER.candidates() { [INFO] [stdout] 205 | | Ok(candidates) => json_response(StatusCode::OK, json!({ "candidates": candidates })), [INFO] [stdout] 206 | | Err(err) => ledger_read_error(err), [INFO] [stdout] 207 | | }; [INFO] [stdout] 208 | | Ok(response) [INFO] [stdout] 209 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:203:88 [INFO] [stdout] | [INFO] [stdout] 203 | async fn list_candidates() -> Result>, Infallible> { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 204 | | let response = match LEDGER.candidates() { [INFO] [stdout] 205 | | Ok(candidates) => json_response(StatusCode::OK, json!({ "candidates": candidates })), [INFO] [stdout] 206 | | Err(err) => ledger_read_error(err), [INFO] [stdout] 207 | | }; [INFO] [stdout] 208 | | Ok(response) [INFO] [stdout] 209 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:208:5 [INFO] [stdout] | [INFO] [stdout] 208 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:211:87 [INFO] [stdout] | [INFO] [stdout] 211 | async fn chain_snapshot() -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 212 | | let response = match LEDGER.blocks() { [INFO] [stdout] 213 | | Ok(blocks) => json_response( [INFO] [stdout] 214 | | StatusCode::OK, [INFO] [stdout] ... | [INFO] [stdout] 222 | | Ok(response) [INFO] [stdout] 223 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:211:87 [INFO] [stdout] | [INFO] [stdout] 211 | async fn chain_snapshot() -> Result>, Infallible> { [INFO] [stdout] | _______________________________________________________________________________________^ [INFO] [stdout] 212 | | let response = match LEDGER.blocks() { [INFO] [stdout] 213 | | Ok(blocks) => json_response( [INFO] [stdout] 214 | | StatusCode::OK, [INFO] [stdout] ... | [INFO] [stdout] 222 | | Ok(response) [INFO] [stdout] 223 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> crates/server/src/http_api.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 222 | Ok(response) [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jchain-server` (bin "jchain-server" test) due to 63 previous errors [INFO] running `Command { std: "docker" "inspect" "9a7a4b3263469af6422c1e846d893f034d0990858c4dac5452c3751dc0fff049", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a7a4b3263469af6422c1e846d893f034d0990858c4dac5452c3751dc0fff049", kill_on_drop: false }` [INFO] [stdout] 9a7a4b3263469af6422c1e846d893f034d0990858c4dac5452c3751dc0fff049