[INFO] cloning repository https://github.com/ianzepp/monk-api-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ianzepp/monk-api-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fianzepp%2Fmonk-api-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fianzepp%2Fmonk-api-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 282fb7fbff6a2857403790cf217bfb154a8ce993 [INFO] checking ianzepp/monk-api-rust against master#51ff895062ba60a7cba53f57af928c3fb7b0f2f4 for pr-146167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fianzepp%2Fmonk-api-rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ianzepp/monk-api-rust [INFO] finished tweaking git repo https://github.com/ianzepp/monk-api-rust [INFO] tweaked toml for git repo https://github.com/ianzepp/monk-api-rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ianzepp/monk-api-rust on toolchain 51ff895062ba60a7cba53f57af928c3fb7b0f2f4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+51ff895062ba60a7cba53f57af928c3fb7b0f2f4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ianzepp/monk-api-rust 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" "+51ff895062ba60a7cba53f57af928c3fb7b0f2f4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tower-test v0.4.0 [INFO] [stderr] Downloaded rust_decimal v1.37.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+51ff895062ba60a7cba53f57af928c3fb7b0f2f4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 83d08074ad9e0519fbc855945029bb281a95df108bf3c87f9e2638630ab1079e [INFO] running `Command { std: "docker" "start" "-a" "83d08074ad9e0519fbc855945029bb281a95df108bf3c87f9e2638630ab1079e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "83d08074ad9e0519fbc855945029bb281a95df108bf3c87f9e2638630ab1079e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83d08074ad9e0519fbc855945029bb281a95df108bf3c87f9e2638630ab1079e", kill_on_drop: false }` [INFO] [stdout] 83d08074ad9e0519fbc855945029bb281a95df108bf3c87f9e2638630ab1079e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+51ff895062ba60a7cba53f57af928c3fb7b0f2f4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0bd647bc3bf8100e01893d538ea6bbde82da33284d90b792c4f5089c0e1976c9 [INFO] running `Command { std: "docker" "start" "-a" "0bd647bc3bf8100e01893d538ea6bbde82da33284d90b792c4f5089c0e1976c9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling find-msvc-tools v0.1.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling cc v1.2.35 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Checking bitflags v2.9.4 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Checking rustls-pki-types v1.12.0 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Checking indexmap v2.11.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rustls v0.23.31 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Checking adler2 v2.0.1 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling bigdecimal v0.3.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking deranged v0.5.3 [INFO] [stderr] Checking flate2 v1.1.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Checking compression-core v0.4.29 [INFO] [stderr] Checking anstyle-query v1.1.4 [INFO] [stderr] Checking compression-codecs v0.4.30 [INFO] [stderr] Checking anstream v0.6.20 [INFO] [stderr] Checking webpki-roots v1.0.2 [INFO] [stderr] Compiling bigdecimal v0.4.8 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Compiling anyhow v1.0.99 [INFO] [stderr] Compiling rust_decimal v1.37.2 [INFO] [stderr] Checking iri-string v0.7.8 [INFO] [stderr] Checking clap_builder v4.5.47 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking nu-ansi-term v0.50.1 [INFO] [stderr] Checking time v0.3.43 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Checking portpicker v0.1.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Checking rustls-webpki v0.103.4 [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 futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking clap v4.5.47 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-rustls v0.26.2 [INFO] [stderr] Checking async-compression v0.4.30 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking tower-test v0.4.0 [INFO] [stderr] Checking h2 v0.4.12 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking sqlx-postgres v0.7.4 [INFO] [stderr] Checking hyper-util v0.1.16 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking reqwest v0.12.23 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking monk-api-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `execute_sql`, `row_to_record`, `extract_column_value`, and `bind_param` are never used [INFO] [stdout] --> src/database/repository.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 50 | impl Repository { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | async fn execute_sql(&self, query: &str, params: &[Value]) -> Result, DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn row_to_record(&self, row: sqlx::postgres::PgRow) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn extract_column_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | fn bind_param<'q>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `port` and `child` are never read [INFO] [stdout] --> tests/common/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct TestServer { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 11 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub base_url: String, [INFO] [stdout] 13 | child: Child, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `port` and `child` are never read [INFO] [stdout] --> tests/common/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct TestServer { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 11 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub base_url: String, [INFO] [stdout] 13 | child: Child, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `port` and `child` are never read [INFO] [stdout] --> tests/common/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct TestServer { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 11 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub base_url: String, [INFO] [stdout] 13 | child: Child, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `execute_sql`, `row_to_record`, `extract_column_value`, and `bind_param` are never used [INFO] [stdout] --> src/database/repository.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 50 | impl Repository { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | async fn execute_sql(&self, query: &str, params: &[Value]) -> Result, DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn row_to_record(&self, row: sqlx::postgres::PgRow) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn extract_column_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | fn bind_param<'q>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `port` and `child` are never read [INFO] [stdout] --> tests/common/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct TestServer { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 11 | pub port: u16, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | pub base_url: String, [INFO] [stdout] 13 | child: Child, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/handlers/public/auth/session.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::{json, Value}; [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: `super::utils::validate_tenant_exists` [INFO] [stdout] --> src/handlers/public/auth/user.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::utils::validate_tenant_exists; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/handlers/public/auth/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `auth::*` [INFO] [stdout] --> src/handlers/public/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use auth::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/handlers/protected/auth/session.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/handlers/protected/data/record.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/handlers/protected/data/schema.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::filter::FilterData` [INFO] [stdout] --> src/handlers/protected/data/schema.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::filter::FilterData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::ApiError` [INFO] [stdout] --> src/handlers/protected/data/schema.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::error::ApiError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `database::repository::Repository` [INFO] [stdout] --> src/handlers/protected/describe/schema.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{database::repository::Repository, error::ApiError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::ApiError` [INFO] [stdout] --> src/handlers/protected/describe/column.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::error::ApiError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Record` [INFO] [stdout] --> src/handlers/protected/find/schema.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::database::record::{Record, RecordVecExt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::ApiError` [INFO] [stdout] --> src/handlers/protected/find/schema.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::error::ApiError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `auth::*` [INFO] [stdout] --> src/handlers/protected/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use auth::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data::*` [INFO] [stdout] --> src/handlers/protected/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use data::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `describe::*` [INFO] [stdout] --> src/handlers/protected/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use describe::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create::tenant_create` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use create::tenant_create; // Create new tenant [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `list::tenant_list` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use list::tenant_list; // List all tenants [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `show::tenant_show` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use show::tenant_show; // Show tenant details [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update::tenant_update` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use update::tenant_update; // Update tenant config [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete::tenant_delete` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use delete::tenant_delete; // Soft delete tenant [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `restore::tenant_restore` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use restore::tenant_restore; // Restore deleted tenant [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `health::tenant_health` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub use health::tenant_health; // Check tenant health [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValidatedTenant` [INFO] [stdout] --> src/middleware/mod.rs:8:55 [INFO] [stdout] | [INFO] [stdout] 8 | pub use validate_tenant::{validate_tenant_middleware, ValidatedTenant, TenantPool}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValidatedUser` [INFO] [stdout] --> src/middleware/mod.rs:9:51 [INFO] [stdout] | [INFO] [stdout] 9 | pub use validate_user::{validate_user_middleware, ValidatedUser}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `context::*` [INFO] [stdout] --> src/observer/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use context::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `traits::*` [INFO] [stdout] --> src/observer/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use traits::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pipeline::*` [INFO] [stdout] --> src/observer/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use pipeline::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::*` [INFO] [stdout] --> src/observer/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use error::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/handlers/public/auth/session.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::{json, Value}; [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: `super::utils::validate_tenant_exists` [INFO] [stdout] --> src/handlers/public/auth/user.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::utils::validate_tenant_exists; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/handlers/public/auth/utils.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `auth::*` [INFO] [stdout] --> src/handlers/public/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use auth::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Value` [INFO] [stdout] --> src/handlers/protected/auth/session.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/handlers/protected/data/record.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/handlers/protected/data/schema.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::filter::FilterData` [INFO] [stdout] --> src/handlers/protected/data/schema.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::filter::FilterData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::ApiError` [INFO] [stdout] --> src/handlers/protected/data/schema.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::error::ApiError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `database::repository::Repository` [INFO] [stdout] --> src/handlers/protected/describe/schema.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{database::repository::Repository, error::ApiError}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::ApiError` [INFO] [stdout] --> src/handlers/protected/describe/column.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::error::ApiError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Record` [INFO] [stdout] --> src/handlers/protected/find/schema.rs:8:31 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::database::record::{Record, RecordVecExt}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::error::ApiError` [INFO] [stdout] --> src/handlers/protected/find/schema.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::error::ApiError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `auth::*` [INFO] [stdout] --> src/handlers/protected/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use auth::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `data::*` [INFO] [stdout] --> src/handlers/protected/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use data::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `describe::*` [INFO] [stdout] --> src/handlers/protected/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use describe::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `create::tenant_create` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | pub use create::tenant_create; // Create new tenant [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `list::tenant_list` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub use list::tenant_list; // List all tenants [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `show::tenant_show` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub use show::tenant_show; // Show tenant details [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update::tenant_update` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub use update::tenant_update; // Update tenant config [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `delete::tenant_delete` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub use delete::tenant_delete; // Soft delete tenant [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `restore::tenant_restore` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | pub use restore::tenant_restore; // Restore deleted tenant [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `health::tenant_health` [INFO] [stdout] --> src/handlers/elevated/root/tenant/mod.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | pub use health::tenant_health; // Check tenant health [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValidatedTenant` [INFO] [stdout] --> src/middleware/mod.rs:8:55 [INFO] [stdout] | [INFO] [stdout] 8 | pub use validate_tenant::{validate_tenant_middleware, ValidatedTenant, TenantPool}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValidatedUser` [INFO] [stdout] --> src/middleware/mod.rs:9:51 [INFO] [stdout] | [INFO] [stdout] 9 | pub use validate_user::{validate_user_middleware, ValidatedUser}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `context::*` [INFO] [stdout] --> src/observer/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use context::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `traits::*` [INFO] [stdout] --> src/observer/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use traits::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pipeline::*` [INFO] [stdout] --> src/observer/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use pipeline::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::*` [INFO] [stdout] --> src/observer/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use error::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auth_user` [INFO] [stdout] --> src/handlers/protected/describe/column.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | Extension(auth_user): Extension, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auth_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `created_column` [INFO] [stdout] --> src/handlers/protected/describe/column.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let created_column = service.create_column(&schema, &column, payload, is_required).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_created_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `updated_column` [INFO] [stdout] --> src/handlers/protected/describe/column.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let updated_column = service.update_column(&schema, &column, payload, is_required).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_updated_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auth_user` [INFO] [stdout] --> src/handlers/protected/describe/column.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 29 | Extension(auth_user): Extension, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auth_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `created_column` [INFO] [stdout] --> src/handlers/protected/describe/column.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let created_column = service.create_column(&schema, &column, payload, is_required).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_created_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `updated_column` [INFO] [stdout] --> src/handlers/protected/describe/column.rs:90:9 [INFO] [stdout] | [INFO] [stdout] 90 | let updated_column = service.update_column(&schema, &column, payload, is_required).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_updated_column` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `clone_database`, `get_admin_pool`, `get_tenant_pool`, `new`, `quote_identifier`, and `close_all` are never used [INFO] [stdout] --> src/database/manager.rs:109:18 [INFO] [stdout] | [INFO] [stdout] 41 | impl DatabaseManager { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | pub async fn clone_database(source_db: &str, target_db: &str) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | async fn get_admin_pool(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub async fn get_tenant_pool(&self, database_name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | fn quote_identifier(name: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub async fn close_all() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryBuilder` is never constructed [INFO] [stdout] --> src/database/query_builder.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct QueryBuilder { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/database/query_builder.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 15 | / impl QueryBuilder [INFO] [stdout] 16 | | where [INFO] [stdout] 17 | | T: for<'r> FromRow<'r, sqlx::postgres::PgRow> + Send + Unpin, [INFO] [stdout] | |_________________________________________________________________- associated items in this implementation [INFO] [stdout] 18 | { [INFO] [stdout] 19 | pub fn new(table_name: impl Into) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn select(mut self, columns: Vec) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn filter(mut self, filter_data: FilterData) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn select_all(self, pool: &PgPool) -> Result, DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn select_one(self, pool: &PgPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn select_optional(self, pool: &PgPool) -> Result, DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub async fn count(self, pool: &PgPool) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn sql_result(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bind_param_query` is never used [INFO] [stdout] --> src/database/query_builder.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn bind_param_query<'q>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bind_param_query_as` is never used [INFO] [stdout] --> src/database/query_builder.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn bind_param_query_as<'q, O>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_json_array`, `to_json_string`, and `to_api_output_string` are never used [INFO] [stdout] --> src/database/record.rs:547:8 [INFO] [stdout] | [INFO] [stdout] 545 | pub trait RecordVecExt { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] 546 | /// Convert to JSON array value [INFO] [stdout] 547 | fn to_json_array(self) -> Value; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 556 | fn to_json_string(self) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 559 | fn to_api_output_string(self) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RecordResultExt` is never used [INFO] [stdout] --> src/database/record.rs:585:11 [INFO] [stdout] | [INFO] [stdout] 585 | pub trait RecordResultExt { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OriginalError` and `SerializationError` are never constructed [INFO] [stdout] --> src/database/record.rs:628:5 [INFO] [stdout] | [INFO] [stdout] 627 | pub enum RecordResultError { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 628 | OriginalError(E), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 629 | SerializationError(serde_json::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordResultError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/database/repository.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 50 | impl Repository { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | async fn execute_sql(&self, query: &str, params: &[Value]) -> Result, DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub async fn execute_ddl(&self, ddl: &str) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn row_to_record(&self, row: sqlx::postgres::PgRow) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn extract_column_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | fn bind_param<'q>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub async fn count(&self, filter_data: FilterData) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 438 | pub async fn delete_ids(&self, ids: Vec) -> Result, DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Schema` is never constructed [INFO] [stdout] --> src/database/models/schema.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Schema { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Column` is never constructed [INFO] [stdout] --> src/database/models/column.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Column { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DynamicRepository` is never constructed [INFO] [stdout] --> src/database/dynamic.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DynamicRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `select_any` are never used [INFO] [stdout] --> src/database/dynamic.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl DynamicRepository { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(table_name: impl Into, pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn select_any( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bind_param` is never used [INFO] [stdout] --> src/database/dynamic.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn bind_param<'q>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `field_errors` is never read [INFO] [stdout] --> src/error.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | ValidationError { [INFO] [stdout] | --------------- field in this variant [INFO] [stdout] 12 | message: String, [INFO] [stdout] 13 | field_errors: Option> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UnprocessableEntity`, `TooManyRequests`, and `BadGateway` are never constructed [INFO] [stdout] --> src/error.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum ApiError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 30 | UnprocessableEntity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | TooManyRequests(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | BadGateway(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `unprocessable_entity`, `too_many_requests`, and `bad_gateway` are never used [INFO] [stdout] --> src/error.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl ApiError { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn unprocessable_entity( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn too_many_requests(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn bad_gateway(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_where_sql` and `to_count_sql` are never used [INFO] [stdout] --> src/filter/filter.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Filter { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn to_where_sql(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn to_count_sql(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password` is never read [INFO] [stdout] --> src/handlers/public/auth/session.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LoginRequest { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 10 | pub password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoginRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/handlers/public/auth/session.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct RefreshRequest { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 15 | pub token: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RefreshRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tenant`, `username`, `email`, and `password` are never read [INFO] [stdout] --> src/handlers/public/auth/user.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct RegisterRequest { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 9 | pub tenant: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | pub email: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub password: Option, // May be set separately in activation flow [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegisterRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JWTClaims` is never constructed [INFO] [stdout] --> src/handlers/public/auth/utils.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct JWTClaims { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserInfo` is never constructed [INFO] [stdout] --> src/handlers/public/auth/utils.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct UserInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_jwt_token` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn generate_jwt_token(user_info: &UserInfo, expiry_hours: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_jwt_token` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn validate_jwt_token(token: &str, allow_expired: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_tenant_exists` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:140:14 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn validate_tenant_exists(tenant_name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TenantInfo` is never constructed [INFO] [stdout] --> src/handlers/public/auth/utils.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct TenantInfo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_username_format` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn validate_username_format(username: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_email_format` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:229:8 [INFO] [stdout] | [INFO] [stdout] 229 | pub fn validate_email_format(email: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:260:8 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn hash_password(password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_password` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | pub fn verify_password(password: &str, hash: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_activation_token` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:317:8 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn generate_activation_token() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_TOKEN_EXPIRY_HOURS` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:341:15 [INFO] [stdout] | [INFO] [stdout] 341 | pub const DEFAULT_TOKEN_EXPIRY_HOURS: u64 = 24; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_REFRESH_WINDOW_DAYS` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:344:15 [INFO] [stdout] | [INFO] [stdout] 344 | pub const MAX_REFRESH_WINDOW_DAYS: i64 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_PASSWORD_LENGTH` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:347:15 [INFO] [stdout] | [INFO] [stdout] 347 | pub const MIN_PASSWORD_LENGTH: usize = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOGIN_RATE_LIMIT_PER_MINUTE` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:350:15 [INFO] [stdout] | [INFO] [stdout] 350 | pub const LOGIN_RATE_LIMIT_PER_MINUTE: u32 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REGISTRATION_RATE_LIMIT_PER_HOUR` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:351:15 [INFO] [stdout] | [INFO] [stdout] 351 | pub const REGISTRATION_RATE_LIMIT_PER_HOUR: u32 = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `permissions` and `password` are never read [INFO] [stdout] --> src/handlers/protected/auth/session.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SudoRequest { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 7 | /// Optional: Specific permissions being requested [INFO] [stdout] 8 | pub permissions: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | /// Optional: Password confirmation for sensitive operations [INFO] [stdout] 10 | pub password: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SudoRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthenticatedUser` is never constructed [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AuthenticatedUser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SessionType` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum SessionType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Permission` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Permission { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_str` and `from_str` are never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Permission { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 41 | /// Convert permission to string representation [INFO] [stdout] 42 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn from_str(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl AuthenticatedUser { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 67 | /// Check if user has a specific permission [INFO] [stdout] 68 | pub fn has_permission(&self, permission: &Permission) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn has_any_permission(&self, permissions: &[Permission]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn has_all_permissions(&self, permissions: &[Permission]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn can_sudo(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn is_elevated(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn token_expires_in(&self) -> chrono::Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn is_token_expired(&self, buffer_minutes: i64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_bearer_token` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn extract_bearer_token(auth_header: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `authorize_user` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn authorize_user( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_elevated_permissions` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn generate_elevated_permissions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STANDARD` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:207:15 [INFO] [stdout] | [INFO] [stdout] 207 | pub const STANDARD: Duration = Duration::hours(24); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ELEVATED` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:210:15 [INFO] [stdout] | [INFO] [stdout] 210 | pub const ELEVATED: Duration = Duration::minutes(30); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SYSTEM` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:213:15 [INFO] [stdout] | [INFO] [stdout] 213 | pub const SYSTEM: Duration = Duration::hours(1); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRESH_BUFFER` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:216:15 [INFO] [stdout] | [INFO] [stdout] 216 | pub const REFRESH_BUFFER: Duration = Duration::minutes(5); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `meta` is never read [INFO] [stdout] --> src/handlers/protected/data/record.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct RecordQuery { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 15 | /// Include metadata sections. Examples: meta=true, meta=system,permissions [INFO] [stdout] 16 | pub meta: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `meta` is never read [INFO] [stdout] --> src/handlers/protected/data/schema.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ListQuery { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 16 | /// Include metadata sections. Examples: meta=true, meta=system,permissions [INFO] [stdout] 17 | pub meta: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ListQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_tenant_db` is never used [INFO] [stdout] --> src/handlers/protected/data/utils.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn resolve_tenant_db(param: &Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `meta` is never read [INFO] [stdout] --> src/handlers/protected/describe/schema.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct DescribeQuery { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 13 | /// Include additional metadata. Examples: meta=true, meta=system,permissions [INFO] [stdout] 14 | pub meta: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescribeQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `meta` is never read [INFO] [stdout] --> src/handlers/protected/find/schema.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FindQuery { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 15 | /// Include metadata sections. Examples: meta=true, meta=system,permissions [INFO] [stdout] 16 | pub meta: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FindQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_create` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/create.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn tenant_create() -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_list` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/list.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_list() -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_show` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/show.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_show(Path(name): Path) -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_update` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/update.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_update(Path(name): Path) -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_delete` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/delete.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_delete(Path(name): Path) -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_restore` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/restore.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_restore(Path(name): Path) -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_health` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/health.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_health(Path(name): Path) -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `accepted` and `no_content` are never used [INFO] [stdout] --> src/middleware/response.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl ApiResponse { [INFO] [stdout] | --------------------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn accepted(data: T) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn no_content() -> ApiResponse<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoApiResponse` is never used [INFO] [stdout] --> src/middleware/response.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | pub trait IntoApiResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ApiSuccess` is never used [INFO] [stdout] --> src/middleware/response.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | pub type ApiSuccess = ApiResponse; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/middleware/validate_tenant.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ValidatedTenant { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 21 | pub id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | pub is_active: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 26 | pub tenant_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | pub access_read: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 28 | pub access_edit: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | pub access_full: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | pub access_deny: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidatedTenant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `access_read`, `access_edit`, `access_full`, and `access_deny` are never read [INFO] [stdout] --> src/middleware/validate_user.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ValidatedUser { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 17 | pub id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub access_read: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 22 | pub access_edit: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | pub access_full: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | pub access_deny: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidatedUser` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/observer/context.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl ObserverContext { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn set_metadata(&mut self, data: T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_metadata_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn has_metadata(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn add_error(&mut self, error: ObserverError) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn add_warning(&mut self, warning: ObserverWarning) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn has_errors(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn execution_time(&self) -> std::time::Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn records_with_field_changes(&self, field: &str) -> Vec<&Record> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn records_by_operation(&self, operation: Operation) -> Vec<&Record> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn records_by_operation_mut(&mut self, operation: Operation) -> Vec<&mut Record> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn count_by_operation(&self, operation: Operation) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn has_record_changes(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PreloadedRecords` is never constructed [INFO] [stdout] --> src/observer/context.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct PreloadedRecords { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidationResults` is never constructed [INFO] [stdout] --> src/observer/context.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct ValidationResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecurityCheckResults` is never constructed [INFO] [stdout] --> src/observer/context.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | pub struct SecurityCheckResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryMetadata` is never constructed [INFO] [stdout] --> src/observer/context.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | pub struct QueryMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccessFilter` is never constructed [INFO] [stdout] --> src/observer/context.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub struct AccessFilter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryOptimization` is never constructed [INFO] [stdout] --> src/observer/context.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 264 | pub struct QueryOptimization { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PerformanceHint` is never constructed [INFO] [stdout] --> src/observer/context.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | pub struct PerformanceHint { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PerformanceImpact` is never used [INFO] [stdout] --> src/observer/context.rs:281:10 [INFO] [stdout] | [INFO] [stdout] 281 | pub enum PerformanceImpact { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryExecutionStats` is never constructed [INFO] [stdout] --> src/observer/context.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | pub struct QueryExecutionStats { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_asynchronous` is never used [INFO] [stdout] --> src/observer/traits.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ObserverRing { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn is_asynchronous(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `priority` is never used [INFO] [stdout] --> src/observer/traits.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub trait Observer: Send + Sync { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 74 | fn priority(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/observer/traits.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 123 | pub trait Ring7: Observer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 124 | async fn execute(&self, ctx: &ObserverContext) -> Result<(), ObserverError>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/observer/traits.rs:130:14 [INFO] [stdout] | [INFO] [stdout] 129 | pub trait Ring8: Observer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 130 | async fn execute(&self, ctx: &ObserverContext) -> Result<(), ObserverError>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/observer/traits.rs:136:14 [INFO] [stdout] | [INFO] [stdout] 135 | pub trait Ring9: Observer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 136 | async fn execute(&self, ctx: &ObserverContext) -> Result<(), ObserverError>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/observer/traits.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 141 | pub enum ObserverBox { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 142 | Ring0(Box), [INFO] [stdout] 143 | Ring1(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 144 | Ring2(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 145 | Ring3(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 146 | Ring4(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | Ring7(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 150 | Ring8(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 151 | Ring9(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute_async` is never used [INFO] [stdout] --> src/observer/traits.rs:243:18 [INFO] [stdout] | [INFO] [stdout] 154 | impl ObserverBox { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 243 | pub async fn execute_async(&self, ctx: &ObserverContext) -> Result<(), ObserverError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SecurityError`, `SystemError`, `RecursionError`, `ObserverNotFound`, and `PipelineError` are never constructed [INFO] [stdout] --> src/observer/error.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ObserverError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | SecurityError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | SystemError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | RecursionError { depth: usize, max_depth: usize }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | ObserverNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | PipelineError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObserverError` 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 `observer`, `ring`, `message`, and `context` are never read [INFO] [stdout] --> src/observer/error.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct ObserverWarning { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 35 | pub observer: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 36 | pub ring: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 37 | pub message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 38 | pub context: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObserverWarning` 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: associated items `new` and `with_context` are never used [INFO] [stdout] --> src/observer/error.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl ObserverWarning { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 42 | pub fn new(observer: &str, ring: u8, message: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn with_context(mut self, context: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `warnings`, `execution_time`, and `rings_executed` are never read [INFO] [stdout] --> src/observer/error.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ObserverResult { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 63 | pub warnings: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 64 | pub execution_time: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 65 | pub rings_executed: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObserverResult` 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: associated functions `success` and `failure` are never used [INFO] [stdout] --> src/observer/error.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl ObserverResult { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 69 | pub fn success(result: Vec, execution_time: Duration, rings: Vec) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn failure(errors: Vec, execution_time: Duration) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `global_modify` is never used [INFO] [stdout] --> src/observer/global.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | pub async fn global_modify( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `global_select` is never used [INFO] [stdout] --> src/observer/global.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 125 | pub async fn global_select( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `clone_database`, `get_admin_pool`, `get_tenant_pool`, `new`, `quote_identifier`, and `close_all` are never used [INFO] [stdout] --> src/database/manager.rs:109:18 [INFO] [stdout] | [INFO] [stdout] 41 | impl DatabaseManager { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 109 | pub async fn clone_database(source_db: &str, target_db: &str) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | async fn get_admin_pool(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub async fn get_tenant_pool(&self, database_name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | fn quote_identifier(name: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub async fn close_all() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryBuilder` is never constructed [INFO] [stdout] --> src/database/query_builder.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct QueryBuilder { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/database/query_builder.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 15 | / impl QueryBuilder [INFO] [stdout] 16 | | where [INFO] [stdout] 17 | | T: for<'r> FromRow<'r, sqlx::postgres::PgRow> + Send + Unpin, [INFO] [stdout] | |_________________________________________________________________- associated items in this implementation [INFO] [stdout] 18 | { [INFO] [stdout] 19 | pub fn new(table_name: impl Into) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn select(mut self, columns: Vec) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn filter(mut self, filter_data: FilterData) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn select_all(self, pool: &PgPool) -> Result, DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn select_one(self, pool: &PgPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub async fn select_optional(self, pool: &PgPool) -> Result, DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub async fn count(self, pool: &PgPool) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | fn sql_result(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bind_param_query` is never used [INFO] [stdout] --> src/database/query_builder.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn bind_param_query<'q>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bind_param_query_as` is never used [INFO] [stdout] --> src/database/query_builder.rs:133:4 [INFO] [stdout] | [INFO] [stdout] 133 | fn bind_param_query_as<'q, O>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_json_array`, `to_json_string`, and `to_api_output_string` are never used [INFO] [stdout] --> src/database/record.rs:547:8 [INFO] [stdout] | [INFO] [stdout] 545 | pub trait RecordVecExt { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] 546 | /// Convert to JSON array value [INFO] [stdout] 547 | fn to_json_array(self) -> Value; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 556 | fn to_json_string(self) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 559 | fn to_api_output_string(self) -> Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RecordResultExt` is never used [INFO] [stdout] --> src/database/record.rs:585:11 [INFO] [stdout] | [INFO] [stdout] 585 | pub trait RecordResultExt { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `OriginalError` and `SerializationError` are never constructed [INFO] [stdout] --> src/database/record.rs:628:5 [INFO] [stdout] | [INFO] [stdout] 627 | pub enum RecordResultError { [INFO] [stdout] | ----------------- variants in this enum [INFO] [stdout] 628 | OriginalError(E), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 629 | SerializationError(serde_json::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordResultError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/database/repository.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 50 | impl Repository { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 66 | async fn execute_sql(&self, query: &str, params: &[Value]) -> Result, DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub async fn execute_ddl(&self, ddl: &str) -> Result<(), DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | fn row_to_record(&self, row: sqlx::postgres::PgRow) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn extract_column_value( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | fn bind_param<'q>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub async fn count(&self, filter_data: FilterData) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 438 | pub async fn delete_ids(&self, ids: Vec) -> Result, DatabaseError> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Schema` is never constructed [INFO] [stdout] --> src/database/models/schema.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Schema { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Column` is never constructed [INFO] [stdout] --> src/database/models/column.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Column { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DynamicRepository` is never constructed [INFO] [stdout] --> src/database/dynamic.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct DynamicRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `select_any` are never used [INFO] [stdout] --> src/database/dynamic.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl DynamicRepository { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(table_name: impl Into, pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn select_any( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bind_param` is never used [INFO] [stdout] --> src/database/dynamic.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 87 | fn bind_param<'q>( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `field_errors` is never read [INFO] [stdout] --> src/error.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 11 | ValidationError { [INFO] [stdout] | --------------- field in this variant [INFO] [stdout] 12 | message: String, [INFO] [stdout] 13 | field_errors: Option> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UnprocessableEntity`, `TooManyRequests`, and `BadGateway` are never constructed [INFO] [stdout] --> src/error.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum ApiError { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 30 | UnprocessableEntity { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | TooManyRequests(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | BadGateway(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `unprocessable_entity`, `too_many_requests`, and `bad_gateway` are never used [INFO] [stdout] --> src/error.rs:154:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl ApiError { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn unprocessable_entity( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn too_many_requests(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 172 | pub fn bad_gateway(message: impl Into) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_where_sql` and `to_count_sql` are never used [INFO] [stdout] --> src/filter/filter.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Filter { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn to_where_sql(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn to_count_sql(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password` is never read [INFO] [stdout] --> src/handlers/public/auth/session.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct LoginRequest { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 10 | pub password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoginRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/handlers/public/auth/session.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct RefreshRequest { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 15 | pub token: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RefreshRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tenant`, `username`, `email`, and `password` are never read [INFO] [stdout] --> src/handlers/public/auth/user.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct RegisterRequest { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 9 | pub tenant: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | pub email: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | pub password: Option, // May be set separately in activation flow [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegisterRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `JWTClaims` is never constructed [INFO] [stdout] --> src/handlers/public/auth/utils.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct JWTClaims { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserInfo` is never constructed [INFO] [stdout] --> src/handlers/public/auth/utils.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub struct UserInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_jwt_token` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn generate_jwt_token(user_info: &UserInfo, expiry_hours: u64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_jwt_token` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn validate_jwt_token(token: &str, allow_expired: bool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_tenant_exists` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:140:14 [INFO] [stdout] | [INFO] [stdout] 140 | pub async fn validate_tenant_exists(tenant_name: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TenantInfo` is never constructed [INFO] [stdout] --> src/handlers/public/auth/utils.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | pub struct TenantInfo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_username_format` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | pub fn validate_username_format(username: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validate_email_format` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:229:8 [INFO] [stdout] | [INFO] [stdout] 229 | pub fn validate_email_format(email: &str) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:260:8 [INFO] [stdout] | [INFO] [stdout] 260 | pub fn hash_password(password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_password` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:291:8 [INFO] [stdout] | [INFO] [stdout] 291 | pub fn verify_password(password: &str, hash: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_activation_token` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:317:8 [INFO] [stdout] | [INFO] [stdout] 317 | pub fn generate_activation_token() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_TOKEN_EXPIRY_HOURS` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:341:15 [INFO] [stdout] | [INFO] [stdout] 341 | pub const DEFAULT_TOKEN_EXPIRY_HOURS: u64 = 24; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_REFRESH_WINDOW_DAYS` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:344:15 [INFO] [stdout] | [INFO] [stdout] 344 | pub const MAX_REFRESH_WINDOW_DAYS: i64 = 7; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_PASSWORD_LENGTH` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:347:15 [INFO] [stdout] | [INFO] [stdout] 347 | pub const MIN_PASSWORD_LENGTH: usize = 8; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOGIN_RATE_LIMIT_PER_MINUTE` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:350:15 [INFO] [stdout] | [INFO] [stdout] 350 | pub const LOGIN_RATE_LIMIT_PER_MINUTE: u32 = 5; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REGISTRATION_RATE_LIMIT_PER_HOUR` is never used [INFO] [stdout] --> src/handlers/public/auth/utils.rs:351:15 [INFO] [stdout] | [INFO] [stdout] 351 | pub const REGISTRATION_RATE_LIMIT_PER_HOUR: u32 = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `permissions` and `password` are never read [INFO] [stdout] --> src/handlers/protected/auth/session.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct SudoRequest { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 7 | /// Optional: Specific permissions being requested [INFO] [stdout] 8 | pub permissions: Option>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 9 | /// Optional: Password confirmation for sensitive operations [INFO] [stdout] 10 | pub password: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `SudoRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AuthenticatedUser` is never constructed [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct AuthenticatedUser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SessionType` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum SessionType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Permission` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum Permission { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `as_str` and `from_str` are never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl Permission { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 41 | /// Convert permission to string representation [INFO] [stdout] 42 | pub fn as_str(&self) -> &str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn from_str(s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 66 | impl AuthenticatedUser { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 67 | /// Check if user has a specific permission [INFO] [stdout] 68 | pub fn has_permission(&self, permission: &Permission) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn has_any_permission(&self, permissions: &[Permission]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn has_all_permissions(&self, permissions: &[Permission]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn can_sudo(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn is_elevated(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn token_expires_in(&self) -> chrono::Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn is_token_expired(&self, buffer_minutes: i64) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_bearer_token` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | pub fn extract_bearer_token(auth_header: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `authorize_user` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn authorize_user( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_elevated_permissions` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:175:8 [INFO] [stdout] | [INFO] [stdout] 175 | pub fn generate_elevated_permissions( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `STANDARD` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:207:15 [INFO] [stdout] | [INFO] [stdout] 207 | pub const STANDARD: Duration = Duration::hours(24); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ELEVATED` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:210:15 [INFO] [stdout] | [INFO] [stdout] 210 | pub const ELEVATED: Duration = Duration::minutes(30); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SYSTEM` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:213:15 [INFO] [stdout] | [INFO] [stdout] 213 | pub const SYSTEM: Duration = Duration::hours(1); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `REFRESH_BUFFER` is never used [INFO] [stdout] --> src/handlers/protected/auth/utils.rs:216:15 [INFO] [stdout] | [INFO] [stdout] 216 | pub const REFRESH_BUFFER: Duration = Duration::minutes(5); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `meta` is never read [INFO] [stdout] --> src/handlers/protected/data/record.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct RecordQuery { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 15 | /// Include metadata sections. Examples: meta=true, meta=system,permissions [INFO] [stdout] 16 | pub meta: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RecordQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `meta` is never read [INFO] [stdout] --> src/handlers/protected/data/schema.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ListQuery { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 16 | /// Include metadata sections. Examples: meta=true, meta=system,permissions [INFO] [stdout] 17 | pub meta: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ListQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_tenant_db` is never used [INFO] [stdout] --> src/handlers/protected/data/utils.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn resolve_tenant_db(param: &Option) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `meta` is never read [INFO] [stdout] --> src/handlers/protected/describe/schema.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct DescribeQuery { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 13 | /// Include additional metadata. Examples: meta=true, meta=system,permissions [INFO] [stdout] 14 | pub meta: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DescribeQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `meta` is never read [INFO] [stdout] --> src/handlers/protected/find/schema.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FindQuery { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 15 | /// Include metadata sections. Examples: meta=true, meta=system,permissions [INFO] [stdout] 16 | pub meta: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FindQuery` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_create` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/create.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn tenant_create() -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_list` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/list.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_list() -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_show` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/show.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_show(Path(name): Path) -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_update` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/update.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_update(Path(name): Path) -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_delete` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/delete.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_delete(Path(name): Path) -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_restore` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/restore.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_restore(Path(name): Path) -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tenant_health` is never used [INFO] [stdout] --> src/handlers/elevated/root/tenant/health.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub async fn tenant_health(Path(name): Path) -> (StatusCode, Json) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `accepted` and `no_content` are never used [INFO] [stdout] --> src/middleware/response.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl ApiResponse { [INFO] [stdout] | --------------------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn accepted(data: T) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn no_content() -> ApiResponse<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoApiResponse` is never used [INFO] [stdout] --> src/middleware/response.rs:81:11 [INFO] [stdout] | [INFO] [stdout] 81 | pub trait IntoApiResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ApiSuccess` is never used [INFO] [stdout] --> src/middleware/response.rs:92:10 [INFO] [stdout] | [INFO] [stdout] 92 | pub type ApiSuccess = ApiResponse; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/middleware/validate_tenant.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ValidatedTenant { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 21 | pub id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | pub is_active: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 26 | pub tenant_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | pub access_read: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 28 | pub access_edit: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | pub access_full: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 30 | pub access_deny: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidatedTenant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `access_read`, `access_edit`, `access_full`, and `access_deny` are never read [INFO] [stdout] --> src/middleware/validate_user.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct ValidatedUser { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 17 | pub id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub access_read: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 22 | pub access_edit: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | pub access_full: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 24 | pub access_deny: Vec, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ValidatedUser` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/observer/context.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl ObserverContext { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn set_metadata(&mut self, data: T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn get_metadata_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn has_metadata(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn add_error(&mut self, error: ObserverError) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 115 | pub fn add_warning(&mut self, warning: ObserverWarning) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn has_errors(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn execution_time(&self) -> std::time::Duration { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn records_with_field_changes(&self, field: &str) -> Vec<&Record> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn records_by_operation(&self, operation: Operation) -> Vec<&Record> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn records_by_operation_mut(&mut self, operation: Operation) -> Vec<&mut Record> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn count_by_operation(&self, operation: Operation) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 160 | pub fn has_record_changes(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PreloadedRecords` is never constructed [INFO] [stdout] --> src/observer/context.rs:194:12 [INFO] [stdout] | [INFO] [stdout] 194 | pub struct PreloadedRecords { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidationResults` is never constructed [INFO] [stdout] --> src/observer/context.rs:202:12 [INFO] [stdout] | [INFO] [stdout] 202 | pub struct ValidationResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SecurityCheckResults` is never constructed [INFO] [stdout] --> src/observer/context.rs:210:12 [INFO] [stdout] | [INFO] [stdout] 210 | pub struct SecurityCheckResults { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryMetadata` is never constructed [INFO] [stdout] --> src/observer/context.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | pub struct QueryMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccessFilter` is never constructed [INFO] [stdout] --> src/observer/context.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub struct AccessFilter { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryOptimization` is never constructed [INFO] [stdout] --> src/observer/context.rs:264:12 [INFO] [stdout] | [INFO] [stdout] 264 | pub struct QueryOptimization { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PerformanceHint` is never constructed [INFO] [stdout] --> src/observer/context.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | pub struct PerformanceHint { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PerformanceImpact` is never used [INFO] [stdout] --> src/observer/context.rs:281:10 [INFO] [stdout] | [INFO] [stdout] 281 | pub enum PerformanceImpact { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `QueryExecutionStats` is never constructed [INFO] [stdout] --> src/observer/context.rs:288:12 [INFO] [stdout] | [INFO] [stdout] 288 | pub struct QueryExecutionStats { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_asynchronous` is never used [INFO] [stdout] --> src/observer/traits.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl ObserverRing { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn is_asynchronous(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `priority` is never used [INFO] [stdout] --> src/observer/traits.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub trait Observer: Send + Sync { [INFO] [stdout] | -------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 74 | fn priority(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/observer/traits.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 123 | pub trait Ring7: Observer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 124 | async fn execute(&self, ctx: &ObserverContext) -> Result<(), ObserverError>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/observer/traits.rs:130:14 [INFO] [stdout] | [INFO] [stdout] 129 | pub trait Ring8: Observer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 130 | async fn execute(&self, ctx: &ObserverContext) -> Result<(), ObserverError>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute` is never used [INFO] [stdout] --> src/observer/traits.rs:136:14 [INFO] [stdout] | [INFO] [stdout] 135 | pub trait Ring9: Observer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 136 | async fn execute(&self, ctx: &ObserverContext) -> Result<(), ObserverError>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/observer/traits.rs:143:5 [INFO] [stdout] | [INFO] [stdout] 141 | pub enum ObserverBox { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 142 | Ring0(Box), [INFO] [stdout] 143 | Ring1(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 144 | Ring2(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 145 | Ring3(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 146 | Ring4(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | Ring7(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 150 | Ring8(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 151 | Ring9(Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `execute_async` is never used [INFO] [stdout] --> src/observer/traits.rs:243:18 [INFO] [stdout] | [INFO] [stdout] 154 | impl ObserverBox { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 243 | pub async fn execute_async(&self, ctx: &ObserverContext) -> Result<(), ObserverError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SecurityError`, `SystemError`, `RecursionError`, `ObserverNotFound`, and `PipelineError` are never constructed [INFO] [stdout] --> src/observer/error.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ObserverError { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | SecurityError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | SystemError(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | RecursionError { depth: usize, max_depth: usize }, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | ObserverNotFound(String), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | PipelineError(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObserverError` 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 `observer`, `ring`, `message`, and `context` are never read [INFO] [stdout] --> src/observer/error.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct ObserverWarning { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 35 | pub observer: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 36 | pub ring: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 37 | pub message: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 38 | pub context: Option, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObserverWarning` 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: associated items `new` and `with_context` are never used [INFO] [stdout] --> src/observer/error.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl ObserverWarning { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 42 | pub fn new(observer: &str, ring: u8, message: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn with_context(mut self, context: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `warnings`, `execution_time`, and `rings_executed` are never read [INFO] [stdout] --> src/observer/error.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct ObserverResult { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 63 | pub warnings: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 64 | pub execution_time: Duration, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 65 | pub rings_executed: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ObserverResult` 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: associated functions `success` and `failure` are never used [INFO] [stdout] --> src/observer/error.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl ObserverResult { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 69 | pub fn success(result: Vec, execution_time: Duration, rings: Vec) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn failure(errors: Vec, execution_time: Duration) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `global_modify` is never used [INFO] [stdout] --> src/observer/global.rs:107:14 [INFO] [stdout] | [INFO] [stdout] 107 | pub async fn global_modify( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `global_select` is never used [INFO] [stdout] --> src/observer/global.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 125 | pub async fn global_select( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 50s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "0bd647bc3bf8100e01893d538ea6bbde82da33284d90b792c4f5089c0e1976c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bd647bc3bf8100e01893d538ea6bbde82da33284d90b792c4f5089c0e1976c9", kill_on_drop: false }` [INFO] [stdout] 0bd647bc3bf8100e01893d538ea6bbde82da33284d90b792c4f5089c0e1976c9