[INFO] cloning repository https://github.com/notcodesid/solana-fellowship-assi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/notcodesid/solana-fellowship-assi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotcodesid%2Fsolana-fellowship-assi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotcodesid%2Fsolana-fellowship-assi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] de74312396230a6c2d85d7f20e4b785e74d196a8 [INFO] checking notcodesid/solana-fellowship-assi 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%2Fnotcodesid%2Fsolana-fellowship-assi" "/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/notcodesid/solana-fellowship-assi [INFO] finished tweaking git repo https://github.com/notcodesid/solana-fellowship-assi [INFO] tweaked toml for git repo https://github.com/notcodesid/solana-fellowship-assi written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/notcodesid/solana-fellowship-assi 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/notcodesid/solana-fellowship-assi 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-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] b36389e34e1161324d53bc1a7a407350c98a78786598512c8ef0bef647fee30f [INFO] running `Command { std: "docker" "start" "-a" "b36389e34e1161324d53bc1a7a407350c98a78786598512c8ef0bef647fee30f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b36389e34e1161324d53bc1a7a407350c98a78786598512c8ef0bef647fee30f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b36389e34e1161324d53bc1a7a407350c98a78786598512c8ef0bef647fee30f", kill_on_drop: false }` [INFO] [stdout] b36389e34e1161324d53bc1a7a407350c98a78786598512c8ef0bef647fee30f [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] 116348f075d9194addd9f63f1768db5e62353f5b994706c1ded02916a19c1875 [INFO] running `Command { std: "docker" "start" "-a" "116348f075d9194addd9f63f1768db5e62353f5b994706c1ded02916a19c1875", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Checking ark-std v0.4.0 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.18.26 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Checking tinyvec v1.9.0 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling borsh-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.10.4 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Checking sized-chunks v0.6.5 [INFO] [stderr] Compiling solana-frozen-abi v1.18.26 [INFO] [stderr] Checking rand_xoshiro v0.6.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Checking hmac-drbg v0.3.0 [INFO] [stderr] Checking pbkdf2 v0.4.0 [INFO] [stderr] Compiling borsh-derive v1.5.7 [INFO] [stderr] Checking bv v0.11.1 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Checking serde_bytes v0.11.17 [INFO] [stderr] Compiling solana-program v1.18.26 [INFO] [stderr] Compiling ark-serialize-derive v0.4.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling ark-ff-asm v0.4.2 [INFO] [stderr] Compiling ark-ff-macros v0.4.2 [INFO] [stderr] Compiling borsh-derive v0.10.4 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Checking ark-serialize v0.4.2 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking tiny-bip39 v0.8.2 [INFO] [stderr] Checking borsh v0.9.3 [INFO] [stderr] Compiling solana-sdk-macro v1.18.26 [INFO] [stderr] Checking borsh v1.5.7 [INFO] [stderr] Checking bytemuck v1.23.1 [INFO] [stderr] Checking borsh v0.10.4 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking ark-ff v0.4.2 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking ed25519 v1.5.3 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking humantime v2.2.0 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Compiling serde_with_macros v2.3.3 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking env_logger v0.9.3 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Checking universal-hash v0.4.1 [INFO] [stderr] Compiling solana-sdk v1.18.26 [INFO] [stderr] Checking derivation-path v0.2.0 [INFO] [stderr] Checking solana-logger v1.18.26 [INFO] [stderr] Checking polyval v0.5.3 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking ed25519-dalek-bip32 v0.2.0 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking ctr v0.8.0 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking aead v0.4.3 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Compiling qualifier_attr v0.2.2 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking serde_with v2.3.3 [INFO] [stderr] Checking num_enum v0.7.4 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Checking aes-gcm-siv v0.10.3 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Checking merlin v3.0.0 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Checking num_enum v0.5.11 [INFO] [stderr] Checking ark-poly v0.4.2 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking ark-ec v0.4.2 [INFO] [stderr] Checking ark-bn254 v0.4.0 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking light-poseidon v0.2.0 [INFO] [stderr] Checking spl-memo v3.0.1 [INFO] [stderr] Checking spl-token v3.5.0 [INFO] [stderr] Checking solana-zk-token-sdk v1.18.26 [INFO] [stderr] Checking spl-token-2022 v0.6.1 [INFO] [stderr] Checking spl-associated-token-account v1.1.3 [INFO] [stderr] Checking rust-http-server v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `read_keypair_file` [INFO] [stdout] --> src/main.rs:5:57 [INFO] [stdout] | [INFO] [stdout] 5 | use solana_sdk::signature::{Keypair, Signature, Signer, read_keypair_file}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_sdk::instruction::AccountMeta` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use solana_sdk::instruction::AccountMeta; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/main.rs:203:60 [INFO] [stdout] | [INFO] [stdout] 203 | ... let encoded_data = base64::encode(&ix.data); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/main.rs:285:67 [INFO] [stdout] | [INFO] [stdout] 285 | ... instruction_data: base64::encode(&ix.data), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/main.rs:346:64 [INFO] [stdout] | [INFO] [stdout] 346 | ... let signature_base64 = base64::encode(signature.as_ref()); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/main.rs:427:71 [INFO] [stdout] | [INFO] [stdout] 427 | ... instruction_data: base64::encode(&ix.data), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/main.rs:504:71 [INFO] [stdout] | [INFO] [stdout] 504 | ... instruction_data: base64::encode(&ix.data), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/main.rs:555:46 [INFO] [stdout] | [INFO] [stdout] 555 | let sig_result = base64::decode(&verify_req.signature); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read_keypair_file` [INFO] [stdout] --> src/main.rs:5:57 [INFO] [stdout] | [INFO] [stdout] 5 | use solana_sdk::signature::{Keypair, Signature, Signer, read_keypair_file}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `solana_sdk::instruction::AccountMeta` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use solana_sdk::instruction::AccountMeta; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `isSigner` should have a snake case name [INFO] [stdout] --> src/main.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | isSigner: bool, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_signer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `mintAuthority` should have a snake case name [INFO] [stdout] --> src/main.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | mintAuthority: String, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `mint_authority` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:156:83 [INFO] [stdout] | [INFO] [stdout] 156 | async fn handle_request(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 157 | | let (method, path) = (req.method(), req.uri().path()); [INFO] [stdout] 158 | | [INFO] [stdout] 159 | | match (method, path) { [INFO] [stdout] ... | [INFO] [stdout] 616 | | } [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, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:156:83 [INFO] [stdout] | [INFO] [stdout] 156 | async fn handle_request(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 157 | | let (method, path) = (req.method(), req.uri().path()); [INFO] [stdout] 158 | | [INFO] [stdout] 159 | | match (method, path) { [INFO] [stdout] ... | [INFO] [stdout] 616 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / match (method, path) { [INFO] [stdout] 160 | | // GET / [INFO] [stdout] 161 | | (&Method::GET, "/") => Ok(Response::new(Body::from("Welcome to the Rust HTTP server!"))), [INFO] [stdout] ... | [INFO] [stdout] 615 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:161:32 [INFO] [stdout] | [INFO] [stdout] 161 | (&Method::GET, "/") => Ok(Response::new(Body::from("Welcome to the Rust HTTP server!"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:164:37 [INFO] [stdout] | [INFO] [stdout] 164 | (&Method::GET, "/hello") => Ok(Response::new(Body::from("Hello from Rust!"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:167:38 [INFO] [stdout] | [INFO] [stdout] 167 | (&Method::GET, "/health") => Ok(Response::new(Body::from("OK"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:170:40 [INFO] [stdout] | [INFO] [stdout] 170 | (&Method::POST, "/keypair") => { [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 171 | | let keypair = Keypair::new(); [INFO] [stdout] 172 | | let pubkey = keypair.pubkey().to_string(); [INFO] [stdout] 173 | | let secret = bs58::encode(keypair.to_bytes()).into_string(); [INFO] [stdout] ... | [INFO] [stdout] 186 | | .unwrap()) [INFO] [stdout] 187 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | / Ok(Response::builder() [INFO] [stdout] 183 | | .header("Content-Type", "application/json") [INFO] [stdout] 184 | | .status(StatusCode::OK) [INFO] [stdout] 185 | | .body(Body::from(json)) [INFO] [stdout] 186 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:189:49 [INFO] [stdout] | [INFO] [stdout] 189 | (&Method::POST, "/send/sol") => { [INFO] [stdout] | _________________________________________________^ [INFO] [stdout] 190 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 191 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 252 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:193:21 [INFO] [stdout] | [INFO] [stdout] 193 | / match parsed { [INFO] [stdout] 194 | | Ok(req_data) => { [INFO] [stdout] 195 | | // Validate from/to as Pubkeys [INFO] [stdout] 196 | | let from = req_data.from.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 251 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:194:41 [INFO] [stdout] | [INFO] [stdout] 194 | Ok(req_data) => { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 195 | | // Validate from/to as Pubkeys [INFO] [stdout] 196 | | let from = req_data.from.parse::(); [INFO] [stdout] 197 | | let to = req_data.to.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 235 | | .unwrap()) [INFO] [stdout] 236 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:217:40 [INFO] [stdout] | [INFO] [stdout] 217 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 218 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 219 | | ... .status(StatusCode::OK) [INFO] [stdout] 220 | | ... .body(Body::from(json)) [INFO] [stdout] 221 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:231:29 [INFO] [stdout] | [INFO] [stdout] 231 | / ... Ok(Response::builder() [INFO] [stdout] 232 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 233 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 234 | | ... .body(Body::from(err_json)) [INFO] [stdout] 235 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:238:35 [INFO] [stdout] | [INFO] [stdout] 238 | Err(_) => { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 239 | | let err_json = serde_json::to_string(&SendSolResponse { [INFO] [stdout] 240 | | success: false, [INFO] [stdout] 241 | | data: None, [INFO] [stdout] ... | [INFO] [stdout] 249 | | .unwrap()) [INFO] [stdout] 250 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:245:29 [INFO] [stdout] | [INFO] [stdout] 245 | / ... Ok(Response::builder() [INFO] [stdout] 246 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 247 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 248 | | ... .body(Body::from(err_json)) [INFO] [stdout] 249 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:255:51 [INFO] [stdout] | [INFO] [stdout] 255 | (&Method::POST, "/send/token") => { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 256 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 257 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 329 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:259:21 [INFO] [stdout] | [INFO] [stdout] 259 | / match parsed { [INFO] [stdout] 260 | | Ok(req_data) => { [INFO] [stdout] 261 | | let destination = req_data.destination.parse::(); [INFO] [stdout] 262 | | let mint = req_data.mint.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:260:41 [INFO] [stdout] | [INFO] [stdout] 260 | Ok(req_data) => { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 261 | | let destination = req_data.destination.parse::(); [INFO] [stdout] 262 | | let mint = req_data.mint.parse::(); [INFO] [stdout] 263 | | let owner = req_data.owner.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 312 | | .unwrap()) [INFO] [stdout] 313 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:294:44 [INFO] [stdout] | [INFO] [stdout] 294 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 295 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 296 | | ... .status(StatusCode::OK) [INFO] [stdout] 297 | | ... .body(Body::from(json)) [INFO] [stdout] 298 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:308:29 [INFO] [stdout] | [INFO] [stdout] 308 | / ... Ok(Response::builder() [INFO] [stdout] 309 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 310 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 311 | | ... .body(Body::from(err)) [INFO] [stdout] 312 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:315:35 [INFO] [stdout] | [INFO] [stdout] 315 | Err(_) => { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 316 | | let err = serde_json::to_string(&SendTokenResponse { [INFO] [stdout] 317 | | success: false, [INFO] [stdout] 318 | | data: None, [INFO] [stdout] ... | [INFO] [stdout] 326 | | .unwrap()) [INFO] [stdout] 327 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:322:29 [INFO] [stdout] | [INFO] [stdout] 322 | / ... Ok(Response::builder() [INFO] [stdout] 323 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 324 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 325 | | ... .body(Body::from(err)) [INFO] [stdout] 326 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:334:45 [INFO] [stdout] | [INFO] [stdout] 334 | (&Method::POST, "/message/sign") => { [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 335 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 336 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 395 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | / match parsed { [INFO] [stdout] 339 | | Ok(sign_req) => { [INFO] [stdout] 340 | | let decoded = bs58::decode(sign_req.secret).into_vec(); [INFO] [stdout] ... | [INFO] [stdout] 394 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:339:33 [INFO] [stdout] | [INFO] [stdout] 339 | Ok(sign_req) => { [INFO] [stdout] | _________________________________^ [INFO] [stdout] 340 | | let decoded = bs58::decode(sign_req.secret).into_vec(); [INFO] [stdout] 341 | | [INFO] [stdout] 342 | | if let Ok(secret_bytes) = decoded { [INFO] [stdout] ... | [INFO] [stdout] 379 | | .unwrap()) [INFO] [stdout] 380 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:360:40 [INFO] [stdout] | [INFO] [stdout] 360 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 361 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 362 | | ... .status(StatusCode::OK) [INFO] [stdout] 363 | | ... .body(Body::from(json)) [INFO] [stdout] 364 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:375:21 [INFO] [stdout] | [INFO] [stdout] 375 | / Ok(Response::builder() [INFO] [stdout] 376 | | .header("Content-Type", "application/json") [INFO] [stdout] 377 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 378 | | .body(Body::from(error_json)) [INFO] [stdout] 379 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:382:27 [INFO] [stdout] | [INFO] [stdout] 382 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 383 | | let error_json = json!({ [INFO] [stdout] 384 | | "success": false, [INFO] [stdout] 385 | | "error": "Missing required fields" [INFO] [stdout] ... | [INFO] [stdout] 392 | | .unwrap()) [INFO] [stdout] 393 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:388:21 [INFO] [stdout] | [INFO] [stdout] 388 | / Ok(Response::builder() [INFO] [stdout] 389 | | .header("Content-Type", "application/json") [INFO] [stdout] 390 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 391 | | .body(Body::from(error_json)) [INFO] [stdout] 392 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:397:53 [INFO] [stdout] | [INFO] [stdout] 397 | (&Method::POST, "/token/create") => { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 398 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 399 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 467 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | / match parsed { [INFO] [stdout] 402 | | Ok(req_data) => { [INFO] [stdout] 403 | | let mint_pubkey = req_data.mint.parse::(); [INFO] [stdout] 404 | | let mint_auth = req_data.mintAuthority.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 466 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:402:41 [INFO] [stdout] | [INFO] [stdout] 402 | Ok(req_data) => { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 403 | | let mint_pubkey = req_data.mint.parse::(); [INFO] [stdout] 404 | | let mint_auth = req_data.mintAuthority.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 450 | | .unwrap()) [INFO] [stdout] 451 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:432:44 [INFO] [stdout] | [INFO] [stdout] 432 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 433 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 434 | | ... .status(StatusCode::OK) [INFO] [stdout] 435 | | ... .body(Body::from(json)) [INFO] [stdout] 436 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:446:29 [INFO] [stdout] | [INFO] [stdout] 446 | / ... Ok(Response::builder() [INFO] [stdout] 447 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 448 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 449 | | ... .body(Body::from(err)) [INFO] [stdout] 450 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:453:35 [INFO] [stdout] | [INFO] [stdout] 453 | Err(_) => { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 454 | | let err = serde_json::to_string(&TokenInstructionResponse { [INFO] [stdout] 455 | | success: false, [INFO] [stdout] 456 | | data: None, [INFO] [stdout] ... | [INFO] [stdout] 464 | | .unwrap()) [INFO] [stdout] 465 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:460:29 [INFO] [stdout] | [INFO] [stdout] 460 | / ... Ok(Response::builder() [INFO] [stdout] 461 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 462 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 463 | | ... .body(Body::from(err)) [INFO] [stdout] 464 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:470:51 [INFO] [stdout] | [INFO] [stdout] 470 | (&Method::POST, "/token/mint") => { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 471 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 472 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 544 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:474:21 [INFO] [stdout] | [INFO] [stdout] 474 | / match parsed { [INFO] [stdout] 475 | | Ok(req_data) => { [INFO] [stdout] 476 | | let mint_pubkey = req_data.mint.parse::(); [INFO] [stdout] 477 | | let authority_pubkey = req_data.authority.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 543 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:475:41 [INFO] [stdout] | [INFO] [stdout] 475 | Ok(req_data) => { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 476 | | let mint_pubkey = req_data.mint.parse::(); [INFO] [stdout] 477 | | let authority_pubkey = req_data.authority.parse::(); [INFO] [stdout] 478 | | let destination_pubkey = req_data.destination.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 527 | | .unwrap()) [INFO] [stdout] 528 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:509:44 [INFO] [stdout] | [INFO] [stdout] 509 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 510 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 511 | | ... .status(StatusCode::OK) [INFO] [stdout] 512 | | ... .body(Body::from(json)) [INFO] [stdout] 513 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:523:29 [INFO] [stdout] | [INFO] [stdout] 523 | / ... Ok(Response::builder() [INFO] [stdout] 524 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 525 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 526 | | ... .body(Body::from(err)) [INFO] [stdout] 527 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:530:35 [INFO] [stdout] | [INFO] [stdout] 530 | Err(_) => { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 531 | | let err = serde_json::to_string(&TokenInstructionResponse { [INFO] [stdout] 532 | | success: false, [INFO] [stdout] 533 | | data: None, [INFO] [stdout] ... | [INFO] [stdout] 541 | | .unwrap()) [INFO] [stdout] 542 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:537:29 [INFO] [stdout] | [INFO] [stdout] 537 | / ... Ok(Response::builder() [INFO] [stdout] 538 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 539 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 540 | | ... .body(Body::from(err)) [INFO] [stdout] 541 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:548:47 [INFO] [stdout] | [INFO] [stdout] 548 | (&Method::POST, "/message/verify") => { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 549 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 550 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 607 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:552:13 [INFO] [stdout] | [INFO] [stdout] 552 | / match parsed { [INFO] [stdout] 553 | | Ok(verify_req) => { [INFO] [stdout] 554 | | let pubkey_result = verify_req.pubkey.parse::(); [INFO] [stdout] 555 | | let sig_result = base64::decode(&verify_req.signature); [INFO] [stdout] ... | [INFO] [stdout] 606 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:553:35 [INFO] [stdout] | [INFO] [stdout] 553 | Ok(verify_req) => { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 554 | | let pubkey_result = verify_req.pubkey.parse::(); [INFO] [stdout] 555 | | let sig_result = base64::decode(&verify_req.signature); [INFO] [stdout] ... | [INFO] [stdout] 591 | | .unwrap()) [INFO] [stdout] 592 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:573:36 [INFO] [stdout] | [INFO] [stdout] 573 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 574 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 575 | | ... .status(StatusCode::OK) [INFO] [stdout] 576 | | ... .body(Body::from(json)) [INFO] [stdout] 577 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:587:21 [INFO] [stdout] | [INFO] [stdout] 587 | / Ok(Response::builder() [INFO] [stdout] 588 | | .header("Content-Type", "application/json") [INFO] [stdout] 589 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 590 | | .body(Body::from(error_json)) [INFO] [stdout] 591 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:594:27 [INFO] [stdout] | [INFO] [stdout] 594 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 595 | | let error_json = json!({ [INFO] [stdout] 596 | | "success": false, [INFO] [stdout] 597 | | "error": "Missing required fields" [INFO] [stdout] ... | [INFO] [stdout] 604 | | .unwrap()) [INFO] [stdout] 605 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:600:21 [INFO] [stdout] | [INFO] [stdout] 600 | / Ok(Response::builder() [INFO] [stdout] 601 | | .header("Content-Type", "application/json") [INFO] [stdout] 602 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 603 | | .body(Body::from(error_json)) [INFO] [stdout] 604 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:610:14 [INFO] [stdout] | [INFO] [stdout] 610 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 611 | | let mut not_found = Response::default(); [INFO] [stdout] 612 | | *not_found.status_mut() = StatusCode::NOT_FOUND; [INFO] [stdout] 613 | | Ok(not_found) [INFO] [stdout] 614 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:613:13 [INFO] [stdout] | [INFO] [stdout] 613 | Ok(not_found) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result) -> impl std::future::Future, std::convert::Infallible>> {handle_request}, Body>, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:622:50 [INFO] [stdout] | [INFO] [stdout] 622 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 623 | | Ok::<_, Infallible>(service_fn(handle_request)) [INFO] [stdout] 624 | | }); [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result) -> impl std::future::Future, std::convert::Infallible>> {handle_request}, Body>, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:623:9 [INFO] [stdout] | [INFO] [stdout] 623 | Ok::<_, Infallible>(service_fn(handle_request)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/main.rs:203:60 [INFO] [stdout] | [INFO] [stdout] 203 | ... let encoded_data = base64::encode(&ix.data); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/main.rs:285:67 [INFO] [stdout] | [INFO] [stdout] 285 | ... instruction_data: base64::encode(&ix.data), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/main.rs:346:64 [INFO] [stdout] | [INFO] [stdout] 346 | ... let signature_base64 = base64::encode(signature.as_ref()); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/main.rs:427:71 [INFO] [stdout] | [INFO] [stdout] 427 | ... instruction_data: base64::encode(&ix.data), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode [INFO] [stdout] --> src/main.rs:504:71 [INFO] [stdout] | [INFO] [stdout] 504 | ... instruction_data: base64::encode(&ix.data), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `base64::decode`: Use Engine::decode [INFO] [stdout] --> src/main.rs:555:46 [INFO] [stdout] | [INFO] [stdout] 555 | let sig_result = base64::decode(&verify_req.signature); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-http-server` (bin "rust-http-server") due to 54 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: structure field `isSigner` should have a snake case name [INFO] [stdout] --> src/main.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | isSigner: bool, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `is_signer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `mintAuthority` should have a snake case name [INFO] [stdout] --> src/main.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | mintAuthority: String, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `mint_authority` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:156:83 [INFO] [stdout] | [INFO] [stdout] 156 | async fn handle_request(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 157 | | let (method, path) = (req.method(), req.uri().path()); [INFO] [stdout] 158 | | [INFO] [stdout] 159 | | match (method, path) { [INFO] [stdout] ... | [INFO] [stdout] 616 | | } [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, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:156:83 [INFO] [stdout] | [INFO] [stdout] 156 | async fn handle_request(req: Request) -> Result, Infallible> { [INFO] [stdout] | ___________________________________________________________________________________^ [INFO] [stdout] 157 | | let (method, path) = (req.method(), req.uri().path()); [INFO] [stdout] 158 | | [INFO] [stdout] 159 | | match (method, path) { [INFO] [stdout] ... | [INFO] [stdout] 616 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / match (method, path) { [INFO] [stdout] 160 | | // GET / [INFO] [stdout] 161 | | (&Method::GET, "/") => Ok(Response::new(Body::from("Welcome to the Rust HTTP server!"))), [INFO] [stdout] ... | [INFO] [stdout] 615 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:161:32 [INFO] [stdout] | [INFO] [stdout] 161 | (&Method::GET, "/") => Ok(Response::new(Body::from("Welcome to the Rust HTTP server!"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:164:37 [INFO] [stdout] | [INFO] [stdout] 164 | (&Method::GET, "/hello") => Ok(Response::new(Body::from("Hello from Rust!"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:167:38 [INFO] [stdout] | [INFO] [stdout] 167 | (&Method::GET, "/health") => Ok(Response::new(Body::from("OK"))), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:170:40 [INFO] [stdout] | [INFO] [stdout] 170 | (&Method::POST, "/keypair") => { [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 171 | | let keypair = Keypair::new(); [INFO] [stdout] 172 | | let pubkey = keypair.pubkey().to_string(); [INFO] [stdout] 173 | | let secret = bs58::encode(keypair.to_bytes()).into_string(); [INFO] [stdout] ... | [INFO] [stdout] 186 | | .unwrap()) [INFO] [stdout] 187 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:182:13 [INFO] [stdout] | [INFO] [stdout] 182 | / Ok(Response::builder() [INFO] [stdout] 183 | | .header("Content-Type", "application/json") [INFO] [stdout] 184 | | .status(StatusCode::OK) [INFO] [stdout] 185 | | .body(Body::from(json)) [INFO] [stdout] 186 | | .unwrap()) [INFO] [stdout] | |__________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:189:49 [INFO] [stdout] | [INFO] [stdout] 189 | (&Method::POST, "/send/sol") => { [INFO] [stdout] | _________________________________________________^ [INFO] [stdout] 190 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 191 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 252 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:193:21 [INFO] [stdout] | [INFO] [stdout] 193 | / match parsed { [INFO] [stdout] 194 | | Ok(req_data) => { [INFO] [stdout] 195 | | // Validate from/to as Pubkeys [INFO] [stdout] 196 | | let from = req_data.from.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 251 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:194:41 [INFO] [stdout] | [INFO] [stdout] 194 | Ok(req_data) => { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 195 | | // Validate from/to as Pubkeys [INFO] [stdout] 196 | | let from = req_data.from.parse::(); [INFO] [stdout] 197 | | let to = req_data.to.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 235 | | .unwrap()) [INFO] [stdout] 236 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:217:40 [INFO] [stdout] | [INFO] [stdout] 217 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 218 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 219 | | ... .status(StatusCode::OK) [INFO] [stdout] 220 | | ... .body(Body::from(json)) [INFO] [stdout] 221 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:231:29 [INFO] [stdout] | [INFO] [stdout] 231 | / ... Ok(Response::builder() [INFO] [stdout] 232 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 233 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 234 | | ... .body(Body::from(err_json)) [INFO] [stdout] 235 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:238:35 [INFO] [stdout] | [INFO] [stdout] 238 | Err(_) => { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 239 | | let err_json = serde_json::to_string(&SendSolResponse { [INFO] [stdout] 240 | | success: false, [INFO] [stdout] 241 | | data: None, [INFO] [stdout] ... | [INFO] [stdout] 249 | | .unwrap()) [INFO] [stdout] 250 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:245:29 [INFO] [stdout] | [INFO] [stdout] 245 | / ... Ok(Response::builder() [INFO] [stdout] 246 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 247 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 248 | | ... .body(Body::from(err_json)) [INFO] [stdout] 249 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:255:51 [INFO] [stdout] | [INFO] [stdout] 255 | (&Method::POST, "/send/token") => { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 256 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 257 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 329 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:259:21 [INFO] [stdout] | [INFO] [stdout] 259 | / match parsed { [INFO] [stdout] 260 | | Ok(req_data) => { [INFO] [stdout] 261 | | let destination = req_data.destination.parse::(); [INFO] [stdout] 262 | | let mint = req_data.mint.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:260:41 [INFO] [stdout] | [INFO] [stdout] 260 | Ok(req_data) => { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 261 | | let destination = req_data.destination.parse::(); [INFO] [stdout] 262 | | let mint = req_data.mint.parse::(); [INFO] [stdout] 263 | | let owner = req_data.owner.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 312 | | .unwrap()) [INFO] [stdout] 313 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:294:44 [INFO] [stdout] | [INFO] [stdout] 294 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 295 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 296 | | ... .status(StatusCode::OK) [INFO] [stdout] 297 | | ... .body(Body::from(json)) [INFO] [stdout] 298 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:308:29 [INFO] [stdout] | [INFO] [stdout] 308 | / ... Ok(Response::builder() [INFO] [stdout] 309 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 310 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 311 | | ... .body(Body::from(err)) [INFO] [stdout] 312 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:315:35 [INFO] [stdout] | [INFO] [stdout] 315 | Err(_) => { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 316 | | let err = serde_json::to_string(&SendTokenResponse { [INFO] [stdout] 317 | | success: false, [INFO] [stdout] 318 | | data: None, [INFO] [stdout] ... | [INFO] [stdout] 326 | | .unwrap()) [INFO] [stdout] 327 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:322:29 [INFO] [stdout] | [INFO] [stdout] 322 | / ... Ok(Response::builder() [INFO] [stdout] 323 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 324 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 325 | | ... .body(Body::from(err)) [INFO] [stdout] 326 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:334:45 [INFO] [stdout] | [INFO] [stdout] 334 | (&Method::POST, "/message/sign") => { [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 335 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 336 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 395 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:338:13 [INFO] [stdout] | [INFO] [stdout] 338 | / match parsed { [INFO] [stdout] 339 | | Ok(sign_req) => { [INFO] [stdout] 340 | | let decoded = bs58::decode(sign_req.secret).into_vec(); [INFO] [stdout] ... | [INFO] [stdout] 394 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:339:33 [INFO] [stdout] | [INFO] [stdout] 339 | Ok(sign_req) => { [INFO] [stdout] | _________________________________^ [INFO] [stdout] 340 | | let decoded = bs58::decode(sign_req.secret).into_vec(); [INFO] [stdout] 341 | | [INFO] [stdout] 342 | | if let Ok(secret_bytes) = decoded { [INFO] [stdout] ... | [INFO] [stdout] 379 | | .unwrap()) [INFO] [stdout] 380 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:360:40 [INFO] [stdout] | [INFO] [stdout] 360 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 361 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 362 | | ... .status(StatusCode::OK) [INFO] [stdout] 363 | | ... .body(Body::from(json)) [INFO] [stdout] 364 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:375:21 [INFO] [stdout] | [INFO] [stdout] 375 | / Ok(Response::builder() [INFO] [stdout] 376 | | .header("Content-Type", "application/json") [INFO] [stdout] 377 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 378 | | .body(Body::from(error_json)) [INFO] [stdout] 379 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:382:27 [INFO] [stdout] | [INFO] [stdout] 382 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 383 | | let error_json = json!({ [INFO] [stdout] 384 | | "success": false, [INFO] [stdout] 385 | | "error": "Missing required fields" [INFO] [stdout] ... | [INFO] [stdout] 392 | | .unwrap()) [INFO] [stdout] 393 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:388:21 [INFO] [stdout] | [INFO] [stdout] 388 | / Ok(Response::builder() [INFO] [stdout] 389 | | .header("Content-Type", "application/json") [INFO] [stdout] 390 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 391 | | .body(Body::from(error_json)) [INFO] [stdout] 392 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:397:53 [INFO] [stdout] | [INFO] [stdout] 397 | (&Method::POST, "/token/create") => { [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 398 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 399 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 467 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | / match parsed { [INFO] [stdout] 402 | | Ok(req_data) => { [INFO] [stdout] 403 | | let mint_pubkey = req_data.mint.parse::(); [INFO] [stdout] 404 | | let mint_auth = req_data.mintAuthority.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 466 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:402:41 [INFO] [stdout] | [INFO] [stdout] 402 | Ok(req_data) => { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 403 | | let mint_pubkey = req_data.mint.parse::(); [INFO] [stdout] 404 | | let mint_auth = req_data.mintAuthority.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 450 | | .unwrap()) [INFO] [stdout] 451 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:432:44 [INFO] [stdout] | [INFO] [stdout] 432 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 433 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 434 | | ... .status(StatusCode::OK) [INFO] [stdout] 435 | | ... .body(Body::from(json)) [INFO] [stdout] 436 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:446:29 [INFO] [stdout] | [INFO] [stdout] 446 | / ... Ok(Response::builder() [INFO] [stdout] 447 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 448 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 449 | | ... .body(Body::from(err)) [INFO] [stdout] 450 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:453:35 [INFO] [stdout] | [INFO] [stdout] 453 | Err(_) => { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 454 | | let err = serde_json::to_string(&TokenInstructionResponse { [INFO] [stdout] 455 | | success: false, [INFO] [stdout] 456 | | data: None, [INFO] [stdout] ... | [INFO] [stdout] 464 | | .unwrap()) [INFO] [stdout] 465 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:460:29 [INFO] [stdout] | [INFO] [stdout] 460 | / ... Ok(Response::builder() [INFO] [stdout] 461 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 462 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 463 | | ... .body(Body::from(err)) [INFO] [stdout] 464 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:470:51 [INFO] [stdout] | [INFO] [stdout] 470 | (&Method::POST, "/token/mint") => { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 471 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 472 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 544 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:474:21 [INFO] [stdout] | [INFO] [stdout] 474 | / match parsed { [INFO] [stdout] 475 | | Ok(req_data) => { [INFO] [stdout] 476 | | let mint_pubkey = req_data.mint.parse::(); [INFO] [stdout] 477 | | let authority_pubkey = req_data.authority.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 543 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:475:41 [INFO] [stdout] | [INFO] [stdout] 475 | Ok(req_data) => { [INFO] [stdout] | _________________________________________^ [INFO] [stdout] 476 | | let mint_pubkey = req_data.mint.parse::(); [INFO] [stdout] 477 | | let authority_pubkey = req_data.authority.parse::(); [INFO] [stdout] 478 | | let destination_pubkey = req_data.destination.parse::(); [INFO] [stdout] ... | [INFO] [stdout] 527 | | .unwrap()) [INFO] [stdout] 528 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:509:44 [INFO] [stdout] | [INFO] [stdout] 509 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 510 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 511 | | ... .status(StatusCode::OK) [INFO] [stdout] 512 | | ... .body(Body::from(json)) [INFO] [stdout] 513 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:523:29 [INFO] [stdout] | [INFO] [stdout] 523 | / ... Ok(Response::builder() [INFO] [stdout] 524 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 525 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 526 | | ... .body(Body::from(err)) [INFO] [stdout] 527 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:530:35 [INFO] [stdout] | [INFO] [stdout] 530 | Err(_) => { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 531 | | let err = serde_json::to_string(&TokenInstructionResponse { [INFO] [stdout] 532 | | success: false, [INFO] [stdout] 533 | | data: None, [INFO] [stdout] ... | [INFO] [stdout] 541 | | .unwrap()) [INFO] [stdout] 542 | | } [INFO] [stdout] | |_________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:537:29 [INFO] [stdout] | [INFO] [stdout] 537 | / ... Ok(Response::builder() [INFO] [stdout] 538 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 539 | | ... .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 540 | | ... .body(Body::from(err)) [INFO] [stdout] 541 | | ... .unwrap()) [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:548:47 [INFO] [stdout] | [INFO] [stdout] 548 | (&Method::POST, "/message/verify") => { [INFO] [stdout] | _______________________________________________^ [INFO] [stdout] 549 | | let body_bytes = hyper::body::to_bytes(req.into_body()).await.unwrap(); [INFO] [stdout] 550 | | let parsed: Result = serde_json::from_slice(&body_bytes); [INFO] [stdout] ... | [INFO] [stdout] 607 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:552:13 [INFO] [stdout] | [INFO] [stdout] 552 | / match parsed { [INFO] [stdout] 553 | | Ok(verify_req) => { [INFO] [stdout] 554 | | let pubkey_result = verify_req.pubkey.parse::(); [INFO] [stdout] 555 | | let sig_result = base64::decode(&verify_req.signature); [INFO] [stdout] ... | [INFO] [stdout] 606 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:553:35 [INFO] [stdout] | [INFO] [stdout] 553 | Ok(verify_req) => { [INFO] [stdout] | ___________________________________^ [INFO] [stdout] 554 | | let pubkey_result = verify_req.pubkey.parse::(); [INFO] [stdout] 555 | | let sig_result = base64::decode(&verify_req.signature); [INFO] [stdout] ... | [INFO] [stdout] 591 | | .unwrap()) [INFO] [stdout] 592 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:573:36 [INFO] [stdout] | [INFO] [stdout] 573 | ... return Ok(Response::builder() [INFO] [stdout] | ______________________________^ [INFO] [stdout] 574 | | ... .header("Content-Type", "application/json") [INFO] [stdout] 575 | | ... .status(StatusCode::OK) [INFO] [stdout] 576 | | ... .body(Body::from(json)) [INFO] [stdout] 577 | | ... .unwrap()); [INFO] [stdout] | |____________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:587:21 [INFO] [stdout] | [INFO] [stdout] 587 | / Ok(Response::builder() [INFO] [stdout] 588 | | .header("Content-Type", "application/json") [INFO] [stdout] 589 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 590 | | .body(Body::from(error_json)) [INFO] [stdout] 591 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:594:27 [INFO] [stdout] | [INFO] [stdout] 594 | Err(_) => { [INFO] [stdout] | ___________________________^ [INFO] [stdout] 595 | | let error_json = json!({ [INFO] [stdout] 596 | | "success": false, [INFO] [stdout] 597 | | "error": "Missing required fields" [INFO] [stdout] ... | [INFO] [stdout] 604 | | .unwrap()) [INFO] [stdout] 605 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:600:21 [INFO] [stdout] | [INFO] [stdout] 600 | / Ok(Response::builder() [INFO] [stdout] 601 | | .header("Content-Type", "application/json") [INFO] [stdout] 602 | | .status(StatusCode::BAD_REQUEST) [INFO] [stdout] 603 | | .body(Body::from(error_json)) [INFO] [stdout] 604 | | .unwrap()) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:610:14 [INFO] [stdout] | [INFO] [stdout] 610 | _ => { [INFO] [stdout] | ______________^ [INFO] [stdout] 611 | | let mut not_found = Response::default(); [INFO] [stdout] 612 | | *not_found.status_mut() = StatusCode::NOT_FOUND; [INFO] [stdout] 613 | | Ok(not_found) [INFO] [stdout] 614 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:613:13 [INFO] [stdout] | [INFO] [stdout] 613 | Ok(not_found) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result) -> impl std::future::Future, std::convert::Infallible>> {handle_request}, Body>, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:622:50 [INFO] [stdout] | [INFO] [stdout] 622 | let make_svc = make_service_fn(|_conn| async { [INFO] [stdout] | __________________________________________________^ [INFO] [stdout] 623 | | Ok::<_, Infallible>(service_fn(handle_request)) [INFO] [stdout] 624 | | }); [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result) -> impl std::future::Future, std::convert::Infallible>> {handle_request}, Body>, std::convert::Infallible> [INFO] [stdout] --> src/main.rs:623:9 [INFO] [stdout] | [INFO] [stdout] 623 | Ok::<_, Infallible>(service_fn(handle_request)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-http-server` (bin "rust-http-server" test) due to 54 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "116348f075d9194addd9f63f1768db5e62353f5b994706c1ded02916a19c1875", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "116348f075d9194addd9f63f1768db5e62353f5b994706c1ded02916a19c1875", kill_on_drop: false }` [INFO] [stdout] 116348f075d9194addd9f63f1768db5e62353f5b994706c1ded02916a19c1875