[INFO] cloning repository https://github.com/mraffiramdhani/karcis-com-backend-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mraffiramdhani/karcis-com-backend-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmraffiramdhani%2Fkarcis-com-backend-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmraffiramdhani%2Fkarcis-com-backend-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed5fea5a144fdd38ab30eabd40f9c4e0938410ab [INFO] testing mraffiramdhani/karcis-com-backend-rust against 1.86.0 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmraffiramdhani%2Fkarcis-com-backend-rust" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mraffiramdhani/karcis-com-backend-rust on toolchain 1.86.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mraffiramdhani/karcis-com-backend-rust [INFO] finished tweaking git repo https://github.com/mraffiramdhani/karcis-com-backend-rust [INFO] tweaked toml for git repo https://github.com/mraffiramdhani/karcis-com-backend-rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mraffiramdhani/karcis-com-backend-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quoted_printable v0.5.1 [INFO] [stderr] Downloaded impl-more v0.1.8 [INFO] [stderr] Downloaded parse-size v1.1.0 [INFO] [stderr] Downloaded stacker v0.1.17 [INFO] [stderr] Downloaded email_address v0.2.9 [INFO] [stderr] Downloaded psm v0.1.24 [INFO] [stderr] Downloaded email-encoding v0.3.0 [INFO] [stderr] Downloaded actix-multipart-derive v0.7.0 [INFO] [stderr] Downloaded lettre v0.11.10 [INFO] [stderr] Downloaded actix-multipart v0.7.2 [INFO] [stderr] Downloaded chumsky v0.9.3 [INFO] [stderr] Downloaded rustls v0.23.17 [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b62d18b1f23e1ad2985d2e87625d69e8bb89c3cbb9ca6d09d17ee034e6b9a9a [INFO] running `Command { std: "docker" "start" "-a" "5b62d18b1f23e1ad2985d2e87625d69e8bb89c3cbb9ca6d09d17ee034e6b9a9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b62d18b1f23e1ad2985d2e87625d69e8bb89c3cbb9ca6d09d17ee034e6b9a9a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b62d18b1f23e1ad2985d2e87625d69e8bb89c3cbb9ca6d09d17ee034e6b9a9a", kill_on_drop: false }` [INFO] [stdout] 5b62d18b1f23e1ad2985d2e87625d69e8bb89c3cbb9ca6d09d17ee034e6b9a9a [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1fe106b14899f921f6cd1f7857a032eb0c02364cbdf01bf1e69d1bae52e8e34f [INFO] running `Command { std: "docker" "start" "-a" "1fe106b14899f921f6cd1f7857a032eb0c02364cbdf01bf1e69d1bae52e8e34f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.164 [INFO] [stderr] Compiling serde v1.0.215 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling bytes v1.8.0 [INFO] [stderr] Compiling litemap v0.7.3 [INFO] [stderr] Compiling itoa v1.0.13 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling allocator-api2 v0.2.20 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling hashbrown v0.15.1 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling rustls v0.23.17 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling serde_json v1.0.133 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling webpki-roots v0.26.7 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling bigdecimal v0.4.6 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling rustix v0.38.41 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Compiling fastrand v2.2.0 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling cc v1.2.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling tokio v1.41.1 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling brotli-decompressor v4.0.1 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling brotli v6.0.0 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling local-channel v0.1.5 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Compiling tempfile v3.14.0 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling impl-more v0.1.8 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling parse-size v1.1.0 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling rust_decimal v1.36.0 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling hostname v0.4.0 [INFO] [stderr] Compiling env_filter v0.1.2 [INFO] [stderr] Compiling pem v3.0.4 [INFO] [stderr] Compiling email-encoding v0.3.0 [INFO] [stderr] Compiling quoted_printable v0.5.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling psm v0.1.24 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling email_address v0.2.9 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling bcrypt v0.15.1 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling env_logger v0.11.5 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling serde_derive v1.0.215 [INFO] [stderr] Compiling zerofrom-derive v0.1.4 [INFO] [stderr] Compiling yoke-derive v0.7.4 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling zstd v0.13.2 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling zerofrom v0.1.4 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling yoke v0.7.4 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling simple_asn1 v0.6.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling actix-multipart-derive v0.7.0 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling chumsky v0.9.3 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_plain v1.0.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling jsonwebtoken v9.3.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.3 [INFO] [stderr] Compiling lettre v0.11.10 [INFO] [stderr] Compiling sqlx-core v0.8.2 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling actix-rt v2.10.0 [INFO] [stderr] Compiling actix-server v2.5.0 [INFO] [stderr] Compiling sqlx-postgres v0.8.2 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling actix-codec v0.5.2 [INFO] [stderr] Compiling sqlx-macros-core v0.8.2 [INFO] [stderr] Compiling actix-http v3.9.0 [INFO] [stderr] Compiling sqlx-macros v0.8.2 [INFO] [stderr] Compiling actix-web v4.9.0 [INFO] [stderr] Compiling sqlx v0.8.2 [INFO] [stderr] Compiling actix-multipart v0.7.2 [INFO] [stderr] Compiling karcis-com-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `dev::Service` and `error::Error as ActixError` [INFO] [stdout] --> src/app/user/urls.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{dev::Service, error::Error as ActixError, web}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_all`, `find_by_id`, `create`, `update`, and `delete` are never used [INFO] [stdout] --> src/app/amenity/models.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl Amenity { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 13 | pub async fn get_all(pool: &PgPool) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn find_by_id(pool: &PgPool, id: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub async fn delete( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_urls` is never used [INFO] [stdout] --> src/app/amenity/urls.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn register_urls(cfg: &mut web::ServiceConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_amenities` is never used [INFO] [stdout] --> src/app/amenity/views.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn get_all_amenities(pool: web::Data) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_amenity_by_id` is never used [INFO] [stdout] --> src/app/amenity/views.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn get_amenity_by_id(pool: web::Data, id: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_amenity` is never used [INFO] [stdout] --> src/app/amenity/views.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn create_amenity( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_amenity` is never used [INFO] [stdout] --> src/app/amenity/views.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | pub async fn update_amenity( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_amenity` is never used [INFO] [stdout] --> src/app/amenity/views.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 71 | pub async fn delete_amenity(pool: web::Data, id: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidCredentials`, `UserNotFound`, `UsernameAlreadyExists`, `EmailAlreadyExists`, `InternalServerError`, and `Unauthorized` are never constructed [INFO] [stdout] --> src/app/auth/errors.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum AuthError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 7 | #[display(fmt = "Invalid credentials")] [INFO] [stdout] 8 | InvalidCredentials, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | #[display(fmt = "User not found")] [INFO] [stdout] 10 | UserNotFound, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | #[display(fmt = "Username already exists")] [INFO] [stdout] 12 | UsernameAlreadyExists, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | #[display(fmt = "Email already exists")] [INFO] [stdout] 14 | EmailAlreadyExists, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | #[display(fmt = "Internal server error")] [INFO] [stdout] 16 | InternalServerError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | #[display(fmt = "Unauthorized")] [INFO] [stdout] 18 | Unauthorized, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `create` and `get_by_name` are never used [INFO] [stdout] --> src/app/auth/models.rs:245:18 [INFO] [stdout] | [INFO] [stdout] 244 | impl Role { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 245 | pub async fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub async fn get_by_name( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get`, `get_by_user`, `update`, and `delete` are never used [INFO] [stdout] --> src/app/balance/models.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 49 | impl Balance { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub async fn get(db: &sqlx::PgPool, id: &i64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub async fn get_by_user(db: &sqlx::PgPool, user_id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn delete(db: &sqlx::PgPool, id: i64) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `create`, `get`, and `get_by_user` are never used [INFO] [stdout] --> src/app/balance/models.rs:135:18 [INFO] [stdout] | [INFO] [stdout] 134 | impl BalanceHistory { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 135 | pub async fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub async fn get(db: &sqlx::PgPool, id: i64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub async fn get_by_user(db: &sqlx::PgPool, user_id: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_urls` is never used [INFO] [stdout] --> src/app/balance/urls.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn register_urls(cfg: &mut web::ServiceConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_balance` is never used [INFO] [stdout] --> src/app/balance/views.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn get_balance(db: web::Data, path: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_balance_histories` is never used [INFO] [stdout] --> src/app/balance/views.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn get_balance_histories(db: web::Data, path: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_balance` is never used [INFO] [stdout] --> src/app/balance/views.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn update_balance( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/app/middlewares/has_role.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl HasRole { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 27 | pub fn new(required_role: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_urls` is never used [INFO] [stdout] --> src/app/user/urls.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn register_urls(cfg: &mut web::ServiceConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_by_id` is never used [INFO] [stdout] --> src/app/user/views.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn get_user_by_id(pool: web::Data, id: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_file` is never used [INFO] [stdout] --> src/app/utils/filesystem.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn save_file( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 06s [INFO] running `Command { std: "docker" "inspect" "1fe106b14899f921f6cd1f7857a032eb0c02364cbdf01bf1e69d1bae52e8e34f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fe106b14899f921f6cd1f7857a032eb0c02364cbdf01bf1e69d1bae52e8e34f", kill_on_drop: false }` [INFO] [stdout] 1fe106b14899f921f6cd1f7857a032eb0c02364cbdf01bf1e69d1bae52e8e34f [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63b2c131af4563a7fd13f54e5cbf3a39d9be48d6fc031705d6d96ba69239492e [INFO] running `Command { std: "docker" "start" "-a" "63b2c131af4563a7fd13f54e5cbf3a39d9be48d6fc031705d6d96ba69239492e", kill_on_drop: false }` [INFO] [stderr] Compiling karcis-com-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `dev::Service` and `error::Error as ActixError` [INFO] [stdout] --> src/app/user/urls.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{dev::Service, error::Error as ActixError, web}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get_all`, `find_by_id`, `create`, `update`, and `delete` are never used [INFO] [stdout] --> src/app/amenity/models.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl Amenity { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] 13 | pub async fn get_all(pool: &PgPool) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | pub async fn find_by_id(pool: &PgPool, id: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub async fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub async fn delete( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_urls` is never used [INFO] [stdout] --> src/app/amenity/urls.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn register_urls(cfg: &mut web::ServiceConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_all_amenities` is never used [INFO] [stdout] --> src/app/amenity/views.rs:10:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub async fn get_all_amenities(pool: web::Data) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_amenity_by_id` is never used [INFO] [stdout] --> src/app/amenity/views.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | pub async fn get_amenity_by_id(pool: web::Data, id: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_amenity` is never used [INFO] [stdout] --> src/app/amenity/views.rs:37:14 [INFO] [stdout] | [INFO] [stdout] 37 | pub async fn create_amenity( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_amenity` is never used [INFO] [stdout] --> src/app/amenity/views.rs:54:14 [INFO] [stdout] | [INFO] [stdout] 54 | pub async fn update_amenity( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_amenity` is never used [INFO] [stdout] --> src/app/amenity/views.rs:71:14 [INFO] [stdout] | [INFO] [stdout] 71 | pub async fn delete_amenity(pool: web::Data, id: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidCredentials`, `UserNotFound`, `UsernameAlreadyExists`, `EmailAlreadyExists`, `InternalServerError`, and `Unauthorized` are never constructed [INFO] [stdout] --> src/app/auth/errors.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum AuthError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 7 | #[display(fmt = "Invalid credentials")] [INFO] [stdout] 8 | InvalidCredentials, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | #[display(fmt = "User not found")] [INFO] [stdout] 10 | UserNotFound, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 11 | #[display(fmt = "Username already exists")] [INFO] [stdout] 12 | UsernameAlreadyExists, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | #[display(fmt = "Email already exists")] [INFO] [stdout] 14 | EmailAlreadyExists, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | #[display(fmt = "Internal server error")] [INFO] [stdout] 16 | InternalServerError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | #[display(fmt = "Unauthorized")] [INFO] [stdout] 18 | Unauthorized, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `create` and `get_by_name` are never used [INFO] [stdout] --> src/app/auth/models.rs:245:18 [INFO] [stdout] | [INFO] [stdout] 244 | impl Role { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 245 | pub async fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub async fn get_by_name( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `get`, `get_by_user`, `update`, and `delete` are never used [INFO] [stdout] --> src/app/balance/models.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 49 | impl Balance { [INFO] [stdout] | ------------ associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 68 | pub async fn get(db: &sqlx::PgPool, id: &i64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub async fn get_by_user(db: &sqlx::PgPool, user_id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub async fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn delete(db: &sqlx::PgPool, id: i64) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `create`, `get`, and `get_by_user` are never used [INFO] [stdout] --> src/app/balance/models.rs:135:18 [INFO] [stdout] | [INFO] [stdout] 134 | impl BalanceHistory { [INFO] [stdout] | ------------------- associated functions in this implementation [INFO] [stdout] 135 | pub async fn create( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub async fn get(db: &sqlx::PgPool, id: i64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub async fn get_by_user(db: &sqlx::PgPool, user_id: i64) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_urls` is never used [INFO] [stdout] --> src/app/balance/urls.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn register_urls(cfg: &mut web::ServiceConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_balance` is never used [INFO] [stdout] --> src/app/balance/views.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn get_balance(db: web::Data, path: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_balance_histories` is never used [INFO] [stdout] --> src/app/balance/views.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn get_balance_histories(db: web::Data, path: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_balance` is never used [INFO] [stdout] --> src/app/balance/views.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 28 | pub async fn update_balance( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/app/middlewares/has_role.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl HasRole { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 27 | pub fn new(required_role: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `register_urls` is never used [INFO] [stdout] --> src/app/user/urls.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn register_urls(cfg: &mut web::ServiceConfig) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_by_id` is never used [INFO] [stdout] --> src/app/user/views.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | pub async fn get_user_by_id(pool: web::Data, id: web::Path) -> impl Responder { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_file` is never used [INFO] [stdout] --> src/app/utils/filesystem.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | pub async fn save_file( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.06s [INFO] running `Command { std: "docker" "inspect" "63b2c131af4563a7fd13f54e5cbf3a39d9be48d6fc031705d6d96ba69239492e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63b2c131af4563a7fd13f54e5cbf3a39d9be48d6fc031705d6d96ba69239492e", kill_on_drop: false }` [INFO] [stdout] 63b2c131af4563a7fd13f54e5cbf3a39d9be48d6fc031705d6d96ba69239492e [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] afe69e51a6ce6a3faee7d0483ee180ba6c36c965ffbd3308e6a12c0aef7803e9 [INFO] running `Command { std: "docker" "start" "-a" "afe69e51a6ce6a3faee7d0483ee180ba6c36c965ffbd3308e6a12c0aef7803e9", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `dev::Service` and `error::Error as ActixError` [INFO] [stderr] --> src/app/user/urls.rs:1:17 [INFO] [stderr] | [INFO] [stderr] 1 | use actix_web::{dev::Service, error::Error as ActixError, web}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated functions `get_all`, `find_by_id`, `create`, `update`, and `delete` are never used [INFO] [stderr] --> src/app/amenity/models.rs:13:18 [INFO] [stderr] | [INFO] [stderr] 12 | impl Amenity { [INFO] [stderr] | ------------ associated functions in this implementation [INFO] [stderr] 13 | pub async fn get_all(pool: &PgPool) -> Result, sqlx::Error> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 20 | pub async fn find_by_id(pool: &PgPool, id: i64) -> Result, sqlx::Error> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 28 | pub async fn create( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 43 | pub async fn update( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 59 | pub async fn delete( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `register_urls` is never used [INFO] [stderr] --> src/app/amenity/urls.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn register_urls(cfg: &mut web::ServiceConfig) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_all_amenities` is never used [INFO] [stderr] --> src/app/amenity/views.rs:10:14 [INFO] [stderr] | [INFO] [stderr] 10 | pub async fn get_all_amenities(pool: web::Data) -> impl Responder { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_amenity_by_id` is never used [INFO] [stderr] --> src/app/amenity/views.rs:23:14 [INFO] [stderr] | [INFO] [stderr] 23 | pub async fn get_amenity_by_id(pool: web::Data, id: web::Path) -> impl Responder { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `create_amenity` is never used [INFO] [stderr] --> src/app/amenity/views.rs:37:14 [INFO] [stderr] | [INFO] [stderr] 37 | pub async fn create_amenity( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `update_amenity` is never used [INFO] [stderr] --> src/app/amenity/views.rs:54:14 [INFO] [stderr] | [INFO] [stderr] 54 | pub async fn update_amenity( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `delete_amenity` is never used [INFO] [stderr] --> src/app/amenity/views.rs:71:14 [INFO] [stderr] | [INFO] [stderr] 71 | pub async fn delete_amenity(pool: web::Data, id: web::Path) -> impl Responder { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `InvalidCredentials`, `UserNotFound`, `UsernameAlreadyExists`, `EmailAlreadyExists`, `InternalServerError`, and `Unauthorized` are never constructed [INFO] [stderr] --> src/app/auth/errors.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 6 | pub enum AuthError { [INFO] [stderr] | --------- variants in this enum [INFO] [stderr] 7 | #[display(fmt = "Invalid credentials")] [INFO] [stderr] 8 | InvalidCredentials, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 9 | #[display(fmt = "User not found")] [INFO] [stderr] 10 | UserNotFound, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 11 | #[display(fmt = "Username already exists")] [INFO] [stderr] 12 | UsernameAlreadyExists, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 13 | #[display(fmt = "Email already exists")] [INFO] [stderr] 14 | EmailAlreadyExists, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 15 | #[display(fmt = "Internal server error")] [INFO] [stderr] 16 | InternalServerError, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 17 | #[display(fmt = "Unauthorized")] [INFO] [stderr] 18 | Unauthorized, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `AuthError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated functions `create` and `get_by_name` are never used [INFO] [stderr] --> src/app/auth/models.rs:245:18 [INFO] [stderr] | [INFO] [stderr] 244 | impl Role { [INFO] [stderr] | --------- associated functions in this implementation [INFO] [stderr] 245 | pub async fn create( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 267 | pub async fn get_by_name( [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `get`, `get_by_user`, `update`, and `delete` are never used [INFO] [stderr] --> src/app/balance/models.rs:68:18 [INFO] [stderr] | [INFO] [stderr] 49 | impl Balance { [INFO] [stderr] | ------------ associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 68 | pub async fn get(db: &sqlx::PgPool, id: &i64) -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 83 | pub async fn get_by_user(db: &sqlx::PgPool, user_id: i64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 98 | pub async fn update( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 119 | pub async fn delete(db: &sqlx::PgPool, id: i64) -> Result<(), sqlx::Error> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `create`, `get`, and `get_by_user` are never used [INFO] [stderr] --> src/app/balance/models.rs:135:18 [INFO] [stderr] | [INFO] [stderr] 134 | impl BalanceHistory { [INFO] [stderr] | ------------------- associated functions in this implementation [INFO] [stderr] 135 | pub async fn create( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 156 | pub async fn get(db: &sqlx::PgPool, id: i64) -> Result { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 171 | pub async fn get_by_user(db: &sqlx::PgPool, user_id: i64) -> Result, sqlx::Error> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `register_urls` is never used [INFO] [stderr] --> src/app/balance/urls.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn register_urls(cfg: &mut web::ServiceConfig) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_balance` is never used [INFO] [stderr] --> src/app/balance/views.rs:8:14 [INFO] [stderr] | [INFO] [stderr] 8 | pub async fn get_balance(db: web::Data, path: web::Path) -> impl Responder { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_balance_histories` is never used [INFO] [stderr] --> src/app/balance/views.rs:17:14 [INFO] [stderr] | [INFO] [stderr] 17 | pub async fn get_balance_histories(db: web::Data, path: web::Path) -> impl Responder { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `update_balance` is never used [INFO] [stderr] --> src/app/balance/views.rs:28:14 [INFO] [stderr] | [INFO] [stderr] 28 | pub async fn update_balance( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/app/middlewares/has_role.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 26 | impl HasRole { [INFO] [stderr] | ------------ associated function in this implementation [INFO] [stderr] 27 | pub fn new(required_role: String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: function `register_urls` is never used [INFO] [stderr] --> src/app/user/urls.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 5 | pub fn register_urls(cfg: &mut web::ServiceConfig) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_user_by_id` is never used [INFO] [stderr] --> src/app/user/views.rs:11:14 [INFO] [stderr] | [INFO] [stderr] 11 | pub async fn get_user_by_id(pool: web::Data, id: web::Path) -> impl Responder { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `save_file` is never used [INFO] [stderr] --> src/app/utils/filesystem.rs:8:14 [INFO] [stderr] | [INFO] [stderr] 8 | pub async fn save_file( [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `karcis-com-backend` (bin "karcis-com-backend" test) generated 20 warnings (run `cargo fix --bin "karcis-com-backend" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.36s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/karcis_com_backend-c86e1c1adde51c6b) [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" "afe69e51a6ce6a3faee7d0483ee180ba6c36c965ffbd3308e6a12c0aef7803e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "afe69e51a6ce6a3faee7d0483ee180ba6c36c965ffbd3308e6a12c0aef7803e9", kill_on_drop: false }` [INFO] [stdout] afe69e51a6ce6a3faee7d0483ee180ba6c36c965ffbd3308e6a12c0aef7803e9