[INFO] cloning repository https://github.com/Ferd03dv/Ruggine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ferd03dv/Ruggine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFerd03dv%2FRuggine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFerd03dv%2FRuggine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e7fa1807a7bd66c187c674f7a95a4095e4fa10aa [INFO] linting Ferd03dv/Ruggine against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFerd03dv%2FRuggine" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Ferd03dv/Ruggine [INFO] finished tweaking git repo https://github.com/Ferd03dv/Ruggine [INFO] tweaked toml for git repo https://github.com/Ferd03dv/Ruggine written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Ferd03dv/Ruggine on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Ferd03dv/Ruggine 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_path_to_error v0.1.17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5642743c891a294e1d7820e7c7f427a2f6c046bf2728faa38920715f2483c79a [INFO] running `Command { std: "docker" "start" "-a" "5642743c891a294e1d7820e7c7f427a2f6c046bf2728faa38920715f2483c79a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5642743c891a294e1d7820e7c7f427a2f6c046bf2728faa38920715f2483c79a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5642743c891a294e1d7820e7c7f427a2f6c046bf2728faa38920715f2483c79a", kill_on_drop: false }` [INFO] [stdout] 5642743c891a294e1d7820e7c7f427a2f6c046bf2728faa38920715f2483c79a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 44822f06ed5ed3defa5f69cda3dca734597e68066f6426bdd914d73d58afacfe [INFO] running `Command { std: "docker" "start" "-a" "44822f06ed5ed3defa5f69cda3dca734597e68066f6426bdd914d73d58afacfe", kill_on_drop: false }` [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling cc v1.2.31 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking http-range-header v0.3.1 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking tower-http v0.4.4 [INFO] [stderr] Checking bcrypt v0.15.1 [INFO] [stderr] Compiling tempfile v3.20.0 [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 displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [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 idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking sysinfo v0.30.13 [INFO] [stderr] Checking sqlx-sqlite v0.7.4 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking Ruggine_Gruppo45 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sqlx::SqlitePool` [INFO] [stdout] --> src/config/database.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::SqlitePool; [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: `UserGroup` [INFO] [stdout] --> src/models/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | pub use group::{Group, UserGroup}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::SqlitePool` [INFO] [stdout] --> src/config/database.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::SqlitePool; [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: `crate::repositories::user_repository::get_all_users` [INFO] [stdout] --> src/server.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::repositories::user_repository::get_all_users; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get_messages_by_group` and `send_message` [INFO] [stdout] --> src/server.rs:12:47 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::repositories::message_repository::{send_message, get_messages_by_group}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repositories::group_repository::create_group` [INFO] [stdout] --> src/server.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::repositories::group_repository::create_group; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UserGroup` [INFO] [stdout] --> src/models/mod.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | pub use group::{Group, UserGroup}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repositories::user_repository::get_all_users` [INFO] [stdout] --> src/server.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::repositories::user_repository::get_all_users; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get_messages_by_group` and `send_message` [INFO] [stdout] --> src/server.rs:12:47 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::repositories::message_repository::{send_message, get_messages_by_group}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::repositories::group_repository::create_group` [INFO] [stdout] --> src/server.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::repositories::group_repository::create_group; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `group` [INFO] [stdout] --> src/services/invitation_service.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::{group, Invitation}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `group` [INFO] [stdout] --> src/services/invitation_service.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::models::{group, Invitation}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i_id` [INFO] [stdout] --> src/repositories/invitation_repository.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | i_id: Option, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_i_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i_id` [INFO] [stdout] --> src/repositories/invitation_repository.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | i_id: Option, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_i_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_file` [INFO] [stdout] --> src/utils/cpu_logger.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let log_file = Arc::clone(&self.log_file); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Status` is never used [INFO] [stdout] --> src/config/database.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserGroup` is never constructed [INFO] [stdout] --> src/models/group.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct UserGroup { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_users` is never used [INFO] [stdout] --> src/repositories/user_repository.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn get_all_users(pool: &SqlitePool) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InvitationStatus` is never used [INFO] [stdout] --> src/repositories/invitation_repository.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum InvitationStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stop_logging` is never used [INFO] [stdout] --> src/utils/cpu_logger.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl CpuLogger { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub async fn stop_logging(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log_file` [INFO] [stdout] --> src/utils/cpu_logger.rs:32:13 [INFO] [stdout] | [INFO] [stdout] 32 | let log_file = Arc::clone(&self.log_file); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_log_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct implementation of `ToString` [INFO] [stdout] --> src/repositories/invitation_repository.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / impl ToString for InvitationStatus { [INFO] [stdout] 12 | | fn to_string(&self) -> String { [INFO] [stdout] 13 | | match self { [INFO] [stdout] 14 | | InvitationStatus::Pending => "pending".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 19 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: prefer implementing `Display` instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl [INFO] [stdout] = note: `#[warn(clippy::to_string_trait_impl)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Status` is never used [INFO] [stdout] --> src/config/database.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | enum Status { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserGroup` is never constructed [INFO] [stdout] --> src/models/group.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct UserGroup { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_users` is never used [INFO] [stdout] --> src/repositories/user_repository.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | pub async fn get_all_users(pool: &SqlitePool) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InvitationStatus` is never used [INFO] [stdout] --> src/repositories/invitation_repository.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum InvitationStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stop_logging` is never used [INFO] [stdout] --> src/utils/cpu_logger.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl CpuLogger { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 75 | pub async fn stop_logging(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/server.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | / if url.starts_with("sqlite:") { [INFO] [stdout] 27 | | if let Some(path) = url.strip_prefix("sqlite:") { [INFO] [stdout] 28 | | let db_path = std::path::Path::new(path); [INFO] [stdout] 29 | | if let Some(parent) = db_path.parent() { [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 26 ~ if url.starts_with("sqlite:") [INFO] [stdout] 27 ~ && let Some(path) = url.strip_prefix("sqlite:") { [INFO] [stdout] 28 | let db_path = std::path::Path::new(path); [INFO] [stdout] ... [INFO] [stdout] 37 | } [INFO] [stdout] 38 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/server.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | / if let Some(parent) = db_path.parent() { [INFO] [stdout] 30 | | if !parent.exists() { [INFO] [stdout] 31 | | fs::create_dir_all(parent)?; [INFO] [stdout] 32 | | } [INFO] [stdout] 33 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 29 ~ if let Some(parent) = db_path.parent() [INFO] [stdout] 30 ~ && !parent.exists() { [INFO] [stdout] 31 | fs::create_dir_all(parent)?; [INFO] [stdout] 32 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: direct implementation of `ToString` [INFO] [stdout] --> src/repositories/invitation_repository.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / impl ToString for InvitationStatus { [INFO] [stdout] 12 | | fn to_string(&self) -> String { [INFO] [stdout] 13 | | match self { [INFO] [stdout] 14 | | InvitationStatus::Pending => "pending".to_string(), [INFO] [stdout] ... | [INFO] [stdout] 19 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: prefer implementing `Display` instead [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl [INFO] [stdout] = note: `#[warn(clippy::to_string_trait_impl)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/server.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | / if url.starts_with("sqlite:") { [INFO] [stdout] 27 | | if let Some(path) = url.strip_prefix("sqlite:") { [INFO] [stdout] 28 | | let db_path = std::path::Path::new(path); [INFO] [stdout] 29 | | if let Some(parent) = db_path.parent() { [INFO] [stdout] ... | [INFO] [stdout] 39 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 26 ~ if url.starts_with("sqlite:") [INFO] [stdout] 27 ~ && let Some(path) = url.strip_prefix("sqlite:") { [INFO] [stdout] 28 | let db_path = std::path::Path::new(path); [INFO] [stdout] ... [INFO] [stdout] 37 | } [INFO] [stdout] 38 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/server.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | / if let Some(parent) = db_path.parent() { [INFO] [stdout] 30 | | if !parent.exists() { [INFO] [stdout] 31 | | fs::create_dir_all(parent)?; [INFO] [stdout] 32 | | } [INFO] [stdout] 33 | | } [INFO] [stdout] | |_____________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 29 ~ if let Some(parent) = db_path.parent() [INFO] [stdout] 30 ~ && !parent.exists() { [INFO] [stdout] 31 | fs::create_dir_all(parent)?; [INFO] [stdout] 32 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/services/auth_service.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | if let Some(_) = user_repository::get_user_by_username(pool, username).await? { [INFO] [stdout] | -------^^^^^^^--------------------------------------------------------------- help: try: `if user_repository::get_user_by_username(pool, username).await?.is_some()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/services/auth_service.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | if let Some(_) = user_repository::get_user_by_email(pool, email).await? { [INFO] [stdout] | -------^^^^^^^--------------------------------------------------------- help: try: `if user_repository::get_user_by_email(pool, email).await?.is_some()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/services/auth_service.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | if let Some(_) = user_repository::get_user_by_username(pool, username).await? { [INFO] [stdout] | -------^^^^^^^--------------------------------------------------------------- help: try: `if user_repository::get_user_by_username(pool, username).await?.is_some()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_some()` [INFO] [stdout] --> src/services/auth_service.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | if let Some(_) = user_repository::get_user_by_email(pool, email).await? { [INFO] [stdout] | -------^^^^^^^--------------------------------------------------------- help: try: `if user_repository::get_user_by_email(pool, email).await?.is_some()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 15s [INFO] running `Command { std: "docker" "inspect" "44822f06ed5ed3defa5f69cda3dca734597e68066f6426bdd914d73d58afacfe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44822f06ed5ed3defa5f69cda3dca734597e68066f6426bdd914d73d58afacfe", kill_on_drop: false }` [INFO] [stdout] 44822f06ed5ed3defa5f69cda3dca734597e68066f6426bdd914d73d58afacfe