[INFO] cloning repository https://github.com/kazuma0606/rusted-ca [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kazuma0606/rusted-ca" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkazuma0606%2Frusted-ca", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkazuma0606%2Frusted-ca'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0fde365b3b3b5281aca55eb7f3d9da7785f37506 [INFO] building kazuma0606/rusted-ca against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkazuma0606%2Frusted-ca" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/kazuma0606/rusted-ca [INFO] finished tweaking git repo https://github.com/kazuma0606/rusted-ca [INFO] tweaked toml for git repo https://github.com/kazuma0606/rusted-ca written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kazuma0606/rusted-ca on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kazuma0606/rusted-ca 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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded axum-extra v0.9.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e15ffc0509c09faed4c0eee63688dd064890e07d36853c00b4d7d7e28906249a [INFO] running `Command { std: "docker" "start" "-a" "e15ffc0509c09faed4c0eee63688dd064890e07d36853c00b4d7d7e28906249a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e15ffc0509c09faed4c0eee63688dd064890e07d36853c00b4d7d7e28906249a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e15ffc0509c09faed4c0eee63688dd064890e07d36853c00b4d7d7e28906249a", kill_on_drop: false }` [INFO] [stdout] e15ffc0509c09faed4c0eee63688dd064890e07d36853c00b4d7d7e28906249a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 84fc9fe222b078a4a7ed375fa4902bd649ff61a4b65d49d3a8d53e7bf174048d [INFO] running `Command { std: "docker" "start" "-a" "84fc9fe222b078a4a7ed375fa4902bd649ff61a4b65d49d3a8d53e7bf174048d", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling cc v1.2.29 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling prettyplease v0.2.35 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling multimap v0.10.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling headers-core v0.3.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling headers v0.4.1 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.2 [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 tracing-attributes v0.1.30 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling prost-derive v0.12.6 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling prost v0.12.6 [INFO] [stderr] Compiling prost-types v0.12.6 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling prost-build v0.12.6 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling rusted-ca v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling rusqlite v0.30.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.17 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling hyper-util v0.1.15 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling axum-extra v0.9.6 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stdout] warning: unused imports: `Request`, `StatusCode`, `body::Body`, `extract::State`, `middleware::Next`, and `response::Response` [INFO] [stdout] --> src/shared/notification/discord_notification.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | body::Body, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 3 | extract::State, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | http::{Request, StatusCode}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 5 | middleware::Next, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | response::Response, [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: `std::sync::Arc` [INFO] [stdout] --> src/shared/notification/discord_notification.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::entity::user::User` [INFO] [stdout] --> src/application/usecases/create_user_usecase.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::domain::entity::user::User; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `birth_date::BirthDate`, `email::Email`, `password::Password`, `phone::Phone`, and `user_name::UserName` [INFO] [stdout] --> src/application/usecases/create_user_usecase.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | birth_date::BirthDate, email::Email, password::Password, phone::Phone, user_id::UserId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 11 | user_name::UserName, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/application/usecases/create_user_usecase.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `email::Email` and `password::Password` [INFO] [stdout] --> src/application/usecases/update_user_usecase.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | birth_date::BirthDate, email::Email, password::Password, phone::Phone, user_id::UserId, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Router`, `get`, `post`, and `serve` [INFO] [stdout] --> src/infrastructure/web/run.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | routing::{get, post}, [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] 8 | serve, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::application::dto::user_response_dto::UserResponseDto` [INFO] [stdout] --> src/presentation/controller/user_controller.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use crate::application::dto::user_response_dto::UserResponseDto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/presentation/controller/user_controller.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | extract::{Path, State}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `try_notify_startup` [INFO] [stdout] --> src/presentation/router/app_router.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | discord_notification_middleware, try_notify_startup, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AdminUser` [INFO] [stdout] --> src/presentation/router/user_router.rs:10:50 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::shared::middleware::auth_middleware::{AdminUser, AuthenticatedUser}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::middleware::from_fn` [INFO] [stdout] --> src/presentation/router/user_router.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use axum::middleware::from_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_time` [INFO] [stdout] --> src/shared/middleware/watch_middleware.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let start_time = Instant::now(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_time` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_connection` [INFO] [stdout] --> src/infrastructure/web/run.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let db_connection = di_container.create_database_connection()?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_repo` [INFO] [stdout] --> src/infrastructure/web/run.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | let (command_repo, query_repo) = di_container.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_repo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query_repo` [INFO] [stdout] --> src/infrastructure/web/run.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | let (command_repo, query_repo) = di_container.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_query_repo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/infrastructure/repository/in_memory_user_command_repository.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | let mut tx = conn.transaction()?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_command_repository` [INFO] [stdout] --> src/infrastructure/di/container.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | let (user_command_repository, user_query_repository) = self.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_command_repository` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_query_repository` [INFO] [stdout] --> src/infrastructure/di/container.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | let (user_command_repository, user_query_repository) = self.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_query_repository` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `count_with_filters` is never used [INFO] [stdout] --> src/infrastructure/repository/in_memory_user_query_repository.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl SqliteUserQueryRepository { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | fn count_with_filters(&self, _filters: &UserSearchFilters) -> rusqlite::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `api_health_check` is never used [INFO] [stdout] --> src/infrastructure/web/run.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | async fn api_health_check() -> axum::Json { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 36s [INFO] running `Command { std: "docker" "inspect" "84fc9fe222b078a4a7ed375fa4902bd649ff61a4b65d49d3a8d53e7bf174048d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84fc9fe222b078a4a7ed375fa4902bd649ff61a4b65d49d3a8d53e7bf174048d", kill_on_drop: false }` [INFO] [stdout] 84fc9fe222b078a4a7ed375fa4902bd649ff61a4b65d49d3a8d53e7bf174048d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74331ec1ae4ee17dfc07af1c7ce663c140fe56d44b441d5425fd43d01baa4b77 [INFO] running `Command { std: "docker" "start" "-a" "74331ec1ae4ee17dfc07af1c7ce663c140fe56d44b441d5425fd43d01baa4b77", kill_on_drop: false }` [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling rusted-ca v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Request`, `StatusCode`, `body::Body`, `extract::State`, `middleware::Next`, and `response::Response` [INFO] [stdout] --> src/shared/notification/discord_notification.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | body::Body, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 3 | extract::State, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | http::{Request, StatusCode}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 5 | middleware::Next, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | response::Response, [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: `std::sync::Arc` [INFO] [stdout] --> src/shared/notification/discord_notification.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::entity::user::User` [INFO] [stdout] --> src/application/usecases/create_user_usecase.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::domain::entity::user::User; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `birth_date::BirthDate`, `email::Email`, `password::Password`, `phone::Phone`, and `user_name::UserName` [INFO] [stdout] --> src/application/usecases/create_user_usecase.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | birth_date::BirthDate, email::Email, password::Password, phone::Phone, user_id::UserId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 11 | user_name::UserName, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/application/usecases/create_user_usecase.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `email::Email` and `password::Password` [INFO] [stdout] --> src/application/usecases/update_user_usecase.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | birth_date::BirthDate, email::Email, password::Password, phone::Phone, user_id::UserId, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Router`, `get`, `post`, and `serve` [INFO] [stdout] --> src/infrastructure/web/run.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | routing::{get, post}, [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] 8 | serve, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::application::dto::user_response_dto::UserResponseDto` [INFO] [stdout] --> src/presentation/controller/user_controller.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use crate::application::dto::user_response_dto::UserResponseDto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/presentation/controller/user_controller.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | extract::{Path, State}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `try_notify_startup` [INFO] [stdout] --> src/presentation/router/app_router.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | discord_notification_middleware, try_notify_startup, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AdminUser` [INFO] [stdout] --> src/presentation/router/user_router.rs:10:50 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::shared::middleware::auth_middleware::{AdminUser, AuthenticatedUser}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::middleware::from_fn` [INFO] [stdout] --> src/presentation/router/user_router.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use axum::middleware::from_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Request`, `StatusCode`, `body::Body`, `extract::State`, `middleware::Next`, and `response::Response` [INFO] [stdout] --> src/shared/notification/discord_notification.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | body::Body, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 3 | extract::State, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 4 | http::{Request, StatusCode}, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 5 | middleware::Next, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | response::Response, [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: `std::sync::Arc` [INFO] [stdout] --> src/shared/notification/discord_notification.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::domain::entity::user::User` [INFO] [stdout] --> src/application/usecases/create_user_usecase.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::domain::entity::user::User; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `birth_date::BirthDate`, `email::Email`, `password::Password`, `phone::Phone`, and `user_name::UserName` [INFO] [stdout] --> src/application/usecases/create_user_usecase.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | birth_date::BirthDate, email::Email, password::Password, phone::Phone, user_id::UserId, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] 11 | user_name::UserName, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/application/usecases/create_user_usecase.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `email::Email` and `password::Password` [INFO] [stdout] --> src/application/usecases/update_user_usecase.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | birth_date::BirthDate, email::Email, password::Password, phone::Phone, user_id::UserId, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Router`, `get`, `post`, and `serve` [INFO] [stdout] --> src/infrastructure/web/run.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | Router, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | routing::{get, post}, [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] 8 | serve, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::application::dto::user_response_dto::UserResponseDto` [INFO] [stdout] --> src/presentation/controller/user_controller.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 34 | use crate::application::dto::user_response_dto::UserResponseDto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `State` [INFO] [stdout] --> src/presentation/controller/user_controller.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | extract::{Path, State}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `try_notify_startup` [INFO] [stdout] --> src/presentation/router/app_router.rs:17:38 [INFO] [stdout] | [INFO] [stdout] 17 | discord_notification_middleware, try_notify_startup, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AdminUser` [INFO] [stdout] --> src/presentation/router/user_router.rs:10:50 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::shared::middleware::auth_middleware::{AdminUser, AuthenticatedUser}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::middleware::from_fn` [INFO] [stdout] --> src/presentation/router/user_router.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use axum::middleware::from_fn; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_time` [INFO] [stdout] --> src/shared/middleware/watch_middleware.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let start_time = Instant::now(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_time` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_connection` [INFO] [stdout] --> src/infrastructure/web/run.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let db_connection = di_container.create_database_connection()?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_repo` [INFO] [stdout] --> src/infrastructure/web/run.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | let (command_repo, query_repo) = di_container.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_repo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query_repo` [INFO] [stdout] --> src/infrastructure/web/run.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | let (command_repo, query_repo) = di_container.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_query_repo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start_time` [INFO] [stdout] --> src/shared/middleware/watch_middleware.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | let start_time = Instant::now(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_start_time` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_connection` [INFO] [stdout] --> src/infrastructure/web/run.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let db_connection = di_container.create_database_connection()?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_connection` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_repo` [INFO] [stdout] --> src/infrastructure/web/run.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 29 | let (command_repo, query_repo) = di_container.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_repo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `query_repo` [INFO] [stdout] --> src/infrastructure/web/run.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | let (command_repo, query_repo) = di_container.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_query_repo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/infrastructure/repository/in_memory_user_command_repository.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | let mut tx = conn.transaction()?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_command_repository` [INFO] [stdout] --> src/infrastructure/di/container.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | let (user_command_repository, user_query_repository) = self.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_command_repository` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_query_repository` [INFO] [stdout] --> src/infrastructure/di/container.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | let (user_command_repository, user_query_repository) = self.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_query_repository` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/infrastructure/repository/in_memory_user_command_repository.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | let mut tx = conn.transaction()?; [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_command_repository` [INFO] [stdout] --> src/infrastructure/di/container.rs:118:14 [INFO] [stdout] | [INFO] [stdout] 118 | let (user_command_repository, user_query_repository) = self.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_command_repository` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user_query_repository` [INFO] [stdout] --> src/infrastructure/di/container.rs:118:39 [INFO] [stdout] | [INFO] [stdout] 118 | let (user_command_repository, user_query_repository) = self.create_repositories()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_user_query_repository` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `count_with_filters` is never used [INFO] [stdout] --> src/infrastructure/repository/in_memory_user_query_repository.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl SqliteUserQueryRepository { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | fn count_with_filters(&self, _filters: &UserSearchFilters) -> rusqlite::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `api_health_check` is never used [INFO] [stdout] --> src/infrastructure/web/run.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | async fn api_health_check() -> axum::Json { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `count_with_filters` is never used [INFO] [stdout] --> src/infrastructure/repository/in_memory_user_query_repository.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl SqliteUserQueryRepository { [INFO] [stdout] | ------------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 72 | fn count_with_filters(&self, _filters: &UserSearchFilters) -> rusqlite::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `api_health_check` is never used [INFO] [stdout] --> src/infrastructure/web/run.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | async fn api_health_check() -> axum::Json { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> tests/user_integration_test.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::sync::Arc; [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: `DateTime` [INFO] [stdout] --> tests/logs_integration_test.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use chrono::{DateTime, Timelike, Utc}; [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: `rand::Rng` [INFO] [stdout] --> tests/logs_integration_test.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `watch_middleware` [INFO] [stdout] --> tests/logs_integration_test.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | watch_middleware, watch_middleware_with_base_path, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::fs::OpenOptions` [INFO] [stdout] --> tests/logs_integration_test.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use tokio::fs::OpenOptions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::AsyncWriteExt` [INFO] [stdout] --> tests/logs_integration_test.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use tokio::io::AsyncWriteExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 16.92s [INFO] running `Command { std: "docker" "inspect" "74331ec1ae4ee17dfc07af1c7ce663c140fe56d44b441d5425fd43d01baa4b77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74331ec1ae4ee17dfc07af1c7ce663c140fe56d44b441d5425fd43d01baa4b77", kill_on_drop: false }` [INFO] [stdout] 74331ec1ae4ee17dfc07af1c7ce663c140fe56d44b441d5425fd43d01baa4b77