[INFO] cloning repository https://github.com/antoniofernandodj/rs-chickie [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/antoniofernandodj/rs-chickie" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fantoniofernandodj%2Frs-chickie", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fantoniofernandodj%2Frs-chickie'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e0a9d512ab9a1ca64daf3f1d8e01a92e1113855d [INFO] checking antoniofernandodj/rs-chickie against try#4907eac94165faff6c5e5e015670b1c584275f7b for pr-154149 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fantoniofernandodj%2Frs-chickie" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/antoniofernandodj/rs-chickie [INFO] finished tweaking git repo https://github.com/antoniofernandodj/rs-chickie [INFO] tweaked toml for git repo https://github.com/antoniofernandodj/rs-chickie written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/antoniofernandodj/rs-chickie on toolchain 4907eac94165faff6c5e5e015670b1c584275f7b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4907eac94165faff6c5e5e015670b1c584275f7b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/antoniofernandodj/rs-chickie 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" "+4907eac94165faff6c5e5e015670b1c584275f7b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+4907eac94165faff6c5e5e015670b1c584275f7b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88d1a62100c399b9d7d16240c88ccf5af63fa4122ec0002b94a1e916c34077a3 [INFO] running `Command { std: "docker" "start" "-a" "88d1a62100c399b9d7d16240c88ccf5af63fa4122ec0002b94a1e916c34077a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88d1a62100c399b9d7d16240c88ccf5af63fa4122ec0002b94a1e916c34077a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88d1a62100c399b9d7d16240c88ccf5af63fa4122ec0002b94a1e916c34077a3", kill_on_drop: false }` [INFO] [stdout] 88d1a62100c399b9d7d16240c88ccf5af63fa4122ec0002b94a1e916c34077a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+4907eac94165faff6c5e5e015670b1c584275f7b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ee37b6747c5b9d0e058dced6f75be2c0c839c17e5b4c9820d5bcda45a9e4f879 [INFO] running `Command { std: "docker" "start" "-a" "ee37b6747c5b9d0e058dced6f75be2c0c839c17e5b4c9820d5bcda45a9e4f879", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Checking cfg-if v1.0.4 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Checking itoa v1.0.17 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling libm v0.2.16 [INFO] [stderr] Checking base64ct v1.8.3 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Compiling zmij v1.0.19 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Checking memchr v2.8.0 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking form_urlencoded v1.2.2 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling uuid v1.20.0 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling num-bigint-dig v0.8.6 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling num-conv v0.2.0 [INFO] [stderr] Checking deranged v0.5.8 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking primeorder v0.13.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking regex-syntax v0.8.10 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Checking ryu v1.0.23 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking p256 v0.13.2 [INFO] [stderr] Checking p384 v0.13.1 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Checking nu-ansi-term v0.50.3 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Checking bcrypt v0.18.0 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking simple_asn1 v0.6.4 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Checking ed25519-dalek v2.2.0 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Checking tracing-subscriber v0.3.23 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking rsa v0.9.10 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking jsonwebtoken v10.3.0 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking axum v0.8.8 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking chickie v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sqlx::PgPool` [INFO] [stdout] --> src/models/parte_de_pedido.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::PgPool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PgPoolOptions` [INFO] [stdout] --> src/repositories.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::postgres::{PgPool, PgPoolOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `jsonwebtoken::crypto::CryptoProvider` [INFO] [stdout] --> src/services/usuario_service.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use jsonwebtoken::crypto::CryptoProvider; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::NaiveDate` [INFO] [stdout] --> src/services/loja_service.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::NaiveDate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Model` [INFO] [stdout] --> src/services/catalogo_service.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | Adicional, CategoriaProdutos, Model, Produto [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Repository as _` [INFO] [stdout] --> src/services/endereco_entrega_service.rs:5:54 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::repositories::{EnderecoEntregaRepository, Repository as _}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `endereco_usuario_service::EnderecoUsuarioService` [INFO] [stdout] --> src/services/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use endereco_usuario_service::EnderecoUsuarioService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `endereco_entrega_service::EnderecoEntregaService` [INFO] [stdout] --> src/services/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use endereco_entrega_service::EnderecoEntregaService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/api/pedido/criar_pedido.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | Json, extract::{Path, State}, http::StatusCode, response::{IntoResponse, Response} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/api/usecases/pedido.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CatalogoService` and `Produto` [INFO] [stdout] --> src/api/usecases/pedido.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{models::{Produto, Usuario}, services::{CatalogoService, PedidoService}}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/api/usecases/marketing.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CatalogoService`, `Cupom`, `Promocao`, and `UsoCupom` [INFO] [stdout] --> src/api/usecases/marketing.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{models::{Cupom, UsoCupom, Promocao, Usuario}, services::{CatalogoService, MarketingService}}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write`, `stderr`, and `stdout` [INFO] [stdout] --> src/main.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{env, io::{Write, stderr, stdout}, net::SocketAddr, sync::Arc}; [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::PgPool` [INFO] [stdout] --> src/models/parte_de_pedido.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::PgPool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PgPoolOptions` [INFO] [stdout] --> src/repositories.rs:3:30 [INFO] [stdout] | [INFO] [stdout] 3 | use sqlx::postgres::{PgPool, PgPoolOptions}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `jsonwebtoken::crypto::CryptoProvider` [INFO] [stdout] --> src/services/usuario_service.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use jsonwebtoken::crypto::CryptoProvider; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::NaiveDate` [INFO] [stdout] --> src/services/loja_service.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::NaiveDate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Model` [INFO] [stdout] --> src/services/catalogo_service.rs:6:35 [INFO] [stdout] | [INFO] [stdout] 6 | Adicional, CategoriaProdutos, Model, Produto [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Repository as _` [INFO] [stdout] --> src/services/endereco_entrega_service.rs:5:54 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::repositories::{EnderecoEntregaRepository, Repository as _}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `endereco_usuario_service::EnderecoUsuarioService` [INFO] [stdout] --> src/services/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use endereco_usuario_service::EnderecoUsuarioService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `endereco_entrega_service::EnderecoEntregaService` [INFO] [stdout] --> src/services/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use endereco_entrega_service::EnderecoEntregaService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `http::StatusCode` [INFO] [stdout] --> src/api/pedido/criar_pedido.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | Json, extract::{Path, State}, http::StatusCode, response::{IntoResponse, Response} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/api/usecases/pedido.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CatalogoService` and `Produto` [INFO] [stdout] --> src/api/usecases/pedido.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{models::{Produto, Usuario}, services::{CatalogoService, PedidoService}}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/api/usecases/marketing.rs:5:13 [INFO] [stdout] | [INFO] [stdout] 5 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CatalogoService`, `Cupom`, `Promocao`, and `UsoCupom` [INFO] [stdout] --> src/api/usecases/marketing.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{models::{Cupom, UsoCupom, Promocao, Usuario}, services::{CatalogoService, MarketingService}}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write`, `stderr`, and `stdout` [INFO] [stdout] --> src/main.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | use std::{env, io::{Write, stderr, stdout}, net::SocketAddr, sync::Arc}; [INFO] [stdout] | ^^^^^ ^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `endereco_uuid` [INFO] [stdout] --> src/services/endereco_usuario_service.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | endereco_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endereco_uuid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usuario_uuid` [INFO] [stdout] --> src/services/endereco_usuario_service.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | usuario_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_usuario_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/api/pedido/buscar_pedido.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | Path(loja_uuid): Path, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/api/pedido/listar_pedidos.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | Path(loja_uuid): Path, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/api/cupom/criar_cupom.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | Path(loja_uuid): Path, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/api/cupom/validar_cupom.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Path(loja_uuid): Path, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_uuid` is never used [INFO] [stdout] --> src/models/model.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Model { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 4 | fn get_uuid(&self) -> Uuid; [INFO] [stdout] 5 | fn set_uuid(&mut self, uuid: Uuid); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/adicional.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Adicional { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/avaliacao.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl AvaliacaoDeLoja { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/avaliacao.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl AvaliacaoDeProduto { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/categoria.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl CategoriaProdutos { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 17 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/cliente.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Cliente { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 17 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/pedido.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl AdicionalDeItemDePedido { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `localizar_item` is never used [INFO] [stdout] --> src/models/pedido.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 171 | impl Pedido { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn localizar_item( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ingrediente` is never constructed [INFO] [stdout] --> src/models/ingrediente.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Ingrediente { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/ingrediente.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Ingrediente { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoLoja` is never constructed [INFO] [stdout] --> src/models/endereco.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct EnderecoLoja { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/endereco.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl EnderecoLoja { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 27 | [INFO] [stdout] 28 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoUsuario` is never constructed [INFO] [stdout] --> src/models/endereco.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct EnderecoUsuario { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/endereco.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl EnderecoUsuario { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 74 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/entregador.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Entregador { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/funcionario.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Funcionario { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 20 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `registrar_uso`, `ativar`, and `desativar` are never used [INFO] [stdout] --> src/models/promocoes.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 97 | impl Cupom { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn registrar_uso(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn ativar(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn desativar(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsoCupom` is never constructed [INFO] [stdout] --> src/models/promocoes.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/promocoes.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 176 | impl UsoCupom { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 177 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `ativar`, and `desativar` are never used [INFO] [stdout] --> src/models/promocoes.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 212 | impl Promocao { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 213 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | pub fn ativar(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn desativar(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_item_uuid` and `adicionar_adicional` are never used [INFO] [stdout] --> src/models/parte_de_pedido.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 121 | impl ParteDeItemPedido { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn set_item_uuid(&mut self, item_uuid: Uuid) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn adicionar_adicional( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deletar` is never used [INFO] [stdout] --> src/repositories.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Repository { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | async fn deletar(&self, uuid: Uuid) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_username` and `buscar_por_telefone` are never used [INFO] [stdout] --> src/repositories.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl UsuarioRepository { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn buscar_por_username(&self, username: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn buscar_por_telefone(&self, telefone: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_email` and `listar_ativas` are never used [INFO] [stdout] --> src/repositories.rs:164:18 [INFO] [stdout] | [INFO] [stdout] 161 | impl LojaRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 164 | pub async fn buscar_por_email(&self, email: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub async fn listar_ativas(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_usuario`, `buscar_por_loja`, and `listar_todos_por_loja` are never used [INFO] [stdout] --> src/repositories.rs:334:18 [INFO] [stdout] | [INFO] [stdout] 331 | impl<'a> ClienteRepository { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 334 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 354 | async fn listar_todos_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_por_categoria`, `buscar_disponiveis`, and `buscar_por_nome` are never used [INFO] [stdout] --> src/repositories.rs:464:18 [INFO] [stdout] | [INFO] [stdout] 461 | impl<'a> ProdutoRepository { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 464 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 475 | pub async fn buscar_por_categoria(&self, categoria_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 486 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 497 | pub async fn buscar_por_nome(&self, nome: &str, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja` and `buscar_por_nome` are never used [INFO] [stdout] --> src/repositories.rs:642:18 [INFO] [stdout] | [INFO] [stdout] 639 | impl<'a> CategoriaProdutosRepository { [INFO] [stdout] | ------------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 642 | pub async fn buscar_por_loja( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 656 | pub async fn buscar_por_nome(&self, nome: &str, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/repositories.rs:774:18 [INFO] [stdout] | [INFO] [stdout] 771 | impl<'a> PedidoRepository { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 774 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 784 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 794 | pub async fn buscar_por_status(&self, status: EstadoDePedido) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 804 | pub async fn buscar_pendentes(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 891 | pub async fn buscar_completos_por_loja( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 908 | pub async fn buscar_completos_por_usuario( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 926 | async fn hidratar_pedidos( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja` and `buscar_disponiveis` are never used [INFO] [stdout] --> src/repositories.rs:1268:18 [INFO] [stdout] | [INFO] [stdout] 1265 | impl<'a> AdicionalRepository { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1268 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1278 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IngredienteRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:1402:12 [INFO] [stdout] | [INFO] [stdout] 1402 | pub struct IngredienteRepository { pool: Arc } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `buscar_por_loja`, and `buscar_disponiveis` are never used [INFO] [stdout] --> src/repositories.rs:1404:12 [INFO] [stdout] | [INFO] [stdout] 1403 | impl<'a> IngredienteRepository { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 1404 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 1405 | [INFO] [stdout] 1406 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1417 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoLojaRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:1548:12 [INFO] [stdout] | [INFO] [stdout] 1548 | pub struct EnderecoLojaRepository { pool: Arc } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `buscar_por_loja` are never used [INFO] [stdout] --> src/repositories.rs:1550:12 [INFO] [stdout] | [INFO] [stdout] 1549 | impl<'a> EnderecoLojaRepository { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 1550 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 1551 | [INFO] [stdout] 1552 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_disponiveis`, and `buscar_por_telefone` are never used [INFO] [stdout] --> src/repositories.rs:1703:18 [INFO] [stdout] | [INFO] [stdout] 1700 | impl<'a> EntregadorRepository { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1703 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1713 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1724 | pub async fn buscar_por_telefone(&self, telefone: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_por_cargo`, and `buscar_por_email` are never used [INFO] [stdout] --> src/repositories.rs:1859:18 [INFO] [stdout] | [INFO] [stdout] 1856 | impl<'a> FuncionarioRepository { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1859 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1869 | pub async fn buscar_por_cargo(&self, cargo: &str, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1881 | pub async fn buscar_por_email(&self, email: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_por_usuario`, and `calcular_media` are never used [INFO] [stdout] --> src/repositories.rs:2010:18 [INFO] [stdout] | [INFO] [stdout] 2007 | impl<'a> AvaliacaoDeLojaRepository { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2010 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2020 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2030 | pub async fn calcular_media(&self, loja_uuid: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_produto`, `buscar_por_usuario`, `buscar_por_pedido`, and `calcular_media` are never used [INFO] [stdout] --> src/repositories.rs:2151:18 [INFO] [stdout] | [INFO] [stdout] 2148 | impl<'a> AvaliacaoDeProdutoRepository { [INFO] [stdout] | ------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2151 | pub async fn buscar_por_produto(&self, produto_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2162 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2173 | pub async fn buscar_por_pedido(&self, pedido_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2184 | pub async fn calcular_media(&self, produto_uuid: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja` and `buscar_ativos` are never used [INFO] [stdout] --> src/repositories.rs:2322:18 [INFO] [stdout] | [INFO] [stdout] 2308 | impl<'a> CupomRepository { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2322 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2332 | pub async fn buscar_ativos(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsoCupomRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:2467:12 [INFO] [stdout] | [INFO] [stdout] 2467 | pub struct UsoCupomRepository { pool: Arc } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `buscar_por_usuario`, `buscar_por_cupom`, and `contar_usos_usuario` are never used [INFO] [stdout] --> src/repositories.rs:2469:12 [INFO] [stdout] | [INFO] [stdout] 2468 | impl<'a> UsoCupomRepository { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 2469 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 2470 | [INFO] [stdout] 2471 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2482 | pub async fn buscar_por_cupom(&self, cupom_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2493 | pub async fn contar_usos_usuario(&self, usuario_uuid: Uuid, cupom_uuid: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_ativas`, and `buscar_por_prioridade` are never used [INFO] [stdout] --> src/repositories.rs:2613:18 [INFO] [stdout] | [INFO] [stdout] 2610 | impl<'a> PromocaoRepository { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2613 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2624 | pub async fn buscar_ativas(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2636 | pub async fn buscar_por_prioridade(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_ativos`, `adicionar_ou_atualizar`, `definir_ativo`, and `deletar_por_dia` are never used [INFO] [stdout] --> src/repositories.rs:2779:18 [INFO] [stdout] | [INFO] [stdout] 2775 | impl<'a> HorarioFuncionamentoRepository { [INFO] [stdout] | --------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2779 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2809 | pub async fn buscar_ativos(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2823 | pub async fn adicionar_ou_atualizar( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2902 | pub async fn definir_ativo( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2927 | pub async fn deletar_por_dia( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `criar_configuracao`, `alterar_tipo_calculo`, and `alterar_max_partes` are never used [INFO] [stdout] --> src/repositories.rs:3055:18 [INFO] [stdout] | [INFO] [stdout] 3035 | impl<'a> ConfiguracaoPedidosLojaRepository { [INFO] [stdout] | ------------------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 3055 | pub async fn criar_configuracao( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3124 | pub async fn alterar_tipo_calculo( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3149 | pub async fn alterar_max_partes( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParteDeItemPedidoRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:3287:12 [INFO] [stdout] | [INFO] [stdout] 3287 | pub struct ParteDeItemPedidoRepository { pool: Arc } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `buscar_por_item`, `salvar_partes_do_item`, and `deletar_por_item` are never used [INFO] [stdout] --> src/repositories.rs:3289:12 [INFO] [stdout] | [INFO] [stdout] 3288 | impl<'a> ParteDeItemPedidoRepository { [INFO] [stdout] | ------------------------------------ associated items in this implementation [INFO] [stdout] 3289 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 3290 | [INFO] [stdout] 3291 | pub async fn buscar_por_item( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3308 | pub async fn salvar_partes_do_item( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3359 | pub async fn deletar_por_item(&self, item_uuid: Uuid) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoUsuarioRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:3372:12 [INFO] [stdout] | [INFO] [stdout] 3372 | pub struct EnderecoUsuarioRepository { pool: Arc } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `buscar_por_usuario`, and `buscar_por_uuid_e_usuario` are never used [INFO] [stdout] --> src/repositories.rs:3375:12 [INFO] [stdout] | [INFO] [stdout] 3374 | impl<'a> EnderecoUsuarioRepository { [INFO] [stdout] | ---------------------------------- associated items in this implementation [INFO] [stdout] 3375 | pub fn new(pool: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 3380 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3392 | pub async fn buscar_por_uuid_e_usuario( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_pedido` and `criar_para_pedido` are never used [INFO] [stdout] --> src/repositories.rs:3507:18 [INFO] [stdout] | [INFO] [stdout] 3501 | impl<'a> EnderecoEntregaRepository { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 3507 | pub async fn buscar_por_pedido(&self, pedido_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3532 | pub async fn criar_para_pedido( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `listar` is never used [INFO] [stdout] --> src/services/usuario_service.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl UsuarioService { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn listar(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `funcionario_repo`, `entregador_repo`, and `cliente_repo` are never read [INFO] [stdout] --> src/services/loja_service.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct LojaService { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | funcionario_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | entregador_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | cliente_repo: Arc [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `adicionar_funcionario`, `adicionar_cliente`, `adicionar_entregador`, and `listar` are never used [INFO] [stdout] --> src/services/loja_service.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 36 | impl LojaService { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub async fn adicionar_funcionario( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub async fn adicionar_cliente( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub async fn adicionar_entregador( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub async fn listar(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `categoria_repo` and `adicional_repo` are never read [INFO] [stdout] --> src/services/catalogo_service.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CatalogoService { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 18 | produto_repo: Arc, [INFO] [stdout] 19 | categoria_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | adicional_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CatalogoService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `criar_adicional` and `criar_categoria` are never used [INFO] [stdout] --> src/services/catalogo_service.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 23 | impl CatalogoService { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn criar_adicional( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub async fn criar_categoria( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PedidoComEntrega` is never constructed [INFO] [stdout] --> src/services/pedido_service.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PedidoComEntrega { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DadosEnderecoEntrega` is never constructed [INFO] [stdout] --> src/services/pedido_service.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct DadosEnderecoEntrega { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_endereco_entrega` is never used [INFO] [stdout] --> src/services/pedido_service.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl DadosEnderecoEntrega { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] 33 | pub fn to_endereco_entrega( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `processar_e_exibir_precos`, `buscar_completo`, `listar`, and `buscar_pedido_com_entrega` are never used [INFO] [stdout] --> src/services/pedido_service.rs:86:18 [INFO] [stdout] | [INFO] [stdout] 70 | impl PedidoService { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub async fn processar_e_exibir_precos( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn buscar_completo( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub async fn listar(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | pub async fn buscar_pedido_com_entrega( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `promocao_repo`, `avaliacao_loja_repo`, and `avaliacao_prod_repo` are never read [INFO] [stdout] --> src/services/marketing_service.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MarketingService { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 15 | cupom_repo: Arc, [INFO] [stdout] 16 | promocao_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | avaliacao_loja_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | avaliacao_prod_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `criar_promocao`, `avaliar_loja`, `avaliar_produto`, and `listar_cupons` are never used [INFO] [stdout] --> src/services/marketing_service.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl MarketingService { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub async fn criar_promocao( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub async fn avaliar_loja( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub async fn avaliar_produto( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub async fn listar_cupons(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoUsuarioService` is never constructed [INFO] [stdout] --> src/services/endereco_usuario_service.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct EnderecoUsuarioService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/services/endereco_usuario_service.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl EnderecoUsuarioService { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(repo: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub async fn criar_endereco( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn listar_enderecos(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn buscar_endereco( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub async fn atualizar_endereco( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn deletar_endereco( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub async fn definir_como_padrao( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoEntregaService` is never constructed [INFO] [stdout] --> src/services/endereco_entrega_service.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct EnderecoEntregaService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `criar_para_pedido`, `buscar_por_pedido`, and `listar_por_loja` are never used [INFO] [stdout] --> src/services/endereco_entrega_service.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl EnderecoEntregaService { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(repo: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub async fn criar_para_pedido( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub async fn buscar_por_pedido( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub async fn listar_por_loja( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `usuario` is never read [INFO] [stdout] --> src/api/usecases/catalogo.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct CatalogoUsecase { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub usuario: Usuario, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PedidoUsecase` is never constructed [INFO] [stdout] --> src/api/usecases/pedido.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct PedidoUsecase { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/api/usecases/pedido.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl PedidoUsecase { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 18 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarketingUsecase` is never constructed [INFO] [stdout] --> src/api/usecases/marketing.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct MarketingUsecase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/api/usecases/marketing.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MarketingUsecase { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/services/loja_service.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | self.cliente_repo.criar(&cliente).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 161 | let _ = self.cliente_repo.criar(&cliente).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/services/marketing_service.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | self.promocao_repo.criar(&promocao).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 86 | let _ = self.promocao_repo.criar(&promocao).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `endereco_uuid` [INFO] [stdout] --> src/services/endereco_usuario_service.rs:115:9 [INFO] [stdout] | [INFO] [stdout] 115 | endereco_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endereco_uuid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `usuario_uuid` [INFO] [stdout] --> src/services/endereco_usuario_service.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | usuario_uuid: Uuid, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_usuario_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/api/pedido/buscar_pedido.rs:14:10 [INFO] [stdout] | [INFO] [stdout] 14 | Path(loja_uuid): Path, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/api/pedido/listar_pedidos.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | Path(loja_uuid): Path, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/api/cupom/criar_cupom.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | Path(loja_uuid): Path, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loja_uuid` [INFO] [stdout] --> src/api/cupom/validar_cupom.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Path(loja_uuid): Path, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `set_uuid` is never used [INFO] [stdout] --> src/models/model.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Model { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 4 | fn get_uuid(&self) -> Uuid; [INFO] [stdout] 5 | fn set_uuid(&mut self, uuid: Uuid); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/adicional.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Adicional { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/avaliacao.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl AvaliacaoDeLoja { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/avaliacao.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl AvaliacaoDeProduto { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] 50 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/categoria.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl CategoriaProdutos { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 17 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/cliente.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl Cliente { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 17 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/pedido.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl AdicionalDeItemDePedido { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `localizar_item` is never used [INFO] [stdout] --> src/models/pedido.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 171 | impl Pedido { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 224 | pub fn localizar_item( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Ingrediente` is never constructed [INFO] [stdout] --> src/models/ingrediente.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Ingrediente { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/ingrediente.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Ingrediente { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoLoja` is never constructed [INFO] [stdout] --> src/models/endereco.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct EnderecoLoja { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/endereco.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl EnderecoLoja { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 27 | [INFO] [stdout] 28 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoUsuario` is never constructed [INFO] [stdout] --> src/models/endereco.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct EnderecoUsuario { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/endereco.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl EnderecoUsuario { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 74 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/entregador.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Entregador { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 19 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/funcionario.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Funcionario { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 20 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `registrar_uso`, `ativar`, and `desativar` are never used [INFO] [stdout] --> src/models/promocoes.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 97 | impl Cupom { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn registrar_uso(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 145 | pub fn ativar(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn desativar(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsoCupom` is never constructed [INFO] [stdout] --> src/models/promocoes.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 167 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/promocoes.rs:177:12 [INFO] [stdout] | [INFO] [stdout] 176 | impl UsoCupom { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 177 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `ativar`, and `desativar` are never used [INFO] [stdout] --> src/models/promocoes.rs:213:12 [INFO] [stdout] | [INFO] [stdout] 212 | impl Promocao { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 213 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 276 | pub fn ativar(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn desativar(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_item_uuid` and `adicionar_adicional` are never used [INFO] [stdout] --> src/models/parte_de_pedido.rs:139:12 [INFO] [stdout] | [INFO] [stdout] 121 | impl ParteDeItemPedido { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn set_item_uuid(&mut self, item_uuid: Uuid) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn adicionar_adicional( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deletar` is never used [INFO] [stdout] --> src/repositories.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Repository { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 14 | async fn deletar(&self, uuid: Uuid) -> Result<(), String>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_username` and `buscar_por_telefone` are never used [INFO] [stdout] --> src/repositories.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 22 | impl UsuarioRepository { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub async fn buscar_por_username(&self, username: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub async fn buscar_por_telefone(&self, telefone: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_email` and `listar_ativas` are never used [INFO] [stdout] --> src/repositories.rs:164:18 [INFO] [stdout] | [INFO] [stdout] 161 | impl LojaRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 164 | pub async fn buscar_por_email(&self, email: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 174 | pub async fn listar_ativas(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_usuario`, `buscar_por_loja`, and `listar_todos_por_loja` are never used [INFO] [stdout] --> src/repositories.rs:334:18 [INFO] [stdout] | [INFO] [stdout] 331 | impl<'a> ClienteRepository { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 334 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 344 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 354 | async fn listar_todos_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_por_categoria`, `buscar_disponiveis`, and `buscar_por_nome` are never used [INFO] [stdout] --> src/repositories.rs:464:18 [INFO] [stdout] | [INFO] [stdout] 461 | impl<'a> ProdutoRepository { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 464 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 475 | pub async fn buscar_por_categoria(&self, categoria_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 486 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 497 | pub async fn buscar_por_nome(&self, nome: &str, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja` and `buscar_por_nome` are never used [INFO] [stdout] --> src/repositories.rs:642:18 [INFO] [stdout] | [INFO] [stdout] 639 | impl<'a> CategoriaProdutosRepository { [INFO] [stdout] | ------------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 642 | pub async fn buscar_por_loja( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 656 | pub async fn buscar_por_nome(&self, nome: &str, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/repositories.rs:774:18 [INFO] [stdout] | [INFO] [stdout] 771 | impl<'a> PedidoRepository { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 774 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 784 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 794 | pub async fn buscar_por_status(&self, status: EstadoDePedido) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 804 | pub async fn buscar_pendentes(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 891 | pub async fn buscar_completos_por_loja( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 908 | pub async fn buscar_completos_por_usuario( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 926 | async fn hidratar_pedidos( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja` and `buscar_disponiveis` are never used [INFO] [stdout] --> src/repositories.rs:1268:18 [INFO] [stdout] | [INFO] [stdout] 1265 | impl<'a> AdicionalRepository { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1268 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1278 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `IngredienteRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:1402:12 [INFO] [stdout] | [INFO] [stdout] 1402 | pub struct IngredienteRepository { pool: Arc } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `buscar_por_loja`, and `buscar_disponiveis` are never used [INFO] [stdout] --> src/repositories.rs:1404:12 [INFO] [stdout] | [INFO] [stdout] 1403 | impl<'a> IngredienteRepository { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 1404 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 1405 | [INFO] [stdout] 1406 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1417 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoLojaRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:1548:12 [INFO] [stdout] | [INFO] [stdout] 1548 | pub struct EnderecoLojaRepository { pool: Arc } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `buscar_por_loja` are never used [INFO] [stdout] --> src/repositories.rs:1550:12 [INFO] [stdout] | [INFO] [stdout] 1549 | impl<'a> EnderecoLojaRepository { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 1550 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 1551 | [INFO] [stdout] 1552 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_disponiveis`, and `buscar_por_telefone` are never used [INFO] [stdout] --> src/repositories.rs:1703:18 [INFO] [stdout] | [INFO] [stdout] 1700 | impl<'a> EntregadorRepository { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1703 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1713 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1724 | pub async fn buscar_por_telefone(&self, telefone: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_por_cargo`, and `buscar_por_email` are never used [INFO] [stdout] --> src/repositories.rs:1859:18 [INFO] [stdout] | [INFO] [stdout] 1856 | impl<'a> FuncionarioRepository { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1859 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1869 | pub async fn buscar_por_cargo(&self, cargo: &str, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1881 | pub async fn buscar_por_email(&self, email: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_por_usuario`, and `calcular_media` are never used [INFO] [stdout] --> src/repositories.rs:2010:18 [INFO] [stdout] | [INFO] [stdout] 2007 | impl<'a> AvaliacaoDeLojaRepository { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2010 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2020 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2030 | pub async fn calcular_media(&self, loja_uuid: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_produto`, `buscar_por_usuario`, `buscar_por_pedido`, and `calcular_media` are never used [INFO] [stdout] --> src/repositories.rs:2151:18 [INFO] [stdout] | [INFO] [stdout] 2148 | impl<'a> AvaliacaoDeProdutoRepository { [INFO] [stdout] | ------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2151 | pub async fn buscar_por_produto(&self, produto_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2162 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2173 | pub async fn buscar_por_pedido(&self, pedido_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2184 | pub async fn calcular_media(&self, produto_uuid: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja` and `buscar_ativos` are never used [INFO] [stdout] --> src/repositories.rs:2322:18 [INFO] [stdout] | [INFO] [stdout] 2308 | impl<'a> CupomRepository { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2322 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2332 | pub async fn buscar_ativos(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UsoCupomRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:2467:12 [INFO] [stdout] | [INFO] [stdout] 2467 | pub struct UsoCupomRepository { pool: Arc } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `buscar_por_usuario`, `buscar_por_cupom`, and `contar_usos_usuario` are never used [INFO] [stdout] --> src/repositories.rs:2469:12 [INFO] [stdout] | [INFO] [stdout] 2468 | impl<'a> UsoCupomRepository { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 2469 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 2470 | [INFO] [stdout] 2471 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2482 | pub async fn buscar_por_cupom(&self, cupom_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2493 | pub async fn contar_usos_usuario(&self, usuario_uuid: Uuid, cupom_uuid: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_ativas`, and `buscar_por_prioridade` are never used [INFO] [stdout] --> src/repositories.rs:2613:18 [INFO] [stdout] | [INFO] [stdout] 2610 | impl<'a> PromocaoRepository { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2613 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2624 | pub async fn buscar_ativas(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2636 | pub async fn buscar_por_prioridade(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_loja`, `buscar_ativos`, `adicionar_ou_atualizar`, `definir_ativo`, and `deletar_por_dia` are never used [INFO] [stdout] --> src/repositories.rs:2779:18 [INFO] [stdout] | [INFO] [stdout] 2775 | impl<'a> HorarioFuncionamentoRepository { [INFO] [stdout] | --------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2779 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2809 | pub async fn buscar_ativos(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2823 | pub async fn adicionar_ou_atualizar( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2902 | pub async fn definir_ativo( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2927 | pub async fn deletar_por_dia( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `criar_configuracao`, `alterar_tipo_calculo`, and `alterar_max_partes` are never used [INFO] [stdout] --> src/repositories.rs:3055:18 [INFO] [stdout] | [INFO] [stdout] 3035 | impl<'a> ConfiguracaoPedidosLojaRepository { [INFO] [stdout] | ------------------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 3055 | pub async fn criar_configuracao( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3124 | pub async fn alterar_tipo_calculo( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3149 | pub async fn alterar_max_partes( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ParteDeItemPedidoRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:3287:12 [INFO] [stdout] | [INFO] [stdout] 3287 | pub struct ParteDeItemPedidoRepository { pool: Arc } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `buscar_por_item`, `salvar_partes_do_item`, and `deletar_por_item` are never used [INFO] [stdout] --> src/repositories.rs:3289:12 [INFO] [stdout] | [INFO] [stdout] 3288 | impl<'a> ParteDeItemPedidoRepository { [INFO] [stdout] | ------------------------------------ associated items in this implementation [INFO] [stdout] 3289 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 3290 | [INFO] [stdout] 3291 | pub async fn buscar_por_item( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3308 | pub async fn salvar_partes_do_item( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3359 | pub async fn deletar_por_item(&self, item_uuid: Uuid) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoUsuarioRepository` is never constructed [INFO] [stdout] --> src/repositories.rs:3372:12 [INFO] [stdout] | [INFO] [stdout] 3372 | pub struct EnderecoUsuarioRepository { pool: Arc } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `buscar_por_usuario`, and `buscar_por_uuid_e_usuario` are never used [INFO] [stdout] --> src/repositories.rs:3375:12 [INFO] [stdout] | [INFO] [stdout] 3374 | impl<'a> EnderecoUsuarioRepository { [INFO] [stdout] | ---------------------------------- associated items in this implementation [INFO] [stdout] 3375 | pub fn new(pool: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 3380 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3392 | pub async fn buscar_por_uuid_e_usuario( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `buscar_por_pedido` and `criar_para_pedido` are never used [INFO] [stdout] --> src/repositories.rs:3507:18 [INFO] [stdout] | [INFO] [stdout] 3501 | impl<'a> EnderecoEntregaRepository { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 3507 | pub async fn buscar_por_pedido(&self, pedido_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3532 | pub async fn criar_para_pedido( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `listar` is never used [INFO] [stdout] --> src/services/usuario_service.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 11 | impl UsuarioService { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub async fn listar(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `funcionario_repo`, `entregador_repo`, and `cliente_repo` are never read [INFO] [stdout] --> src/services/loja_service.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct LojaService { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | funcionario_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 32 | entregador_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 33 | cliente_repo: Arc [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `adicionar_funcionario`, `adicionar_cliente`, `adicionar_entregador`, and `listar` are never used [INFO] [stdout] --> src/services/loja_service.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 36 | impl LojaService { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 127 | pub async fn adicionar_funcionario( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub async fn adicionar_cliente( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 166 | pub async fn adicionar_entregador( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 188 | pub async fn listar(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `categoria_repo` and `adicional_repo` are never read [INFO] [stdout] --> src/services/catalogo_service.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct CatalogoService { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 18 | produto_repo: Arc, [INFO] [stdout] 19 | categoria_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 20 | adicional_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CatalogoService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `criar_adicional` and `criar_categoria` are never used [INFO] [stdout] --> src/services/catalogo_service.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 23 | impl CatalogoService { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub async fn criar_adicional( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub async fn criar_categoria( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PedidoComEntrega` is never constructed [INFO] [stdout] --> src/services/pedido_service.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PedidoComEntrega { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DadosEnderecoEntrega` is never constructed [INFO] [stdout] --> src/services/pedido_service.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct DadosEnderecoEntrega { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_endereco_entrega` is never used [INFO] [stdout] --> src/services/pedido_service.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl DadosEnderecoEntrega { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] 33 | pub fn to_endereco_entrega( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `processar_e_exibir_precos`, `buscar_completo`, `listar`, and `buscar_pedido_com_entrega` are never used [INFO] [stdout] --> src/services/pedido_service.rs:86:18 [INFO] [stdout] | [INFO] [stdout] 70 | impl PedidoService { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub async fn processar_e_exibir_precos( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub async fn buscar_completo( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub async fn listar(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 336 | pub async fn buscar_pedido_com_entrega( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `promocao_repo`, `avaliacao_loja_repo`, and `avaliacao_prod_repo` are never read [INFO] [stdout] --> src/services/marketing_service.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct MarketingService { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 15 | cupom_repo: Arc, [INFO] [stdout] 16 | promocao_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 17 | avaliacao_loja_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | avaliacao_prod_repo: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `criar_promocao`, `avaliar_loja`, `avaliar_produto`, and `listar_cupons` are never used [INFO] [stdout] --> src/services/marketing_service.rs:59:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl MarketingService { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 59 | pub async fn criar_promocao( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub async fn avaliar_loja( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub async fn avaliar_produto( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub async fn listar_cupons(&self) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoUsuarioService` is never constructed [INFO] [stdout] --> src/services/endereco_usuario_service.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct EnderecoUsuarioService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/services/endereco_usuario_service.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl EnderecoUsuarioService { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(repo: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub async fn criar_endereco( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub async fn listar_enderecos(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn buscar_endereco( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub async fn atualizar_endereco( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub async fn deletar_endereco( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub async fn definir_como_padrao( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnderecoEntregaService` is never constructed [INFO] [stdout] --> src/services/endereco_entrega_service.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct EnderecoEntregaService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `criar_para_pedido`, `buscar_por_pedido`, and `listar_por_loja` are never used [INFO] [stdout] --> src/services/endereco_entrega_service.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl EnderecoEntregaService { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(repo: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub async fn criar_para_pedido( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub async fn buscar_por_pedido( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub async fn listar_por_loja( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `usuario` is never read [INFO] [stdout] --> src/api/usecases/catalogo.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct CatalogoUsecase { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub usuario: Usuario, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PedidoUsecase` is never constructed [INFO] [stdout] --> src/api/usecases/pedido.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct PedidoUsecase { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/api/usecases/pedido.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl PedidoUsecase { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 18 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarketingUsecase` is never constructed [INFO] [stdout] --> src/api/usecases/marketing.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct MarketingUsecase { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/api/usecases/marketing.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MarketingUsecase { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 18 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/services/loja_service.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | self.cliente_repo.criar(&cliente).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 161 | let _ = self.cliente_repo.criar(&cliente).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/services/marketing_service.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | self.promocao_repo.criar(&promocao).await; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 86 | let _ = self.promocao_repo.criar(&promocao).await; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 17s [INFO] running `Command { std: "docker" "inspect" "ee37b6747c5b9d0e058dced6f75be2c0c839c17e5b4c9820d5bcda45a9e4f879", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee37b6747c5b9d0e058dced6f75be2c0c839c17e5b4c9820d5bcda45a9e4f879", kill_on_drop: false }` [INFO] [stdout] ee37b6747c5b9d0e058dced6f75be2c0c839c17e5b4c9820d5bcda45a9e4f879