[INFO] cloning repository https://github.com/emizerov/lifetracker [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/emizerov/lifetracker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femizerov%2Flifetracker", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femizerov%2Flifetracker'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b64413b42539de2bafe7a836c5d7914667e0a8a3 [INFO] checking emizerov/lifetracker against 24e1a22664233bce1f9b5dc6eee7c1f74327e28c for pr-159343-retry [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femizerov%2Flifetracker" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/emizerov/lifetracker [INFO] finished tweaking git repo https://github.com/emizerov/lifetracker [INFO] tweaked toml for git repo https://github.com/emizerov/lifetracker written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/emizerov/lifetracker on toolchain 24e1a22664233bce1f9b5dc6eee7c1f74327e28c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/emizerov/lifetracker 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" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] ac4fc83b41f01aad5fc522b531c6246cad1c28420e70654967543d98aee1063d [INFO] running `Command { std: "docker" "start" "ac4fc83b41f01aad5fc522b531c6246cad1c28420e70654967543d98aee1063d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac4fc83b41f01aad5fc522b531c6246cad1c28420e70654967543d98aee1063d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ac4fc83b41f01aad5fc522b531c6246cad1c28420e70654967543d98aee1063d" "/opt/rustwide/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ac4fc83b41f01aad5fc522b531c6246cad1c28420e70654967543d98aee1063d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "ac4fc83b41f01aad5fc522b531c6246cad1c28420e70654967543d98aee1063d" "/opt/rustwide/cargo-home/bin/cargo" "+24e1a22664233bce1f9b5dc6eee7c1f74327e28c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling libc v0.2.179 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling find-msvc-tools v0.1.6 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Checking bytes v1.11.0 [INFO] [stderr] Checking lock_api v0.4.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking itoa v1.0.17 [INFO] [stderr] Compiling zmij v1.0.12 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Checking slab v0.4.11 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling aws-lc-rs v1.15.2 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Checking rustls-pki-types v1.13.2 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling rustls v0.23.36 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling cmake v0.1.57 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling aws-lc-sys v0.35.0 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking openssl-probe v0.2.0 [INFO] [stderr] Checking rustls-native-certs v0.8.3 [INFO] [stderr] Checking iri-string v0.7.10 [INFO] [stderr] Checking winnow v0.7.14 [INFO] [stderr] Checking toml_datetime v0.7.5+spec-1.1.0 [INFO] [stderr] Checking serde_spanned v1.0.4 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking toml_parser v1.0.6+spec-1.1.0 [INFO] [stderr] Checking toml v0.9.10+spec-1.1.0 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling serde_derive v1.0.228 [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 tracing-attributes v0.1.31 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking rustls-webpki v0.103.8 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tower-http v0.6.8 [INFO] [stderr] Checking tokio-rustls v0.26.4 [INFO] [stderr] Checking rustls-platform-verifier v0.6.2 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking hyper-rustls v0.27.7 [INFO] [stderr] Checking reqwest v0.13.1 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking lifetracker v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `price::Price` [INFO] [stdout] --> src/domain/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use price::Price; [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: `price::Price` [INFO] [stdout] --> src/domain/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use price::Price; [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 imports: `ReceiptItem` and `Receipt` [INFO] [stdout] --> src/domain/mod.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub use receipt::{Receipt, ReceiptItem}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ReceiptItem` and `Receipt` [INFO] [stdout] --> src/domain/mod.rs:9:19 [INFO] [stdout] | [INFO] [stdout] 9 | pub use receipt::{Receipt, ReceiptItem}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `repository::ReceiptRepository` [INFO] [stdout] --> src/domain/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use repository::ReceiptRepository; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `repository::ReceiptRepository` [INFO] [stdout] --> src/domain/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use repository::ReceiptRepository; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `JsonData` [INFO] [stdout] --> src/infrastructure/proverkacheka_api/client.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use super::models::{ApiResponse, JsonData}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `JsonData` [INFO] [stdout] --> src/infrastructure/proverkacheka_api/client.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use super::models::{ApiResponse, JsonData}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `as_rubles`, and `as_kopecks` are never used [INFO] [stdout] --> src/domain/price.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Price { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 7 | pub fn new(rubles: f64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn as_rubles(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn as_kopecks(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/domain/receipt.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Receipt { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 6 | id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | store_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | date_time: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | items: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | total_sum: Price, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | [INFO] [stdout] 12 | fiscal_document_number: String, // ФД - fiscal document [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | fiscal_drive_number: String, // ФН - fiscal drive [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | fiscal_sign: String, // ФП - fiscal sign [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Receipt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/domain/receipt.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Receipt { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn with_id( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn id(&self) -> Uuid { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn store_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn date_time(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn items(&self) -> &[ReceiptItem] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn total_sum(&self) -> &Price { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn items_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn fiscal_document_number(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn fiscal_drive_number(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn fiscal_sign(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `product_name`, `price`, and `quantity` are never read [INFO] [stdout] --> src/domain/receipt.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct ReceiptItem { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 112 | id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] 113 | receipt_id: Uuid, [INFO] [stdout] 114 | product_name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 115 | price: Price, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 116 | quantity: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReceiptItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_id`, `id`, `receipt_id`, `product_name`, `price`, and `quantity` are never used [INFO] [stdout] --> src/domain/receipt.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl ReceiptItem { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn with_id( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn id(&self) -> Uuid { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn receipt_id(&self) -> Uuid { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn product_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn price(&self) -> &Price { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn quantity(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ReceiptRepository` is never used [INFO] [stdout] --> src/domain/repository.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait ReceiptRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `total_sum` is never read [INFO] [stdout] --> src/infrastructure/proverkacheka_api/models.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct JsonData { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 17 | pub date_time: String, [INFO] [stdout] 18 | pub total_sum: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sum` is never read [INFO] [stdout] --> src/infrastructure/proverkacheka_api/models.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct ApiItem { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub sum: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgresReceiptRepository` is never constructed [INFO] [stdout] --> src/infrastructure/persistence/postgres/receipt_repository.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PostgresReceiptRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infrastructure/persistence/postgres/receipt_repository.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl PostgresReceiptRepository { [INFO] [stdout] | ------------------------------ associated function in this implementation [INFO] [stdout] 12 | pub fn new(pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `save_async`, `find_by_fiscal_data_async`, and `fetch_items_for_receipt` are never used [INFO] [stdout] --> src/infrastructure/persistence/postgres/receipt_repository.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 37 | impl PostgresReceiptRepository { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] 38 | async fn save_async(&self, receipt: Receipt) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | async fn find_by_fiscal_data_async( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | async fn fetch_items_for_receipt( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `as_rubles`, and `as_kopecks` are never used [INFO] [stdout] --> src/domain/price.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Price { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 7 | pub fn new(rubles: f64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn as_rubles(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn as_kopecks(&self) -> i64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/domain/receipt.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Receipt { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 6 | id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | store_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 8 | date_time: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 9 | items: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | total_sum: Price, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | [INFO] [stdout] 12 | fiscal_document_number: String, // ФД - fiscal document [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | fiscal_drive_number: String, // ФН - fiscal drive [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | fiscal_sign: String, // ФП - fiscal sign [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Receipt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/domain/receipt.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl Receipt { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn with_id( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn id(&self) -> Uuid { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn store_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn date_time(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn items(&self) -> &[ReceiptItem] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn total_sum(&self) -> &Price { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn items_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn fiscal_document_number(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn fiscal_drive_number(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn fiscal_sign(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `product_name`, `price`, and `quantity` are never read [INFO] [stdout] --> src/domain/receipt.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 111 | pub struct ReceiptItem { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 112 | id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] 113 | receipt_id: Uuid, [INFO] [stdout] 114 | product_name: String, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 115 | price: Price, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 116 | quantity: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReceiptItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `with_id`, `id`, `receipt_id`, `product_name`, `price`, and `quantity` are never used [INFO] [stdout] --> src/domain/receipt.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 120 | impl ReceiptItem { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 133 | pub fn with_id( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn id(&self) -> Uuid { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn receipt_id(&self) -> Uuid { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn product_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn price(&self) -> &Price { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn quantity(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ReceiptRepository` is never used [INFO] [stdout] --> src/domain/repository.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait ReceiptRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `total_sum` is never read [INFO] [stdout] --> src/infrastructure/proverkacheka_api/models.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct JsonData { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 17 | pub date_time: String, [INFO] [stdout] 18 | pub total_sum: i64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `JsonData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sum` is never read [INFO] [stdout] --> src/infrastructure/proverkacheka_api/models.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct ApiItem { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 32 | pub sum: i64, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ApiItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PostgresReceiptRepository` is never constructed [INFO] [stdout] --> src/infrastructure/persistence/postgres/receipt_repository.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct PostgresReceiptRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/infrastructure/persistence/postgres/receipt_repository.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl PostgresReceiptRepository { [INFO] [stdout] | ------------------------------ associated function in this implementation [INFO] [stdout] 12 | pub fn new(pool: PgPool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `save_async`, `find_by_fiscal_data_async`, and `fetch_items_for_receipt` are never used [INFO] [stdout] --> src/infrastructure/persistence/postgres/receipt_repository.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 37 | impl PostgresReceiptRepository { [INFO] [stdout] | ------------------------------ methods in this implementation [INFO] [stdout] 38 | async fn save_async(&self, receipt: Receipt) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | async fn find_by_fiscal_data_async( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 125 | async fn fetch_items_for_receipt( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 00s [INFO] running `Command { std: "docker" "inspect" "ac4fc83b41f01aad5fc522b531c6246cad1c28420e70654967543d98aee1063d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac4fc83b41f01aad5fc522b531c6246cad1c28420e70654967543d98aee1063d", kill_on_drop: false }` [INFO] [stdout] ac4fc83b41f01aad5fc522b531c6246cad1c28420e70654967543d98aee1063d