[INFO] cloning repository https://github.com/Cyphle/banana-back-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Cyphle/banana-back-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCyphle%2Fbanana-back-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCyphle%2Fbanana-back-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c9f89ee107d6a9fe6c8eda6a4944205af936a83d [INFO] testing Cyphle/banana-back-rs against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCyphle%2Fbanana-back-rs" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-6-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/Cyphle/banana-back-rs [INFO] finished tweaking git repo https://github.com/Cyphle/banana-back-rs [INFO] tweaked toml for git repo https://github.com/Cyphle/banana-back-rs written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Cyphle/banana-back-rs on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Cyphle/banana-back-rs 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ed52b892142662866f808bf80f457e106355ebfeb6e0daa6217a9588fa604ef9 [INFO] running `Command { std: "docker" "start" "-a" "ed52b892142662866f808bf80f457e106355ebfeb6e0daa6217a9588fa604ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ed52b892142662866f808bf80f457e106355ebfeb6e0daa6217a9588fa604ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed52b892142662866f808bf80f457e106355ebfeb6e0daa6217a9588fa604ef9", kill_on_drop: false }` [INFO] [stdout] ed52b892142662866f808bf80f457e106355ebfeb6e0daa6217a9588fa604ef9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 19a4c895bae2f7febabc1dbac80a8e184746dd14a2919212781dc6ca8aea699f [INFO] running `Command { std: "docker" "start" "-a" "19a4c895bae2f7febabc1dbac80a8e184746dd14a2919212781dc6ca8aea699f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling value-bag v1.11.1 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling bigdecimal v0.4.8 [INFO] [stderr] Compiling rust_decimal v1.37.2 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling ordered-float v4.6.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling local-waker v0.1.4 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling polyval v0.6.2 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling ghash v0.5.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling actix-service v2.0.3 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling aliasable v0.1.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling clap_builder v4.5.44 [INFO] [stderr] Compiling aes-gcm v0.10.3 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling rand v0.9.2 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling async-lock v3.4.1 [INFO] [stderr] Compiling async-channel v2.5.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling base64 v0.20.0 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling blocking v1.6.2 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling async-executor v1.13.2 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling impl-more v0.1.9 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling ordered-multimap v0.7.3 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling arraydeque v0.5.1 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling rust-ini v0.20.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling yaml-rust2 v0.8.1 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling jiff v0.2.15 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling inherent v1.0.12 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling rustls-webpki v0.103.4 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling sea-bae v0.2.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling ouroboros_macro v0.18.5 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling sea-orm-macros v1.1.14 [INFO] [stderr] Compiling sea-query-derive v0.4.3 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling sea-schema-derive v0.3.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling validator_derive v0.19.0 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling clap v4.5.45 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling env_logger v0.11.8 [INFO] [stderr] Compiling ouroboros v0.18.5 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Compiling derive_more v1.0.0 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling bitflags v2.9.2 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling url v2.5.6 [INFO] [stderr] Compiling biscuit v0.7.0 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling sea-orm-cli v1.1.14 [INFO] [stderr] Compiling validator v0.19.0 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling sea-query v0.32.7 [INFO] [stderr] Compiling config v0.14.1 [INFO] [stderr] Compiling polling v3.10.0 [INFO] [stderr] Compiling async-io v2.5.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling tokio-retry v0.3.0 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling async-std v1.13.2 [INFO] [stderr] Compiling actix-server v2.6.0 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Compiling openid v0.16.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling actix-http v3.11.0 [INFO] [stderr] Compiling redis v0.26.1 [INFO] [stderr] Compiling sqlx v0.8.6 [INFO] [stderr] Compiling sea-query-binder v0.7.0 [INFO] [stderr] Compiling sea-orm v1.1.14 [INFO] [stderr] Compiling sea-schema v0.16.2 [INFO] [stderr] Compiling actix-web v4.11.0 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling warp v0.3.7 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling actix-cors v0.6.5 [INFO] [stderr] Compiling sea-orm-migration v1.1.14 [INFO] [stderr] Compiling entity v0.1.0 (/opt/rustwide/workdir/entity) [INFO] [stderr] Compiling actix-session v0.10.1 [INFO] [stderr] Compiling migration v0.1.0 (/opt/rustwide/workdir/migration) [INFO] [stdout] warning: unused import: `schema::*` [INFO] [stdout] --> migration/src/m20220101_000001_create_table.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use sea_orm_migration::{prelude::*, schema::*}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `schema::*` [INFO] [stdout] --> migration/src/m20250120_145042_create_account_tables.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use sea_orm_migration::{prelude::*, schema::*}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling banana-back v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Key` and `time` [INFO] [stdout] --> src/main.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::cookie::{time, Key}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpResponse`, `HttpServer`, `Responder`, `get`, and `web` [INFO] [stdout] --> src/main.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{get, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stdout] | ^^^ ^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Options`, `StandardClaims`, and `Token` [INFO] [stdout] --> src/main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use openid::{Client, Options, StandardClaims, Token}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `oidc_config::get_oidc_config` and `security::oidc::get_client` [INFO] [stdout] --> src/config/actix.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | oidc_config::get_oidc_config, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | security::oidc::get_client, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_session::storage::CookieSessionStore` [INFO] [stdout] --> src/config/actix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use actix_session::storage::CookieSessionStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::ready` [INFO] [stdout] --> src/config/actix.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use std::task::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::profile::Profile` [INFO] [stdout] --> src/domain/account.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::domain::profile::Profile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::profile::CreateProfileCommand` [INFO] [stdout] --> src/http/controllers/profile.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::domain::profile::CreateProfileCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repositories` [INFO] [stdout] --> src/http/controllers/profile.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::repositories; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/http/controllers/profile.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use actix_web::{get, post, web, HttpResponse, Responder}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Client` [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use openid::{Bearer, Client, Token}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `StandardClaims`, `TokenIntrospection`, and `Token` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use openid::{Bearer, Client, StandardClaims, Token, TokenIntrospection}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::security::controllers::logout::logout` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::security::controllers::logout::logout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_username_from_bearer` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::security::token::{get_username_from_bearer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repositories::profile::find_one_by_username` [INFO] [stdout] --> src/http/controllers/test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::repositories::profile::find_one_by_username; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_session::SessionGetError` [INFO] [stdout] --> src/security/token.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_session::SessionGetError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `openid::error::Error` [INFO] [stdout] --> src/security/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use openid::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IdToken` and `Userinfo` [INFO] [stdout] --> src/security/token.rs:6:51 [INFO] [stdout] | [INFO] [stdout] 6 | Bearer, Client, Discovered, DiscoveredClient, IdToken, StandardClaims, Token, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | TokenIntrospection, Userinfo, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Duration` [INFO] [stdout] --> src/security/controllers/login.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Options`, `StandardClaims`, and `TokenIntrospection` [INFO] [stdout] --> src/security/controllers/login.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use openid::{Options, StandardClaims, Token, TokenIntrospection}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `openid::error::Error::Http` [INFO] [stdout] --> src/security/controllers/login.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use openid::error::Error::Http; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, and `info` [INFO] [stdout] --> src/security/controllers/logout.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bearer` [INFO] [stdout] --> src/security/controllers/logout.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use openid::{Bearer, Client, Discovered, StandardClaims}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::local::oidc_config::USER_SESSION_KEY` [INFO] [stdout] --> src/security/controllers/logout.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::config::local::oidc_config::USER_SESSION_KEY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::profile::CreateProfileCommand` [INFO] [stdout] --> src/security/controllers/register.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::domain::profile::CreateProfileCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::security::token::get_admin_access_token` [INFO] [stdout] --> src/security/controllers/register.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::security::token::get_admin_access_token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `repositories` [INFO] [stdout] --> src/security/controllers/register.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{repositories}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/security/controllers/register.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use actix_web::{get, post, web, HttpResponse, Responder}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `info` [INFO] [stdout] --> src/security/controllers/register.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Discovered`, and `StandardClaims` [INFO] [stdout] --> src/security/controllers/register.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use openid::{Client, Discovered, StandardClaims}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Client as HttpClient` [INFO] [stdout] --> src/security/controllers/register.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use reqwest::Client as HttpClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/security/controllers/register.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/security/controllers/register.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut store = data.store.lock().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `store` [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut store = data.store.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_store` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let client = state.oidc_client.as_ref().unwrap().lock().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | state: web::Data, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/controllers/account.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/controllers/account.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/security/controllers/login.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | session: Session, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/security/controllers/login.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | query: web::Query, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/security/controllers/login.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let client = state.oidc_client.as_ref().unwrap().lock().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/security/controllers/logout.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | session: Session, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/security/controllers/logout.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | state: Data, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/security/controllers/register.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | state: Data, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_payload` [INFO] [stdout] --> src/security/controllers/register.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let request_payload = payload.into_inner(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `oidc_config` is never read [INFO] [stdout] --> src/config/actix.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | pub oidc_config: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `store_addr` is never read [INFO] [stdout] --> src/config/actix.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct SessionConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 44 | pub store_addr: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `schema` is never read [INFO] [stdout] --> src/config/database.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct DatabaseConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub schema: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseConfig` 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: function `get_oidc_config` is never used [INFO] [stdout] --> src/config/local/oidc_config.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_oidc_config() -> OidcConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client` and `create_user_url` are never read [INFO] [stdout] --> src/config/app_config.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct OidcAdminConfig { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 10 | pub client: OidcClientConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub create_user_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OidcAdminConfig` 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: fields `id` and `secret` are never read [INFO] [stdout] --> src/config/app_config.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct OidcClientConfig { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 16 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | pub secret: String [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OidcClientConfig` 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: multiple fields are never read [INFO] [stdout] --> src/config/app_config.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct OidcConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 23 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | pub realm_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub redirect_uri: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 26 | pub logout_uri: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 27 | pub client: OidcClientConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | pub nonce: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | pub session_timeout_minutes: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub admin: OidcAdminConfig, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OidcConfig` 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: fields `allowed_origin`, `allowed_methods`, `allowed_headers`, `supports_credentials`, and `max_age` are never read [INFO] [stdout] --> src/config/app_config.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct CorsConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 35 | pub allowed_origin: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | pub allowed_methods: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | pub allowed_headers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 38 | pub supports_credentials: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | pub max_age: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CorsConfig` 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: fields `app`, `oidc`, `cors`, and `logging` are never read [INFO] [stdout] --> src/config/app_config.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 44 | pub app: AppServerConfig, [INFO] [stdout] | ^^^ [INFO] [stdout] 45 | pub database: DatabaseConfig, [INFO] [stdout] 46 | pub oidc: OidcConfig, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | pub session: SessionConfig, [INFO] [stdout] 48 | pub cors: CorsConfig, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | pub logging: LoggingConfig, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` 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: fields `port` and `host` are never read [INFO] [stdout] --> src/config/app_config.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct AppServerConfig { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 54 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 55 | pub host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppServerConfig` 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: field `level` is never read [INFO] [stdout] --> src/config/app_config.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct LoggingConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 60 | pub level: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoggingConfig` 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: methods `database_url` and `session_ttl_duration` are never used [INFO] [stdout] --> src/config/app_config.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl AppConfig { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn database_url(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn session_ttl_duration(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_SESSION_KEY` is never used [INFO] [stdout] --> src/config/app_config.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | pub const USER_SESSION_KEY: &str = "user_session"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `store_addr`, `cookie_name`, and `session_ttl_days` are never read [INFO] [stdout] --> src/config/session.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SessionConfig { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 6 | pub database: SessionDatabaseConfig, [INFO] [stdout] 7 | pub store_addr: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub cookie_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | pub session_ttl_days: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionConfig` 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: field `db` is never read [INFO] [stdout] --> src/config/session.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct SessionDatabaseConfig { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub db: u8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionDatabaseConfig` 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: struct `CreateProfileCommand` is never constructed [INFO] [stdout] --> src/domain/profile.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct CreateProfileCommand { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_in_shared_state` is never used [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn save_in_shared_state(state: &Data, token: Token) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create` is never used [INFO] [stdout] --> src/repositories/profile.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn create(db_connexion: &DatabaseConnection, command: &CreateProfileCommand) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_one_by_id` is never used [INFO] [stdout] --> src/repositories/profile.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | pub async fn find_one_by_id(db_connexion: &DatabaseConnection, id: i32) -> Result, DbErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/security/oidc.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl OidcConfig { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 47 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_client` is never used [INFO] [stdout] --> src/security/oidc.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 70 | pub async fn get_client(config: &OidcConfig) -> Client { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenResponse` is never constructed [INFO] [stdout] --> src/security/token.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct TokenResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_admin_access_token` is never used [INFO] [stdout] --> src/security/token.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn get_admin_access_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_in_session` is never used [INFO] [stdout] --> src/security/controllers/login.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn save_in_session(session: Session, token: &Token) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_logout_url` is never used [INFO] [stdout] --> src/security/controllers/logout.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | pub async fn build_logout_url( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeycloakUser` is never constructed [INFO] [stdout] --> src/security/controllers/register.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct KeycloakUser { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeycloakCredential` is never constructed [INFO] [stdout] --> src/security/controllers/register.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct KeycloakCredential { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `first_name`, `last_name`, and `password` are never read [INFO] [stdout] --> src/security/controllers/register.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct RegisterRequest { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 32 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 34 | pub first_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | pub last_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | pub password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code`, `session_state`, and `iss` are never read [INFO] [stdout] --> src/security/controllers/auth_request.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct AuthRequest { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 5 | pub code: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | session_state: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | iss: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http/controllers/account.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | create(&state.db_connection, &command).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 38 | let _ = create(&state.db_connection, &command).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 43s [INFO] running `Command { std: "docker" "inspect" "19a4c895bae2f7febabc1dbac80a8e184746dd14a2919212781dc6ca8aea699f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19a4c895bae2f7febabc1dbac80a8e184746dd14a2919212781dc6ca8aea699f", kill_on_drop: false }` [INFO] [stdout] 19a4c895bae2f7febabc1dbac80a8e184746dd14a2919212781dc6ca8aea699f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3613c6a548bc64cb21facf5b0a5d52490909687efeb008f0edbf641996daf6b6 [INFO] running `Command { std: "docker" "start" "-a" "3613c6a548bc64cb21facf5b0a5d52490909687efeb008f0edbf641996daf6b6", kill_on_drop: false }` [INFO] [stderr] Compiling banana-back v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `schema::*` [INFO] [stdout] --> migration/src/m20220101_000001_create_table.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use sea_orm_migration::{prelude::*, schema::*}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `schema::*` [INFO] [stdout] --> migration/src/m20250120_145042_create_account_tables.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use sea_orm_migration::{prelude::*, schema::*}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Key` and `time` [INFO] [stdout] --> src/main.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::cookie::{time, Key}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpResponse`, `HttpServer`, `Responder`, `get`, and `web` [INFO] [stdout] --> src/main.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{get, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stdout] | ^^^ ^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Options`, `StandardClaims`, and `Token` [INFO] [stdout] --> src/main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use openid::{Client, Options, StandardClaims, Token}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `oidc_config::get_oidc_config` and `security::oidc::get_client` [INFO] [stdout] --> src/config/actix.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | oidc_config::get_oidc_config, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | security::oidc::get_client, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_session::storage::CookieSessionStore` [INFO] [stdout] --> src/config/actix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use actix_session::storage::CookieSessionStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::ready` [INFO] [stdout] --> src/config/actix.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use std::task::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::profile::Profile` [INFO] [stdout] --> src/domain/account.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::domain::profile::Profile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::profile::CreateProfileCommand` [INFO] [stdout] --> src/http/controllers/profile.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::domain::profile::CreateProfileCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repositories` [INFO] [stdout] --> src/http/controllers/profile.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::repositories; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/http/controllers/profile.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use actix_web::{get, post, web, HttpResponse, Responder}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Client` [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use openid::{Bearer, Client, Token}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `StandardClaims`, `TokenIntrospection`, and `Token` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use openid::{Bearer, Client, StandardClaims, Token, TokenIntrospection}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::security::controllers::logout::logout` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::security::controllers::logout::logout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_username_from_bearer` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::security::token::{get_username_from_bearer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repositories::profile::find_one_by_username` [INFO] [stdout] --> src/http/controllers/test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::repositories::profile::find_one_by_username; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_session::SessionGetError` [INFO] [stdout] --> src/security/token.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_session::SessionGetError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `openid::error::Error` [INFO] [stdout] --> src/security/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use openid::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IdToken` and `Userinfo` [INFO] [stdout] --> src/security/token.rs:6:51 [INFO] [stdout] | [INFO] [stdout] 6 | Bearer, Client, Discovered, DiscoveredClient, IdToken, StandardClaims, Token, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | TokenIntrospection, Userinfo, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Duration` [INFO] [stdout] --> src/security/controllers/login.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Options`, `StandardClaims`, and `TokenIntrospection` [INFO] [stdout] --> src/security/controllers/login.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use openid::{Options, StandardClaims, Token, TokenIntrospection}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `openid::error::Error::Http` [INFO] [stdout] --> src/security/controllers/login.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use openid::error::Error::Http; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, and `info` [INFO] [stdout] --> src/security/controllers/logout.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bearer` [INFO] [stdout] --> src/security/controllers/logout.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use openid::{Bearer, Client, Discovered, StandardClaims}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::local::oidc_config::USER_SESSION_KEY` [INFO] [stdout] --> src/security/controllers/logout.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::config::local::oidc_config::USER_SESSION_KEY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::profile::CreateProfileCommand` [INFO] [stdout] --> src/security/controllers/register.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::domain::profile::CreateProfileCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::security::token::get_admin_access_token` [INFO] [stdout] --> src/security/controllers/register.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::security::token::get_admin_access_token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `repositories` [INFO] [stdout] --> src/security/controllers/register.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{repositories}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/security/controllers/register.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use actix_web::{get, post, web, HttpResponse, Responder}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `info` [INFO] [stdout] --> src/security/controllers/register.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Discovered`, and `StandardClaims` [INFO] [stdout] --> src/security/controllers/register.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use openid::{Client, Discovered, StandardClaims}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Client as HttpClient` [INFO] [stdout] --> src/security/controllers/register.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use reqwest::Client as HttpClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/security/controllers/register.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/security/controllers/register.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut store = data.store.lock().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `store` [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut store = data.store.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_store` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let client = state.oidc_client.as_ref().unwrap().lock().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | state: web::Data, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/controllers/account.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/controllers/account.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/security/controllers/login.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | session: Session, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/security/controllers/login.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | query: web::Query, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/security/controllers/login.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let client = state.oidc_client.as_ref().unwrap().lock().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/security/controllers/logout.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | session: Session, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/security/controllers/logout.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | state: Data, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/security/controllers/register.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | state: Data, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_payload` [INFO] [stdout] --> src/security/controllers/register.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let request_payload = payload.into_inner(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `oidc_config` is never read [INFO] [stdout] --> src/config/actix.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | pub oidc_config: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `store_addr` is never read [INFO] [stdout] --> src/config/actix.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct SessionConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 44 | pub store_addr: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `schema` is never read [INFO] [stdout] --> src/config/database.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct DatabaseConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub schema: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseConfig` 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: function `get_oidc_config` is never used [INFO] [stdout] --> src/config/local/oidc_config.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_oidc_config() -> OidcConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client` and `create_user_url` are never read [INFO] [stdout] --> src/config/app_config.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct OidcAdminConfig { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 10 | pub client: OidcClientConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub create_user_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OidcAdminConfig` 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: fields `id` and `secret` are never read [INFO] [stdout] --> src/config/app_config.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct OidcClientConfig { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 16 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | pub secret: String [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OidcClientConfig` 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: multiple fields are never read [INFO] [stdout] --> src/config/app_config.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct OidcConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 23 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | pub realm_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub redirect_uri: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 26 | pub logout_uri: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 27 | pub client: OidcClientConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | pub nonce: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | pub session_timeout_minutes: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub admin: OidcAdminConfig, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OidcConfig` 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: fields `allowed_origin`, `allowed_methods`, `allowed_headers`, `supports_credentials`, and `max_age` are never read [INFO] [stdout] --> src/config/app_config.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct CorsConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 35 | pub allowed_origin: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | pub allowed_methods: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | pub allowed_headers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 38 | pub supports_credentials: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | pub max_age: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CorsConfig` 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: fields `app`, `oidc`, `cors`, and `logging` are never read [INFO] [stdout] --> src/config/app_config.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 44 | pub app: AppServerConfig, [INFO] [stdout] | ^^^ [INFO] [stdout] 45 | pub database: DatabaseConfig, [INFO] [stdout] 46 | pub oidc: OidcConfig, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | pub session: SessionConfig, [INFO] [stdout] 48 | pub cors: CorsConfig, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | pub logging: LoggingConfig, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` 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: fields `port` and `host` are never read [INFO] [stdout] --> src/config/app_config.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct AppServerConfig { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 54 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 55 | pub host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppServerConfig` 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: field `level` is never read [INFO] [stdout] --> src/config/app_config.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct LoggingConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 60 | pub level: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoggingConfig` 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: methods `database_url` and `session_ttl_duration` are never used [INFO] [stdout] --> src/config/app_config.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl AppConfig { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn database_url(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn session_ttl_duration(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_SESSION_KEY` is never used [INFO] [stdout] --> src/config/app_config.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | pub const USER_SESSION_KEY: &str = "user_session"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `store_addr`, `cookie_name`, and `session_ttl_days` are never read [INFO] [stdout] --> src/config/session.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SessionConfig { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 6 | pub database: SessionDatabaseConfig, [INFO] [stdout] 7 | pub store_addr: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub cookie_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | pub session_ttl_days: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionConfig` 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: field `db` is never read [INFO] [stdout] --> src/config/session.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct SessionDatabaseConfig { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub db: u8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionDatabaseConfig` 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: struct `CreateProfileCommand` is never constructed [INFO] [stdout] --> src/domain/profile.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct CreateProfileCommand { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_in_shared_state` is never used [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn save_in_shared_state(state: &Data, token: Token) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create` is never used [INFO] [stdout] --> src/repositories/profile.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub async fn create(db_connexion: &DatabaseConnection, command: &CreateProfileCommand) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_one_by_id` is never used [INFO] [stdout] --> src/repositories/profile.rs:27:14 [INFO] [stdout] | [INFO] [stdout] 27 | pub async fn find_one_by_id(db_connexion: &DatabaseConnection, id: i32) -> Result, DbErr> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/security/oidc.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 46 | impl OidcConfig { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 47 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_client` is never used [INFO] [stdout] --> src/security/oidc.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 70 | pub async fn get_client(config: &OidcConfig) -> Client { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenResponse` is never constructed [INFO] [stdout] --> src/security/token.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct TokenResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_admin_access_token` is never used [INFO] [stdout] --> src/security/token.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn get_admin_access_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_in_session` is never used [INFO] [stdout] --> src/security/controllers/login.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn save_in_session(session: Session, token: &Token) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_logout_url` is never used [INFO] [stdout] --> src/security/controllers/logout.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | pub async fn build_logout_url( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeycloakUser` is never constructed [INFO] [stdout] --> src/security/controllers/register.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct KeycloakUser { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeycloakCredential` is never constructed [INFO] [stdout] --> src/security/controllers/register.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct KeycloakCredential { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `first_name`, `last_name`, and `password` are never read [INFO] [stdout] --> src/security/controllers/register.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct RegisterRequest { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 32 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 34 | pub first_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | pub last_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | pub password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code`, `session_state`, and `iss` are never read [INFO] [stdout] --> src/security/controllers/auth_request.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct AuthRequest { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 5 | pub code: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | session_state: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | iss: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http/controllers/account.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | create(&state.db_connection, &command).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 38 | let _ = create(&state.db_connection, &command).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Key` and `time` [INFO] [stdout] --> src/main.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::cookie::{time, Key}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App`, `HttpResponse`, `HttpServer`, `Responder`, `get`, and `web` [INFO] [stdout] --> src/main.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_web::{get, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stdout] | ^^^ ^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Options`, `StandardClaims`, and `Token` [INFO] [stdout] --> src/main.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use openid::{Client, Options, StandardClaims, Token}; [INFO] [stdout] | ^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/main.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `oidc_config::get_oidc_config` and `security::oidc::get_client` [INFO] [stdout] --> src/config/actix.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | oidc_config::get_oidc_config, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | security::oidc::get_client, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_session::storage::CookieSessionStore` [INFO] [stdout] --> src/config/actix.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use actix_session::storage::CookieSessionStore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::ready` [INFO] [stdout] --> src/config/actix.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | use std::task::ready; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::profile::Profile` [INFO] [stdout] --> src/domain/account.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::domain::profile::Profile; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::profile::CreateProfileCommand` [INFO] [stdout] --> src/http/controllers/profile.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::domain::profile::CreateProfileCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repositories` [INFO] [stdout] --> src/http/controllers/profile.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::repositories; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/http/controllers/profile.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use actix_web::{get, post, web, HttpResponse, Responder}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Client` [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:3:22 [INFO] [stdout] | [INFO] [stdout] 3 | use openid::{Bearer, Client, Token}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `StandardClaims`, `TokenIntrospection`, and `Token` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use openid::{Bearer, Client, StandardClaims, Token, TokenIntrospection}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::security::controllers::logout::logout` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::security::controllers::logout::logout; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_username_from_bearer` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::security::token::{get_username_from_bearer}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repositories::profile::find_one_by_username` [INFO] [stdout] --> src/http/controllers/test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::repositories::profile::find_one_by_username; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sea_orm::EntityTrait` [INFO] [stdout] --> src/repositories/profile.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | use sea_orm::EntityTrait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `entity::*` [INFO] [stdout] --> src/repositories/profile.rs:258:33 [INFO] [stdout] | [INFO] [stdout] 258 | entity::prelude::*, entity::*, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sea_orm::prelude::*` [INFO] [stdout] --> src/repositories/account.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | use sea_orm::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_session::SessionGetError` [INFO] [stdout] --> src/security/token.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use actix_session::SessionGetError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `openid::error::Error` [INFO] [stdout] --> src/security/token.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use openid::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IdToken` and `Userinfo` [INFO] [stdout] --> src/security/token.rs:6:51 [INFO] [stdout] | [INFO] [stdout] 6 | Bearer, Client, Discovered, DiscoveredClient, IdToken, StandardClaims, Token, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | TokenIntrospection, Userinfo, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Duration` [INFO] [stdout] --> src/security/controllers/login.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Options`, `StandardClaims`, and `TokenIntrospection` [INFO] [stdout] --> src/security/controllers/login.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | use openid::{Options, StandardClaims, Token, TokenIntrospection}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `openid::error::Error::Http` [INFO] [stdout] --> src/security/controllers/login.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use openid::error::Error::Http; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `debug`, `error`, and `info` [INFO] [stdout] --> src/security/controllers/logout.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, error, info}; [INFO] [stdout] | ^^^^^ ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Bearer` [INFO] [stdout] --> src/security/controllers/logout.rs:5:14 [INFO] [stdout] | [INFO] [stdout] 5 | use openid::{Bearer, Client, Discovered, StandardClaims}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::local::oidc_config::USER_SESSION_KEY` [INFO] [stdout] --> src/security/controllers/logout.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::config::local::oidc_config::USER_SESSION_KEY; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::profile::CreateProfileCommand` [INFO] [stdout] --> src/security/controllers/register.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::domain::profile::CreateProfileCommand; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::security::token::get_admin_access_token` [INFO] [stdout] --> src/security/controllers/register.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::security::token::get_admin_access_token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `repositories` [INFO] [stdout] --> src/security/controllers/register.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{repositories}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get` [INFO] [stdout] --> src/security/controllers/register.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | use actix_web::{get, post, web, HttpResponse, Responder}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `info` [INFO] [stdout] --> src/security/controllers/register.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use log::{error, info}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Client`, `Discovered`, and `StandardClaims` [INFO] [stdout] --> src/security/controllers/register.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use openid::{Client, Discovered, StandardClaims}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Client as HttpClient` [INFO] [stdout] --> src/security/controllers/register.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use reqwest::Client as HttpClient; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/security/controllers/register.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/security/controllers/register.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::actix::AppState` [INFO] [stdout] --> src/security/controllers/register.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | use crate::config::actix::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::local::oidc_config::get_oidc_config` [INFO] [stdout] --> src/security/controllers/register.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | use crate::config::local::oidc_config::get_oidc_config; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::security::controllers::register::register` [INFO] [stdout] --> src/security/controllers/register.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | use crate::security::controllers::register::register; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::http::header::ContentType` [INFO] [stdout] --> src/security/controllers/register.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | use actix_web::http::header::ContentType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `actix_web::web` [INFO] [stdout] --> src/security/controllers/register.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | use actix_web::web; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `App` and `test` [INFO] [stdout] --> src/security/controllers/register.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | use actix_web::{test, App}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/security/controllers/register.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut store = data.store.lock().unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `store` [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let mut store = data.store.lock().unwrap(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_store` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let client = state.oidc_client.as_ref().unwrap().lock().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/http/controllers/example_actix_session.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 71 | state: web::Data, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/controllers/account.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/http/controllers/account.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | Err(e) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/security/controllers/login.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | session: Session, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query` [INFO] [stdout] --> src/security/controllers/login.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | query: web::Query, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/security/controllers/login.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let client = state.oidc_client.as_ref().unwrap().lock().unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `session` [INFO] [stdout] --> src/security/controllers/logout.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | session: Session, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/security/controllers/logout.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | state: Data, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/security/controllers/register.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 43 | state: Data, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `request_payload` [INFO] [stdout] --> src/security/controllers/register.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let request_payload = payload.into_inner(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `oidc_config` is never read [INFO] [stdout] --> src/config/actix.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct AppState { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | pub oidc_config: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `store_addr` is never read [INFO] [stdout] --> src/config/actix.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct SessionConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 44 | pub store_addr: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `schema` is never read [INFO] [stdout] --> src/config/database.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct DatabaseConfig { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub schema: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DatabaseConfig` 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: function `get_oidc_config` is never used [INFO] [stdout] --> src/config/local/oidc_config.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn get_oidc_config() -> OidcConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `client` and `create_user_url` are never read [INFO] [stdout] --> src/config/app_config.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct OidcAdminConfig { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 10 | pub client: OidcClientConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub create_user_url: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OidcAdminConfig` 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: fields `id` and `secret` are never read [INFO] [stdout] --> src/config/app_config.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct OidcClientConfig { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 16 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | pub secret: String [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OidcClientConfig` 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: multiple fields are never read [INFO] [stdout] --> src/config/app_config.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct OidcConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 23 | pub url: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 24 | pub realm_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub redirect_uri: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 26 | pub logout_uri: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 27 | pub client: OidcClientConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | pub nonce: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 29 | pub session_timeout_minutes: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 30 | pub admin: OidcAdminConfig, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OidcConfig` 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: fields `allowed_origin`, `allowed_methods`, `allowed_headers`, `supports_credentials`, and `max_age` are never read [INFO] [stdout] --> src/config/app_config.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct CorsConfig { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 35 | pub allowed_origin: String, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 36 | pub allowed_methods: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 37 | pub allowed_headers: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 38 | pub supports_credentials: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 39 | pub max_age: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CorsConfig` 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: fields `app`, `oidc`, `cors`, and `logging` are never read [INFO] [stdout] --> src/config/app_config.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct AppConfig { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 44 | pub app: AppServerConfig, [INFO] [stdout] | ^^^ [INFO] [stdout] 45 | pub database: DatabaseConfig, [INFO] [stdout] 46 | pub oidc: OidcConfig, [INFO] [stdout] | ^^^^ [INFO] [stdout] 47 | pub session: SessionConfig, [INFO] [stdout] 48 | pub cors: CorsConfig, [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | pub logging: LoggingConfig, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppConfig` 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: fields `port` and `host` are never read [INFO] [stdout] --> src/config/app_config.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 53 | pub struct AppServerConfig { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 54 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 55 | pub host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppServerConfig` 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: field `level` is never read [INFO] [stdout] --> src/config/app_config.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct LoggingConfig { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 60 | pub level: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoggingConfig` 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: methods `database_url` and `session_ttl_duration` are never used [INFO] [stdout] --> src/config/app_config.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 63 | impl AppConfig { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn database_url(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn session_ttl_duration(&self) -> Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_SESSION_KEY` is never used [INFO] [stdout] --> src/config/app_config.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | pub const USER_SESSION_KEY: &str = "user_session"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `store_addr`, `cookie_name`, and `session_ttl_days` are never read [INFO] [stdout] --> src/config/session.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct SessionConfig { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 6 | pub database: SessionDatabaseConfig, [INFO] [stdout] 7 | pub store_addr: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | pub cookie_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | pub session_ttl_days: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionConfig` 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: field `db` is never read [INFO] [stdout] --> src/config/session.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct SessionDatabaseConfig { [INFO] [stdout] | --------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 18 | pub db: u8, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `SessionDatabaseConfig` 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: function `save_in_shared_state` is never used [INFO] [stdout] --> src/http/controllers/example_actix_store.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn save_in_shared_state(state: &Data, token: Token) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_client` is never used [INFO] [stdout] --> src/security/oidc.rs:70:14 [INFO] [stdout] | [INFO] [stdout] 70 | pub async fn get_client(config: &OidcConfig) -> Client { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TokenResponse` is never constructed [INFO] [stdout] --> src/security/token.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | struct TokenResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_admin_access_token` is never used [INFO] [stdout] --> src/security/token.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | pub async fn get_admin_access_token( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_in_session` is never used [INFO] [stdout] --> src/security/controllers/login.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn save_in_session(session: Session, token: &Token) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `build_logout_url` is never used [INFO] [stdout] --> src/security/controllers/logout.rs:52:14 [INFO] [stdout] | [INFO] [stdout] 52 | pub async fn build_logout_url( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeycloakUser` is never constructed [INFO] [stdout] --> src/security/controllers/register.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | struct KeycloakUser { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KeycloakCredential` is never constructed [INFO] [stdout] --> src/security/controllers/register.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct KeycloakCredential { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `email`, `first_name`, `last_name`, and `password` are never read [INFO] [stdout] --> src/security/controllers/register.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct RegisterRequest { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 32 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 33 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 34 | pub first_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 35 | pub last_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 36 | pub password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_mock_database` is never used [INFO] [stdout] --> src/security/controllers/register.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | fn get_mock_database() -> &'static DatabaseConnection { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `code`, `session_state`, and `iss` are never read [INFO] [stdout] --> src/security/controllers/auth_request.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct AuthRequest { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 5 | pub code: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | session_state: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 7 | iss: Option, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/http/controllers/account.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | create(&state.db_connection, &command).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 38 | let _ = create(&state.db_connection, &command).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 9.84s [INFO] running `Command { std: "docker" "inspect" "3613c6a548bc64cb21facf5b0a5d52490909687efeb008f0edbf641996daf6b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3613c6a548bc64cb21facf5b0a5d52490909687efeb008f0edbf641996daf6b6", kill_on_drop: false }` [INFO] [stdout] 3613c6a548bc64cb21facf5b0a5d52490909687efeb008f0edbf641996daf6b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 69f49c51f0a868492323d9604865cd3a337912388d2b4d031017c615b623aae6 [INFO] running `Command { std: "docker" "start" "-a" "69f49c51f0a868492323d9604865cd3a337912388d2b4d031017c615b623aae6", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `schema::*` [INFO] [stderr] --> migration/src/m20220101_000001_create_table.rs:1:37 [INFO] [stderr] | [INFO] [stderr] 1 | use sea_orm_migration::{prelude::*, schema::*}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `schema::*` [INFO] [stderr] --> migration/src/m20250120_145042_create_account_tables.rs:1:37 [INFO] [stderr] | [INFO] [stderr] 1 | use sea_orm_migration::{prelude::*, schema::*}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `migration` (lib) generated 2 warnings (run `cargo fix --lib -p migration` to apply 2 suggestions) [INFO] [stderr] warning: unused imports: `Key` and `time` [INFO] [stderr] --> src/main.rs:1:25 [INFO] [stderr] | [INFO] [stderr] 1 | use actix_web::cookie::{time, Key}; [INFO] [stderr] | ^^^^ ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `App`, `HttpResponse`, `HttpServer`, `Responder`, `get`, and `web` [INFO] [stderr] --> src/main.rs:2:17 [INFO] [stderr] | [INFO] [stderr] 2 | use actix_web::{get, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stderr] | ^^^ ^^^ ^^^ ^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Client`, `Options`, `StandardClaims`, and `Token` [INFO] [stderr] --> src/main.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | use openid::{Client, Options, StandardClaims, Token}; [INFO] [stderr] | ^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> src/main.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `oidc_config::get_oidc_config` and `security::oidc::get_client` [INFO] [stderr] --> src/config/actix.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | oidc_config::get_oidc_config, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 19 | security::oidc::get_client, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `actix_session::storage::CookieSessionStore` [INFO] [stderr] --> src/config/actix.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | use actix_session::storage::CookieSessionStore; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::task::ready` [INFO] [stderr] --> src/config/actix.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | use std::task::ready; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::domain::profile::Profile` [INFO] [stderr] --> src/domain/account.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::domain::profile::Profile; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::domain::profile::CreateProfileCommand` [INFO] [stderr] --> src/http/controllers/profile.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::domain::profile::CreateProfileCommand; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::repositories` [INFO] [stderr] --> src/http/controllers/profile.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::repositories; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `post` [INFO] [stderr] --> src/http/controllers/profile.rs:7:22 [INFO] [stderr] | [INFO] [stderr] 7 | use actix_web::{get, post, web, HttpResponse, Responder}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Client` [INFO] [stderr] --> src/http/controllers/example_actix_store.rs:3:22 [INFO] [stderr] | [INFO] [stderr] 3 | use openid::{Bearer, Client, Token}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Client`, `StandardClaims`, `TokenIntrospection`, and `Token` [INFO] [stderr] --> src/http/controllers/example_actix_session.rs:4:22 [INFO] [stderr] | [INFO] [stderr] 4 | use openid::{Bearer, Client, StandardClaims, Token, TokenIntrospection}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::security::controllers::logout::logout` [INFO] [stderr] --> src/http/controllers/example_actix_session.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::security::controllers::logout::logout; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get_username_from_bearer` [INFO] [stderr] --> src/http/controllers/example_actix_session.rs:9:30 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::security::token::{get_username_from_bearer}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::repositories::profile::find_one_by_username` [INFO] [stderr] --> src/http/controllers/test.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::repositories::profile::find_one_by_username; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sea_orm::EntityTrait` [INFO] [stderr] --> src/repositories/profile.rs:103:13 [INFO] [stderr] | [INFO] [stderr] 103 | use sea_orm::EntityTrait; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `entity::*` [INFO] [stderr] --> src/repositories/profile.rs:258:33 [INFO] [stderr] | [INFO] [stderr] 258 | entity::prelude::*, entity::*, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `sea_orm::prelude::*` [INFO] [stderr] --> src/repositories/account.rs:73:13 [INFO] [stderr] | [INFO] [stderr] 73 | use sea_orm::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `actix_session::SessionGetError` [INFO] [stderr] --> src/security/token.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use actix_session::SessionGetError; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `openid::error::Error` [INFO] [stderr] --> src/security/token.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use openid::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `IdToken` and `Userinfo` [INFO] [stderr] --> src/security/token.rs:6:51 [INFO] [stderr] | [INFO] [stderr] 6 | Bearer, Client, Discovered, DiscoveredClient, IdToken, StandardClaims, Token, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 7 | TokenIntrospection, Userinfo, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::Duration` [INFO] [stderr] --> src/security/controllers/login.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use chrono::Duration; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Options`, `StandardClaims`, and `TokenIntrospection` [INFO] [stderr] --> src/security/controllers/login.rs:8:14 [INFO] [stderr] | [INFO] [stderr] 8 | use openid::{Options, StandardClaims, Token, TokenIntrospection}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `openid::error::Error::Http` [INFO] [stderr] --> src/security/controllers/login.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use openid::error::Error::Http; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `debug`, `error`, and `info` [INFO] [stderr] --> src/security/controllers/logout.rs:4:11 [INFO] [stderr] | [INFO] [stderr] 4 | use log::{debug, error, info}; [INFO] [stderr] | ^^^^^ ^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Bearer` [INFO] [stderr] --> src/security/controllers/logout.rs:5:14 [INFO] [stderr] | [INFO] [stderr] 5 | use openid::{Bearer, Client, Discovered, StandardClaims}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::config::local::oidc_config::USER_SESSION_KEY` [INFO] [stderr] --> src/security/controllers/logout.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::config::local::oidc_config::USER_SESSION_KEY; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::domain::profile::CreateProfileCommand` [INFO] [stderr] --> src/security/controllers/register.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::domain::profile::CreateProfileCommand; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::security::token::get_admin_access_token` [INFO] [stderr] --> src/security/controllers/register.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::security::token::get_admin_access_token; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `repositories` [INFO] [stderr] --> src/security/controllers/register.rs:4:13 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::{repositories}; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `get` [INFO] [stderr] --> src/security/controllers/register.rs:7:17 [INFO] [stderr] | [INFO] [stderr] 7 | use actix_web::{get, post, web, HttpResponse, Responder}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `error` and `info` [INFO] [stderr] --> src/security/controllers/register.rs:8:11 [INFO] [stderr] | [INFO] [stderr] 8 | use log::{error, info}; [INFO] [stderr] | ^^^^^ ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Client`, `Discovered`, and `StandardClaims` [INFO] [stderr] --> src/security/controllers/register.rs:9:14 [INFO] [stderr] | [INFO] [stderr] 9 | use openid::{Client, Discovered, StandardClaims}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `reqwest::Client as HttpClient` [INFO] [stderr] --> src/security/controllers/register.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use reqwest::Client as HttpClient; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Deserialize` [INFO] [stderr] --> src/security/controllers/register.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::error::Error` [INFO] [stderr] --> src/security/controllers/register.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | use std::error::Error; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::config::actix::AppState` [INFO] [stderr] --> src/security/controllers/register.rs:104:9 [INFO] [stderr] | [INFO] [stderr] 104 | use crate::config::actix::AppState; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::config::local::oidc_config::get_oidc_config` [INFO] [stderr] --> src/security/controllers/register.rs:105:9 [INFO] [stderr] | [INFO] [stderr] 105 | use crate::config::local::oidc_config::get_oidc_config; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::security::controllers::register::register` [INFO] [stderr] --> src/security/controllers/register.rs:106:9 [INFO] [stderr] | [INFO] [stderr] 106 | use crate::security::controllers::register::register; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `actix_web::http::header::ContentType` [INFO] [stderr] --> src/security/controllers/register.rs:107:9 [INFO] [stderr] | [INFO] [stderr] 107 | use actix_web::http::header::ContentType; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `actix_web::web` [INFO] [stderr] --> src/security/controllers/register.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | use actix_web::web; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `App` and `test` [INFO] [stderr] --> src/security/controllers/register.rs:109:21 [INFO] [stderr] | [INFO] [stderr] 109 | use actix_web::{test, App}; [INFO] [stderr] | ^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::Mutex` [INFO] [stderr] --> src/security/controllers/register.rs:113:9 [INFO] [stderr] | [INFO] [stderr] 113 | use std::sync::Mutex; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/http/controllers/example_actix_store.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | let mut store = data.store.lock().unwrap(); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `store` [INFO] [stderr] --> src/http/controllers/example_actix_store.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | let mut store = data.store.lock().unwrap(); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_store` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `client` [INFO] [stderr] --> src/http/controllers/example_actix_session.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | let client = state.oidc_client.as_ref().unwrap().lock().unwrap(); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `state` [INFO] [stderr] --> src/http/controllers/example_actix_session.rs:71:5 [INFO] [stderr] | [INFO] [stderr] 71 | state: web::Data, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/controllers/account.rs:78:13 [INFO] [stderr] | [INFO] [stderr] 78 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/http/controllers/account.rs:112:13 [INFO] [stderr] | [INFO] [stderr] 112 | Err(e) => { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `session` [INFO] [stderr] --> src/security/controllers/login.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | session: Session, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `query` [INFO] [stderr] --> src/security/controllers/login.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 16 | query: web::Query, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_query` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `client` [INFO] [stderr] --> src/security/controllers/login.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 18 | let client = state.oidc_client.as_ref().unwrap().lock().unwrap(); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `session` [INFO] [stderr] --> src/security/controllers/logout.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | session: Session, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_session` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `state` [INFO] [stderr] --> src/security/controllers/logout.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | state: Data, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `state` [INFO] [stderr] --> src/security/controllers/register.rs:43:5 [INFO] [stderr] | [INFO] [stderr] 43 | state: Data, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `request_payload` [INFO] [stderr] --> src/security/controllers/register.rs:46:9 [INFO] [stderr] | [INFO] [stderr] 46 | let request_payload = payload.into_inner(); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request_payload` [INFO] [stderr] [INFO] [stderr] warning: field `oidc_config` is never read [INFO] [stderr] --> src/config/actix.rs:40:9 [INFO] [stderr] | [INFO] [stderr] 36 | pub struct AppState { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 40 | pub oidc_config: Option, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `store_addr` is never read [INFO] [stderr] --> src/config/actix.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 43 | pub struct SessionConfig { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 44 | pub store_addr: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `schema` is never read [INFO] [stderr] --> src/config/database.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct DatabaseConfig { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 10 | pub schema: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DatabaseConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `get_oidc_config` is never used [INFO] [stderr] --> src/config/local/oidc_config.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn get_oidc_config() -> OidcConfig { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `client` and `create_user_url` are never read [INFO] [stderr] --> src/config/app_config.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct OidcAdminConfig { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 10 | pub client: OidcClientConfig, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 11 | pub create_user_url: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OidcAdminConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `id` and `secret` are never read [INFO] [stderr] --> src/config/app_config.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 15 | pub struct OidcClientConfig { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] 16 | pub id: String, [INFO] [stderr] | ^^ [INFO] [stderr] 17 | pub secret: String [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OidcClientConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/config/app_config.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 22 | pub struct OidcConfig { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] 23 | pub url: String, [INFO] [stderr] | ^^^ [INFO] [stderr] 24 | pub realm_name: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 25 | pub redirect_uri: String, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 26 | pub logout_uri: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 27 | pub client: OidcClientConfig, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 28 | pub nonce: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 29 | pub session_timeout_minutes: i64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 30 | pub admin: OidcAdminConfig, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `OidcConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `allowed_origin`, `allowed_methods`, `allowed_headers`, `supports_credentials`, and `max_age` are never read [INFO] [stderr] --> src/config/app_config.rs:35:9 [INFO] [stderr] | [INFO] [stderr] 34 | pub struct CorsConfig { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] 35 | pub allowed_origin: String, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 36 | pub allowed_methods: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 37 | pub allowed_headers: Vec, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 38 | pub supports_credentials: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 39 | pub max_age: u64, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CorsConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `app`, `oidc`, `cors`, and `logging` are never read [INFO] [stderr] --> src/config/app_config.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 43 | pub struct AppConfig { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 44 | pub app: AppServerConfig, [INFO] [stderr] | ^^^ [INFO] [stderr] 45 | pub database: DatabaseConfig, [INFO] [stderr] 46 | pub oidc: OidcConfig, [INFO] [stderr] | ^^^^ [INFO] [stderr] 47 | pub session: SessionConfig, [INFO] [stderr] 48 | pub cors: CorsConfig, [INFO] [stderr] | ^^^^ [INFO] [stderr] 49 | pub logging: LoggingConfig, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AppConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: fields `port` and `host` are never read [INFO] [stderr] --> src/config/app_config.rs:54:9 [INFO] [stderr] | [INFO] [stderr] 53 | pub struct AppServerConfig { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 54 | pub port: u16, [INFO] [stderr] | ^^^^ [INFO] [stderr] 55 | pub host: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AppServerConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `level` is never read [INFO] [stderr] --> src/config/app_config.rs:60:9 [INFO] [stderr] | [INFO] [stderr] 59 | pub struct LoggingConfig { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 60 | pub level: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LoggingConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `database_url` and `session_ttl_duration` are never used [INFO] [stderr] --> src/config/app_config.rs:84:12 [INFO] [stderr] | [INFO] [stderr] 63 | impl AppConfig { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 84 | pub fn database_url(&self) -> String { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 95 | pub fn session_ttl_duration(&self) -> Duration { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `USER_SESSION_KEY` is never used [INFO] [stderr] --> src/config/app_config.rs:101:11 [INFO] [stderr] | [INFO] [stderr] 101 | pub const USER_SESSION_KEY: &str = "user_session"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `store_addr`, `cookie_name`, and `session_ttl_days` are never read [INFO] [stderr] --> src/config/session.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct SessionConfig { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 6 | pub database: SessionDatabaseConfig, [INFO] [stderr] 7 | pub store_addr: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 8 | pub cookie_name: String, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 9 | pub session_ttl_days: u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `SessionConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `db` is never read [INFO] [stderr] --> src/config/session.rs:18:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct SessionDatabaseConfig { [INFO] [stderr] | --------------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 18 | pub db: u8, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `SessionDatabaseConfig` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `save_in_shared_state` is never used [INFO] [stderr] --> src/http/controllers/example_actix_store.rs:31:4 [INFO] [stderr] | [INFO] [stderr] 31 | fn save_in_shared_state(state: &Data, token: Token) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_client` is never used [INFO] [stderr] --> src/security/oidc.rs:70:14 [INFO] [stderr] | [INFO] [stderr] 70 | pub async fn get_client(config: &OidcConfig) -> Client { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TokenResponse` is never constructed [INFO] [stderr] --> src/security/token.rs:56:8 [INFO] [stderr] | [INFO] [stderr] 56 | struct TokenResponse { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_admin_access_token` is never used [INFO] [stderr] --> src/security/token.rs:63:14 [INFO] [stderr] | [INFO] [stderr] 63 | pub async fn get_admin_access_token( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `save_in_session` is never used [INFO] [stderr] --> src/security/controllers/login.rs:64:4 [INFO] [stderr] | [INFO] [stderr] 64 | fn save_in_session(session: Session, token: &Token) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `build_logout_url` is never used [INFO] [stderr] --> src/security/controllers/logout.rs:52:14 [INFO] [stderr] | [INFO] [stderr] 52 | pub async fn build_logout_url( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `KeycloakUser` is never constructed [INFO] [stderr] --> src/security/controllers/register.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | struct KeycloakUser { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `KeycloakCredential` is never constructed [INFO] [stderr] --> src/security/controllers/register.rs:24:8 [INFO] [stderr] | [INFO] [stderr] 24 | struct KeycloakCredential { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `username`, `email`, `first_name`, `last_name`, and `password` are never read [INFO] [stderr] --> src/security/controllers/register.rs:32:9 [INFO] [stderr] | [INFO] [stderr] 31 | pub struct RegisterRequest { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 32 | pub username: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 33 | pub email: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 34 | pub first_name: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 35 | pub last_name: String, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 36 | pub password: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_mock_database` is never used [INFO] [stderr] --> src/security/controllers/register.rs:115:8 [INFO] [stderr] | [INFO] [stderr] 115 | fn get_mock_database() -> &'static DatabaseConnection { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `code`, `session_state`, and `iss` are never read [INFO] [stderr] --> src/security/controllers/auth_request.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct AuthRequest { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] 5 | pub code: Option, [INFO] [stderr] | ^^^^ [INFO] [stderr] 6 | session_state: Option, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 7 | iss: Option, [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AuthRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/http/controllers/account.rs:38:21 [INFO] [stderr] | [INFO] [stderr] 38 | create(&state.db_connection, &command).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 38 | let _ = create(&state.db_connection, &command).await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: struct `CreateProfileCommand` is never constructed [INFO] [stderr] --> src/domain/profile.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 22 | pub struct CreateProfileCommand { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `create` is never used [INFO] [stderr] --> src/repositories/profile.rs:9:14 [INFO] [stderr] | [INFO] [stderr] 9 | pub async fn create(db_connexion: &DatabaseConnection, command: &CreateProfileCommand) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `find_one_by_id` is never used [INFO] [stderr] --> src/repositories/profile.rs:27:14 [INFO] [stderr] | [INFO] [stderr] 27 | pub async fn find_one_by_id(db_connexion: &DatabaseConnection, id: i32) -> Result, DbErr> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/security/oidc.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 46 | impl OidcConfig { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 47 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `banana-back` (bin "banana-back" test) generated 84 warnings (run `cargo fix --bin "banana-back" -p banana-back --tests` to apply 57 suggestions) [INFO] [stderr] warning: `banana-back` (bin "banana-back") generated 77 warnings (73 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/banana_back-b1e946286afa405f) [INFO] [stdout] [INFO] [stdout] running 10 tests [INFO] [stdout] test http::controllers::test::tests::get_test_should_return_ok_with_empty_body_when_not_found ... ok [INFO] [stdout] test http::controllers::test::tests::get_test_should_return_profile_when_found ... ok [INFO] [stdout] test repositories::account::tests::read::test_find_all ... ok [INFO] [stdout] test repositories::account::tests::read::test_find_by_id ... ok [INFO] [stdout] test repositories::account::tests::create::should_create_account ... ok [INFO] [stdout] test repositories::profile::tests::create::should_create_todo_list ... ok [INFO] [stdout] test http::adapters::profile::tests::should_get_one_profile_by_username ... ok [INFO] [stdout] test repositories::profile::tests::read::should_find_one_by_username_with_profile_view_mapper ... ok [INFO] [stdout] test repositories::profile::tests::read::should_find_one_by_id ... ok [INFO] [stdout] test repositories::profile::tests::read::should_find_one_by_username_with_profile_mapper ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running tests/integration_test.rs (/opt/rustwide/target/debug/deps/integration_test-838538bc8c52ac68) [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" "69f49c51f0a868492323d9604865cd3a337912388d2b4d031017c615b623aae6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69f49c51f0a868492323d9604865cd3a337912388d2b4d031017c615b623aae6", kill_on_drop: false }` [INFO] [stdout] 69f49c51f0a868492323d9604865cd3a337912388d2b4d031017c615b623aae6