[INFO] cloning repository https://github.com/eridio/poc_thales_doctolib [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eridio/poc_thales_doctolib" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feridio%2Fpoc_thales_doctolib", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feridio%2Fpoc_thales_doctolib'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f7c010dff4242ea9353465573ed688077258414e [INFO] checking eridio/poc_thales_doctolib against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feridio%2Fpoc_thales_doctolib" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eridio/poc_thales_doctolib on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eridio/poc_thales_doctolib [INFO] finished tweaking git repo https://github.com/eridio/poc_thales_doctolib [INFO] tweaked toml for git repo https://github.com/eridio/poc_thales_doctolib written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/eridio/poc_thales_doctolib 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded actix-web-httpauth v0.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fdf13b4b32e12fd870a0e07664e38de35dca11db02b5454265075393f2e27c29 [INFO] running `Command { std: "docker" "start" "-a" "fdf13b4b32e12fd870a0e07664e38de35dca11db02b5454265075393f2e27c29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fdf13b4b32e12fd870a0e07664e38de35dca11db02b5454265075393f2e27c29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdf13b4b32e12fd870a0e07664e38de35dca11db02b5454265075393f2e27c29", kill_on_drop: false }` [INFO] [stdout] fdf13b4b32e12fd870a0e07664e38de35dca11db02b5454265075393f2e27c29 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 201ba95ca3f4b83df0bb8a6f2bd040b74f1d5e48c7661583d042d1510272842b [INFO] running `Command { std: "docker" "start" "-a" "201ba95ca3f4b83df0bb8a6f2bd040b74f1d5e48c7661583d042d1510272842b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Checking tracing-core v0.1.26 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking once_cell v1.11.0 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking alloc-no-stdlib v2.0.3 [INFO] [stderr] Checking miniz_oxide v0.5.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking alloc-stdlib v0.2.1 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking http v0.2.7 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking parking_lot_core v0.8.5 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Checking brotli-decompressor v2.3.2 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking flate2 v1.0.23 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking regex v1.5.6 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling backtrace v0.3.65 [INFO] [stderr] Checking bytestring v1.0.0 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Checking gimli v0.26.1 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking object v0.28.4 [INFO] [stderr] Checking brotli v3.3.4 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking owo-colors v1.3.0 [INFO] [stderr] Checking serde v0.8.23 [INFO] [stderr] Checking matchers v0.0.1 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Checking pem v0.8.3 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking rust-ini v0.13.0 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking validator_types v0.14.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking serde-hjson v0.9.1 [INFO] [stderr] Checking addr2line v0.17.0 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling tracing-attributes v0.1.21 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling validator_derive v0.14.0 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking tracing v0.1.34 [INFO] [stderr] Checking pin-project v0.4.29 [INFO] [stderr] Checking actix-codec v0.3.0 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking actix-threadpool v0.3.3 [INFO] [stderr] Checking actix-service v1.0.6 [INFO] [stderr] Checking actix-rt v1.1.1 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking trust-dns-proto v0.19.7 [INFO] [stderr] Checking actix-utils v2.0.0 [INFO] [stderr] Checking actix-server v1.0.4 [INFO] [stderr] Checking actix-tls v2.0.0 [INFO] [stderr] Checking actix-testing v1.0.1 [INFO] [stderr] Checking trust-dns-resolver v0.19.7 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking tracing-serde v0.1.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking actix-router v0.2.7 [INFO] [stderr] Checking toml v0.5.9 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking actix-connect v2.0.0 [INFO] [stderr] Checking simple_asn1 v0.4.1 [INFO] [stderr] Checking tracing-subscriber v0.2.25 [INFO] [stderr] Checking validator v0.14.0 [INFO] [stderr] Checking config v0.11.0 [INFO] [stderr] Checking jsonwebtoken v7.2.0 [INFO] [stderr] Checking actix-http v2.2.2 [INFO] [stderr] Checking tracing-error v0.1.2 [INFO] [stderr] Checking color-spantrace v0.1.6 [INFO] [stderr] Checking color-eyre v0.5.11 [INFO] [stderr] Checking awc v2.0.3 [INFO] [stderr] Checking actix-web v3.3.3 [INFO] [stderr] Checking actix-web-httpauth v0.5.1 [INFO] [stderr] Checking thales_challenge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `futures::compat::Future01CompatExt` [INFO] [stdout] --> src/config/crypto.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::compat::Future01CompatExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::compat::Future01CompatExt` [INFO] [stdout] --> src/config/crypto.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::compat::Future01CompatExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/config/crypto.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/config/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/config/crypto.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/config/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::AppResponse` [INFO] [stdout] --> src/handlers/signin.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::AppResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::AppResponse` [INFO] [stdout] --> src/handlers/signin.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::AppResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `authentication::CookieJWT` [INFO] [stdout] --> src/handlers/signin.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use super::{authentication::AuthenticatedUser, authentication::CookieJWT}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `authentication::CookieJWT` [INFO] [stdout] --> src/handlers/signin.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use super::{authentication::AuthenticatedUser, authentication::CookieJWT}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppErrorCode`, `AppError`, and `Auth` [INFO] [stdout] --> src/handlers/signin.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | config::crypto::{Auth, CryptoService}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | [INFO] [stdout] 6 | errors::{AppErrorCode,AppError}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequest`, `dev::HttpResponseBuilder`, `get`, and `web::Payload` [INFO] [stdout] --> src/handlers/signin.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use actix_web::{web::Payload,web::Data,web::Form, FromRequest, HttpResponse, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessa... [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppErrorCode`, `AppError`, and `Auth` [INFO] [stdout] --> src/handlers/signin.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | config::crypto::{Auth, CryptoService}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | [INFO] [stdout] 6 | errors::{AppErrorCode,AppError}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxFuture` and `ready` [INFO] [stdout] --> src/handlers/signin.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::future::{ready, BoxFuture}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `instrument` [INFO] [stdout] --> src/handlers/signin.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use tracing::{debug, instrument}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/handlers/signin.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequest`, `dev::HttpResponseBuilder`, `get`, and `web::Payload` [INFO] [stdout] --> src/handlers/signin.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use actix_web::{web::Payload,web::Data,web::Form, FromRequest, HttpResponse, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessa... [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxFuture` and `ready` [INFO] [stdout] --> src/handlers/signin.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::future::{ready, BoxFuture}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | if (username == "patient" && password == "patient") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - if (username == "patient" && password == "patient") { [INFO] [stdout] 23 + if username == "patient" && password == "patient" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `instrument` [INFO] [stdout] --> src/handlers/signin.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use tracing::{debug, instrument}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | else if (username == "infirmiere" && password == "infirmiere"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - else if (username == "infirmiere" && password == "infirmiere"){ [INFO] [stdout] 26 + else if username == "infirmiere" && password == "infirmiere" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/handlers/signin.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | if (username == "patient" && password == "patient") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - if (username == "patient" && password == "patient") { [INFO] [stdout] 23 + if username == "patient" && password == "patient" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | else if (username == "docteur" && password == "docteur"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - else if (username == "docteur" && password == "docteur"){ [INFO] [stdout] 29 + else if username == "docteur" && password == "docteur" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | else if (username == "infirmiere" && password == "infirmiere"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - else if (username == "infirmiere" && password == "infirmiere"){ [INFO] [stdout] 26 + else if username == "infirmiere" && password == "infirmiere" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::AppResponse` [INFO] [stdout] --> src/handlers/authentication.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::AppResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | else if (username == "docteur" && password == "docteur"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - else if (username == "docteur" && password == "docteur"){ [INFO] [stdout] 29 + else if username == "docteur" && password == "docteur" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::AppResponse` [INFO] [stdout] --> src/handlers/authentication.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::AppResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppErrorCode` and `Auth` [INFO] [stdout] --> src/handlers/authentication.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | config::crypto::{Auth, CryptoService}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | [INFO] [stdout] 5 | errors::{AppErrorCode,AppError}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppErrorCode` and `Auth` [INFO] [stdout] --> src/handlers/authentication.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | config::crypto::{Auth, CryptoService}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | [INFO] [stdout] 5 | errors::{AppErrorCode,AppError}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpResponse`, `dev::HttpResponseBuilder`, `http::Cookie`, `web::Form`, and `web::Json` [INFO] [stdout] --> src/handlers/authentication.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use actix_web::{web::Data,web::Form, FromRequest, HttpResponse,http::Cookie, dev::HttpResponseBuilder,web::Json}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpResponse`, `dev::HttpResponseBuilder`, `http::Cookie`, `web::Form`, and `web::Json` [INFO] [stdout] --> src/handlers/authentication.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use actix_web::{web::Data,web::Form, FromRequest, HttpResponse,http::Cookie, dev::HttpResponseBuilder,web::Json}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/handlers/authentication.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/handlers/authentication.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/handlers/authentication.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::{Deserialize,Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/handlers/authentication.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::{Deserialize,Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, and `web` [INFO] [stdout] --> src/main.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use actix_web::{web, App, HttpServer, Responder, middleware::Logger ,HttpResponse}; [INFO] [stdout] | ^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, and `web` [INFO] [stdout] --> src/main.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use actix_web::{web, App, HttpServer, Responder, middleware::Logger ,HttpResponse}; [INFO] [stdout] | ^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/handlers/signin.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | req: HttpRequest) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/handlers/signin.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | req: HttpRequest) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpMessage` [INFO] [stdout] --> src/handlers/signin.rs:9:129 [INFO] [stdout] | [INFO] [stdout] 9 | ...Response, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessage}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpMessage` [INFO] [stdout] --> src/handlers/signin.rs:9:129 [INFO] [stdout] | [INFO] [stdout] 9 | ...Response, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessage}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bearer_result` [INFO] [stdout] --> src/handlers/authentication.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let bearer_result = BearerAuth::from_request(req, payload).into_inner(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bearer_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie_result2` [INFO] [stdout] --> src/handlers/authentication.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let cookie_result2 = CookieJWT::from_request(req , payload).into_inner(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/handlers/authentication.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | Some(v) => {cookie_value1 = req [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie` [INFO] [stdout] --> src/handlers/authentication.rs:102:16 [INFO] [stdout] | [INFO] [stdout] 102 | Ok(cookie) => ready(Ok( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/handlers/authentication.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | payload: &mut actix_web::dev::Payload, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bearer_result` [INFO] [stdout] --> src/handlers/authentication.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let bearer_result = BearerAuth::from_request(req, payload).into_inner(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bearer_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie_result2` [INFO] [stdout] --> src/handlers/authentication.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let cookie_result2 = CookieJWT::from_request(req , payload).into_inner(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/handlers/authentication.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | Some(v) => {cookie_value1 = req [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie` [INFO] [stdout] --> src/handlers/authentication.rs:102:16 [INFO] [stdout] | [INFO] [stdout] 102 | Ok(cookie) => ready(Ok( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/handlers/authentication.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | payload: &mut actix_web::dev::Payload, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `database_url` is never read [INFO] [stdout] --> src/config/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub database_url : String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key` is never read [INFO] [stdout] --> src/config/crypto.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CryptoService{ [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 14 | pub key : Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CryptoService` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AppResult` is never used [INFO] [stdout] --> src/handlers/mod.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type AppResult = Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AppResponse` is never used [INFO] [stdout] --> src/handlers/mod.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type AppResponse = AppResult; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password_hash` is never read [INFO] [stdout] --> src/models/user.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub password_hash : String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password_hash` is never read [INFO] [stdout] --> src/models/user.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct UserLogin { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | pub password_hash : String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserLogin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `full_name`, `bio`, and `image` are never read [INFO] [stdout] --> src/models/user.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct UpdateProfile { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 40 | pub full_name:Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 41 | pub bio:Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 42 | pub image:Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UpdateProfile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `salt` is never read [INFO] [stdout] --> src/models/user.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct PasswordSalt { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 47 | pub salt: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PasswordSalt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `database_url` is never read [INFO] [stdout] --> src/config/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub database_url : String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key` is never read [INFO] [stdout] --> src/config/crypto.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CryptoService{ [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 14 | pub key : Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CryptoService` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AppResult` is never used [INFO] [stdout] --> src/handlers/mod.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type AppResult = Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AppResponse` is never used [INFO] [stdout] --> src/handlers/mod.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type AppResponse = AppResult; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password_hash` is never read [INFO] [stdout] --> src/models/user.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub password_hash : String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password_hash` is never read [INFO] [stdout] --> src/models/user.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct UserLogin { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | pub password_hash : String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserLogin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `full_name`, `bio`, and `image` are never read [INFO] [stdout] --> src/models/user.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct UpdateProfile { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 40 | pub full_name:Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 41 | pub bio:Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 42 | pub image:Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UpdateProfile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `salt` is never read [INFO] [stdout] --> src/models/user.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct PasswordSalt { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 47 | pub salt: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PasswordSalt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.66s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v5.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "201ba95ca3f4b83df0bb8a6f2bd040b74f1d5e48c7661583d042d1510272842b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "201ba95ca3f4b83df0bb8a6f2bd040b74f1d5e48c7661583d042d1510272842b", kill_on_drop: false }` [INFO] [stdout] 201ba95ca3f4b83df0bb8a6f2bd040b74f1d5e48c7661583d042d1510272842b [INFO] checking eridio/poc_thales_doctolib against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feridio%2Fpoc_thales_doctolib" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eridio/poc_thales_doctolib on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/eridio/poc_thales_doctolib [INFO] finished tweaking git repo https://github.com/eridio/poc_thales_doctolib [INFO] tweaked toml for git repo https://github.com/eridio/poc_thales_doctolib written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/eridio/poc_thales_doctolib 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9cba3219b93046bb71ae18b610708e7b842c5b23fb211d96542f131ae686f372 [INFO] running `Command { std: "docker" "start" "-a" "9cba3219b93046bb71ae18b610708e7b842c5b23fb211d96542f131ae686f372", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9cba3219b93046bb71ae18b610708e7b842c5b23fb211d96542f131ae686f372", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9cba3219b93046bb71ae18b610708e7b842c5b23fb211d96542f131ae686f372", kill_on_drop: false }` [INFO] [stdout] 9cba3219b93046bb71ae18b610708e7b842c5b23fb211d96542f131ae686f372 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a2e280c7998568af2f66b2bcb20e1d28d9d4b03505124ac890464b8321b043c6 [INFO] running `Command { std: "docker" "start" "-a" "a2e280c7998568af2f66b2bcb20e1d28d9d4b03505124ac890464b8321b043c6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.39 [INFO] [stderr] Compiling unicode-ident v1.0.0 [INFO] [stderr] Compiling syn v1.0.95 [INFO] [stderr] Compiling libc v0.2.126 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Checking futures-sink v0.3.21 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Checking regex-syntax v0.6.26 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Checking futures-io v0.3.21 [INFO] [stderr] Checking ryu v1.0.10 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Checking tracing-core v0.1.26 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking once_cell v1.11.0 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Checking ppv-lite86 v0.2.16 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Checking alloc-no-stdlib v2.0.3 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking miniz_oxide v0.5.1 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Checking alloc-stdlib v0.2.1 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Checking http v0.2.7 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking signal-hook-registry v1.4.0 [INFO] [stderr] Checking parking_lot_core v0.8.5 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking hostname v0.3.1 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking resolv-conf v0.7.0 [INFO] [stderr] Checking threadpool v1.8.1 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking lru-cache v0.1.2 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking brotli-decompressor v2.3.2 [INFO] [stderr] Checking cpufeatures v0.2.2 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking flate2 v1.0.23 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking sha-1 v0.9.8 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking mio-uds v0.6.8 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Checking tokio v0.2.25 [INFO] [stderr] Checking regex v1.5.6 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Compiling backtrace v0.3.65 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking bytestring v1.0.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Checking gimli v0.26.1 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking object v0.28.4 [INFO] [stderr] Checking serde v0.8.23 [INFO] [stderr] Checking brotli v3.3.4 [INFO] [stderr] Checking matchers v0.0.1 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Checking owo-colors v1.3.0 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Checking pem v0.8.3 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking rust-ini v0.13.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking validator_types v0.14.0 [INFO] [stderr] Checking serde-hjson v0.9.1 [INFO] [stderr] Checking addr2line v0.17.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tracing-attributes v0.1.21 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.31 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Compiling validator_derive v0.14.0 [INFO] [stderr] Checking thiserror v1.0.31 [INFO] [stderr] Checking pin-project v1.0.10 [INFO] [stderr] Checking tracing v0.1.34 [INFO] [stderr] Checking pin-project v0.4.29 [INFO] [stderr] Checking actix-codec v0.3.0 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking actix-threadpool v0.3.3 [INFO] [stderr] Checking actix-service v1.0.6 [INFO] [stderr] Checking actix-rt v1.1.1 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking h2 v0.2.7 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking trust-dns-proto v0.19.7 [INFO] [stderr] Checking actix-utils v2.0.0 [INFO] [stderr] Checking actix-server v1.0.4 [INFO] [stderr] Checking actix-tls v2.0.0 [INFO] [stderr] Checking actix-testing v1.0.1 [INFO] [stderr] Checking trust-dns-resolver v0.19.7 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking tracing-serde v0.1.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking actix-router v0.2.7 [INFO] [stderr] Checking toml v0.5.9 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking actix-connect v2.0.0 [INFO] [stderr] Checking simple_asn1 v0.4.1 [INFO] [stderr] Checking tracing-subscriber v0.2.25 [INFO] [stderr] Checking config v0.11.0 [INFO] [stderr] Checking validator v0.14.0 [INFO] [stderr] Checking jsonwebtoken v7.2.0 [INFO] [stderr] Checking tracing-error v0.1.2 [INFO] [stderr] Checking actix-http v2.2.2 [INFO] [stderr] Checking color-spantrace v0.1.6 [INFO] [stderr] Checking color-eyre v0.5.11 [INFO] [stderr] Checking awc v2.0.3 [INFO] [stderr] Checking actix-web v3.3.3 [INFO] [stderr] Checking actix-web-httpauth v0.5.1 [INFO] [stderr] Checking thales_challenge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `futures::compat::Future01CompatExt` [INFO] [stdout] --> src/config/crypto.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::compat::Future01CompatExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/config/crypto.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/config/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::AppResponse` [INFO] [stdout] --> src/handlers/signin.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::AppResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `authentication::CookieJWT` [INFO] [stdout] --> src/handlers/signin.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use super::{authentication::AuthenticatedUser, authentication::CookieJWT}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppErrorCode`, `AppError`, and `Auth` [INFO] [stdout] --> src/handlers/signin.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | config::crypto::{Auth, CryptoService}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | [INFO] [stdout] 6 | errors::{AppErrorCode,AppError}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequest`, `dev::HttpResponseBuilder`, `get`, and `web::Payload` [INFO] [stdout] --> src/handlers/signin.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use actix_web::{web::Payload,web::Data,web::Form, FromRequest, HttpResponse, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessa... [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxFuture` and `ready` [INFO] [stdout] --> src/handlers/signin.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::future::{ready, BoxFuture}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `instrument` [INFO] [stdout] --> src/handlers/signin.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use tracing::{debug, instrument}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/handlers/signin.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | if (username == "patient" && password == "patient") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - if (username == "patient" && password == "patient") { [INFO] [stdout] 23 + if username == "patient" && password == "patient" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | else if (username == "infirmiere" && password == "infirmiere"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - else if (username == "infirmiere" && password == "infirmiere"){ [INFO] [stdout] 26 + else if username == "infirmiere" && password == "infirmiere" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | else if (username == "docteur" && password == "docteur"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - else if (username == "docteur" && password == "docteur"){ [INFO] [stdout] 29 + else if username == "docteur" && password == "docteur" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::AppResponse` [INFO] [stdout] --> src/handlers/authentication.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::AppResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppErrorCode` and `Auth` [INFO] [stdout] --> src/handlers/authentication.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | config::crypto::{Auth, CryptoService}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | [INFO] [stdout] 5 | errors::{AppErrorCode,AppError}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpResponse`, `dev::HttpResponseBuilder`, `http::Cookie`, `web::Form`, and `web::Json` [INFO] [stdout] --> src/handlers/authentication.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use actix_web::{web::Data,web::Form, FromRequest, HttpResponse,http::Cookie, dev::HttpResponseBuilder,web::Json}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/handlers/authentication.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/handlers/authentication.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::{Deserialize,Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, and `web` [INFO] [stdout] --> src/main.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use actix_web::{web, App, HttpServer, Responder, middleware::Logger ,HttpResponse}; [INFO] [stdout] | ^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::compat::Future01CompatExt` [INFO] [stdout] --> src/config/crypto.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use futures::compat::Future01CompatExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/config/crypto.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/config/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::AppResponse` [INFO] [stdout] --> src/handlers/signin.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::AppResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `authentication::CookieJWT` [INFO] [stdout] --> src/handlers/signin.rs:2:48 [INFO] [stdout] | [INFO] [stdout] 2 | use super::{authentication::AuthenticatedUser, authentication::CookieJWT}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppErrorCode`, `AppError`, and `Auth` [INFO] [stdout] --> src/handlers/signin.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | config::crypto::{Auth, CryptoService}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | [INFO] [stdout] 6 | errors::{AppErrorCode,AppError}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FromRequest`, `dev::HttpResponseBuilder`, `get`, and `web::Payload` [INFO] [stdout] --> src/handlers/signin.rs:9:17 [INFO] [stdout] | [INFO] [stdout] 9 | use actix_web::{web::Payload,web::Data,web::Form, FromRequest, HttpResponse, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessa... [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BoxFuture` and `ready` [INFO] [stdout] --> src/handlers/signin.rs:10:23 [INFO] [stdout] | [INFO] [stdout] 10 | use futures::future::{ready, BoxFuture}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug` and `instrument` [INFO] [stdout] --> src/handlers/signin.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | use tracing::{debug, instrument}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/handlers/signin.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | if (username == "patient" && password == "patient") { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - if (username == "patient" && password == "patient") { [INFO] [stdout] 23 + if username == "patient" && password == "patient" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | else if (username == "infirmiere" && password == "infirmiere"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - else if (username == "infirmiere" && password == "infirmiere"){ [INFO] [stdout] 26 + else if username == "infirmiere" && password == "infirmiere" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/handlers/signin.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | else if (username == "docteur" && password == "docteur"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 29 - else if (username == "docteur" && password == "docteur"){ [INFO] [stdout] 29 + else if username == "docteur" && password == "docteur" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::AppResponse` [INFO] [stdout] --> src/handlers/authentication.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use super::AppResponse; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AppErrorCode` and `Auth` [INFO] [stdout] --> src/handlers/authentication.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | config::crypto::{Auth, CryptoService}, [INFO] [stdout] | ^^^^ [INFO] [stdout] 4 | [INFO] [stdout] 5 | errors::{AppErrorCode,AppError}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpResponse`, `dev::HttpResponseBuilder`, `http::Cookie`, `web::Form`, and `web::Json` [INFO] [stdout] --> src/handlers/authentication.rs:8:27 [INFO] [stdout] | [INFO] [stdout] 8 | use actix_web::{web::Data,web::Form, FromRequest, HttpResponse,http::Cookie, dev::HttpResponseBuilder,web::Json}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/handlers/authentication.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/handlers/authentication.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | use serde::{Deserialize,Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HttpResponse`, `Responder`, and `web` [INFO] [stdout] --> src/main.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | use actix_web::{web, App, HttpServer, Responder, middleware::Logger ,HttpResponse}; [INFO] [stdout] | ^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/handlers/signin.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | req: HttpRequest) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `req` [INFO] [stdout] --> src/handlers/signin.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 44 | req: HttpRequest) -> Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpMessage` [INFO] [stdout] --> src/handlers/signin.rs:9:129 [INFO] [stdout] | [INFO] [stdout] 9 | ...Response, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessage}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HttpMessage` [INFO] [stdout] --> src/handlers/signin.rs:9:129 [INFO] [stdout] | [INFO] [stdout] 9 | ...Response, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessage}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bearer_result` [INFO] [stdout] --> src/handlers/authentication.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let bearer_result = BearerAuth::from_request(req, payload).into_inner(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bearer_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie_result2` [INFO] [stdout] --> src/handlers/authentication.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let cookie_result2 = CookieJWT::from_request(req , payload).into_inner(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bearer_result` [INFO] [stdout] --> src/handlers/authentication.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let bearer_result = BearerAuth::from_request(req, payload).into_inner(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bearer_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie_result2` [INFO] [stdout] --> src/handlers/authentication.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let cookie_result2 = CookieJWT::from_request(req , payload).into_inner(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie_result2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/handlers/authentication.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | Some(v) => {cookie_value1 = req [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie` [INFO] [stdout] --> src/handlers/authentication.rs:102:16 [INFO] [stdout] | [INFO] [stdout] 102 | Ok(cookie) => ready(Ok( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/handlers/authentication.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | payload: &mut actix_web::dev::Payload, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/handlers/authentication.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | Some(v) => {cookie_value1 = req [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cookie` [INFO] [stdout] --> src/handlers/authentication.rs:102:16 [INFO] [stdout] | [INFO] [stdout] 102 | Ok(cookie) => ready(Ok( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/handlers/authentication.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | payload: &mut actix_web::dev::Payload, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `database_url` is never read [INFO] [stdout] --> src/config/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub database_url : String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key` is never read [INFO] [stdout] --> src/config/crypto.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CryptoService{ [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 14 | pub key : Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CryptoService` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AppResult` is never used [INFO] [stdout] --> src/handlers/mod.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type AppResult = Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AppResponse` is never used [INFO] [stdout] --> src/handlers/mod.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type AppResponse = AppResult; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password_hash` is never read [INFO] [stdout] --> src/models/user.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub password_hash : String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password_hash` is never read [INFO] [stdout] --> src/models/user.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct UserLogin { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | pub password_hash : String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserLogin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `full_name`, `bio`, and `image` are never read [INFO] [stdout] --> src/models/user.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct UpdateProfile { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 40 | pub full_name:Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 41 | pub bio:Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 42 | pub image:Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UpdateProfile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `salt` is never read [INFO] [stdout] --> src/models/user.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct PasswordSalt { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 47 | pub salt: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PasswordSalt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 55 | let crypto_service = config.crypto_service(); [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 64 | / App::new() [INFO] [stdout] 65 | | .wrap(Logger::default()) [INFO] [stdout] 66 | | .data(crypto_service.clone()) [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/config/crypto.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | let jwt_key = self.jwt_secret.clone(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 35 | / block(move || { [INFO] [stdout] 36 | | let headers = Header::default(); [INFO] [stdout] 37 | | let encodingkey = EncodingKey::from_secret(jwt_key.as_bytes()); [INFO] [stdout] 38 | | let now = Utc::now() + Duration::days(1); // expires in a day [INFO] [stdout] ... | [INFO] [stdout] 44 | | }) [INFO] [stdout] 45 | | .await [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/config/crypto.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | let jwt_key = self.jwt_secret.clone(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 52 | / block(move || { [INFO] [stdout] 53 | | let decoding_key = DecodingKey::from_secret(jwt_key.as_bytes()); [INFO] [stdout] 54 | | let validation = Validation::default(); [INFO] [stdout] 55 | | decode::(&token, &decoding_key, &validation) [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | .await [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `database_url` is never read [INFO] [stdout] --> src/config/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Config { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 20 | pub database_url : String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `key` is never read [INFO] [stdout] --> src/config/crypto.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CryptoService{ [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 14 | pub key : Arc, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CryptoService` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AppResult` is never used [INFO] [stdout] --> src/handlers/mod.rs:8:6 [INFO] [stdout] | [INFO] [stdout] 8 | type AppResult = Result; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `AppResponse` is never used [INFO] [stdout] --> src/handlers/mod.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | type AppResponse = AppResult; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password_hash` is never read [INFO] [stdout] --> src/models/user.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub password_hash : String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password_hash` is never read [INFO] [stdout] --> src/models/user.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct UserLogin { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 28 | pub password_hash : String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserLogin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `full_name`, `bio`, and `image` are never read [INFO] [stdout] --> src/models/user.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct UpdateProfile { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 40 | pub full_name:Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 41 | pub bio:Option, [INFO] [stdout] | ^^^ [INFO] [stdout] 42 | pub image:Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UpdateProfile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `salt` is never read [INFO] [stdout] --> src/models/user.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct PasswordSalt { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 47 | pub salt: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PasswordSalt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:64:10 [INFO] [stdout] | [INFO] [stdout] 55 | let crypto_service = config.crypto_service(); [INFO] [stdout] | -------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 64 | / App::new() [INFO] [stdout] 65 | | .wrap(Logger::default()) [INFO] [stdout] 66 | | .data(crypto_service.clone()) [INFO] [stdout] | |_____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/config/crypto.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | let jwt_key = self.jwt_secret.clone(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 35 | / block(move || { [INFO] [stdout] 36 | | let headers = Header::default(); [INFO] [stdout] 37 | | let encodingkey = EncodingKey::from_secret(jwt_key.as_bytes()); [INFO] [stdout] 38 | | let now = Utc::now() + Duration::days(1); // expires in a day [INFO] [stdout] ... | [INFO] [stdout] 44 | | }) [INFO] [stdout] 45 | | .await [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/config/crypto.rs:52:9 [INFO] [stdout] | [INFO] [stdout] 51 | let jwt_key = self.jwt_secret.clone(); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 52 | / block(move || { [INFO] [stdout] 53 | | let decoding_key = DecodingKey::from_secret(jwt_key.as_bytes()); [INFO] [stdout] 54 | | let validation = Validation::default(); [INFO] [stdout] 55 | | decode::(&token, &decoding_key, &validation) [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | .await [INFO] [stdout] | |______________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `thales_challenge` (bin "thales_challenge" test) due to 4 previous errors; 34 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `thales_challenge` (bin "thales_challenge") due to 4 previous errors; 34 warnings emitted [INFO] running `Command { std: "docker" "inspect" "a2e280c7998568af2f66b2bcb20e1d28d9d4b03505124ac890464b8321b043c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2e280c7998568af2f66b2bcb20e1d28d9d4b03505124ac890464b8321b043c6", kill_on_drop: false }` [INFO] [stdout] a2e280c7998568af2f66b2bcb20e1d28d9d4b03505124ac890464b8321b043c6