[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] testing eridio/poc_thales_doctolib/f7c010dff4242ea9353465573ed688077258414e against beta-2024-09-05 for beta-1.82-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feridio%2Fpoc_thales_doctolib" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/eridio/poc_thales_doctolib on toolchain beta-2024-09-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-09-05" "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-4-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" "+beta-2024-09-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 559cd041f1a6b5dedd81f7f98b35a390967d6f8dc7ce3c4dd817d422e1640909 [INFO] running `Command { std: "docker" "start" "-a" "559cd041f1a6b5dedd81f7f98b35a390967d6f8dc7ce3c4dd817d422e1640909", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "559cd041f1a6b5dedd81f7f98b35a390967d6f8dc7ce3c4dd817d422e1640909", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "559cd041f1a6b5dedd81f7f98b35a390967d6f8dc7ce3c4dd817d422e1640909", kill_on_drop: false }` [INFO] [stdout] 559cd041f1a6b5dedd81f7f98b35a390967d6f8dc7ce3c4dd817d422e1640909 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3267b55fc38fc314824bf88e267de78dc81084f9487eaa1eaf39ec23ce5bff1b [INFO] running `Command { std: "docker" "start" "-a" "3267b55fc38fc314824bf88e267de78dc81084f9487eaa1eaf39ec23ce5bff1b", 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 autocfg v1.1.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling serde_derive v1.0.137 [INFO] [stderr] Compiling slab v0.4.6 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling serde v1.0.137 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling futures v0.1.31 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling futures-io v0.3.21 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling lock_api v0.4.7 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling pin-project-internal v0.4.29 [INFO] [stderr] Compiling tracing-core v0.1.26 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling serde_json v1.0.81 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling once_cell v1.11.0 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling async-trait v0.1.53 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling const_fn v0.4.9 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling miniz_oxide v0.5.1 [INFO] [stderr] Compiling http v0.2.7 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.3 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling alloc-stdlib v0.2.1 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling 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] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling brotli-decompressor v2.3.2 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling cpufeatures v0.2.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling flate2 v1.0.23 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling tracing-log v0.1.3 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling backtrace v0.3.65 [INFO] [stderr] Compiling brotli v3.3.4 [INFO] [stderr] Compiling 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] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling gimli v0.26.1 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling object v0.28.4 [INFO] [stderr] Compiling owo-colors v1.3.0 [INFO] [stderr] Compiling indenter v0.3.3 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling serde v0.8.23 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling validator_types v0.14.0 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling rust-ini v0.13.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling addr2line v0.17.0 [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 time-macros-impl v0.1.2 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling serde-hjson v0.9.1 [INFO] [stderr] Compiling validator_derive v0.14.0 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling thiserror v1.0.31 [INFO] [stderr] Compiling pin-project v0.4.29 [INFO] [stderr] Compiling tracing v0.1.34 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling trust-dns-proto v0.19.7 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling trust-dns-resolver v0.19.7 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling tracing-subscriber v0.2.25 [INFO] [stderr] Compiling validator v0.14.0 [INFO] [stderr] Compiling config v0.11.0 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling actix-http v2.2.2 [INFO] [stderr] Compiling tracing-error v0.1.2 [INFO] [stderr] Compiling color-spantrace v0.1.6 [INFO] [stderr] Compiling color-eyre v0.5.11 [INFO] [stderr] Compiling awc v2.0.3 [INFO] [stderr] Compiling actix-web v3.3.3 [INFO] [stderr] Compiling actix-web-httpauth v0.5.1 [INFO] [stderr] Compiling 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 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 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: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.47s [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" "3267b55fc38fc314824bf88e267de78dc81084f9487eaa1eaf39ec23ce5bff1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3267b55fc38fc314824bf88e267de78dc81084f9487eaa1eaf39ec23ce5bff1b", kill_on_drop: false }` [INFO] [stdout] 3267b55fc38fc314824bf88e267de78dc81084f9487eaa1eaf39ec23ce5bff1b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 44867a417a0ba3b0d9a94a061178d18ca7acd07357bf831532a6c74908bc6e5a [INFO] running `Command { std: "docker" "start" "-a" "44867a417a0ba3b0d9a94a061178d18ca7acd07357bf831532a6c74908bc6e5a", kill_on_drop: false }` [INFO] [stderr] Compiling 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 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 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: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.08s [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" "44867a417a0ba3b0d9a94a061178d18ca7acd07357bf831532a6c74908bc6e5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44867a417a0ba3b0d9a94a061178d18ca7acd07357bf831532a6c74908bc6e5a", kill_on_drop: false }` [INFO] [stdout] 44867a417a0ba3b0d9a94a061178d18ca7acd07357bf831532a6c74908bc6e5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 473a6fa3be5c1ecadc9c2d31f597c6c79d746090c2b1985f74de6128bcd239ff [INFO] running `Command { std: "docker" "start" "-a" "473a6fa3be5c1ecadc9c2d31f597c6c79d746090c2b1985f74de6128bcd239ff", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `futures::compat::Future01CompatExt` [INFO] [stderr] --> src/config/crypto.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use futures::compat::Future01CompatExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `uuid::Uuid` [INFO] [stderr] --> src/config/crypto.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use uuid::Uuid; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::time::Duration` [INFO] [stderr] --> src/config/mod.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::time::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::AppResponse` [INFO] [stderr] --> src/handlers/signin.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use super::AppResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `authentication::CookieJWT` [INFO] [stderr] --> src/handlers/signin.rs:2:48 [INFO] [stderr] | [INFO] [stderr] 2 | use super::{authentication::AuthenticatedUser, authentication::CookieJWT}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AppErrorCode`, `AppError`, and `Auth` [INFO] [stderr] --> src/handlers/signin.rs:4:22 [INFO] [stderr] | [INFO] [stderr] 4 | config::crypto::{Auth, CryptoService}, [INFO] [stderr] | ^^^^ [INFO] [stderr] 5 | [INFO] [stderr] 6 | errors::{AppErrorCode,AppError}, [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `FromRequest`, `dev::HttpResponseBuilder`, `get`, and `web::Payload` [INFO] [stderr] --> src/handlers/signin.rs:9:17 [INFO] [stderr] | [INFO] [stderr] 9 | use actix_web::{web::Payload,web::Data,web::Form, FromRequest, HttpResponse, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessa... [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BoxFuture` and `ready` [INFO] [stderr] --> src/handlers/signin.rs:10:23 [INFO] [stderr] | [INFO] [stderr] 10 | use futures::future::{ready, BoxFuture}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `debug` and `instrument` [INFO] [stderr] --> src/handlers/signin.rs:11:15 [INFO] [stderr] | [INFO] [stderr] 11 | use tracing::{debug, instrument}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `uuid::Uuid` [INFO] [stderr] --> src/handlers/signin.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use uuid::Uuid; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/handlers/signin.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | if (username == "patient" && password == "patient") { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 23 - if (username == "patient" && password == "patient") { [INFO] [stderr] 23 + if username == "patient" && password == "patient" { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/handlers/signin.rs:26:13 [INFO] [stderr] | [INFO] [stderr] 26 | else if (username == "infirmiere" && password == "infirmiere"){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 26 - else if (username == "infirmiere" && password == "infirmiere"){ [INFO] [stderr] 26 + else if username == "infirmiere" && password == "infirmiere" { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/handlers/signin.rs:29:13 [INFO] [stderr] | [INFO] [stderr] 29 | else if (username == "docteur" && password == "docteur"){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 29 - else if (username == "docteur" && password == "docteur"){ [INFO] [stderr] 29 + else if username == "docteur" && password == "docteur" { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::AppResponse` [INFO] [stderr] --> src/handlers/authentication.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use super::AppResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AppErrorCode` and `Auth` [INFO] [stderr] --> src/handlers/authentication.rs:3:22 [INFO] [stderr] | [INFO] [stderr] 3 | config::crypto::{Auth, CryptoService}, [INFO] [stderr] | ^^^^ [INFO] [stderr] 4 | [INFO] [stderr] 5 | errors::{AppErrorCode,AppError}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HttpResponse`, `dev::HttpResponseBuilder`, `http::Cookie`, `web::Form`, and `web::Json` [INFO] [stderr] --> src/handlers/authentication.rs:8:27 [INFO] [stderr] | [INFO] [stderr] 8 | use actix_web::{web::Data,web::Form, FromRequest, HttpResponse,http::Cookie, dev::HttpResponseBuilder,web::Json}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `uuid::Uuid` [INFO] [stderr] --> src/handlers/authentication.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use uuid::Uuid; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> src/handlers/authentication.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | use serde::{Deserialize,Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `HttpResponse`, `Responder`, and `web` [INFO] [stderr] --> src/main.rs:11:17 [INFO] [stderr] | [INFO] [stderr] 11 | use actix_web::{web, App, HttpServer, Responder, middleware::Logger ,HttpResponse}; [INFO] [stderr] | ^^^ ^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `req` [INFO] [stderr] --> src/handlers/signin.rs:44:5 [INFO] [stderr] | [INFO] [stderr] 44 | req: HttpRequest) -> Result { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_req` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `HttpMessage` [INFO] [stderr] --> src/handlers/signin.rs:9:129 [INFO] [stderr] | [INFO] [stderr] 9 | ...Response, HttpRequest,dev::HttpResponseBuilder,Responder,get,HttpMessage}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bearer_result` [INFO] [stderr] --> src/handlers/authentication.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | let bearer_result = BearerAuth::from_request(req, payload).into_inner(); [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bearer_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cookie_result2` [INFO] [stderr] --> src/handlers/authentication.rs:33:13 [INFO] [stderr] | [INFO] [stderr] 33 | let cookie_result2 = CookieJWT::from_request(req , payload).into_inner(); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie_result2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/handlers/authentication.rs:85:18 [INFO] [stderr] | [INFO] [stderr] 85 | Some(v) => {cookie_value1 = req [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cookie` [INFO] [stderr] --> src/handlers/authentication.rs:102:16 [INFO] [stderr] | [INFO] [stderr] 102 | Ok(cookie) => ready(Ok( [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_cookie` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `payload` [INFO] [stderr] --> src/handlers/authentication.rs:75:9 [INFO] [stderr] | [INFO] [stderr] 75 | payload: &mut actix_web::dev::Payload, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stderr] [INFO] [stderr] warning: field `database_url` is never read [INFO] [stderr] --> src/config/mod.rs:20:9 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct Config { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 20 | pub database_url : String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Config` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `key` is never read [INFO] [stderr] --> src/config/crypto.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct CryptoService{ [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 14 | pub key : Arc, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CryptoService` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: type alias `AppResult` is never used [INFO] [stderr] --> src/handlers/mod.rs:8:6 [INFO] [stderr] | [INFO] [stderr] 8 | type AppResult = Result; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `AppResponse` is never used [INFO] [stderr] --> src/handlers/mod.rs:9:6 [INFO] [stderr] | [INFO] [stderr] 9 | type AppResponse = AppResult; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `password_hash` is never read [INFO] [stderr] --> src/models/user.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct User { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] ... [INFO] [stderr] 13 | pub password_hash : String, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `password_hash` is never read [INFO] [stderr] --> src/models/user.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 24 | pub struct UserLogin { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 28 | pub password_hash : String, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `UserLogin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `full_name`, `bio`, and `image` are never read [INFO] [stderr] --> src/models/user.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 39 | pub struct UpdateProfile { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 40 | pub full_name:Option, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 41 | pub bio:Option, [INFO] [stderr] | ^^^ [INFO] [stderr] 42 | pub image:Option, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `UpdateProfile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `salt` is never read [INFO] [stderr] --> src/models/user.rs:47:9 [INFO] [stderr] | [INFO] [stderr] 46 | pub struct PasswordSalt { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 47 | pub salt: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `PasswordSalt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `thales_challenge` (bin "thales_challenge" test) generated 34 warnings (run `cargo fix --bin "thales_challenge" --tests` to apply 19 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.28s [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] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/thales_challenge-7b5bbe32a20041a8) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "473a6fa3be5c1ecadc9c2d31f597c6c79d746090c2b1985f74de6128bcd239ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "473a6fa3be5c1ecadc9c2d31f597c6c79d746090c2b1985f74de6128bcd239ff", kill_on_drop: false }` [INFO] [stdout] 473a6fa3be5c1ecadc9c2d31f597c6c79d746090c2b1985f74de6128bcd239ff