[INFO] cloning repository https://github.com/Arnauld/jwtd [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Arnauld/jwtd" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArnauld%2Fjwtd", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FArnauld%2Fjwtd'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fc8a206d8551d3de8daa4bd86d9032d394eac49f [INFO] checking Arnauld/jwtd 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%2FArnauld%2Fjwtd" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Arnauld/jwtd [INFO] finished tweaking git repo https://github.com/Arnauld/jwtd [INFO] tweaked toml for git repo https://github.com/Arnauld/jwtd written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Arnauld/jwtd 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/Arnauld/jwtd 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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 23e7ef9c62c786c6fbd2cf8d3817baf8e4e2d87ddba7c66dc55594a11f549ee3 [INFO] running `Command { std: "docker" "start" "-a" "23e7ef9c62c786c6fbd2cf8d3817baf8e4e2d87ddba7c66dc55594a11f549ee3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23e7ef9c62c786c6fbd2cf8d3817baf8e4e2d87ddba7c66dc55594a11f549ee3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23e7ef9c62c786c6fbd2cf8d3817baf8e4e2d87ddba7c66dc55594a11f549ee3", kill_on_drop: false }` [INFO] [stdout] 23e7ef9c62c786c6fbd2cf8d3817baf8e4e2d87ddba7c66dc55594a11f549ee3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 2dad5caf7836f9f77686e96634ca5bea055243ab2dfbd82ae5d6dc4188180a61 [INFO] running `Command { std: "docker" "start" "-a" "2dad5caf7836f9f77686e96634ca5bea055243ab2dfbd82ae5d6dc4188180a61", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking pem-rfc7468 v0.6.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling cc v1.1.18 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking der v0.6.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking pem v2.0.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking bcrypt v0.14.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking spki v0.6.0 [INFO] [stderr] Checking pkcs8 v0.9.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking pkcs1 v0.4.1 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking headers-core v0.2.0 [INFO] [stderr] Checking headers v0.3.9 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tokio-macros v2.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling ctor v0.2.8 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking tokio v1.38.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking thiserror v1.0.63 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking rsa v0.8.2 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking jsonwebtoken v8.3.0 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking warp v0.3.7 [INFO] [stderr] Checking jwtd v0.6.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `used_linker` [INFO] [stdout] --> src/main.rs:582:5 [INFO] [stdout] | [INFO] [stdout] 582 | #[ctor::ctor] // see https://stackoverflow.com/a/63442117 [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `ctor::ctor` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `ctor::ctor` may come from an old version of the `ctor` crate, try updating your dependency with `cargo update -p ctor` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `ctor::ctor` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:125:51 [INFO] [stdout] | [INFO] [stdout] 125 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 126 | | log::debug!("sign_claims: {:?} // {:?}", body, sign_opts); [INFO] [stdout] 127 | | let claims = match sign_opts.generate { [INFO] [stdout] 128 | | Some(generate) => match body { [INFO] [stdout] ... | [INFO] [stdout] 171 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:125:51 [INFO] [stdout] | [INFO] [stdout] 125 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 126 | | log::debug!("sign_claims: {:?} // {:?}", body, sign_opts); [INFO] [stdout] 127 | | let claims = match sign_opts.generate { [INFO] [stdout] 128 | | Some(generate) => match body { [INFO] [stdout] ... | [INFO] [stdout] 171 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | / match generate_token(&claims, &encoding_key) { [INFO] [stdout] 162 | | Ok(token) => Ok(warp::reply::with_status(token, StatusCode::OK)), [INFO] [stdout] 163 | | Err(err) => { [INFO] [stdout] 164 | | log::error!("Ouch... {}", err); [INFO] [stdout] ... | [INFO] [stdout] 170 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:162:22 [INFO] [stdout] | [INFO] [stdout] 162 | Ok(token) => Ok(warp::reply::with_status(token, StatusCode::OK)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | Err(err) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 164 | | log::error!("Ouch... {}", err); [INFO] [stdout] 165 | | Ok(warp::reply::with_status( [INFO] [stdout] 166 | | format!("Something bad happened: {:?}", err).to_string(), [INFO] [stdout] 167 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 168 | | )) [INFO] [stdout] 169 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | / Ok(warp::reply::with_status( [INFO] [stdout] 166 | | format!("Something bad happened: {:?}", err).to_string(), [INFO] [stdout] 167 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 168 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:187:51 [INFO] [stdout] | [INFO] [stdout] 187 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 188 | | log::debug!("verify_token: {:?}", body); [INFO] [stdout] 189 | | [INFO] [stdout] 190 | | match decode_token(body, decoding_key, validation) { [INFO] [stdout] ... | [INFO] [stdout] 219 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:187:51 [INFO] [stdout] | [INFO] [stdout] 187 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 188 | | log::debug!("verify_token: {:?}", body); [INFO] [stdout] 189 | | [INFO] [stdout] 190 | | match decode_token(body, decoding_key, validation) { [INFO] [stdout] ... | [INFO] [stdout] 219 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | / match decode_token(body, decoding_key, validation) { [INFO] [stdout] 191 | | Ok(claims) => { [INFO] [stdout] 192 | | log::info!("Token verification successful... {:?}", claims); [INFO] [stdout] 193 | | Ok(warp::reply::with_status( [INFO] [stdout] ... | [INFO] [stdout] 218 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:191:23 [INFO] [stdout] | [INFO] [stdout] 191 | Ok(claims) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 192 | | log::info!("Token verification successful... {:?}", claims); [INFO] [stdout] 193 | | Ok(warp::reply::with_status( [INFO] [stdout] 194 | | warp::reply::json(&claims), [INFO] [stdout] 195 | | StatusCode::OK, [INFO] [stdout] 196 | | )) [INFO] [stdout] 197 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | / Ok(warp::reply::with_status( [INFO] [stdout] 194 | | warp::reply::json(&claims), [INFO] [stdout] 195 | | StatusCode::OK, [INFO] [stdout] 196 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | Err(err) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 199 | | let error_code = match err.kind() { [INFO] [stdout] 200 | | ErrorKind::TokenError(e) => { [INFO] [stdout] 201 | | log::info!("Token verification failed... {:?}", e); [INFO] [stdout] ... | [INFO] [stdout] 216 | | )) [INFO] [stdout] 217 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | / Ok(warp::reply::with_status( [INFO] [stdout] 211 | | warp::reply::json(&ErrorDTO { [INFO] [stdout] 212 | | error_code: error_code, [INFO] [stdout] 213 | | message: format!("Something bad happened: {:?}", err).to_string(), [INFO] [stdout] 214 | | }), [INFO] [stdout] 215 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 216 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:243:51 [INFO] [stdout] | [INFO] [stdout] 243 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 244 | | log::debug!("encrypt_payload: {:?}", body); [INFO] [stdout] 245 | | match encrypt_content(&body, public_key) { [INFO] [stdout] 246 | | Ok(content) => { [INFO] [stdout] ... | [INFO] [stdout] 258 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:243:51 [INFO] [stdout] | [INFO] [stdout] 243 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 244 | | log::debug!("encrypt_payload: {:?}", body); [INFO] [stdout] 245 | | match encrypt_content(&body, public_key) { [INFO] [stdout] 246 | | Ok(content) => { [INFO] [stdout] ... | [INFO] [stdout] 258 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 245 | / match encrypt_content(&body, public_key) { [INFO] [stdout] 246 | | Ok(content) => { [INFO] [stdout] 247 | | log::info!("Encryption successful... {:?}", content); [INFO] [stdout] 248 | | Ok(warp::reply::with_status( [INFO] [stdout] ... | [INFO] [stdout] 256 | | )), [INFO] [stdout] 257 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:246:24 [INFO] [stdout] | [INFO] [stdout] 246 | Ok(content) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 247 | | log::info!("Encryption successful... {:?}", content); [INFO] [stdout] 248 | | Ok(warp::reply::with_status( [INFO] [stdout] 249 | | general_purpose::STANDARD.encode(content), [INFO] [stdout] 250 | | StatusCode::OK, [INFO] [stdout] 251 | | )) [INFO] [stdout] 252 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | / Ok(warp::reply::with_status( [INFO] [stdout] 249 | | general_purpose::STANDARD.encode(content), [INFO] [stdout] 250 | | StatusCode::OK, [INFO] [stdout] 251 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:253:21 [INFO] [stdout] | [INFO] [stdout] 253 | Err(err) => Ok(warp::reply::with_status( [INFO] [stdout] | _____________________^ [INFO] [stdout] 254 | | format!("Encryption failed: {:?}", err).to_string(), [INFO] [stdout] 255 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 256 | | )), [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:263:51 [INFO] [stdout] | [INFO] [stdout] 263 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 264 | | log::debug!("decrypt_payload: {:?}", body); [INFO] [stdout] 265 | | match general_purpose::STANDARD.decode(body) { [INFO] [stdout] 266 | | Ok(decoded) => { [INFO] [stdout] ... | [INFO] [stdout] 293 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:263:51 [INFO] [stdout] | [INFO] [stdout] 263 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 264 | | log::debug!("decrypt_payload: {:?}", body); [INFO] [stdout] 265 | | match general_purpose::STANDARD.decode(body) { [INFO] [stdout] 266 | | Ok(decoded) => { [INFO] [stdout] ... | [INFO] [stdout] 293 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:265:5 [INFO] [stdout] | [INFO] [stdout] 265 | / match general_purpose::STANDARD.decode(body) { [INFO] [stdout] 266 | | Ok(decoded) => { [INFO] [stdout] 267 | | let decoded_bytes = Bytes::from(decoded); [INFO] [stdout] 268 | | match decrypt_content(&decoded_bytes, private_key) { [INFO] [stdout] ... | [INFO] [stdout] 292 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:266:24 [INFO] [stdout] | [INFO] [stdout] 266 | Ok(decoded) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 267 | | let decoded_bytes = Bytes::from(decoded); [INFO] [stdout] 268 | | match decrypt_content(&decoded_bytes, private_key) { [INFO] [stdout] 269 | | Ok(content) => { [INFO] [stdout] ... | [INFO] [stdout] 284 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | / match decrypt_content(&decoded_bytes, private_key) { [INFO] [stdout] 269 | | Ok(content) => { [INFO] [stdout] 270 | | log::info!("Decryption successful... {:?}", content); [INFO] [stdout] 271 | | Ok(warp::reply::with_status( [INFO] [stdout] ... | [INFO] [stdout] 283 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:269:32 [INFO] [stdout] | [INFO] [stdout] 269 | Ok(content) => { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 270 | | log::info!("Decryption successful... {:?}", content); [INFO] [stdout] 271 | | Ok(warp::reply::with_status( [INFO] [stdout] 272 | | general_purpose::STANDARD.encode(content), [INFO] [stdout] 273 | | StatusCode::OK, [INFO] [stdout] 274 | | )) [INFO] [stdout] 275 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:271:21 [INFO] [stdout] | [INFO] [stdout] 271 | / Ok(warp::reply::with_status( [INFO] [stdout] 272 | | general_purpose::STANDARD.encode(content), [INFO] [stdout] 273 | | StatusCode::OK, [INFO] [stdout] 274 | | )) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:276:29 [INFO] [stdout] | [INFO] [stdout] 276 | Err(err) => { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 277 | | log::info!("Decryption failed... {:?}", err); [INFO] [stdout] 278 | | Ok(warp::reply::with_status( [INFO] [stdout] 279 | | format!("Decryption failed: {:?}", err).to_string(), [INFO] [stdout] 280 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 281 | | )) [INFO] [stdout] 282 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:278:21 [INFO] [stdout] | [INFO] [stdout] 278 | / Ok(warp::reply::with_status( [INFO] [stdout] 279 | | format!("Decryption failed: {:?}", err).to_string(), [INFO] [stdout] 280 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 281 | | )) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:285:21 [INFO] [stdout] | [INFO] [stdout] 285 | Err(err) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 286 | | log::info!("Decryption failed... {:?}", err); [INFO] [stdout] 287 | | Ok(warp::reply::with_status( [INFO] [stdout] 288 | | format!("Decryption failed (invalid base64 payload) {:?}", err).to_string(), [INFO] [stdout] 289 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 290 | | )) [INFO] [stdout] 291 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:287:13 [INFO] [stdout] | [INFO] [stdout] 287 | / Ok(warp::reply::with_status( [INFO] [stdout] 288 | | format!("Decryption failed (invalid base64 payload) {:?}", err).to_string(), [INFO] [stdout] 289 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 290 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:399:97 [INFO] [stdout] | [INFO] [stdout] 399 | pub async fn bcrypt_check(body: BcryptCheckDTO) -> result::Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 400 | | log::debug!("bcryp_check: {:?}", body); [INFO] [stdout] 401 | | [INFO] [stdout] 402 | | match bcrypt::verify(body.plain, body.hash.as_str()) { [INFO] [stdout] ... | [INFO] [stdout] 424 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:399:97 [INFO] [stdout] | [INFO] [stdout] 399 | pub async fn bcrypt_check(body: BcryptCheckDTO) -> result::Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 400 | | log::debug!("bcryp_check: {:?}", body); [INFO] [stdout] 401 | | [INFO] [stdout] 402 | | match bcrypt::verify(body.plain, body.hash.as_str()) { [INFO] [stdout] ... | [INFO] [stdout] 424 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | / match bcrypt::verify(body.plain, body.hash.as_str()) { [INFO] [stdout] 403 | | Ok(is_valid) => { [INFO] [stdout] 404 | | log::info!("Bcrypt check: {:?}", is_valid); [INFO] [stdout] 405 | | Ok(warp::reply::with_status( [INFO] [stdout] ... | [INFO] [stdout] 423 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:403:25 [INFO] [stdout] | [INFO] [stdout] 403 | Ok(is_valid) => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 404 | | log::info!("Bcrypt check: {:?}", is_valid); [INFO] [stdout] 405 | | Ok(warp::reply::with_status( [INFO] [stdout] 406 | | warp::reply::json(&BcryptCheckResultDTO { [INFO] [stdout] ... | [INFO] [stdout] 411 | | )) [INFO] [stdout] 412 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | / Ok(warp::reply::with_status( [INFO] [stdout] 406 | | warp::reply::json(&BcryptCheckResultDTO { [INFO] [stdout] 407 | | password_valid: is_valid, [INFO] [stdout] 408 | | error: None, [INFO] [stdout] 409 | | }), [INFO] [stdout] 410 | | StatusCode::OK, [INFO] [stdout] 411 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:413:19 [INFO] [stdout] | [INFO] [stdout] 413 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 414 | | log::info!("Bcrypt check: {:?}", e); [INFO] [stdout] 415 | | Ok(warp::reply::with_status( [INFO] [stdout] 416 | | warp::reply::json(&BcryptCheckResultDTO { [INFO] [stdout] ... | [INFO] [stdout] 421 | | )) [INFO] [stdout] 422 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:415:13 [INFO] [stdout] | [INFO] [stdout] 415 | / Ok(warp::reply::with_status( [INFO] [stdout] 416 | | warp::reply::json(&BcryptCheckResultDTO { [INFO] [stdout] 417 | | password_valid: false, [INFO] [stdout] 418 | | error: Some(format!("{:?}", e)), [INFO] [stdout] 419 | | }), [INFO] [stdout] 420 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 421 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jwtd` (bin "jwtd") due to 37 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:125:51 [INFO] [stdout] | [INFO] [stdout] 125 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 126 | | log::debug!("sign_claims: {:?} // {:?}", body, sign_opts); [INFO] [stdout] 127 | | let claims = match sign_opts.generate { [INFO] [stdout] 128 | | Some(generate) => match body { [INFO] [stdout] ... | [INFO] [stdout] 171 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:125:51 [INFO] [stdout] | [INFO] [stdout] 125 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 126 | | log::debug!("sign_claims: {:?} // {:?}", body, sign_opts); [INFO] [stdout] 127 | | let claims = match sign_opts.generate { [INFO] [stdout] 128 | | Some(generate) => match body { [INFO] [stdout] ... | [INFO] [stdout] 171 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | / match generate_token(&claims, &encoding_key) { [INFO] [stdout] 162 | | Ok(token) => Ok(warp::reply::with_status(token, StatusCode::OK)), [INFO] [stdout] 163 | | Err(err) => { [INFO] [stdout] 164 | | log::error!("Ouch... {}", err); [INFO] [stdout] ... | [INFO] [stdout] 170 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:162:22 [INFO] [stdout] | [INFO] [stdout] 162 | Ok(token) => Ok(warp::reply::with_status(token, StatusCode::OK)), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | Err(err) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 164 | | log::error!("Ouch... {}", err); [INFO] [stdout] 165 | | Ok(warp::reply::with_status( [INFO] [stdout] 166 | | format!("Something bad happened: {:?}", err).to_string(), [INFO] [stdout] 167 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 168 | | )) [INFO] [stdout] 169 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | / Ok(warp::reply::with_status( [INFO] [stdout] 166 | | format!("Something bad happened: {:?}", err).to_string(), [INFO] [stdout] 167 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 168 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:187:51 [INFO] [stdout] | [INFO] [stdout] 187 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 188 | | log::debug!("verify_token: {:?}", body); [INFO] [stdout] 189 | | [INFO] [stdout] 190 | | match decode_token(body, decoding_key, validation) { [INFO] [stdout] ... | [INFO] [stdout] 219 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:187:51 [INFO] [stdout] | [INFO] [stdout] 187 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 188 | | log::debug!("verify_token: {:?}", body); [INFO] [stdout] 189 | | [INFO] [stdout] 190 | | match decode_token(body, decoding_key, validation) { [INFO] [stdout] ... | [INFO] [stdout] 219 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:190:5 [INFO] [stdout] | [INFO] [stdout] 190 | / match decode_token(body, decoding_key, validation) { [INFO] [stdout] 191 | | Ok(claims) => { [INFO] [stdout] 192 | | log::info!("Token verification successful... {:?}", claims); [INFO] [stdout] 193 | | Ok(warp::reply::with_status( [INFO] [stdout] ... | [INFO] [stdout] 218 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:191:23 [INFO] [stdout] | [INFO] [stdout] 191 | Ok(claims) => { [INFO] [stdout] | _______________________^ [INFO] [stdout] 192 | | log::info!("Token verification successful... {:?}", claims); [INFO] [stdout] 193 | | Ok(warp::reply::with_status( [INFO] [stdout] 194 | | warp::reply::json(&claims), [INFO] [stdout] 195 | | StatusCode::OK, [INFO] [stdout] 196 | | )) [INFO] [stdout] 197 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | / Ok(warp::reply::with_status( [INFO] [stdout] 194 | | warp::reply::json(&claims), [INFO] [stdout] 195 | | StatusCode::OK, [INFO] [stdout] 196 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:198:21 [INFO] [stdout] | [INFO] [stdout] 198 | Err(err) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 199 | | let error_code = match err.kind() { [INFO] [stdout] 200 | | ErrorKind::TokenError(e) => { [INFO] [stdout] 201 | | log::info!("Token verification failed... {:?}", e); [INFO] [stdout] ... | [INFO] [stdout] 216 | | )) [INFO] [stdout] 217 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | / Ok(warp::reply::with_status( [INFO] [stdout] 211 | | warp::reply::json(&ErrorDTO { [INFO] [stdout] 212 | | error_code: error_code, [INFO] [stdout] 213 | | message: format!("Something bad happened: {:?}", err).to_string(), [INFO] [stdout] 214 | | }), [INFO] [stdout] 215 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 216 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:243:51 [INFO] [stdout] | [INFO] [stdout] 243 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 244 | | log::debug!("encrypt_payload: {:?}", body); [INFO] [stdout] 245 | | match encrypt_content(&body, public_key) { [INFO] [stdout] 246 | | Ok(content) => { [INFO] [stdout] ... | [INFO] [stdout] 258 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:243:51 [INFO] [stdout] | [INFO] [stdout] 243 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 244 | | log::debug!("encrypt_payload: {:?}", body); [INFO] [stdout] 245 | | match encrypt_content(&body, public_key) { [INFO] [stdout] 246 | | Ok(content) => { [INFO] [stdout] ... | [INFO] [stdout] 258 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:245:5 [INFO] [stdout] | [INFO] [stdout] 245 | / match encrypt_content(&body, public_key) { [INFO] [stdout] 246 | | Ok(content) => { [INFO] [stdout] 247 | | log::info!("Encryption successful... {:?}", content); [INFO] [stdout] 248 | | Ok(warp::reply::with_status( [INFO] [stdout] ... | [INFO] [stdout] 256 | | )), [INFO] [stdout] 257 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:246:24 [INFO] [stdout] | [INFO] [stdout] 246 | Ok(content) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 247 | | log::info!("Encryption successful... {:?}", content); [INFO] [stdout] 248 | | Ok(warp::reply::with_status( [INFO] [stdout] 249 | | general_purpose::STANDARD.encode(content), [INFO] [stdout] 250 | | StatusCode::OK, [INFO] [stdout] 251 | | )) [INFO] [stdout] 252 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | / Ok(warp::reply::with_status( [INFO] [stdout] 249 | | general_purpose::STANDARD.encode(content), [INFO] [stdout] 250 | | StatusCode::OK, [INFO] [stdout] 251 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:253:21 [INFO] [stdout] | [INFO] [stdout] 253 | Err(err) => Ok(warp::reply::with_status( [INFO] [stdout] | _____________________^ [INFO] [stdout] 254 | | format!("Encryption failed: {:?}", err).to_string(), [INFO] [stdout] 255 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 256 | | )), [INFO] [stdout] | |__________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:263:51 [INFO] [stdout] | [INFO] [stdout] 263 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 264 | | log::debug!("decrypt_payload: {:?}", body); [INFO] [stdout] 265 | | match general_purpose::STANDARD.decode(body) { [INFO] [stdout] 266 | | Ok(decoded) => { [INFO] [stdout] ... | [INFO] [stdout] 293 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:263:51 [INFO] [stdout] | [INFO] [stdout] 263 | ) -> result::Result { [INFO] [stdout] | ___________________________________________________^ [INFO] [stdout] 264 | | log::debug!("decrypt_payload: {:?}", body); [INFO] [stdout] 265 | | match general_purpose::STANDARD.decode(body) { [INFO] [stdout] 266 | | Ok(decoded) => { [INFO] [stdout] ... | [INFO] [stdout] 293 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:265:5 [INFO] [stdout] | [INFO] [stdout] 265 | / match general_purpose::STANDARD.decode(body) { [INFO] [stdout] 266 | | Ok(decoded) => { [INFO] [stdout] 267 | | let decoded_bytes = Bytes::from(decoded); [INFO] [stdout] 268 | | match decrypt_content(&decoded_bytes, private_key) { [INFO] [stdout] ... | [INFO] [stdout] 292 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:266:24 [INFO] [stdout] | [INFO] [stdout] 266 | Ok(decoded) => { [INFO] [stdout] | ________________________^ [INFO] [stdout] 267 | | let decoded_bytes = Bytes::from(decoded); [INFO] [stdout] 268 | | match decrypt_content(&decoded_bytes, private_key) { [INFO] [stdout] 269 | | Ok(content) => { [INFO] [stdout] ... | [INFO] [stdout] 284 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | / match decrypt_content(&decoded_bytes, private_key) { [INFO] [stdout] 269 | | Ok(content) => { [INFO] [stdout] 270 | | log::info!("Decryption successful... {:?}", content); [INFO] [stdout] 271 | | Ok(warp::reply::with_status( [INFO] [stdout] ... | [INFO] [stdout] 283 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:269:32 [INFO] [stdout] | [INFO] [stdout] 269 | Ok(content) => { [INFO] [stdout] | ________________________________^ [INFO] [stdout] 270 | | log::info!("Decryption successful... {:?}", content); [INFO] [stdout] 271 | | Ok(warp::reply::with_status( [INFO] [stdout] 272 | | general_purpose::STANDARD.encode(content), [INFO] [stdout] 273 | | StatusCode::OK, [INFO] [stdout] 274 | | )) [INFO] [stdout] 275 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:271:21 [INFO] [stdout] | [INFO] [stdout] 271 | / Ok(warp::reply::with_status( [INFO] [stdout] 272 | | general_purpose::STANDARD.encode(content), [INFO] [stdout] 273 | | StatusCode::OK, [INFO] [stdout] 274 | | )) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:276:29 [INFO] [stdout] | [INFO] [stdout] 276 | Err(err) => { [INFO] [stdout] | _____________________________^ [INFO] [stdout] 277 | | log::info!("Decryption failed... {:?}", err); [INFO] [stdout] 278 | | Ok(warp::reply::with_status( [INFO] [stdout] 279 | | format!("Decryption failed: {:?}", err).to_string(), [INFO] [stdout] 280 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 281 | | )) [INFO] [stdout] 282 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:278:21 [INFO] [stdout] | [INFO] [stdout] 278 | / Ok(warp::reply::with_status( [INFO] [stdout] 279 | | format!("Decryption failed: {:?}", err).to_string(), [INFO] [stdout] 280 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 281 | | )) [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:285:21 [INFO] [stdout] | [INFO] [stdout] 285 | Err(err) => { [INFO] [stdout] | _____________________^ [INFO] [stdout] 286 | | log::info!("Decryption failed... {:?}", err); [INFO] [stdout] 287 | | Ok(warp::reply::with_status( [INFO] [stdout] 288 | | format!("Decryption failed (invalid base64 payload) {:?}", err).to_string(), [INFO] [stdout] 289 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 290 | | )) [INFO] [stdout] 291 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:287:13 [INFO] [stdout] | [INFO] [stdout] 287 | / Ok(warp::reply::with_status( [INFO] [stdout] 288 | | format!("Decryption failed (invalid base64 payload) {:?}", err).to_string(), [INFO] [stdout] 289 | | StatusCode::INTERNAL_SERVER_ERROR, [INFO] [stdout] 290 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:399:97 [INFO] [stdout] | [INFO] [stdout] 399 | pub async fn bcrypt_check(body: BcryptCheckDTO) -> result::Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 400 | | log::debug!("bcryp_check: {:?}", body); [INFO] [stdout] 401 | | [INFO] [stdout] 402 | | match bcrypt::verify(body.plain, body.hash.as_str()) { [INFO] [stdout] ... | [INFO] [stdout] 424 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:399:97 [INFO] [stdout] | [INFO] [stdout] 399 | pub async fn bcrypt_check(body: BcryptCheckDTO) -> result::Result { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 400 | | log::debug!("bcryp_check: {:?}", body); [INFO] [stdout] 401 | | [INFO] [stdout] 402 | | match bcrypt::verify(body.plain, body.hash.as_str()) { [INFO] [stdout] ... | [INFO] [stdout] 424 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:402:5 [INFO] [stdout] | [INFO] [stdout] 402 | / match bcrypt::verify(body.plain, body.hash.as_str()) { [INFO] [stdout] 403 | | Ok(is_valid) => { [INFO] [stdout] 404 | | log::info!("Bcrypt check: {:?}", is_valid); [INFO] [stdout] 405 | | Ok(warp::reply::with_status( [INFO] [stdout] ... | [INFO] [stdout] 423 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:403:25 [INFO] [stdout] | [INFO] [stdout] 403 | Ok(is_valid) => { [INFO] [stdout] | _________________________^ [INFO] [stdout] 404 | | log::info!("Bcrypt check: {:?}", is_valid); [INFO] [stdout] 405 | | Ok(warp::reply::with_status( [INFO] [stdout] 406 | | warp::reply::json(&BcryptCheckResultDTO { [INFO] [stdout] ... | [INFO] [stdout] 411 | | )) [INFO] [stdout] 412 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | / Ok(warp::reply::with_status( [INFO] [stdout] 406 | | warp::reply::json(&BcryptCheckResultDTO { [INFO] [stdout] 407 | | password_valid: is_valid, [INFO] [stdout] 408 | | error: None, [INFO] [stdout] 409 | | }), [INFO] [stdout] 410 | | StatusCode::OK, [INFO] [stdout] 411 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:413:19 [INFO] [stdout] | [INFO] [stdout] 413 | Err(e) => { [INFO] [stdout] | ___________________^ [INFO] [stdout] 414 | | log::info!("Bcrypt check: {:?}", e); [INFO] [stdout] 415 | | Ok(warp::reply::with_status( [INFO] [stdout] 416 | | warp::reply::json(&BcryptCheckResultDTO { [INFO] [stdout] ... | [INFO] [stdout] 421 | | )) [INFO] [stdout] 422 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result, Infallible> [INFO] [stdout] --> src/main.rs:415:13 [INFO] [stdout] | [INFO] [stdout] 415 | / Ok(warp::reply::with_status( [INFO] [stdout] 416 | | warp::reply::json(&BcryptCheckResultDTO { [INFO] [stdout] 417 | | password_valid: false, [INFO] [stdout] 418 | | error: Some(format!("{:?}", e)), [INFO] [stdout] 419 | | }), [INFO] [stdout] 420 | | StatusCode::BAD_REQUEST, [INFO] [stdout] 421 | | )) [INFO] [stdout] | |______________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jwtd` (bin "jwtd" test) due to 37 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "2dad5caf7836f9f77686e96634ca5bea055243ab2dfbd82ae5d6dc4188180a61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2dad5caf7836f9f77686e96634ca5bea055243ab2dfbd82ae5d6dc4188180a61", kill_on_drop: false }` [INFO] [stdout] 2dad5caf7836f9f77686e96634ca5bea055243ab2dfbd82ae5d6dc4188180a61