[INFO] cloning repository https://github.com/AryAntara/rust-ddd-template [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AryAntara/rust-ddd-template" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAryAntara%2Frust-ddd-template", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAryAntara%2Frust-ddd-template'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bac304fc56a850c2ff03d2b6b0bd081a61eff5a0 [INFO] checking AryAntara/rust-ddd-template against try#88b8a1c6e3a6f6f8a2ed6b6a9a74e0ef1862f72c for pr-154887 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAryAntara%2Frust-ddd-template" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/AryAntara/rust-ddd-template [INFO] finished tweaking git repo https://github.com/AryAntara/rust-ddd-template [INFO] tweaked toml for git repo https://github.com/AryAntara/rust-ddd-template written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/AryAntara/rust-ddd-template on toolchain 88b8a1c6e3a6f6f8a2ed6b6a9a74e0ef1862f72c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+88b8a1c6e3a6f6f8a2ed6b6a9a74e0ef1862f72c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/AryAntara/rust-ddd-template 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" "+88b8a1c6e3a6f6f8a2ed6b6a9a74e0ef1862f72c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+88b8a1c6e3a6f6f8a2ed6b6a9a74e0ef1862f72c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99c06a2d771853f9c4774f855f11be1b6c1e7649155ac75043803c5b078ad2ff [INFO] running `Command { std: "docker" "start" "-a" "99c06a2d771853f9c4774f855f11be1b6c1e7649155ac75043803c5b078ad2ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99c06a2d771853f9c4774f855f11be1b6c1e7649155ac75043803c5b078ad2ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99c06a2d771853f9c4774f855f11be1b6c1e7649155ac75043803c5b078ad2ff", kill_on_drop: false }` [INFO] [stdout] 99c06a2d771853f9c4774f855f11be1b6c1e7649155ac75043803c5b078ad2ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+88b8a1c6e3a6f6f8a2ed6b6a9a74e0ef1862f72c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e5032e93e40269e64f33e43c6e18c30a5441b7dfad4f9d32c6666857d139b6bb [INFO] running `Command { std: "docker" "start" "-a" "e5032e93e40269e64f33e43c6e18c30a5441b7dfad4f9d32c6666857d139b6bb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling cc v1.2.33 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking potential_utf v0.1.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tokio v1.47.1 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking url v2.5.6 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Checking winnow v0.7.12 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling pest v2.8.1 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Checking rsa v0.9.8 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Checking bstr v1.12.0 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking unicode_categories v0.1.1 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Compiling pest_meta v2.8.1 [INFO] [stderr] Checking sqlformat v0.2.6 [INFO] [stderr] Checking bitflags v2.9.2 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking globset v0.4.16 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Compiling pest_generator v2.8.1 [INFO] [stderr] Checking ignore v0.4.23 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Checking deunicode v1.6.2 [INFO] [stderr] Checking ucd-trie v0.1.7 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Checking tempfile v3.21.0 [INFO] [stderr] Checking slug v0.1.6 [INFO] [stderr] Compiling pest_derive v2.8.1 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking globwalk v0.9.1 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Checking filetime v0.2.26 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Checking unicase_serde v0.1.0 [INFO] [stderr] Compiling rocket_db_pools_codegen v0.2.0 [INFO] [stderr] Checking normpath v1.3.0 [INFO] [stderr] Checking notify v6.1.1 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling schemars_derive v0.9.0 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking sqlx-core v0.8.6 [INFO] [stderr] Compiling validator_derive v0.20.0 [INFO] [stderr] Checking schemars v0.9.0 [INFO] [stderr] Checking sqlx-mysql v0.7.4 [INFO] [stderr] Checking validator v0.20.0 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking tera v1.20.0 [INFO] [stderr] Checking sqlx-mysql v0.8.6 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking rocket_cors v0.6.0 [INFO] [stderr] Checking rocket_dyn_templates v0.2.0 [INFO] [stderr] Checking rocket_db_pools v0.2.0 [INFO] [stderr] Checking rust_rocket v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `user_controller` [INFO] [stdout] --> src/main.rs:1:59 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{config::rocket::RocketServer, modules::user::{user_controller, user_route}}; [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: `fs::FileServer` [INFO] [stdout] --> src/config/rocket.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::{Build, Rocket, Route, fs::FileServer}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket_dyn_templates::Template` [INFO] [stdout] --> src/config/rocket.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rocket_dyn_templates::Template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Responds` and `ok` [INFO] [stdout] --> src/modules/user/user_route.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | utils::response::{Responds, ok}, [INFO] [stdout] | ^^^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Errors`, `Responds`, `UserResponse`, `error`, and `ok` [INFO] [stdout] --> src/modules/user/user_use_case.rs:4:53 [INFO] [stdout] | [INFO] [stdout] 4 | user_model::{RegisterUserRequest, UserData, UserResponse}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | utils::response::{error, ok, Errors, Responds}, [INFO] [stdout] | ^^^^^ ^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `user_controller` [INFO] [stdout] --> src/main.rs:1:59 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{config::rocket::RocketServer, modules::user::{user_controller, user_route}}; [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: `fs::FileServer` [INFO] [stdout] --> src/config/rocket.rs:2:36 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::{Build, Rocket, Route, fs::FileServer}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket_dyn_templates::Template` [INFO] [stdout] --> src/config/rocket.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rocket_dyn_templates::Template; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Responds` and `ok` [INFO] [stdout] --> src/modules/user/user_route.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | utils::response::{Responds, ok}, [INFO] [stdout] | ^^^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Errors`, `Responds`, `UserResponse`, `error`, and `ok` [INFO] [stdout] --> src/modules/user/user_use_case.rs:4:53 [INFO] [stdout] | [INFO] [stdout] 4 | user_model::{RegisterUserRequest, UserData, UserResponse}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 7 | utils::response::{error, ok, Errors, Responds}, [INFO] [stdout] | ^^^^^ ^^ ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `age` is never read [INFO] [stdout] --> src/modules/user/user_model.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct RegisterUserRequest { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub age: i16, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegisterUserRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_one_by_id` is never used [INFO] [stdout] --> src/modules/user/user_repository.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'r> UserRepository<'r> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn find_one_by_id(self, id: i16) -> User { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_all_as` and `get_all_users` are never used [INFO] [stdout] --> src/modules/user/user_use_case.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl<'r> UserUseCase<'r> { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub async fn get_all_as(a: T) -> T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn get_all_users() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotFound` is never constructed [INFO] [stdout] --> src/utils/response.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum Errors { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 35 | Server, [INFO] [stdout] 36 | NotFound, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/modules/user/user_provider.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(pool:&mut MySqlConnection) -> UserUseCase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(pool:&mut MySqlConnection) -> UserUseCase<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `age` is never read [INFO] [stdout] --> src/modules/user/user_model.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct RegisterUserRequest { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 21 | pub age: i16, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RegisterUserRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `find_one_by_id` is never used [INFO] [stdout] --> src/modules/user/user_repository.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 9 | impl<'r> UserRepository<'r> { [INFO] [stdout] | --------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn find_one_by_id(self, id: i16) -> User { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_all_as` and `get_all_users` are never used [INFO] [stdout] --> src/modules/user/user_use_case.rs:19:18 [INFO] [stdout] | [INFO] [stdout] 14 | impl<'r> UserUseCase<'r> { [INFO] [stdout] | ------------------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | pub async fn get_all_as(a: T) -> T { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn get_all_users() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `NotFound` is never constructed [INFO] [stdout] --> src/utils/response.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 34 | pub enum Errors { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 35 | Server, [INFO] [stdout] 36 | NotFound, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/modules/user/user_provider.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(pool:&mut MySqlConnection) -> UserUseCase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(pool:&mut MySqlConnection) -> UserUseCase<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 18s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint-dig v0.8.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" "e5032e93e40269e64f33e43c6e18c30a5441b7dfad4f9d32c6666857d139b6bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5032e93e40269e64f33e43c6e18c30a5441b7dfad4f9d32c6666857d139b6bb", kill_on_drop: false }` [INFO] [stdout] e5032e93e40269e64f33e43c6e18c30a5441b7dfad4f9d32c6666857d139b6bb