[INFO] cloning repository https://github.com/mateusPreste/pebolmaxbackend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mateusPreste/pebolmaxbackend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmateusPreste%2Fpebolmaxbackend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmateusPreste%2Fpebolmaxbackend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 16265836326f562f6e114d5ed49d43721433be29 [INFO] building mateusPreste/pebolmaxbackend against master#44f415c1d617ebc7b931a243b7b321ef8a6ca47c for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FmateusPreste%2Fpebolmaxbackend" "/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/mateusPreste/pebolmaxbackend on toolchain 44f415c1d617ebc7b931a243b7b321ef8a6ca47c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mateusPreste/pebolmaxbackend [INFO] finished tweaking git repo https://github.com/mateusPreste/pebolmaxbackend [INFO] tweaked toml for git repo https://github.com/mateusPreste/pebolmaxbackend written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mateusPreste/pebolmaxbackend 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" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] aebb37d4d3ba0cc1801274afe60378b090fc6bafa45390f853851b23627a8be7 [INFO] running `Command { std: "docker" "start" "-a" "aebb37d4d3ba0cc1801274afe60378b090fc6bafa45390f853851b23627a8be7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aebb37d4d3ba0cc1801274afe60378b090fc6bafa45390f853851b23627a8be7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aebb37d4d3ba0cc1801274afe60378b090fc6bafa45390f853851b23627a8be7", kill_on_drop: false }` [INFO] [stdout] aebb37d4d3ba0cc1801274afe60378b090fc6bafa45390f853851b23627a8be7 [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b8abab06c8fbfe95312e5ae9d1f3fb5b1031db0e714963ceec09e468de7d28c5 [INFO] running `Command { std: "docker" "start" "-a" "b8abab06c8fbfe95312e5ae9d1f3fb5b1031db0e714963ceec09e468de7d28c5", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling itoa v1.0.6 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling cc v1.2.17 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling mio v0.8.6 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling http v1.0.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling rustversion v1.0.12 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling futures-channel v0.3.27 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling openssl-sys v0.9.106 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling openssl v0.10.71 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling serde_json v1.0.95 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling async-trait v0.1.68 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling cpufeatures v0.2.6 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.5 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling iana-time-zone v0.1.55 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling axum-core v0.4.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling deranged v0.4.1 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling axum v0.7.3 [INFO] [stderr] Compiling postgres-protocol v0.6.8 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling rust_decimal v1.37.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling rustls-pki-types v1.11.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling http-body-util v0.1.0 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-util v0.7.8 [INFO] [stderr] Compiling uuid v1.3.0 [INFO] [stderr] Compiling chrono v0.4.24 [INFO] [stderr] Compiling h2 v0.4.8 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.11 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling postgres-types v0.2.9 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling pem v3.0.5 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling matchit v0.7.0 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling tokio-postgres v0.7.13 [INFO] [stderr] Compiling jsonwebtoken v9.3.1 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tower-http v0.6.2 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.10 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling rust-axum-postgres-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `debug_handler` [INFO] [stdout] --> src/modules/arenas/arenas_controller.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | debug_handler, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arenas_repository::list_free_times` [INFO] [stdout] --> src/modules/arenas/arenas_controller.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | arenas_repository::list_free_times, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/modules/arenas/arenas_service.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LocalInput` [INFO] [stdout] --> src/modules/arenas/arenas_service.rs:7:61 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::modules::arenas::arenas_model::{Estabelecimento, LocalInput, Quadra}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Horario` [INFO] [stdout] --> src/modules/arenas/arenas_service.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | arenas_model::{Horario, Local, RegisterQuadraInput}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LocalInput` [INFO] [stdout] --> src/modules/arenas/validator/local_validator.rs:1:51 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::modules::arenas::arenas_model::{Local, LocalInput}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Credenciais` and `Usuario` [INFO] [stdout] --> src/modules/auth/auth_controller.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::modules::auth::auth_model::{Credenciais, Usuario}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_user_and_cred_by_oauth` [INFO] [stdout] --> src/modules/auth/auth_controller.rs:13:60 [INFO] [stdout] | [INFO] [stdout] 13 | use super::auth_service::{create_new_user_and_credentials, get_user_and_cred_by_oauth}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LoginResponse` and `LoginStrategyFactory` [INFO] [stdout] --> src/modules/auth/auth_controller.rs:15:32 [INFO] [stdout] | [INFO] [stdout] 15 | LoginParams, LoginRequest, LoginResponse, LoginStrategyFactory, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::async_trait` [INFO] [stdout] --> src/modules/auth/auth_model.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::auth_service::AuthService` [INFO] [stdout] --> src/modules/auth/auth_model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::auth_service::AuthService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/modules/auth/auth_repository.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio_postgres::{Client, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `find_user_and_credentials_by_oauth` [INFO] [stdout] --> src/modules/auth/auth_service.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | auth_repository::{self, find_user_and_credentials_by_oauth}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_user_and_cred_by_oauth` [INFO] [stdout] --> src/modules/auth/login_methods/google_login_strategy.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::modules::auth::auth_service::{get_user_and_cred_by_oauth, AuthService}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Json`, `Query`, `State`, and `http::StatusCode` [INFO] [stdout] --> src/modules/notes/note_service.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | extract::{Query, State}, [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] 5 | http::StatusCode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | Json, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/modules/notes/note_service.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_postgres::Error` [INFO] [stdout] --> src/modules/notes/note_service.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio_postgres::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/modules/notes/note_service.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FilterOptions` [INFO] [stdout] --> src/modules/notes/note_service.rs:15:32 [INFO] [stdout] | [INFO] [stdout] 15 | schema::{CreateNoteSchema, FilterOptions, UpdateNoteSchema}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/modules/payments/payment_repository.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NaiveDate` and `NaiveTime` [INFO] [stdout] --> src/modules/rent/rent_model.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{NaiveDate, NaiveDateTime, NaiveTime}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::NaiveDate` [INFO] [stdout] --> src/modules/rent/rent_service.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::NaiveDate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServiceInput` [INFO] [stdout] --> src/modules/service/service_service.rs:2:55 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::modules::service::service_model::{Service, ServiceInput}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MethodRouter`, `delete`, and `middleware` [INFO] [stdout] --> src/route.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | middleware, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 3 | routing::{delete, get, patch, post, MethodRouter}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `create_note_controller`, `delete_note_controller`, `edit_note_controller`, `get_note_controller`, `healthchecker_controller`, `middleware::auth_middleware`, and `note_list_controller` [INFO] [stdout] --> src/route.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | create_note_controller, delete_note_controller, edit_note_controller, get_note_controller, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | healthchecker_controller, note_list_controller, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | }, [INFO] [stdout] 14 | middleware::auth_middleware, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opts` [INFO] [stdout] --> src/controller/note_controller.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | opts: Option>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_opts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/controller/note_controller.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | State(data): State>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `credenciais` [INFO] [stdout] --> src/modules/auth/auth_controller.rs:142:26 [INFO] [stdout] | [INFO] [stdout] 142 | Ok((usuario, credenciais)) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_credenciais` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/modules/auth/login_methods/google_login_strategy.rs:192:19 [INFO] [stdout] | [INFO] [stdout] 192 | .map_err(|e| format!("Failed to parse token info"))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/modules/rent/rent_repository.rs:188:17 [INFO] [stdout] | [INFO] [stdout] 188 | Err(e) => return Err("Reserva não encontrada".to_string()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status_str` [INFO] [stdout] --> src/modules/rent/rent_service.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let status_str = new_status.to_string(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_status_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/modules/auth/login_methods/direct_login_strategy.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let token = self [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | let (mut client, connection) = match tokio_postgres::connect(&database_url, NoTls).await { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_note_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn create_note_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_note_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub async fn get_note_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `edit_note_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | pub async fn edit_note_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_note_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn delete_note_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `note_list_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:79:14 [INFO] [stdout] | [INFO] [stdout] 79 | pub async fn note_list_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `healthchecker_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | pub async fn healthchecker_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `health_checker_handler` is never used [INFO] [stdout] --> src/handler.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | pub async fn health_checker_handler() -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `row_to_note` is never used [INFO] [stdout] --> src/handler.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn row_to_note(row: &Row) -> NoteModel { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `note_list_handler` is never used [INFO] [stdout] --> src/handler.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn note_list_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_note_handler` is never used [INFO] [stdout] --> src/handler.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | pub async fn create_note_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_note_handler` is never used [INFO] [stdout] --> src/handler.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | pub async fn get_note_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `edit_note_handler` is never used [INFO] [stdout] --> src/handler.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 153 | pub async fn edit_note_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_note_handler` is never used [INFO] [stdout] --> src/handler.rs:205:14 [INFO] [stdout] | [INFO] [stdout] 205 | pub async fn delete_note_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_middleware` is never used [INFO] [stdout] --> src/middleware.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn auth_middleware( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_row` is never used [INFO] [stdout] --> src/model.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl NoteModel { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 20 | pub fn from_row(row: &Row) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate_token` is never used [INFO] [stdout] --> src/modules/auth/auth_service.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl AuthService { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn validate_token(&self, token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `auth_service` is never read [INFO] [stdout] --> src/modules/auth/login_methods/google_login_strategy.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GoogleLoginStrategy { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 13 | pub(crate) auth_service: AuthService, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `issued_to`, `scope`, `expires_in`, `email`, `verified_email`, and `access_type` are never read [INFO] [stdout] --> src/modules/auth/login_methods/google_login_strategy.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | struct GoogleTokenInfo { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 42 | issued_to: String, // client ID [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | scope: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | expires_in: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 47 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 48 | verified_email: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 49 | access_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GoogleTokenInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_i64_u64` is never used [INFO] [stdout] --> src/modules/auth/login_methods/google_login_strategy.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn compare_i64_u64(i: i64, u: u64) -> Ordering { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_note` is never used [INFO] [stdout] --> src/modules/notes/note_service.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn create_note( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_note` is never used [INFO] [stdout] --> src/modules/notes/note_service.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn get_note(state: &Arc, id: uuid::Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `edit_note` is never used [INFO] [stdout] --> src/modules/notes/note_service.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | pub async fn edit_note( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_note` is never used [INFO] [stdout] --> src/modules/notes/note_service.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | pub async fn delete_note(state: &Arc, id: uuid::Uuid) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_notes` is never used [INFO] [stdout] --> src/modules/notes/note_service.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | pub async fn get_notes( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `page` and `limit` are never read [INFO] [stdout] --> src/schema.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct FilterOptions { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 5 | pub page: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub limit: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FilterOptions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/schema.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ParamOptions { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 11 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParamOptions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 38s [INFO] running `Command { std: "docker" "inspect" "b8abab06c8fbfe95312e5ae9d1f3fb5b1031db0e714963ceec09e468de7d28c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8abab06c8fbfe95312e5ae9d1f3fb5b1031db0e714963ceec09e468de7d28c5", kill_on_drop: false }` [INFO] [stdout] b8abab06c8fbfe95312e5ae9d1f3fb5b1031db0e714963ceec09e468de7d28c5 [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+44f415c1d617ebc7b931a243b7b321ef8a6ca47c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88c591044817a4f398f49338e83b81a9a6d1507549033d25c7bafed7cf0f6708 [INFO] running `Command { std: "docker" "start" "-a" "88c591044817a4f398f49338e83b81a9a6d1507549033d25c7bafed7cf0f6708", kill_on_drop: false }` [INFO] [stderr] Compiling rust-axum-postgres-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `debug_handler` [INFO] [stdout] --> src/modules/arenas/arenas_controller.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | debug_handler, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `arenas_repository::list_free_times` [INFO] [stdout] --> src/modules/arenas/arenas_controller.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | arenas_repository::list_free_times, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/modules/arenas/arenas_service.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LocalInput` [INFO] [stdout] --> src/modules/arenas/arenas_service.rs:7:61 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::modules::arenas::arenas_model::{Estabelecimento, LocalInput, Quadra}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Horario` [INFO] [stdout] --> src/modules/arenas/arenas_service.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | arenas_model::{Horario, Local, RegisterQuadraInput}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `LocalInput` [INFO] [stdout] --> src/modules/arenas/validator/local_validator.rs:1:51 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::modules::arenas::arenas_model::{Local, LocalInput}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Credenciais` and `Usuario` [INFO] [stdout] --> src/modules/auth/auth_controller.rs:9:40 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::modules::auth::auth_model::{Credenciais, Usuario}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_user_and_cred_by_oauth` [INFO] [stdout] --> src/modules/auth/auth_controller.rs:13:60 [INFO] [stdout] | [INFO] [stdout] 13 | use super::auth_service::{create_new_user_and_credentials, get_user_and_cred_by_oauth}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LoginResponse` and `LoginStrategyFactory` [INFO] [stdout] --> src/modules/auth/auth_controller.rs:15:32 [INFO] [stdout] | [INFO] [stdout] 15 | LoginParams, LoginRequest, LoginResponse, LoginStrategyFactory, [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::async_trait` [INFO] [stdout] --> src/modules/auth/auth_model.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use axum::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::auth_service::AuthService` [INFO] [stdout] --> src/modules/auth/auth_model.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use super::auth_service::AuthService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/modules/auth/auth_repository.rs:1:30 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio_postgres::{Client, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `find_user_and_credentials_by_oauth` [INFO] [stdout] --> src/modules/auth/auth_service.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | auth_repository::{self, find_user_and_credentials_by_oauth}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_user_and_cred_by_oauth` [INFO] [stdout] --> src/modules/auth/login_methods/google_login_strategy.rs:7:42 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::modules::auth::auth_service::{get_user_and_cred_by_oauth, AuthService}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Json`, `Query`, `State`, and `http::StatusCode` [INFO] [stdout] --> src/modules/notes/note_service.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | extract::{Query, State}, [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] 5 | http::StatusCode, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | Json, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/modules/notes/note_service.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_postgres::Error` [INFO] [stdout] --> src/modules/notes/note_service.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use tokio_postgres::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/modules/notes/note_service.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FilterOptions` [INFO] [stdout] --> src/modules/notes/note_service.rs:15:32 [INFO] [stdout] | [INFO] [stdout] 15 | schema::{CreateNoteSchema, FilterOptions, UpdateNoteSchema}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/modules/payments/payment_repository.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NaiveDate` and `NaiveTime` [INFO] [stdout] --> src/modules/rent/rent_model.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{NaiveDate, NaiveDateTime, NaiveTime}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::NaiveDate` [INFO] [stdout] --> src/modules/rent/rent_service.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use chrono::NaiveDate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ServiceInput` [INFO] [stdout] --> src/modules/service/service_service.rs:2:55 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::modules::service::service_model::{Service, ServiceInput}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MethodRouter`, `delete`, and `middleware` [INFO] [stdout] --> src/route.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | middleware, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 3 | routing::{delete, get, patch, post, MethodRouter}, [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `create_note_controller`, `delete_note_controller`, `edit_note_controller`, `get_note_controller`, `healthchecker_controller`, `middleware::auth_middleware`, and `note_list_controller` [INFO] [stdout] --> src/route.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | create_note_controller, delete_note_controller, edit_note_controller, get_note_controller, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | healthchecker_controller, note_list_controller, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | }, [INFO] [stdout] 14 | middleware::auth_middleware, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opts` [INFO] [stdout] --> src/controller/note_controller.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | opts: Option>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_opts` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/controller/note_controller.rs:110:11 [INFO] [stdout] | [INFO] [stdout] 110 | State(data): State>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `credenciais` [INFO] [stdout] --> src/modules/auth/auth_controller.rs:142:26 [INFO] [stdout] | [INFO] [stdout] 142 | Ok((usuario, credenciais)) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_credenciais` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/modules/auth/login_methods/google_login_strategy.rs:192:19 [INFO] [stdout] | [INFO] [stdout] 192 | .map_err(|e| format!("Failed to parse token info"))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/modules/rent/rent_repository.rs:188:17 [INFO] [stdout] | [INFO] [stdout] 188 | Err(e) => return Err("Reserva não encontrada".to_string()), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status_str` [INFO] [stdout] --> src/modules/rent/rent_service.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let status_str = new_status.to_string(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_status_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/modules/auth/login_methods/direct_login_strategy.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let token = self [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | let (mut client, connection) = match tokio_postgres::connect(&database_url, NoTls).await { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_note_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | pub async fn create_note_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_note_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | pub async fn get_note_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `edit_note_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:49:14 [INFO] [stdout] | [INFO] [stdout] 49 | pub async fn edit_note_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_note_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:66:14 [INFO] [stdout] | [INFO] [stdout] 66 | pub async fn delete_note_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `note_list_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:79:14 [INFO] [stdout] | [INFO] [stdout] 79 | pub async fn note_list_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `healthchecker_controller` is never used [INFO] [stdout] --> src/controller/note_controller.rs:108:14 [INFO] [stdout] | [INFO] [stdout] 108 | pub async fn healthchecker_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `health_checker_handler` is never used [INFO] [stdout] --> src/handler.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | pub async fn health_checker_handler() -> impl IntoResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `row_to_note` is never used [INFO] [stdout] --> src/handler.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn row_to_note(row: &Row) -> NoteModel { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `note_list_handler` is never used [INFO] [stdout] --> src/handler.rs:43:14 [INFO] [stdout] | [INFO] [stdout] 43 | pub async fn note_list_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_note_handler` is never used [INFO] [stdout] --> src/handler.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | pub async fn create_note_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_note_handler` is never used [INFO] [stdout] --> src/handler.rs:124:14 [INFO] [stdout] | [INFO] [stdout] 124 | pub async fn get_note_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `edit_note_handler` is never used [INFO] [stdout] --> src/handler.rs:153:14 [INFO] [stdout] | [INFO] [stdout] 153 | pub async fn edit_note_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_note_handler` is never used [INFO] [stdout] --> src/handler.rs:205:14 [INFO] [stdout] | [INFO] [stdout] 205 | pub async fn delete_note_handler( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `auth_middleware` is never used [INFO] [stdout] --> src/middleware.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn auth_middleware( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_row` is never used [INFO] [stdout] --> src/model.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl NoteModel { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 20 | pub fn from_row(row: &Row) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `validate_token` is never used [INFO] [stdout] --> src/modules/auth/auth_service.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 25 | impl AuthService { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn validate_token(&self, token: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `auth_service` is never read [INFO] [stdout] --> src/modules/auth/login_methods/google_login_strategy.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct GoogleLoginStrategy { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 13 | pub(crate) auth_service: AuthService, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `issued_to`, `scope`, `expires_in`, `email`, `verified_email`, and `access_type` are never read [INFO] [stdout] --> src/modules/auth/login_methods/google_login_strategy.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | struct GoogleTokenInfo { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 42 | issued_to: String, // client ID [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | scope: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | expires_in: i64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 47 | email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 48 | verified_email: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 49 | access_type: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GoogleTokenInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compare_i64_u64` is never used [INFO] [stdout] --> src/modules/auth/login_methods/google_login_strategy.rs:230:4 [INFO] [stdout] | [INFO] [stdout] 230 | fn compare_i64_u64(i: i64, u: u64) -> Ordering { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_note` is never used [INFO] [stdout] --> src/modules/notes/note_service.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | pub async fn create_note( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_note` is never used [INFO] [stdout] --> src/modules/notes/note_service.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | pub async fn get_note(state: &Arc, id: uuid::Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `edit_note` is never used [INFO] [stdout] --> src/modules/notes/note_service.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | pub async fn edit_note( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_note` is never used [INFO] [stdout] --> src/modules/notes/note_service.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | pub async fn delete_note(state: &Arc, id: uuid::Uuid) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_notes` is never used [INFO] [stdout] --> src/modules/notes/note_service.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | pub async fn get_notes( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `page` and `limit` are never read [INFO] [stdout] --> src/schema.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct FilterOptions { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 5 | pub page: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | pub limit: Option, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FilterOptions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/schema.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ParamOptions { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 11 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParamOptions` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.44s [INFO] running `Command { std: "docker" "inspect" "88c591044817a4f398f49338e83b81a9a6d1507549033d25c7bafed7cf0f6708", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88c591044817a4f398f49338e83b81a9a6d1507549033d25c7bafed7cf0f6708", kill_on_drop: false }` [INFO] [stdout] 88c591044817a4f398f49338e83b81a9a6d1507549033d25c7bafed7cf0f6708