[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] ab5a3b37e1937649201ea2f6606f42aa4e1cb98d [INFO] testing antoniofernandodj/rs-chickie against try#8da20828b6ea601dfd8e2448cb50ace88876bd78 for pr-150933 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fantoniofernandodj%2Frs-chickie" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-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-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/antoniofernandodj/rs-chickie on toolchain 8da20828b6ea601dfd8e2448cb50ace88876bd78 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "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" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 85199b4108cec32e5e5c449989602258a17be5ae1670fe0b3367ef0234df5f81 [INFO] running `Command { std: "docker" "start" "-a" "85199b4108cec32e5e5c449989602258a17be5ae1670fe0b3367ef0234df5f81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85199b4108cec32e5e5c449989602258a17be5ae1670fe0b3367ef0234df5f81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85199b4108cec32e5e5c449989602258a17be5ae1670fe0b3367ef0234df5f81", kill_on_drop: false }` [INFO] [stdout] 85199b4108cec32e5e5c449989602258a17be5ae1670fe0b3367ef0234df5f81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02dde8d38216dfc15fd8fd20caebd91ff6ef7fce5e309035dd67f579f784b205 [INFO] running `Command { std: "docker" "start" "-a" "02dde8d38216dfc15fd8fd20caebd91ff6ef7fce5e309035dd67f579f784b205", 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 cfg-if v1.0.4 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling libm v0.2.16 [INFO] [stderr] Compiling base64ct v1.8.3 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling zmij v1.0.19 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling socket2 v0.6.2 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling cc v1.2.55 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling ryu v1.0.23 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling uuid v1.20.0 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling num-bigint-dig v0.8.6 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Compiling num-conv v0.2.0 [INFO] [stderr] Compiling deranged v0.5.8 [INFO] [stderr] Compiling time-macros v0.2.27 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling primeorder v0.13.6 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling p256 v0.13.2 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling p384 v0.13.1 [INFO] [stderr] Compiling pem v3.0.6 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling time v0.3.47 [INFO] [stderr] Compiling matchit v0.8.4 [INFO] [stderr] Compiling tower-http v0.6.8 [INFO] [stderr] Compiling bcrypt v0.18.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [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 serde_derive v1.0.228 [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] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling axum-core v0.5.6 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling simple_asn1 v0.6.4 [INFO] [stderr] Compiling ed25519-dalek v2.2.0 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling rsa v0.9.10 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling jsonwebtoken v10.3.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling hyper-util v0.1.20 [INFO] [stderr] Compiling axum v0.8.8 [INFO] [stderr] Compiling sqlx-sqlite v0.8.6 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Compiling sqlx v0.8.6 [INFO] [stderr] Compiling chickie v0.1.0 (/opt/rustwide/workdir) [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] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [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 variable: `latitude` [INFO] [stdout] --> src/services/endereco_usuario_service.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | latitude: Option, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_latitude` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `longitude` [INFO] [stdout] --> src/services/endereco_usuario_service.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | longitude: Option, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_longitude` [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] [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:220:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl Pedido { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 220 | 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:125:12 [INFO] [stdout] | [INFO] [stdout] 86 | impl Cupom { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn registrar_uso(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn ativar(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | 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:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/promocoes.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 165 | impl UsoCupom { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 166 | 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:202:12 [INFO] [stdout] | [INFO] [stdout] 201 | impl Promocao { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 202 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub fn ativar(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | 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:136:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl ParteDeItemPedido { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn set_item_uuid(&mut self, item_uuid: Uuid) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn adicionar_adicional( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deletar` is never used [INFO] [stdout] --> src/repositories.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Repository { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 13 | 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:34:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl UsuarioRepository { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub async fn buscar_por_username(&self, username: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | 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:163:18 [INFO] [stdout] | [INFO] [stdout] 160 | impl LojaRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 163 | pub async fn buscar_por_email(&self, email: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | 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:349:18 [INFO] [stdout] | [INFO] [stdout] 346 | impl<'a> ClienteRepository { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 349 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 359 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 369 | 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:479:18 [INFO] [stdout] | [INFO] [stdout] 476 | impl<'a> ProdutoRepository { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 479 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 490 | pub async fn buscar_por_categoria(&self, categoria_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | 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:657:18 [INFO] [stdout] | [INFO] [stdout] 654 | impl<'a> CategoriaProdutosRepository { [INFO] [stdout] | ------------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 657 | pub async fn buscar_por_loja( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 671 | 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:789:18 [INFO] [stdout] | [INFO] [stdout] 786 | impl<'a> PedidoRepository { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 789 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 799 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 809 | pub async fn buscar_por_status(&self, status: EstadoDePedido) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 819 | pub async fn buscar_pendentes(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 906 | pub async fn buscar_completos_por_loja( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 923 | pub async fn buscar_completos_por_usuario( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 941 | 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:1261:18 [INFO] [stdout] | [INFO] [stdout] 1258 | impl<'a> AdicionalRepository { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1261 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1271 | 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:1387:12 [INFO] [stdout] | [INFO] [stdout] 1387 | 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:1389:12 [INFO] [stdout] | [INFO] [stdout] 1388 | impl<'a> IngredienteRepository { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 1389 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 1390 | [INFO] [stdout] 1391 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1402 | 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:1533:12 [INFO] [stdout] | [INFO] [stdout] 1533 | 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:1535:12 [INFO] [stdout] | [INFO] [stdout] 1534 | impl<'a> EnderecoLojaRepository { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 1535 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 1536 | [INFO] [stdout] 1537 | 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:1688:18 [INFO] [stdout] | [INFO] [stdout] 1685 | impl<'a> EntregadorRepository { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1688 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1698 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1709 | 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:1835:18 [INFO] [stdout] | [INFO] [stdout] 1832 | impl<'a> FuncionarioRepository { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1835 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1845 | pub async fn buscar_por_cargo(&self, cargo: &str, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1857 | 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:1983:18 [INFO] [stdout] | [INFO] [stdout] 1980 | impl<'a> AvaliacaoDeLojaRepository { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1983 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1993 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2003 | 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:2124:18 [INFO] [stdout] | [INFO] [stdout] 2121 | impl<'a> AvaliacaoDeProdutoRepository { [INFO] [stdout] | ------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2124 | pub async fn buscar_por_produto(&self, produto_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2135 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2146 | pub async fn buscar_por_pedido(&self, pedido_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2157 | 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:2295:18 [INFO] [stdout] | [INFO] [stdout] 2281 | impl<'a> CupomRepository { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2295 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2305 | 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:2440:12 [INFO] [stdout] | [INFO] [stdout] 2440 | 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:2442:12 [INFO] [stdout] | [INFO] [stdout] 2441 | impl<'a> UsoCupomRepository { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 2442 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 2443 | [INFO] [stdout] 2444 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2455 | pub async fn buscar_por_cupom(&self, cupom_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2466 | 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:2586:18 [INFO] [stdout] | [INFO] [stdout] 2583 | impl<'a> PromocaoRepository { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2586 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2597 | pub async fn buscar_ativas(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2609 | 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:2752:18 [INFO] [stdout] | [INFO] [stdout] 2748 | impl<'a> HorarioFuncionamentoRepository { [INFO] [stdout] | --------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2752 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2782 | pub async fn buscar_ativos(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2796 | pub async fn adicionar_ou_atualizar( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2875 | pub async fn definir_ativo( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2900 | 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:3028:18 [INFO] [stdout] | [INFO] [stdout] 3008 | impl<'a> ConfiguracaoPedidosLojaRepository { [INFO] [stdout] | ------------------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 3028 | pub async fn criar_configuracao( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3097 | pub async fn alterar_tipo_calculo( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3122 | 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:3260:12 [INFO] [stdout] | [INFO] [stdout] 3260 | 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:3262:12 [INFO] [stdout] | [INFO] [stdout] 3261 | impl<'a> ParteDeItemPedidoRepository { [INFO] [stdout] | ------------------------------------ associated items in this implementation [INFO] [stdout] 3262 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 3263 | [INFO] [stdout] 3264 | pub async fn buscar_por_item( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3281 | pub async fn salvar_partes_do_item( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3332 | 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:3345:12 [INFO] [stdout] | [INFO] [stdout] 3345 | 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:3348:12 [INFO] [stdout] | [INFO] [stdout] 3347 | impl<'a> EnderecoUsuarioRepository { [INFO] [stdout] | ---------------------------------- associated items in this implementation [INFO] [stdout] 3348 | pub fn new(pool: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 3353 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3365 | 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:3489:18 [INFO] [stdout] | [INFO] [stdout] 3483 | impl<'a> EnderecoEntregaRepository { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 3489 | pub async fn buscar_por_pedido(&self, pedido_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3514 | 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 18s [INFO] running `Command { std: "docker" "inspect" "02dde8d38216dfc15fd8fd20caebd91ff6ef7fce5e309035dd67f579f784b205", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02dde8d38216dfc15fd8fd20caebd91ff6ef7fce5e309035dd67f579f784b205", kill_on_drop: false }` [INFO] [stdout] 02dde8d38216dfc15fd8fd20caebd91ff6ef7fce5e309035dd67f579f784b205 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 87cfe8ab0fbccf96c68f84b20e2db986c5664b33f25156adf84c6f7453aa792c [INFO] running `Command { std: "docker" "start" "-a" "87cfe8ab0fbccf96c68f84b20e2db986c5664b33f25156adf84c6f7453aa792c", kill_on_drop: false }` [INFO] [stderr] Compiling chickie v0.1.0 (/opt/rustwide/workdir) [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] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [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 variable: `latitude` [INFO] [stdout] --> src/services/endereco_usuario_service.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | latitude: Option, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_latitude` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `longitude` [INFO] [stdout] --> src/services/endereco_usuario_service.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | longitude: Option, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_longitude` [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] [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:220:12 [INFO] [stdout] | [INFO] [stdout] 167 | impl Pedido { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 220 | 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:125:12 [INFO] [stdout] | [INFO] [stdout] 86 | impl Cupom { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 125 | pub fn registrar_uso(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn ativar(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | 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:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub struct UsoCupom { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/models/promocoes.rs:166:12 [INFO] [stdout] | [INFO] [stdout] 165 | impl UsoCupom { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 166 | 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:202:12 [INFO] [stdout] | [INFO] [stdout] 201 | impl Promocao { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 202 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 265 | pub fn ativar(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | 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:136:12 [INFO] [stdout] | [INFO] [stdout] 118 | impl ParteDeItemPedido { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn set_item_uuid(&mut self, item_uuid: Uuid) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn adicionar_adicional( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `deletar` is never used [INFO] [stdout] --> src/repositories.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait Repository { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 13 | 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:34:18 [INFO] [stdout] | [INFO] [stdout] 21 | impl UsuarioRepository { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub async fn buscar_por_username(&self, username: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | 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:163:18 [INFO] [stdout] | [INFO] [stdout] 160 | impl LojaRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 163 | pub async fn buscar_por_email(&self, email: &str) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | 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:349:18 [INFO] [stdout] | [INFO] [stdout] 346 | impl<'a> ClienteRepository { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 349 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 359 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 369 | 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:479:18 [INFO] [stdout] | [INFO] [stdout] 476 | impl<'a> ProdutoRepository { [INFO] [stdout] | -------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 479 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 490 | pub async fn buscar_por_categoria(&self, categoria_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 501 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | 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:657:18 [INFO] [stdout] | [INFO] [stdout] 654 | impl<'a> CategoriaProdutosRepository { [INFO] [stdout] | ------------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 657 | pub async fn buscar_por_loja( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 671 | 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:789:18 [INFO] [stdout] | [INFO] [stdout] 786 | impl<'a> PedidoRepository { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 789 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 799 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 809 | pub async fn buscar_por_status(&self, status: EstadoDePedido) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 819 | pub async fn buscar_pendentes(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 906 | pub async fn buscar_completos_por_loja( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 923 | pub async fn buscar_completos_por_usuario( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 941 | 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:1261:18 [INFO] [stdout] | [INFO] [stdout] 1258 | impl<'a> AdicionalRepository { [INFO] [stdout] | ---------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1261 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1271 | 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:1387:12 [INFO] [stdout] | [INFO] [stdout] 1387 | 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:1389:12 [INFO] [stdout] | [INFO] [stdout] 1388 | impl<'a> IngredienteRepository { [INFO] [stdout] | ------------------------------ associated items in this implementation [INFO] [stdout] 1389 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 1390 | [INFO] [stdout] 1391 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1402 | 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:1533:12 [INFO] [stdout] | [INFO] [stdout] 1533 | 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:1535:12 [INFO] [stdout] | [INFO] [stdout] 1534 | impl<'a> EnderecoLojaRepository { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 1535 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 1536 | [INFO] [stdout] 1537 | 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:1688:18 [INFO] [stdout] | [INFO] [stdout] 1685 | impl<'a> EntregadorRepository { [INFO] [stdout] | ----------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1688 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1698 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1709 | 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:1835:18 [INFO] [stdout] | [INFO] [stdout] 1832 | impl<'a> FuncionarioRepository { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1835 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1845 | pub async fn buscar_por_cargo(&self, cargo: &str, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1857 | 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:1983:18 [INFO] [stdout] | [INFO] [stdout] 1980 | impl<'a> AvaliacaoDeLojaRepository { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1983 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1993 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2003 | 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:2124:18 [INFO] [stdout] | [INFO] [stdout] 2121 | impl<'a> AvaliacaoDeProdutoRepository { [INFO] [stdout] | ------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2124 | pub async fn buscar_por_produto(&self, produto_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2135 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2146 | pub async fn buscar_por_pedido(&self, pedido_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2157 | 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:2295:18 [INFO] [stdout] | [INFO] [stdout] 2281 | impl<'a> CupomRepository { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2295 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2305 | 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:2440:12 [INFO] [stdout] | [INFO] [stdout] 2440 | 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:2442:12 [INFO] [stdout] | [INFO] [stdout] 2441 | impl<'a> UsoCupomRepository { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 2442 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 2443 | [INFO] [stdout] 2444 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2455 | pub async fn buscar_por_cupom(&self, cupom_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2466 | 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:2586:18 [INFO] [stdout] | [INFO] [stdout] 2583 | impl<'a> PromocaoRepository { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2586 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2597 | pub async fn buscar_ativas(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2609 | 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:2752:18 [INFO] [stdout] | [INFO] [stdout] 2748 | impl<'a> HorarioFuncionamentoRepository { [INFO] [stdout] | --------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 2752 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2782 | pub async fn buscar_ativos(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2796 | pub async fn adicionar_ou_atualizar( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2875 | pub async fn definir_ativo( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 2900 | 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:3028:18 [INFO] [stdout] | [INFO] [stdout] 3008 | impl<'a> ConfiguracaoPedidosLojaRepository { [INFO] [stdout] | ------------------------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 3028 | pub async fn criar_configuracao( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3097 | pub async fn alterar_tipo_calculo( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3122 | 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:3260:12 [INFO] [stdout] | [INFO] [stdout] 3260 | 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:3262:12 [INFO] [stdout] | [INFO] [stdout] 3261 | impl<'a> ParteDeItemPedidoRepository { [INFO] [stdout] | ------------------------------------ associated items in this implementation [INFO] [stdout] 3262 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stdout] | ^^^ [INFO] [stdout] 3263 | [INFO] [stdout] 3264 | pub async fn buscar_por_item( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3281 | pub async fn salvar_partes_do_item( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3332 | 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:3345:12 [INFO] [stdout] | [INFO] [stdout] 3345 | 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:3348:12 [INFO] [stdout] | [INFO] [stdout] 3347 | impl<'a> EnderecoUsuarioRepository { [INFO] [stdout] | ---------------------------------- associated items in this implementation [INFO] [stdout] 3348 | pub fn new(pool: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 3353 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3365 | 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:3489:18 [INFO] [stdout] | [INFO] [stdout] 3483 | impl<'a> EnderecoEntregaRepository { [INFO] [stdout] | ---------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 3489 | pub async fn buscar_por_pedido(&self, pedido_uuid: Uuid) -> Result, String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 3514 | 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 `test` profile [unoptimized + debuginfo] target(s) in 11.09s [INFO] running `Command { std: "docker" "inspect" "87cfe8ab0fbccf96c68f84b20e2db986c5664b33f25156adf84c6f7453aa792c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87cfe8ab0fbccf96c68f84b20e2db986c5664b33f25156adf84c6f7453aa792c", kill_on_drop: false }` [INFO] [stdout] 87cfe8ab0fbccf96c68f84b20e2db986c5664b33f25156adf84c6f7453aa792c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cfa559dde23f44738f9990739aaa3487d8df3af37eb5df0572f7cf76004a604a" "/opt/rustwide/cargo-home/bin/cargo" "+8da20828b6ea601dfd8e2448cb50ace88876bd78" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 21c66922feb748e618b8bb5039cc39c77495f5fb4fd3cf7725fe15514f9c3e92 [INFO] running `Command { std: "docker" "start" "-a" "21c66922feb748e618b8bb5039cc39c77495f5fb4fd3cf7725fe15514f9c3e92", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `jsonwebtoken::crypto::CryptoProvider` [INFO] [stderr] --> src/services/usuario_service.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use jsonwebtoken::crypto::CryptoProvider; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `chrono::NaiveDate` [INFO] [stderr] --> src/services/loja_service.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use chrono::NaiveDate; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Model` [INFO] [stderr] --> src/services/catalogo_service.rs:6:35 [INFO] [stderr] | [INFO] [stderr] 6 | Adicional, CategoriaProdutos, Model, Produto [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Repository as _` [INFO] [stderr] --> src/services/endereco_entrega_service.rs:5:54 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::repositories::{EnderecoEntregaRepository, Repository as _}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `endereco_usuario_service::EnderecoUsuarioService` [INFO] [stderr] --> src/services/mod.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 14 | pub use endereco_usuario_service::EnderecoUsuarioService; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `endereco_entrega_service::EnderecoEntregaService` [INFO] [stderr] --> src/services/mod.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 15 | pub use endereco_entrega_service::EnderecoEntregaService; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `http::StatusCode` [INFO] [stderr] --> src/api/pedido/criar_pedido.rs:2:35 [INFO] [stderr] | [INFO] [stderr] 2 | Json, extract::{Path, State}, http::StatusCode, response::{IntoResponse, Response} [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> src/api/usecases/pedido.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CatalogoService` and `Produto` [INFO] [stderr] --> src/api/usecases/pedido.rs:8:22 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::{models::{Produto, Usuario}, services::{CatalogoService, PedidoService}}; [INFO] [stderr] | ^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stderr] --> src/api/usecases/marketing.rs:5:13 [INFO] [stderr] | [INFO] [stderr] 5 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CatalogoService`, `Cupom`, `Promocao`, and `UsoCupom` [INFO] [stderr] --> src/api/usecases/marketing.rs:8:22 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::{models::{Cupom, UsoCupom, Promocao, Usuario}, services::{CatalogoService, MarketingService}}; [INFO] [stderr] | ^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `latitude` [INFO] [stderr] --> src/services/endereco_usuario_service.rs:28:9 [INFO] [stderr] | [INFO] [stderr] 28 | latitude: Option, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_latitude` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `longitude` [INFO] [stderr] --> src/services/endereco_usuario_service.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 29 | longitude: Option, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_longitude` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `endereco_uuid` [INFO] [stderr] --> src/services/endereco_usuario_service.rs:115:9 [INFO] [stderr] | [INFO] [stderr] 115 | endereco_uuid: Uuid, [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_endereco_uuid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `usuario_uuid` [INFO] [stderr] --> src/services/endereco_usuario_service.rs:116:9 [INFO] [stderr] | [INFO] [stderr] 116 | usuario_uuid: Uuid, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_usuario_uuid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `loja_uuid` [INFO] [stderr] --> src/api/pedido/buscar_pedido.rs:14:10 [INFO] [stderr] | [INFO] [stderr] 14 | Path(loja_uuid): Path, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `loja_uuid` [INFO] [stderr] --> src/api/pedido/listar_pedidos.rs:15:10 [INFO] [stderr] | [INFO] [stderr] 15 | Path(loja_uuid): Path, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `loja_uuid` [INFO] [stderr] --> src/api/cupom/criar_cupom.rs:15:10 [INFO] [stderr] | [INFO] [stderr] 15 | Path(loja_uuid): Path, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `loja_uuid` [INFO] [stderr] --> src/api/cupom/validar_cupom.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | Path(loja_uuid): Path, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loja_uuid` [INFO] [stderr] [INFO] [stderr] warning: method `set_uuid` is never used [INFO] [stderr] --> src/models/model.rs:5:8 [INFO] [stderr] | [INFO] [stderr] 3 | pub trait Model { [INFO] [stderr] | ----- method in this trait [INFO] [stderr] 4 | fn get_uuid(&self) -> Uuid; [INFO] [stderr] 5 | fn set_uuid(&mut self, uuid: Uuid); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/adicional.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Adicional { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] 19 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/avaliacao.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl AvaliacaoDeLoja { [INFO] [stderr] | -------------------- associated function in this implementation [INFO] [stderr] 19 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/avaliacao.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 49 | impl AvaliacaoDeProduto { [INFO] [stderr] | ----------------------- associated function in this implementation [INFO] [stderr] 50 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/categoria.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl CategoriaProdutos { [INFO] [stderr] | ---------------------- associated function in this implementation [INFO] [stderr] 17 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/cliente.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl Cliente { [INFO] [stderr] | ------------ associated function in this implementation [INFO] [stderr] 17 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/pedido.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl AdicionalDeItemDePedido { [INFO] [stderr] | ---------------------------- associated function in this implementation [INFO] [stderr] 19 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `localizar_item` is never used [INFO] [stderr] --> src/models/pedido.rs:220:12 [INFO] [stderr] | [INFO] [stderr] 167 | impl Pedido { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 220 | pub fn localizar_item( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Ingrediente` is never constructed [INFO] [stderr] --> src/models/ingrediente.rs:7:12 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct Ingrediente { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/ingrediente.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Ingrediente { [INFO] [stderr] | ---------------- associated function in this implementation [INFO] [stderr] 19 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EnderecoLoja` is never constructed [INFO] [stderr] --> src/models/endereco.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct EnderecoLoja { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/endereco.rs:28:12 [INFO] [stderr] | [INFO] [stderr] 26 | impl EnderecoLoja { [INFO] [stderr] | ----------------- associated function in this implementation [INFO] [stderr] 27 | [INFO] [stderr] 28 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EnderecoUsuario` is never constructed [INFO] [stderr] --> src/models/endereco.rs:59:12 [INFO] [stderr] | [INFO] [stderr] 59 | pub struct EnderecoUsuario { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/endereco.rs:74:12 [INFO] [stderr] | [INFO] [stderr] 73 | impl EnderecoUsuario { [INFO] [stderr] | -------------------- associated function in this implementation [INFO] [stderr] 74 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/entregador.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Entregador { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 19 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/funcionario.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 19 | impl Funcionario { [INFO] [stderr] | ---------------- associated function in this implementation [INFO] [stderr] 20 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `registrar_uso`, `ativar`, and `desativar` are never used [INFO] [stderr] --> src/models/promocoes.rs:125:12 [INFO] [stderr] | [INFO] [stderr] 86 | impl Cupom { [INFO] [stderr] | ---------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 125 | pub fn registrar_uso(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 134 | pub fn ativar(&mut self) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 140 | pub fn desativar(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `UsoCupom` is never constructed [INFO] [stderr] --> src/models/promocoes.rs:156:12 [INFO] [stderr] | [INFO] [stderr] 156 | pub struct UsoCupom { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/models/promocoes.rs:166:12 [INFO] [stderr] | [INFO] [stderr] 165 | impl UsoCupom { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 166 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `ativar`, and `desativar` are never used [INFO] [stderr] --> src/models/promocoes.rs:202:12 [INFO] [stderr] | [INFO] [stderr] 201 | impl Promocao { [INFO] [stderr] | ------------- associated items in this implementation [INFO] [stderr] 202 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 265 | pub fn ativar(&mut self) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 271 | pub fn desativar(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `set_item_uuid` and `adicionar_adicional` are never used [INFO] [stderr] --> src/models/parte_de_pedido.rs:136:12 [INFO] [stderr] | [INFO] [stderr] 118 | impl ParteDeItemPedido { [INFO] [stderr] | ---------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 136 | pub fn set_item_uuid(&mut self, item_uuid: Uuid) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 140 | pub fn adicionar_adicional( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `deletar` is never used [INFO] [stderr] --> src/repositories.rs:13:14 [INFO] [stderr] | [INFO] [stderr] 9 | pub trait Repository { [INFO] [stderr] | ---------- method in this trait [INFO] [stderr] ... [INFO] [stderr] 13 | async fn deletar(&self, uuid: Uuid) -> Result<(), String>; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_username` and `buscar_por_telefone` are never used [INFO] [stderr] --> src/repositories.rs:34:18 [INFO] [stderr] | [INFO] [stderr] 21 | impl UsuarioRepository { [INFO] [stderr] | ---------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 34 | pub async fn buscar_por_username(&self, username: &str) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | pub async fn buscar_por_telefone(&self, telefone: &str) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_email` and `listar_ativas` are never used [INFO] [stderr] --> src/repositories.rs:163:18 [INFO] [stderr] | [INFO] [stderr] 160 | impl LojaRepository { [INFO] [stderr] | ------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 163 | pub async fn buscar_por_email(&self, email: &str) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 173 | pub async fn listar_ativas(&self) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_usuario`, `buscar_por_loja`, and `listar_todos_por_loja` are never used [INFO] [stderr] --> src/repositories.rs:349:18 [INFO] [stderr] | [INFO] [stderr] 346 | impl<'a> ClienteRepository { [INFO] [stderr] | -------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 349 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 359 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 369 | async fn listar_todos_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_loja`, `buscar_por_categoria`, `buscar_disponiveis`, and `buscar_por_nome` are never used [INFO] [stderr] --> src/repositories.rs:479:18 [INFO] [stderr] | [INFO] [stderr] 476 | impl<'a> ProdutoRepository { [INFO] [stderr] | -------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 479 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 490 | pub async fn buscar_por_categoria(&self, categoria_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 501 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 512 | pub async fn buscar_por_nome(&self, nome: &str, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_loja` and `buscar_por_nome` are never used [INFO] [stderr] --> src/repositories.rs:657:18 [INFO] [stderr] | [INFO] [stderr] 654 | impl<'a> CategoriaProdutosRepository { [INFO] [stderr] | ------------------------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 657 | pub async fn buscar_por_loja( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 671 | pub async fn buscar_por_nome(&self, nome: &str, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/repositories.rs:789:18 [INFO] [stderr] | [INFO] [stderr] 786 | impl<'a> PedidoRepository { [INFO] [stderr] | ------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 789 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 799 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 809 | pub async fn buscar_por_status(&self, status: EstadoDePedido) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 819 | pub async fn buscar_pendentes(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 906 | pub async fn buscar_completos_por_loja( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 923 | pub async fn buscar_completos_por_usuario( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 941 | async fn hidratar_pedidos( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_loja` and `buscar_disponiveis` are never used [INFO] [stderr] --> src/repositories.rs:1261:18 [INFO] [stderr] | [INFO] [stderr] 1258 | impl<'a> AdicionalRepository { [INFO] [stderr] | ---------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 1261 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 1271 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `IngredienteRepository` is never constructed [INFO] [stderr] --> src/repositories.rs:1387:12 [INFO] [stderr] | [INFO] [stderr] 1387 | pub struct IngredienteRepository { pool: Arc } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `buscar_por_loja`, and `buscar_disponiveis` are never used [INFO] [stderr] --> src/repositories.rs:1389:12 [INFO] [stderr] | [INFO] [stderr] 1388 | impl<'a> IngredienteRepository { [INFO] [stderr] | ------------------------------ associated items in this implementation [INFO] [stderr] 1389 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stderr] | ^^^ [INFO] [stderr] 1390 | [INFO] [stderr] 1391 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 1402 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EnderecoLojaRepository` is never constructed [INFO] [stderr] --> src/repositories.rs:1533:12 [INFO] [stderr] | [INFO] [stderr] 1533 | pub struct EnderecoLojaRepository { pool: Arc } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `buscar_por_loja` are never used [INFO] [stderr] --> src/repositories.rs:1535:12 [INFO] [stderr] | [INFO] [stderr] 1534 | impl<'a> EnderecoLojaRepository { [INFO] [stderr] | ------------------------------- associated items in this implementation [INFO] [stderr] 1535 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stderr] | ^^^ [INFO] [stderr] 1536 | [INFO] [stderr] 1537 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_loja`, `buscar_disponiveis`, and `buscar_por_telefone` are never used [INFO] [stderr] --> src/repositories.rs:1688:18 [INFO] [stderr] | [INFO] [stderr] 1685 | impl<'a> EntregadorRepository { [INFO] [stderr] | ----------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 1688 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 1698 | pub async fn buscar_disponiveis(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 1709 | pub async fn buscar_por_telefone(&self, telefone: &str) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_loja`, `buscar_por_cargo`, and `buscar_por_email` are never used [INFO] [stderr] --> src/repositories.rs:1835:18 [INFO] [stderr] | [INFO] [stderr] 1832 | impl<'a> FuncionarioRepository { [INFO] [stderr] | ------------------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 1835 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 1845 | pub async fn buscar_por_cargo(&self, cargo: &str, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 1857 | pub async fn buscar_por_email(&self, email: &str) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_loja`, `buscar_por_usuario`, and `calcular_media` are never used [INFO] [stderr] --> src/repositories.rs:1983:18 [INFO] [stderr] | [INFO] [stderr] 1980 | impl<'a> AvaliacaoDeLojaRepository { [INFO] [stderr] | ---------------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 1983 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 1993 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2003 | pub async fn calcular_media(&self, loja_uuid: Uuid) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_produto`, `buscar_por_usuario`, `buscar_por_pedido`, and `calcular_media` are never used [INFO] [stderr] --> src/repositories.rs:2124:18 [INFO] [stderr] | [INFO] [stderr] 2121 | impl<'a> AvaliacaoDeProdutoRepository { [INFO] [stderr] | ------------------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 2124 | pub async fn buscar_por_produto(&self, produto_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2135 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2146 | pub async fn buscar_por_pedido(&self, pedido_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2157 | pub async fn calcular_media(&self, produto_uuid: Uuid) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_loja` and `buscar_ativos` are never used [INFO] [stderr] --> src/repositories.rs:2295:18 [INFO] [stderr] | [INFO] [stderr] 2281 | impl<'a> CupomRepository { [INFO] [stderr] | ------------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 2295 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2305 | pub async fn buscar_ativos(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `UsoCupomRepository` is never constructed [INFO] [stderr] --> src/repositories.rs:2440:12 [INFO] [stderr] | [INFO] [stderr] 2440 | pub struct UsoCupomRepository { pool: Arc } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `buscar_por_usuario`, `buscar_por_cupom`, and `contar_usos_usuario` are never used [INFO] [stderr] --> src/repositories.rs:2442:12 [INFO] [stderr] | [INFO] [stderr] 2441 | impl<'a> UsoCupomRepository { [INFO] [stderr] | --------------------------- associated items in this implementation [INFO] [stderr] 2442 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stderr] | ^^^ [INFO] [stderr] 2443 | [INFO] [stderr] 2444 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2455 | pub async fn buscar_por_cupom(&self, cupom_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2466 | pub async fn contar_usos_usuario(&self, usuario_uuid: Uuid, cupom_uuid: Uuid) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_loja`, `buscar_ativas`, and `buscar_por_prioridade` are never used [INFO] [stderr] --> src/repositories.rs:2586:18 [INFO] [stderr] | [INFO] [stderr] 2583 | impl<'a> PromocaoRepository { [INFO] [stderr] | --------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 2586 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2597 | pub async fn buscar_ativas(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2609 | pub async fn buscar_por_prioridade(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_loja`, `buscar_ativos`, `adicionar_ou_atualizar`, `definir_ativo`, and `deletar_por_dia` are never used [INFO] [stderr] --> src/repositories.rs:2752:18 [INFO] [stderr] | [INFO] [stderr] 2748 | impl<'a> HorarioFuncionamentoRepository { [INFO] [stderr] | --------------------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 2752 | pub async fn buscar_por_loja(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2782 | pub async fn buscar_ativos(&self, loja_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2796 | pub async fn adicionar_ou_atualizar( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2875 | pub async fn definir_ativo( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 2900 | pub async fn deletar_por_dia( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `criar_configuracao`, `alterar_tipo_calculo`, and `alterar_max_partes` are never used [INFO] [stderr] --> src/repositories.rs:3028:18 [INFO] [stderr] | [INFO] [stderr] 3008 | impl<'a> ConfiguracaoPedidosLojaRepository { [INFO] [stderr] | ------------------------------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 3028 | pub async fn criar_configuracao( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 3097 | pub async fn alterar_tipo_calculo( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 3122 | pub async fn alterar_max_partes( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ParteDeItemPedidoRepository` is never constructed [INFO] [stderr] --> src/repositories.rs:3260:12 [INFO] [stderr] | [INFO] [stderr] 3260 | pub struct ParteDeItemPedidoRepository { pool: Arc } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `buscar_por_item`, `salvar_partes_do_item`, and `deletar_por_item` are never used [INFO] [stderr] --> src/repositories.rs:3262:12 [INFO] [stderr] | [INFO] [stderr] 3261 | impl<'a> ParteDeItemPedidoRepository { [INFO] [stderr] | ------------------------------------ associated items in this implementation [INFO] [stderr] 3262 | pub fn new(pool: Arc) -> Self { Self { pool } } [INFO] [stderr] | ^^^ [INFO] [stderr] 3263 | [INFO] [stderr] 3264 | pub async fn buscar_por_item( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 3281 | pub async fn salvar_partes_do_item( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 3332 | pub async fn deletar_por_item(&self, item_uuid: Uuid) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EnderecoUsuarioRepository` is never constructed [INFO] [stderr] --> src/repositories.rs:3345:12 [INFO] [stderr] | [INFO] [stderr] 3345 | pub struct EnderecoUsuarioRepository { pool: Arc } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `buscar_por_usuario`, and `buscar_por_uuid_e_usuario` are never used [INFO] [stderr] --> src/repositories.rs:3348:12 [INFO] [stderr] | [INFO] [stderr] 3347 | impl<'a> EnderecoUsuarioRepository { [INFO] [stderr] | ---------------------------------- associated items in this implementation [INFO] [stderr] 3348 | pub fn new(pool: Arc) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 3353 | pub async fn buscar_por_usuario(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 3365 | pub async fn buscar_por_uuid_e_usuario( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `buscar_por_pedido` and `criar_para_pedido` are never used [INFO] [stderr] --> src/repositories.rs:3489:18 [INFO] [stderr] | [INFO] [stderr] 3483 | impl<'a> EnderecoEntregaRepository { [INFO] [stderr] | ---------------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 3489 | pub async fn buscar_por_pedido(&self, pedido_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 3514 | pub async fn criar_para_pedido( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `listar` is never used [INFO] [stderr] --> src/services/usuario_service.rs:74:18 [INFO] [stderr] | [INFO] [stderr] 11 | impl UsuarioService { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 74 | pub async fn listar(&self) -> Result, String> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `funcionario_repo`, `entregador_repo`, and `cliente_repo` are never read [INFO] [stderr] --> src/services/loja_service.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 27 | pub struct LojaService { [INFO] [stderr] | ----------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 31 | funcionario_repo: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] 32 | entregador_repo: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] 33 | cliente_repo: Arc [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `adicionar_funcionario`, `adicionar_cliente`, `adicionar_entregador`, and `listar` are never used [INFO] [stderr] --> src/services/loja_service.rs:127:18 [INFO] [stderr] | [INFO] [stderr] 36 | impl LojaService { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 127 | pub async fn adicionar_funcionario( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 151 | pub async fn adicionar_cliente( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 166 | pub async fn adicionar_entregador( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 188 | pub async fn listar(&self) -> Result, String> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `categoria_repo` and `adicional_repo` are never read [INFO] [stderr] --> src/services/catalogo_service.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 17 | pub struct CatalogoService { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 18 | produto_repo: Arc, [INFO] [stderr] 19 | categoria_repo: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] 20 | adicional_repo: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CatalogoService` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `criar_adicional` and `criar_categoria` are never used [INFO] [stderr] --> src/services/catalogo_service.rs:32:18 [INFO] [stderr] | [INFO] [stderr] 23 | impl CatalogoService { [INFO] [stderr] | -------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub async fn criar_adicional( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 52 | pub async fn criar_categoria( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PedidoComEntrega` is never constructed [INFO] [stderr] --> src/services/pedido_service.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct PedidoComEntrega { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `DadosEnderecoEntrega` is never constructed [INFO] [stderr] --> src/services/pedido_service.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub struct DadosEnderecoEntrega { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `to_endereco_entrega` is never used [INFO] [stderr] --> src/services/pedido_service.rs:33:12 [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 32 | impl DadosEnderecoEntrega { [INFO] [stdout] running 0 tests [INFO] [stderr] | ------------------------- method in this implementation [INFO] [stdout] [INFO] [stderr] 33 | pub fn to_endereco_entrega( [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] warning: methods `processar_e_exibir_precos`, `buscar_completo`, `listar`, and `buscar_pedido_com_entrega` are never used [INFO] [stderr] --> src/services/pedido_service.rs:86:18 [INFO] [stderr] | [INFO] [stderr] 70 | impl PedidoService { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 86 | pub async fn processar_e_exibir_precos( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 119 | pub async fn buscar_completo( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 126 | pub async fn listar(&self) -> Result, String> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 336 | pub async fn buscar_pedido_com_entrega( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `promocao_repo`, `avaliacao_loja_repo`, and `avaliacao_prod_repo` are never read [INFO] [stderr] --> src/services/marketing_service.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct MarketingService { [INFO] [stderr] | ---------------- fields in this struct [INFO] [stderr] 15 | cupom_repo: Arc, [INFO] [stderr] 16 | promocao_repo: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 17 | avaliacao_loja_repo: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 18 | avaliacao_prod_repo: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `criar_promocao`, `avaliar_loja`, `avaliar_produto`, and `listar_cupons` are never used [INFO] [stderr] --> src/services/marketing_service.rs:59:18 [INFO] [stderr] | [INFO] [stderr] 21 | impl MarketingService { [INFO] [stderr] | --------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 59 | pub async fn criar_promocao( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 91 | pub async fn avaliar_loja( [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 111 | pub async fn avaliar_produto( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 135 | pub async fn listar_cupons(&self) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EnderecoUsuarioService` is never constructed [INFO] [stderr] --> src/services/endereco_usuario_service.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct EnderecoUsuarioService { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/services/endereco_usuario_service.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 12 | impl EnderecoUsuarioService { [INFO] [stderr] | --------------------------- associated items in this implementation [INFO] [stderr] 13 | pub fn new(repo: Arc) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 18 | pub async fn criar_endereco( [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 50 | pub async fn listar_enderecos(&self, usuario_uuid: Uuid) -> Result, String> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 55 | pub async fn buscar_endereco( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 64 | pub async fn atualizar_endereco( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 99 | pub async fn deletar_endereco( [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 113 | pub async fn definir_como_padrao( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `EnderecoEntregaService` is never constructed [INFO] [stderr] --> src/services/endereco_entrega_service.rs:8:12 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct EnderecoEntregaService { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `criar_para_pedido`, `buscar_por_pedido`, and `listar_por_loja` are never used [INFO] [stderr] --> src/services/endereco_entrega_service.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 12 | impl EnderecoEntregaService { [INFO] [stderr] | --------------------------- associated items in this implementation [INFO] [stderr] 13 | pub fn new(repo: Arc) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 18 | pub async fn criar_para_pedido( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 52 | pub async fn buscar_por_pedido( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 60 | pub async fn listar_por_loja( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `usuario` is never read [INFO] [stderr] --> src/api/usecases/catalogo.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct CatalogoUsecase { [INFO] [stderr] | --------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 13 | pub usuario: Usuario, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PedidoUsecase` is never constructed [INFO] [stderr] --> src/api/usecases/pedido.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct PedidoUsecase { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/api/usecases/pedido.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl PedidoUsecase { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] 18 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MarketingUsecase` is never constructed [INFO] [stderr] --> src/api/usecases/marketing.rs:10:12 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct MarketingUsecase { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/api/usecases/marketing.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 17 | impl MarketingUsecase { [INFO] [stderr] | --------------------- associated function in this implementation [INFO] [stderr] 18 | pub fn new( [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/services/loja_service.rs:161:9 [INFO] [stderr] | [INFO] [stderr] 161 | self.cliente_repo.criar(&cliente).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 161 | let _ = self.cliente_repo.criar(&cliente).await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/services/marketing_service.rs:86:9 [INFO] [stderr] | [INFO] [stderr] 86 | self.promocao_repo.criar(&promocao).await; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 86 | let _ = self.promocao_repo.criar(&promocao).await; [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `chickie` (bin "chickie" test) generated 89 warnings (run `cargo fix --bin "chickie" -p chickie --tests` to apply 19 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chickie-d092528e86740163) [INFO] running `Command { std: "docker" "inspect" "21c66922feb748e618b8bb5039cc39c77495f5fb4fd3cf7725fe15514f9c3e92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21c66922feb748e618b8bb5039cc39c77495f5fb4fd3cf7725fe15514f9c3e92", kill_on_drop: false }` [INFO] [stdout] 21c66922feb748e618b8bb5039cc39c77495f5fb4fd3cf7725fe15514f9c3e92