[INFO] cloning repository https://github.com/peepheak/rust-backend-solid [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/peepheak/rust-backend-solid" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeepheak%2Frust-backend-solid", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeepheak%2Frust-backend-solid'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 769601911eca2fba907e1495f875943a21670b4a [INFO] testing peepheak/rust-backend-solid against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeepheak%2Frust-backend-solid" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 56% (3341/5954) Updating files: 57% (3394/5954) Updating files: 58% (3454/5954) Updating files: 59% (3513/5954) Updating files: 60% (3573/5954) Updating files: 60% (3604/5954) Updating files: 61% (3632/5954) Updating files: 62% (3692/5954) Updating files: 63% (3752/5954) Updating files: 64% (3811/5954) Updating files: 64% (3814/5954) Updating files: 65% (3871/5954) Updating files: 66% (3930/5954) Updating files: 66% (3931/5954) Updating files: 67% (3990/5954) Updating files: 67% (4017/5954) Updating files: 68% (4049/5954) Updating files: 69% (4109/5954) Updating files: 69% (4160/5954) Updating files: 70% (4168/5954) Updating files: 71% (4228/5954) Updating files: 72% (4287/5954) Updating files: 73% (4347/5954) Updating files: 74% (4406/5954) Updating files: 75% (4466/5954) Updating files: 76% (4526/5954) Updating files: 77% (4585/5954) Updating files: 78% (4645/5954) Updating files: 79% (4704/5954) Updating files: 80% (4764/5954) Updating files: 81% (4823/5954) Updating files: 82% (4883/5954) Updating files: 83% (4942/5954) Updating files: 84% (5002/5954) Updating files: 85% (5061/5954) Updating files: 85% (5106/5954) Updating files: 86% (5121/5954) Updating files: 87% (5180/5954) Updating files: 88% (5240/5954) Updating files: 89% (5300/5954) Updating files: 90% (5359/5954) Updating files: 91% (5419/5954) Updating files: 92% (5478/5954) Updating files: 93% (5538/5954) Updating files: 94% (5597/5954) Updating files: 95% (5657/5954) Updating files: 96% (5716/5954) Updating files: 97% (5776/5954) Updating files: 98% (5835/5954) Updating files: 99% (5895/5954) Updating files: 99% (5953/5954) Updating files: 100% (5954/5954) Updating files: 100% (5954/5954), done. [INFO] started tweaking git repo https://github.com/peepheak/rust-backend-solid [INFO] finished tweaking git repo https://github.com/peepheak/rust-backend-solid [INFO] tweaked toml for git repo https://github.com/peepheak/rust-backend-solid written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/peepheak/rust-backend-solid on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/peepheak/rust-backend-solid 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b7da027c710c01d25ab2ad0a51d5ce5ef3ab8e1f9a3f9607e7ccb96e940f60e [INFO] running `Command { std: "docker" "start" "-a" "2b7da027c710c01d25ab2ad0a51d5ce5ef3ab8e1f9a3f9607e7ccb96e940f60e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b7da027c710c01d25ab2ad0a51d5ce5ef3ab8e1f9a3f9607e7ccb96e940f60e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b7da027c710c01d25ab2ad0a51d5ce5ef3ab8e1f9a3f9607e7ccb96e940f60e", kill_on_drop: false }` [INFO] [stdout] 2b7da027c710c01d25ab2ad0a51d5ce5ef3ab8e1f9a3f9607e7ccb96e940f60e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fe4cc6ba5f537fb8ec6f4c7a959555e18588b118d5f548035c9ef30f478e1738 [INFO] running `Command { std: "docker" "start" "-a" "fe4cc6ba5f537fb8ec6f4c7a959555e18588b118d5f548035c9ef30f478e1738", kill_on_drop: false }` [INFO] [stderr] Compiling find-msvc-tools v0.1.8 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling zerocopy v0.8.34 [INFO] [stderr] Compiling zmij v1.0.17 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling cc v1.2.54 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling uuid v1.20.0 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling time-macros v0.2.26 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling time v0.3.46 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling pem v3.0.6 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling bcrypt v0.15.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling tracing-subscriber v0.3.22 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling validator_derive v0.18.2 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling validator v0.18.1 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling rust-backend-solid v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `created_at`, `updated_at`, and `set_updated_at` are never used [INFO] [stdout] --> src/common/base_entity.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait BaseEntity: [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 29 | fn created_at(&self) -> DateTime; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn updated_at(&self) -> DateTime; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn set_updated_at(&mut self, timestamp: DateTime); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ValidationResult` is never used [INFO] [stdout] --> src/common/result.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub type ValidationResult = Result<(), Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Validation`, `BusinessRule`, `Unauthorized`, and `Internal` are never constructed [INFO] [stdout] --> src/common/result.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum ServiceError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 22 | Validation(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | BusinessRule(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Unauthorized(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | Internal(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceError` 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 `ValidationError` is never constructed [INFO] [stdout] --> src/common/result.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ValidationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common/result.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl ValidationError { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 90 | pub fn new(field: impl Into, message: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `merge` is never used [INFO] [stdout] --> src/entities/user.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub trait Persistable: BaseEntity { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 69 | fn merge( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/interfaces/repositories/base_repository.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait BaseRepository: Send + Sync { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 8 | /// Get all entities (SELECT * FROM table) [INFO] [stdout] 9 | async fn entities(&self) -> Result, sqlx::Error>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | async fn get_all(&self) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | async fn create_range(&self, entities: &mut [T]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | async fn update(&self, entity: &mut T) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | async fn update_range(&self, entities: &mut [T]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | async fn delete(&self, id: Uuid) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | async fn delete_range(&self, ids: &[Uuid]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | async fn count(&self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | async fn find_by_field(&self, field: &str, value: &str) -> Result, sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | async fn exists(&self, id: Uuid) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `commit`, `rollback`, and `close` are never used [INFO] [stdout] --> src/interfaces/repositories/unit_of_work.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait UnitOfWork: Send + Sync { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | async fn commit(&mut self) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | async fn rollback(&mut self) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn close(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_user_by_email`, `user_exists`, and `verify_user_eligibility` are never used [INFO] [stdout] --> src/interfaces/services/user_service.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait UserService: Send + Sync { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | async fn get_user_by_email(&self, email: &str) -> ServiceResult>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | async fn user_exists(&self, user_id: Uuid) -> ServiceResult; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | async fn verify_user_eligibility(&self, user_id: Uuid) -> ServiceResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pool` is never used [INFO] [stdout] --> src/repositories/base_repository_impl.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl BaseRepositoryImpl { [INFO] [stdout] | ------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn pool(&self) -> &Pool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query` is never used [INFO] [stdout] --> src/repositories/base_repository_impl.rs:144:18 [INFO] [stdout] | [INFO] [stdout] 142 | impl BaseRepositoryImpl { [INFO] [stdout] | ------------------------------------------------------- method in this implementation [INFO] [stdout] 143 | /// Execute custom query [INFO] [stdout] 144 | pub async fn query(&self, sql: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transaction` is never read [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct UnitOfWorkImpl { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 18 | pool: Pool, [INFO] [stdout] 19 | transaction: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ensure_transaction` and `execute` are never used [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 23 | impl UnitOfWorkImpl { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | async fn ensure_transaction(&mut self) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub async fn execute(&self, work: F) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnitOfWorkFactory` is never constructed [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct UnitOfWorkFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create`, and `execute` are never used [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl UnitOfWorkFactory { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 111 | /// Create a new factory [INFO] [stdout] 112 | pub fn new(pool: Pool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn create(&self) -> UnitOfWorkImpl { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub async fn execute(&self, work: F) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 19s [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" "fe4cc6ba5f537fb8ec6f4c7a959555e18588b118d5f548035c9ef30f478e1738", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe4cc6ba5f537fb8ec6f4c7a959555e18588b118d5f548035c9ef30f478e1738", kill_on_drop: false }` [INFO] [stdout] fe4cc6ba5f537fb8ec6f4c7a959555e18588b118d5f548035c9ef30f478e1738 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 947b6658465d507d4e9c515b0452cf236c328f5180de7fa805fec40119eb3734 [INFO] running `Command { std: "docker" "start" "-a" "947b6658465d507d4e9c515b0452cf236c328f5180de7fa805fec40119eb3734", kill_on_drop: false }` [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling validator_derive v0.18.2 [INFO] [stderr] Compiling validator v0.18.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling rust-backend-solid v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `created_at`, `updated_at`, and `set_updated_at` are never used [INFO] [stdout] --> src/common/base_entity.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait BaseEntity: [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 29 | fn created_at(&self) -> DateTime; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn updated_at(&self) -> DateTime; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn set_updated_at(&mut self, timestamp: DateTime); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ValidationResult` is never used [INFO] [stdout] --> src/common/result.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub type ValidationResult = Result<(), Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Validation`, `BusinessRule`, `Unauthorized`, and `Internal` are never constructed [INFO] [stdout] --> src/common/result.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum ServiceError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 22 | Validation(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | BusinessRule(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Unauthorized(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | Internal(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceError` 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 `ValidationError` is never constructed [INFO] [stdout] --> src/common/result.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ValidationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common/result.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl ValidationError { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 90 | pub fn new(field: impl Into, message: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `merge` is never used [INFO] [stdout] --> src/entities/user.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub trait Persistable: BaseEntity { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 69 | fn merge( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/interfaces/repositories/base_repository.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait BaseRepository: Send + Sync { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 8 | /// Get all entities (SELECT * FROM table) [INFO] [stdout] 9 | async fn entities(&self) -> Result, sqlx::Error>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | async fn get_all(&self) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | async fn create_range(&self, entities: &mut [T]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | async fn update(&self, entity: &mut T) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | async fn update_range(&self, entities: &mut [T]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | async fn delete(&self, id: Uuid) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | async fn delete_range(&self, ids: &[Uuid]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | async fn count(&self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | async fn find_by_field(&self, field: &str, value: &str) -> Result, sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | async fn exists(&self, id: Uuid) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `commit`, `rollback`, and `close` are never used [INFO] [stdout] --> src/interfaces/repositories/unit_of_work.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait UnitOfWork: Send + Sync { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | async fn commit(&mut self) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | async fn rollback(&mut self) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn close(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_user_by_email`, `user_exists`, and `verify_user_eligibility` are never used [INFO] [stdout] --> src/interfaces/services/user_service.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait UserService: Send + Sync { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | async fn get_user_by_email(&self, email: &str) -> ServiceResult>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | async fn user_exists(&self, user_id: Uuid) -> ServiceResult; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | async fn verify_user_eligibility(&self, user_id: Uuid) -> ServiceResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pool` is never used [INFO] [stdout] --> src/repositories/base_repository_impl.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl BaseRepositoryImpl { [INFO] [stdout] | ------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn pool(&self) -> &Pool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query` is never used [INFO] [stdout] --> src/repositories/base_repository_impl.rs:144:18 [INFO] [stdout] | [INFO] [stdout] 142 | impl BaseRepositoryImpl { [INFO] [stdout] | ------------------------------------------------------- method in this implementation [INFO] [stdout] 143 | /// Execute custom query [INFO] [stdout] 144 | pub async fn query(&self, sql: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transaction` is never read [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct UnitOfWorkImpl { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 18 | pool: Pool, [INFO] [stdout] 19 | transaction: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ensure_transaction` and `execute` are never used [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 23 | impl UnitOfWorkImpl { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | async fn ensure_transaction(&mut self) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub async fn execute(&self, work: F) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnitOfWorkFactory` is never constructed [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct UnitOfWorkFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create`, and `execute` are never used [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl UnitOfWorkFactory { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 111 | /// Create a new factory [INFO] [stdout] 112 | pub fn new(pool: Pool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn create(&self) -> UnitOfWorkImpl { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub async fn execute(&self, work: F) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 39.08s [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" "947b6658465d507d4e9c515b0452cf236c328f5180de7fa805fec40119eb3734", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "947b6658465d507d4e9c515b0452cf236c328f5180de7fa805fec40119eb3734", kill_on_drop: false }` [INFO] [stdout] 947b6658465d507d4e9c515b0452cf236c328f5180de7fa805fec40119eb3734 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6cfe08289363b025da202ab48f90917151de206d0a7cb497f4d7aa3ae917ce4f [INFO] running `Command { std: "docker" "start" "-a" "6cfe08289363b025da202ab48f90917151de206d0a7cb497f4d7aa3ae917ce4f", kill_on_drop: false }` [INFO] [stderr] warning: methods `created_at`, `updated_at`, and `set_updated_at` are never used [INFO] [stderr] --> src/common/base_entity.rs:29:8 [INFO] [stderr] | [INFO] [stderr] 7 | pub trait BaseEntity: [INFO] [stderr] | ---------- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 29 | fn created_at(&self) -> DateTime; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 32 | fn updated_at(&self) -> DateTime; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 35 | fn set_updated_at(&mut self, timestamp: DateTime); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: type alias `ValidationResult` is never used [INFO] [stderr] --> src/common/result.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | pub type ValidationResult = Result<(), Vec>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Validation`, `BusinessRule`, `Unauthorized`, and `Internal` are never constructed [INFO] [stderr] --> src/common/result.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub enum ServiceError { [INFO] [stderr] | ------------ variants in this enum [INFO] [stderr] ... [INFO] [stderr] 22 | Validation(String), [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 25 | BusinessRule(String), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 31 | Unauthorized(String), [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 34 | Internal(String), [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `ValidationError` is never constructed [INFO] [stderr] --> src/common/result.rs:84:12 [INFO] [stderr] | [INFO] [stderr] 84 | pub struct ValidationError { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/common/result.rs:90:12 [INFO] [stderr] | [INFO] [stderr] 89 | impl ValidationError { [INFO] [stderr] | -------------------- associated function in this implementation [INFO] [stderr] 90 | pub fn new(field: impl Into, message: impl Into) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `merge` is never used [INFO] [stderr] --> src/entities/user.rs:69:8 [INFO] [stderr] | [INFO] [stderr] 61 | pub trait Persistable: BaseEntity { [INFO] [stderr] | ----------- method in this trait [INFO] [stderr] ... [INFO] [stderr] 69 | fn merge( [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/interfaces/repositories/base_repository.rs:9:14 [INFO] [stderr] | [INFO] [stderr] 7 | pub trait BaseRepository: Send + Sync { [INFO] [stderr] | -------------- methods in this trait [INFO] [stderr] 8 | /// Get all entities (SELECT * FROM table) [INFO] [stderr] 9 | async fn entities(&self) -> Result, sqlx::Error>; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 15 | async fn get_all(&self) -> Result, sqlx::Error> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 23 | async fn create_range(&self, entities: &mut [T]) -> Result<(), sqlx::Error>; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 26 | async fn update(&self, entity: &mut T) -> Result; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 29 | async fn update_range(&self, entities: &mut [T]) -> Result<(), sqlx::Error>; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 32 | async fn delete(&self, id: Uuid) -> Result<(), sqlx::Error>; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 35 | async fn delete_range(&self, ids: &[Uuid]) -> Result<(), sqlx::Error>; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | async fn count(&self) -> Result; [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 41 | async fn find_by_field(&self, field: &str, value: &str) -> Result, sqlx::Error>; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | async fn exists(&self, id: Uuid) -> Result; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `commit`, `rollback`, and `close` are never used [INFO] [stderr] --> src/interfaces/repositories/unit_of_work.rs:15:14 [INFO] [stderr] | [INFO] [stderr] 10 | pub trait UnitOfWork: Send + Sync { [INFO] [stderr] | ---------- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 15 | async fn commit(&mut self) -> Result; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 18 | async fn rollback(&mut self) -> Result<(), sqlx::Error>; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | fn close(&mut self); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_user_by_email`, `user_exists`, and `verify_user_eligibility` are never used [INFO] [stderr] --> src/interfaces/services/user_service.rs:12:14 [INFO] [stderr] | [INFO] [stderr] 7 | pub trait UserService: Send + Sync { [INFO] [stderr] | ----------- methods in this trait [INFO] [stderr] ... [INFO] [stderr] 12 | async fn get_user_by_email(&self, email: &str) -> ServiceResult>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 15 | async fn user_exists(&self, user_id: Uuid) -> ServiceResult; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 18 | async fn verify_user_eligibility(&self, user_id: Uuid) -> ServiceResult; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `pool` is never used [INFO] [stderr] --> src/repositories/base_repository_impl.rs:29:12 [INFO] [stderr] | [INFO] [stderr] 19 | impl BaseRepositoryImpl { [INFO] [stderr] | ------------------------------------------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 29 | pub fn pool(&self) -> &Pool { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `query` is never used [INFO] [stderr] --> src/repositories/base_repository_impl.rs:144:18 [INFO] [stderr] | [INFO] [stderr] 142 | impl BaseRepositoryImpl { [INFO] [stderr] | ------------------------------------------------------- method in this implementation [INFO] [stderr] 143 | /// Execute custom query [INFO] [stderr] 144 | pub async fn query(&self, sql: &str) -> Result, sqlx::Error> { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `transaction` is never read [INFO] [stderr] --> src/repositories/unit_of_work_impl.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct UnitOfWorkImpl { [INFO] [stderr] | -------------- field in this struct [INFO] [stderr] 18 | pool: Pool, [INFO] [stderr] 19 | transaction: Arc>>>, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `ensure_transaction` and `execute` are never used [INFO] [stderr] --> src/repositories/unit_of_work_impl.rs:34:14 [INFO] [stderr] | [INFO] [stderr] 23 | impl UnitOfWorkImpl { [INFO] [stderr] | ------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 34 | async fn ensure_transaction(&mut self) -> Result<(), sqlx::Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 46 | pub async fn execute(&self, work: F) -> Result [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `UnitOfWorkFactory` is never constructed [INFO] [stderr] --> src/repositories/unit_of_work_impl.rs:106:12 [INFO] [stderr] | [INFO] [stderr] 106 | pub struct UnitOfWorkFactory { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `create`, and `execute` are never used [INFO] [stderr] --> src/repositories/unit_of_work_impl.rs:112:12 [INFO] [stderr] | [INFO] [stderr] 110 | impl UnitOfWorkFactory { [INFO] [stderr] | ---------------------- associated items in this implementation [INFO] [stderr] 111 | /// Create a new factory [INFO] [stderr] 112 | pub fn new(pool: Pool) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 117 | pub fn create(&self) -> UnitOfWorkImpl { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 122 | pub async fn execute(&self, work: F) -> Result [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `rust-backend-solid` (bin "rust-backend-solid" test) generated 15 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.56s [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] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_backend_solid-e78b3ca1155a655d) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6cfe08289363b025da202ab48f90917151de206d0a7cb497f4d7aa3ae917ce4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cfe08289363b025da202ab48f90917151de206d0a7cb497f4d7aa3ae917ce4f", kill_on_drop: false }` [INFO] [stdout] 6cfe08289363b025da202ab48f90917151de206d0a7cb497f4d7aa3ae917ce4f