[INFO] cloning repository https://github.com/learnfrombasic/whoami [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/learnfrombasic/whoami" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flearnfrombasic%2Fwhoami", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flearnfrombasic%2Fwhoami'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 39aca24deb94f55c170f1db73a52a8718d38a63e [INFO] checking learnfrombasic/whoami against master#6f34f4ee074ce0affc7bbf4e2c835f66cd576f13 for pr-147017 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flearnfrombasic%2Fwhoami" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/learnfrombasic/whoami [INFO] finished tweaking git repo https://github.com/learnfrombasic/whoami [INFO] tweaked toml for git repo https://github.com/learnfrombasic/whoami written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/learnfrombasic/whoami on toolchain 6f34f4ee074ce0affc7bbf4e2c835f66cd576f13 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+6f34f4ee074ce0affc7bbf4e2c835f66cd576f13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/learnfrombasic/whoami 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" "+6f34f4ee074ce0affc7bbf4e2c835f66cd576f13" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rust-embed-utils v8.7.2 [INFO] [stderr] Downloaded rust-embed-impl v8.7.2 [INFO] [stderr] Downloaded bcrypt v0.15.1 [INFO] [stderr] Downloaded actix-cors v0.7.1 [INFO] [stderr] Downloaded utoipa v4.2.3 [INFO] [stderr] Downloaded zip v0.6.6 [INFO] [stderr] Downloaded utoipa-gen v4.3.1 [INFO] [stderr] Downloaded rust-embed v8.7.2 [INFO] [stderr] Downloaded utoipa-swagger-ui v6.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+6f34f4ee074ce0affc7bbf4e2c835f66cd576f13" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 192c910bff32996dd0cfbdb7c9f1f8ff8ba7cb1e25f62e30552aecc23f002ee6 [INFO] running `Command { std: "docker" "start" "-a" "192c910bff32996dd0cfbdb7c9f1f8ff8ba7cb1e25f62e30552aecc23f002ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "192c910bff32996dd0cfbdb7c9f1f8ff8ba7cb1e25f62e30552aecc23f002ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "192c910bff32996dd0cfbdb7c9f1f8ff8ba7cb1e25f62e30552aecc23f002ee6", kill_on_drop: false }` [INFO] [stdout] 192c910bff32996dd0cfbdb7c9f1f8ff8ba7cb1e25f62e30552aecc23f002ee6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+6f34f4ee074ce0affc7bbf4e2c835f66cd576f13" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f928cc99c7905066108ba9273d4e82dc03f8bedd30832b6c7263446df02ac08 [INFO] running `Command { std: "docker" "start" "-a" "2f928cc99c7905066108ba9273d4e82dc03f8bedd30832b6c7263446df02ac08", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Checking hashbrown v0.15.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustls v0.23.29 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling webpki-roots v1.0.2 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Compiling jobserver v0.1.33 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling cc v1.2.30 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Checking brotli-decompressor v5.0.0 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking actix-service v2.0.3 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking brotli v8.0.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling rust-embed-utils v8.7.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking cookie v0.16.2 [INFO] [stderr] Checking impl-more v0.1.9 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking env_filter v0.1.3 [INFO] [stderr] Checking pem v3.0.5 [INFO] [stderr] Checking jiff v0.2.15 [INFO] [stderr] Checking bcrypt v0.15.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking anstream v0.6.19 [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 displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Checking rustls-webpki v0.103.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling utoipa-swagger-ui v6.0.0 [INFO] [stderr] Compiling rust-embed-impl v8.7.2 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking rust-embed v8.7.2 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking derive_more v2.0.1 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling utoipa-gen v4.3.1 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking actix-server v2.6.0 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking utoipa v4.2.3 [INFO] [stderr] Checking sqlx-sqlite v0.8.6 [INFO] [stderr] Checking actix-http v3.11.0 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking actix-web v4.11.0 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking actix-cors v0.7.1 [INFO] [stderr] Checking whoami v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variants `AuthorizationError`, `RoleNotFound`, `PolicyNotFound`, and `PermissionDenied` are never constructed [INFO] [stdout] --> src/core/errors.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | AuthorizationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | RoleNotFound, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | PolicyNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | PermissionDenied, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Policy` is never constructed [INFO] [stdout] --> src/models/policy.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Policy { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_document` are never used [INFO] [stdout] --> src/models/policy.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Policy { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 40 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_document(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `admin_policy` and `read_only_policy` are never used [INFO] [stdout] --> src/models/policy.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl PolicyDocument { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 65 | pub fn admin_policy() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn read_only_policy() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Role` is never constructed [INFO] [stdout] --> src/models/role.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Role { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/role.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Role { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(name: String, description: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/repository/policy_repository.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PolicyRepository { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 7 | pool: SqlitePool, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/repository/policy_repository.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl PolicyRepository { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub async fn create(&self, policy: &Policy) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn find_by_id(&self, id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn find_by_name(&self, name: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub async fn list_all(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub async fn delete(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub async fn get_attached_roles(&self, policy_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub async fn get_attached_users(&self, policy_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/repository/role_repository.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RoleRepository { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 7 | pool: SqlitePool, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/repository/role_repository.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl RoleRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub async fn create(&self, role: &Role) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub async fn find_by_id(&self, id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn find_by_name(&self, name: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub async fn list_all(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn delete(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub async fn attach_policy(&self, role_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub async fn detach_policy(&self, role_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub async fn get_role_policies(&self, role_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub async fn get_role_users(&self, role_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/repository/user_repository.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl UserRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn list_all(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub async fn delete(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub async fn assign_role(&self, user_id: &str, role_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub async fn remove_role(&self, user_id: &str, role_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub async fn get_user_roles(&self, user_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub async fn assign_policy(&self, user_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub async fn remove_policy(&self, user_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | pub async fn get_user_policies(&self, user_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | pub async fn get_all_user_policies(&self, user_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageResponse` is never constructed [INFO] [stdout] --> src/schemas/auth.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct MessageResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreatePolicyRequest` is never constructed [INFO] [stdout] --> src/schemas/policy.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct CreatePolicyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdatePolicyRequest` is never constructed [INFO] [stdout] --> src/schemas/policy.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct UpdatePolicyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PolicyWithDetailsResponse` is never constructed [INFO] [stdout] --> src/schemas/policy.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PolicyWithDetailsResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleInfo` is never constructed [INFO] [stdout] --> src/schemas/policy.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct RoleInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserInfo` is never constructed [INFO] [stdout] --> src/schemas/policy.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct UserInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateRoleRequest` is never constructed [INFO] [stdout] --> src/schemas/role.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CreateRoleRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateRoleRequest` is never constructed [INFO] [stdout] --> src/schemas/role.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct UpdateRoleRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AttachPolicyRequest` is never constructed [INFO] [stdout] --> src/schemas/role.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct AttachPolicyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleWithPoliciesResponse` is never constructed [INFO] [stdout] --> src/schemas/role.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct RoleWithPoliciesResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PolicyInfo` is never constructed [INFO] [stdout] --> src/schemas/role.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct PolicyInfo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserInfo` is never constructed [INFO] [stdout] --> src/schemas/role.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct UserInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateUserRequest` is never constructed [INFO] [stdout] --> src/schemas/user.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CreateUserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateUserRequest` is never constructed [INFO] [stdout] --> src/schemas/user.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct UpdateUserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChangePasswordRequest` is never constructed [INFO] [stdout] --> src/schemas/user.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct ChangePasswordRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AssignRoleRequest` is never constructed [INFO] [stdout] --> src/schemas/user.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct AssignRoleRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AssignPolicyRequest` is never constructed [INFO] [stdout] --> src/schemas/user.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct AssignPolicyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserWithRolesResponse` is never constructed [INFO] [stdout] --> src/schemas/user.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct UserWithRolesResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleInfo` is never constructed [INFO] [stdout] --> src/schemas/user.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct RoleInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PolicyInfo` is never constructed [INFO] [stdout] --> src/schemas/user.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct PolicyInfo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `check_permission`, `matches_action`, and `matches_resource` are never used [INFO] [stdout] --> src/services/auth_service.rs:207:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl AuthService { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 207 | pub async fn check_permission( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn matches_action(&self, policy_actions: &[String], requested_action: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | fn matches_resource(&self, policy_resources: &[String], requested_resource: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `policy_repo` is never read [INFO] [stdout] --> src/services/policy_service.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PolicyService { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 8 | policy_repo: PolicyRepository, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create_policy`, `get_policy`, `get_policy_with_details`, `list_policies`, `update_policy`, and `delete_policy` are never used [INFO] [stdout] --> src/services/policy_service.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl PolicyService { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub async fn create_policy(&self, request: CreatePolicyRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn get_policy(&self, id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn get_policy_with_details( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub async fn list_policies(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub async fn update_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub async fn delete_policy(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `role_repo` and `policy_repo` are never read [INFO] [stdout] --> src/services/role_service.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RoleService { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | role_repo: RoleRepository, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | policy_repo: PolicyRepository, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/services/role_service.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl RoleService { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn create_role(&self, request: CreateRoleRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub async fn get_role(&self, id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub async fn get_role_with_policies( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub async fn list_roles(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub async fn update_role( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub async fn delete_role(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn attach_policy(&self, role_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub async fn detach_policy(&self, role_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_repo`, `role_repo`, and `policy_repo` are never read [INFO] [stdout] --> src/services/user_service.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct UserService { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 9 | user_repo: UserRepository, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | role_repo: RoleRepository, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | policy_repo: PolicyRepository, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/services/user_service.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl UserService { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub async fn create_user(&self, request: CreateUserRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub async fn get_user(&self, id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn get_user_with_roles(&self, id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub async fn list_users(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn update_user( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub async fn delete_user(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub async fn assign_role(&self, user_id: &str, role_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub async fn remove_role(&self, user_id: &str, role_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub async fn assign_policy(&self, user_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub async fn remove_policy(&self, user_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AuthorizationError`, `RoleNotFound`, `PolicyNotFound`, and `PermissionDenied` are never constructed [INFO] [stdout] --> src/core/errors.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum AppError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | AuthorizationError(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | RoleNotFound, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | PolicyNotFound, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | PermissionDenied, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Policy` is never constructed [INFO] [stdout] --> src/models/policy.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Policy { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_document` are never used [INFO] [stdout] --> src/models/policy.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Policy { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 40 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_document(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `admin_policy` and `read_only_policy` are never used [INFO] [stdout] --> src/models/policy.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 64 | impl PolicyDocument { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 65 | pub fn admin_policy() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn read_only_policy() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Role` is never constructed [INFO] [stdout] --> src/models/role.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Role { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/role.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Role { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 17 | pub fn new(name: String, description: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/repository/policy_repository.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PolicyRepository { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 7 | pool: SqlitePool, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/repository/policy_repository.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl PolicyRepository { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub async fn create(&self, policy: &Policy) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn find_by_id(&self, id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn find_by_name(&self, name: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub async fn list_all(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub async fn delete(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub async fn get_attached_roles(&self, policy_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub async fn get_attached_users(&self, policy_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `pool` is never read [INFO] [stdout] --> src/repository/role_repository.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RoleRepository { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 7 | pool: SqlitePool, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/repository/role_repository.rs:15:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl RoleRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 15 | pub async fn create(&self, role: &Role) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub async fn find_by_id(&self, id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn find_by_name(&self, name: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub async fn list_all(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub async fn delete(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub async fn attach_policy(&self, role_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 127 | pub async fn detach_policy(&self, role_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub async fn get_role_policies(&self, role_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub async fn get_role_users(&self, role_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/repository/user_repository.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl UserRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 70 | pub async fn list_all(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub async fn delete(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub async fn assign_role(&self, user_id: &str, role_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub async fn remove_role(&self, user_id: &str, role_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub async fn get_user_roles(&self, user_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub async fn assign_policy(&self, user_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub async fn remove_policy(&self, user_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | pub async fn get_user_policies(&self, user_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 220 | pub async fn get_all_user_policies(&self, user_id: &str) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageResponse` is never constructed [INFO] [stdout] --> src/schemas/auth.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct MessageResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreatePolicyRequest` is never constructed [INFO] [stdout] --> src/schemas/policy.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct CreatePolicyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdatePolicyRequest` is never constructed [INFO] [stdout] --> src/schemas/policy.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct UpdatePolicyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PolicyWithDetailsResponse` is never constructed [INFO] [stdout] --> src/schemas/policy.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct PolicyWithDetailsResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleInfo` is never constructed [INFO] [stdout] --> src/schemas/policy.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct RoleInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserInfo` is never constructed [INFO] [stdout] --> src/schemas/policy.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct UserInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateRoleRequest` is never constructed [INFO] [stdout] --> src/schemas/role.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CreateRoleRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateRoleRequest` is never constructed [INFO] [stdout] --> src/schemas/role.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct UpdateRoleRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AttachPolicyRequest` is never constructed [INFO] [stdout] --> src/schemas/role.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct AttachPolicyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleWithPoliciesResponse` is never constructed [INFO] [stdout] --> src/schemas/role.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct RoleWithPoliciesResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PolicyInfo` is never constructed [INFO] [stdout] --> src/schemas/role.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct PolicyInfo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserInfo` is never constructed [INFO] [stdout] --> src/schemas/role.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct UserInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateUserRequest` is never constructed [INFO] [stdout] --> src/schemas/user.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CreateUserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateUserRequest` is never constructed [INFO] [stdout] --> src/schemas/user.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct UpdateUserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChangePasswordRequest` is never constructed [INFO] [stdout] --> src/schemas/user.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct ChangePasswordRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AssignRoleRequest` is never constructed [INFO] [stdout] --> src/schemas/user.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct AssignRoleRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AssignPolicyRequest` is never constructed [INFO] [stdout] --> src/schemas/user.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct AssignPolicyRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserWithRolesResponse` is never constructed [INFO] [stdout] --> src/schemas/user.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct UserWithRolesResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoleInfo` is never constructed [INFO] [stdout] --> src/schemas/user.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct RoleInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PolicyInfo` is never constructed [INFO] [stdout] --> src/schemas/user.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct PolicyInfo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `check_permission`, `matches_action`, and `matches_resource` are never used [INFO] [stdout] --> src/services/auth_service.rs:207:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl AuthService { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 207 | pub async fn check_permission( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 237 | fn matches_action(&self, policy_actions: &[String], requested_action: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 254 | fn matches_resource(&self, policy_resources: &[String], requested_resource: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `policy_repo` is never read [INFO] [stdout] --> src/services/policy_service.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PolicyService { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 8 | policy_repo: PolicyRepository, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create_policy`, `get_policy`, `get_policy_with_details`, `list_policies`, `update_policy`, and `delete_policy` are never used [INFO] [stdout] --> src/services/policy_service.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl PolicyService { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub async fn create_policy(&self, request: CreatePolicyRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn get_policy(&self, id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub async fn get_policy_with_details( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub async fn list_policies(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub async fn update_policy( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub async fn delete_policy(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `role_repo` and `policy_repo` are never read [INFO] [stdout] --> src/services/role_service.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RoleService { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 8 | role_repo: RoleRepository, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | policy_repo: PolicyRepository, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/services/role_service.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl RoleService { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn create_role(&self, request: CreateRoleRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub async fn get_role(&self, id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub async fn get_role_with_policies( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub async fn list_roles(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub async fn update_role( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub async fn delete_role(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub async fn attach_policy(&self, role_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 112 | pub async fn detach_policy(&self, role_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `user_repo`, `role_repo`, and `policy_repo` are never read [INFO] [stdout] --> src/services/user_service.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct UserService { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 9 | user_repo: UserRepository, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 10 | role_repo: RoleRepository, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | policy_repo: PolicyRepository, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/services/user_service.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl UserService { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub async fn create_user(&self, request: CreateUserRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub async fn get_user(&self, id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn get_user_with_roles(&self, id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub async fn list_users(&self) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn update_user( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub async fn delete_user(&self, id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub async fn assign_role(&self, user_id: &str, role_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub async fn remove_role(&self, user_id: &str, role_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub async fn assign_policy(&self, user_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub async fn remove_policy(&self, user_id: &str, policy_id: &str) -> Result<(), AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 37s [INFO] running `Command { std: "docker" "inspect" "2f928cc99c7905066108ba9273d4e82dc03f8bedd30832b6c7263446df02ac08", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f928cc99c7905066108ba9273d4e82dc03f8bedd30832b6c7263446df02ac08", kill_on_drop: false }` [INFO] [stdout] 2f928cc99c7905066108ba9273d4e82dc03f8bedd30832b6c7263446df02ac08