[INFO] cloning repository https://github.com/b1tcod3/bodex [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/b1tcod3/bodex" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fb1tcod3%2Fbodex", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fb1tcod3%2Fbodex'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0739265e3fe80a9da8b0f708ead6c8309461c313 [INFO] checking b1tcod3/bodex against try#5d96fa0e954d77528204a1ba3b8847ec083c779b for pr-153457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fb1tcod3%2Fbodex" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/b1tcod3/bodex [INFO] finished tweaking git repo https://github.com/b1tcod3/bodex [INFO] tweaked toml for git repo https://github.com/b1tcod3/bodex written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/b1tcod3/bodex on toolchain 5d96fa0e954d77528204a1ba3b8847ec083c779b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5d96fa0e954d77528204a1ba3b8847ec083c779b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/b1tcod3/bodex 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" "+5d96fa0e954d77528204a1ba3b8847ec083c779b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+5d96fa0e954d77528204a1ba3b8847ec083c779b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8c849eb904f6f090443d3cd33a337b937a29a16812d18f680246bf7f02197dc0 [INFO] running `Command { std: "docker" "start" "-a" "8c849eb904f6f090443d3cd33a337b937a29a16812d18f680246bf7f02197dc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c849eb904f6f090443d3cd33a337b937a29a16812d18f680246bf7f02197dc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c849eb904f6f090443d3cd33a337b937a29a16812d18f680246bf7f02197dc0", kill_on_drop: false }` [INFO] [stdout] 8c849eb904f6f090443d3cd33a337b937a29a16812d18f680246bf7f02197dc0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+5d96fa0e954d77528204a1ba3b8847ec083c779b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4744a646407f8118ce0e84d80376953e8ec41d2ab95370552ecf4e9b8d687e16 [INFO] running `Command { std: "docker" "start" "-a" "4744a646407f8118ce0e84d80376953e8ec41d2ab95370552ecf4e9b8d687e16", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.23 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Checking bitflags v2.11.0 [INFO] [stderr] Compiling portable-atomic v1.13.1 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling foldhash v0.2.0 [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling wayland-sys v0.31.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling quick-xml v0.38.4 [INFO] [stderr] Compiling syn v2.0.115 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling toml_parser v1.0.8+spec-1.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling slotmap v1.1.1 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling wayland-backend v0.3.12 [INFO] [stderr] Compiling wayland-scanner v0.31.8 [INFO] [stderr] Compiling toml_edit v0.23.10+spec-1.0.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Checking memmap2 v0.9.9 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling anyhow v1.0.101 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v6.0.0 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling av-scenechange v0.14.1 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling nom v8.0.0 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Compiling bitstream-io v4.9.0 [INFO] [stderr] Compiling rav1e v0.8.1 [INFO] [stderr] Checking euclid v0.22.13 [INFO] [stderr] Checking polling v3.11.0 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling kurbo v0.13.0 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Checking wayland-client v0.31.12 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Compiling siphasher v1.0.2 [INFO] [stderr] Checking rustix v0.38.44 [INFO] [stderr] Compiling zune-jpeg v0.5.12 [INFO] [stderr] Compiling lyon_geom v1.0.18 [INFO] [stderr] Compiling svgtypes v0.16.1 [INFO] [stderr] Compiling fontdb v0.23.0 [INFO] [stderr] Checking wayland-protocols v0.32.10 [INFO] [stderr] Checking wayland-cursor v0.31.12 [INFO] [stderr] Checking gethostname v1.1.0 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [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 serde_derive v1.0.228 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Checking bytemuck v1.25.0 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling equator v0.4.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling aligned-vec v0.6.4 [INFO] [stderr] Compiling font-types v0.10.1 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling derive_more-impl v2.1.1 [INFO] [stderr] Checking read-fonts v0.35.0 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling v_frame v0.3.9 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling enumflags2_derive v0.7.12 [INFO] [stderr] Compiling zerocopy-derive v0.8.39 [INFO] [stderr] Compiling zvariant_utils v3.3.0 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.10 [INFO] [stderr] Compiling zvariant_derive v5.9.2 [INFO] [stderr] Compiling profiling v1.0.17 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling av1-grain v0.2.5 [INFO] [stderr] Compiling rgb v0.8.52 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Compiling rustybuzz v0.20.1 [INFO] [stderr] Compiling fax v0.2.6 [INFO] [stderr] Compiling snafu-derive v0.8.9 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Compiling avif-serialize v0.8.8 [INFO] [stderr] Compiling pxfm v0.1.27 [INFO] [stderr] Compiling roxmltree v0.21.1 [INFO] [stderr] Checking x11rb-protocol v0.13.2 [INFO] [stderr] Compiling rspolib v0.1.2 [INFO] [stderr] Compiling imagesize v0.14.0 [INFO] [stderr] Compiling unicode-width v0.2.2 [INFO] [stderr] Compiling usvg v0.46.0 [INFO] [stderr] Compiling half v2.7.1 [INFO] [stderr] Compiling fontique v0.7.0 [INFO] [stderr] Compiling tiff v0.10.3 [INFO] [stderr] Compiling i-slint-common v1.15.1 [INFO] [stderr] Compiling moxcms v0.7.11 [INFO] [stderr] Compiling exr v1.74.0 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling ravif v0.12.0 [INFO] [stderr] Compiling snafu v0.8.9 [INFO] [stderr] Checking skrifa v0.37.0 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Compiling enumflags2 v0.7.12 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking calloop v0.14.3 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling num_enum_derive v0.7.5 [INFO] [stderr] Compiling const-field-offset-macro v0.1.5 [INFO] [stderr] Checking lyon_path v1.0.16 [INFO] [stderr] Compiling png v0.18.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling i-slint-compiler v1.15.1 [INFO] [stderr] Checking iana-time-zone v0.1.65 [INFO] [stderr] Compiling pulldown-cmark v0.13.0 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling natord v1.0.9 [INFO] [stderr] Compiling unicode-linebreak v0.1.5 [INFO] [stderr] Checking getopts v0.2.24 [INFO] [stderr] Compiling annotate-snippets v0.12.11 [INFO] [stderr] Compiling image v0.25.9 [INFO] [stderr] Compiling zvariant v5.9.2 [INFO] [stderr] Compiling fontdue v0.9.3 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling lyon_extra v1.0.3 [INFO] [stderr] Checking const-field-offset v0.1.5 [INFO] [stderr] Compiling num_enum v0.7.5 [INFO] [stderr] Checking swash v0.2.6 [INFO] [stderr] Compiling resvg v0.46.0 [INFO] [stderr] Checking calloop-wayland-source v0.4.1 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking x11rb v0.13.2 [INFO] [stderr] Checking async-io v2.6.0 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Checking harfrust v0.3.2 [INFO] [stderr] Compiling derive_more v2.1.1 [INFO] [stderr] Checking wayland-protocols-misc v0.3.10 [INFO] [stderr] Checking wayland-protocols-experimental v20250721.0.1 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling vtable-macro v0.3.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling derive_utils v0.15.0 [INFO] [stderr] Compiling tiny-xlib v0.2.4 [INFO] [stderr] Checking unicase v2.9.0 [INFO] [stderr] Checking pulldown-cmark-escape v0.11.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking vtable v0.3.0 [INFO] [stderr] Compiling auto_enums v0.8.7 [INFO] [stderr] Checking parley v0.7.0 [INFO] [stderr] Checking smithay-client-toolkit v0.20.0 [INFO] [stderr] Compiling zbus_names v4.3.1 [INFO] [stderr] Checking async-signal v0.2.13 [INFO] [stderr] Checking smithay-client-toolkit v0.19.2 [INFO] [stderr] Compiling i-slint-core-macros v1.15.1 [INFO] [stderr] Checking lyon_algorithms v1.0.16 [INFO] [stderr] Checking sys-locale v0.3.2 [INFO] [stderr] Checking ctor-lite v0.1.1 [INFO] [stderr] Checking htmlparser v0.2.1 [INFO] [stderr] Checking async-process v2.5.0 [INFO] [stderr] Checking smithay-clipboard v0.7.3 [INFO] [stderr] Compiling zbus_macros v5.13.2 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking i-slint-core v1.15.1 [INFO] [stderr] Checking x11-clipboard v0.9.3 [INFO] [stderr] Compiling i-slint-backend-winit v1.15.1 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Checking xkbcommon-dl v0.4.2 [INFO] [stderr] Checking integer-sqrt v0.1.5 [INFO] [stderr] Checking zeno v0.3.3 [INFO] [stderr] Compiling libsqlite3-sys v0.26.0 [INFO] [stderr] Compiling toml_edit v0.24.1+spec-1.1.0 [INFO] [stderr] Checking copypasta v0.10.2 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking softbuffer v0.4.8 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Compiling i-slint-backend-selector v1.15.1 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking regex-syntax v0.8.9 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking winit v0.30.12 [INFO] [stderr] Checking zbus v5.13.2 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Checking i-slint-renderer-software v1.15.1 [INFO] [stderr] Checking bytes v1.11.1 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking regex-automata v0.4.14 [INFO] [stderr] Checking bcrypt v0.15.1 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking regex v1.12.3 [INFO] [stderr] Compiling slint-build v1.15.1 [INFO] [stderr] Checking rusqlite v0.29.0 [INFO] [stderr] Compiling slint-macros v1.15.1 [INFO] [stderr] Compiling bodex v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking slint v1.15.1 [INFO] [stdout] warning: unused import: `chrono::NaiveDateTime` [INFO] [stdout] --> src/db/usuarios.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::NaiveDateTime; [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::NaiveDateTime` [INFO] [stdout] --> src/models/producto.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::NaiveDateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `medida::Medida` [INFO] [stdout] --> src/models/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use medida::Medida; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tipo_empaque::TipoEmpaque` [INFO] [stdout] --> src/models/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use tipo_empaque::TipoEmpaque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DetalleVentaConProducto` and `VentaConDetalles` [INFO] [stdout] --> src/models/mod.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | pub use venta::{DetalleVenta, DetalleVentaConProducto, Venta, VentaConDetalles}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::NaiveDateTime` [INFO] [stdout] --> src/db/usuarios.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::NaiveDateTime; [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::NaiveDateTime` [INFO] [stdout] --> src/models/producto.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::NaiveDateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `medida::Medida` [INFO] [stdout] --> src/models/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use medida::Medida; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tipo_empaque::TipoEmpaque` [INFO] [stdout] --> src/models/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use tipo_empaque::TipoEmpaque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DetalleVentaConProducto` and `VentaConDetalles` [INFO] [stdout] --> src/models/mod.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | pub use venta::{DetalleVenta, DetalleVentaConProducto, Venta, VentaConDetalles}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/inventory.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | let conn = db::open_connection()?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texto` [INFO] [stdout] --> src/ui_handlers.rs:111:15 [INFO] [stdout] | [INFO] [stdout] 111 | move |texto: SharedString| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_texto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/inventory.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | let conn = db::open_connection()?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texto` [INFO] [stdout] --> src/ui_handlers.rs:111:15 [INFO] [stdout] | [INFO] [stdout] 111 | move |texto: SharedString| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_texto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_marcas` is never used [INFO] [stdout] --> src/db/marcas.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn obtener_marcas(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `crear_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn crear_marca(conn: &Connection, m: &MarcaNueva) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_marca_por_id` is never used [INFO] [stdout] --> src/db/marcas.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn obtener_marca_por_id(conn: &Connection, id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `actualizar_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn actualizar_marca(conn: &Connection, m: &Marca) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eliminar_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn eliminar_marca(conn: &Connection, id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_productos` is never used [INFO] [stdout] --> src/db/productos.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn obtener_productos(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mapear_producto` is never used [INFO] [stdout] --> src/db/productos.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn mapear_producto(row: &Row) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `crear_usuario` is never used [INFO] [stdout] --> src/db/usuarios.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn crear_usuario( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eliminar_usuario` is never used [INFO] [stdout] --> src/db/usuarios.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn eliminar_usuario(conn: &Connection, id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `registrar_venta` is never used [INFO] [stdout] --> src/db/ventas.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn registrar_venta( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_historial` is never used [INFO] [stdout] --> src/db/ventas.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn obtener_historial(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_inventory_rows` is never used [INFO] [stdout] --> src/inventory.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn get_inventory_rows() -> Result>, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_product` is never used [INFO] [stdout] --> src/inventory.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn update_product( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Marca` is never constructed [INFO] [stdout] --> src/models/marca.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Marca { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarcaNueva` is never constructed [INFO] [stdout] --> src/models/marca.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MarcaNueva { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Medida` is never used [INFO] [stdout] --> src/models/medida.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Medida { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_i32`, `info`, and `todos_los_nombres` are never used [INFO] [stdout] --> src/models/medida.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Medida { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 12 | pub fn from_i32(id: i32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn info(&self) -> (&'static str, &'static str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn todos_los_nombres() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Producto` is never constructed [INFO] [stdout] --> src/models/producto.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Producto { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/models/producto.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct ProductoConMarca { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | pub precio_neto: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub descripcion: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub marca_id: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub medida_p_id: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 59 | pub cantidad_p: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 60 | pub empaque_id: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 61 | // Categoría y subcategoría [INFO] [stdout] 62 | pub categoria_id: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 63 | pub subcategoria_id: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProductoConMarca` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TipoEmpaque` is never used [INFO] [stdout] --> src/models/tipo_empaque.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum TipoEmpaque { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_i32`, `info`, and `todos_tipos` are never used [INFO] [stdout] --> src/models/tipo_empaque.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl TipoEmpaque { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 15 | pub fn from_i32(id: i32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn info(&self) -> (&'static str, &'static str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn todos_tipos() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `username`, `password_hash`, `rol`, `activo`, and `ultimo_login` are never read [INFO] [stdout] --> src/models/usuario.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Usuario { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 6 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | pub password_hash: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub rol: Rol, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | pub activo: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub ultimo_login: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Usuario` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Venta` is never constructed [INFO] [stdout] --> src/models/venta.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Venta { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DetalleVenta` is never constructed [INFO] [stdout] --> src/models/venta.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DetalleVenta { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DetalleVentaConProducto` is never constructed [INFO] [stdout] --> src/models/venta.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct DetalleVentaConProducto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VentaConDetalles` is never constructed [INFO] [stdout] --> src/models/venta.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct VentaConDetalles { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/lib.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `open_connection` is never used [INFO] [stdout] --> src/db/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn open_connection() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_db` is never used [INFO] [stdout] --> src/db/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn init_db(conn: &Connection) -> Result<()> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_table` is never used [INFO] [stdout] --> src/db/marcas.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn create_table(conn: &Connection) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_marcas` is never used [INFO] [stdout] --> src/db/marcas.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn obtener_marcas(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `crear_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn crear_marca(conn: &Connection, m: &MarcaNueva) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_marca_por_id` is never used [INFO] [stdout] --> src/db/marcas.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn obtener_marca_por_id(conn: &Connection, id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `actualizar_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn actualizar_marca(conn: &Connection, m: &Marca) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eliminar_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn eliminar_marca(conn: &Connection, id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seed_marcas` is never used [INFO] [stdout] --> src/db/marcas.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn seed_marcas(conn: &Connection) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_table` is never used [INFO] [stdout] --> src/db/productos.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn create_table(conn: &Connection) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_productos` is never used [INFO] [stdout] --> src/db/productos.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn obtener_productos(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_productos_con_marca` is never used [INFO] [stdout] --> src/db/productos.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn obtener_productos_con_marca(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `crear_producto` is never used [INFO] [stdout] --> src/db/productos.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn crear_producto(conn: &Connection, p: &ProductoNuevo) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eliminar_producto` is never used [INFO] [stdout] --> src/db/productos.rs:119:8 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn eliminar_producto(conn: &Connection, id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `existe_sku` is never used [INFO] [stdout] --> src/db/productos.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | pub fn existe_sku(conn: &Connection, codigo: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mapear_producto` is never used [INFO] [stdout] --> src/db/productos.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn mapear_producto(row: &Row) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_table` is never used [INFO] [stdout] --> src/db/usuarios.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn create_table(conn: &Connection) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seed_admin` is never used [INFO] [stdout] --> src/db/usuarios.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn seed_admin(conn: &Connection) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validar_usuario` is never used [INFO] [stdout] --> src/db/usuarios.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn validar_usuario(conn: &Connection, user: &str, pass: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `crear_usuario` is never used [INFO] [stdout] --> src/db/usuarios.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn crear_usuario( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eliminar_usuario` is never used [INFO] [stdout] --> src/db/usuarios.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn eliminar_usuario(conn: &Connection, id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_table` is never used [INFO] [stdout] --> src/db/ventas.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn create_table(conn: &Connection) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_detalle_table` is never used [INFO] [stdout] --> src/db/ventas.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn create_detalle_table(conn: &Connection) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `registrar_venta` is never used [INFO] [stdout] --> src/db/ventas.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn registrar_venta( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_historial` is never used [INFO] [stdout] --> src/db/ventas.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn obtener_historial(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductInfo` is never constructed [INFO] [stdout] --> src/inventory.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ProductInfo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LOADED_PRODUCTS` is never used [INFO] [stdout] --> src/inventory.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static LOADED_PRODUCTS: OnceLock>> = OnceLock::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_cache` is never used [INFO] [stdout] --> src/inventory.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn get_cache() -> &'static Mutex> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_num` is never used [INFO] [stdout] --> src/inventory.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn parse_num(val: &SharedString, default: T) -> T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductRowData` is never constructed [INFO] [stdout] --> src/inventory.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct ProductRowData { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_inventory_rows_raw` is never used [INFO] [stdout] --> src/inventory.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn get_inventory_rows_raw() -> Result, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `raw_to_model_rows` is never used [INFO] [stdout] --> src/inventory.rs:83:8 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn raw_to_model_rows(rows: Vec) -> ModelRc> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_inventory_rows` is never used [INFO] [stdout] --> src/inventory.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn get_inventory_rows() -> Result>, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_product_by_index` is never used [INFO] [stdout] --> src/inventory.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn get_product_by_index(index: i32) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `delete_product_by_index` is never used [INFO] [stdout] --> src/inventory.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn delete_product_by_index(index: i32) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_product` is never used [INFO] [stdout] --> src/inventory.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn add_product( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SkuValidationResult` is never constructed [INFO] [stdout] --> src/inventory.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 207 | pub struct SkuValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validar_formato_sku` is never used [INFO] [stdout] --> src/inventory.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 215 | pub fn validar_formato_sku(sku: &str) -> SkuValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sku_existe` is never used [INFO] [stdout] --> src/inventory.rs:267:8 [INFO] [stdout] | [INFO] [stdout] 267 | pub fn sku_existe(sku: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `validar_sku_completo` is never used [INFO] [stdout] --> src/inventory.rs:277:8 [INFO] [stdout] | [INFO] [stdout] 277 | pub fn validar_sku_completo(sku: &str) -> SkuValidationResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_product` is never used [INFO] [stdout] --> src/inventory.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn update_product( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Marca` is never constructed [INFO] [stdout] --> src/models/marca.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Marca { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarcaNueva` is never constructed [INFO] [stdout] --> src/models/marca.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MarcaNueva { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Medida` is never used [INFO] [stdout] --> src/models/medida.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Medida { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_i32`, `info`, and `todos_los_nombres` are never used [INFO] [stdout] --> src/models/medida.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Medida { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 12 | pub fn from_i32(id: i32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn info(&self) -> (&'static str, &'static str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn todos_los_nombres() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Producto` is never constructed [INFO] [stdout] --> src/models/producto.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Producto { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductoNuevo` is never constructed [INFO] [stdout] --> src/models/producto.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ProductoNuevo { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProductoConMarca` is never constructed [INFO] [stdout] --> src/models/producto.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct ProductoConMarca { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Rol` is never used [INFO] [stdout] --> src/models/rol.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Rol { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TipoEmpaque` is never used [INFO] [stdout] --> src/models/tipo_empaque.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum TipoEmpaque { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_i32`, `info`, and `todos_tipos` are never used [INFO] [stdout] --> src/models/tipo_empaque.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl TipoEmpaque { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 15 | pub fn from_i32(id: i32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn info(&self) -> (&'static str, &'static str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn todos_tipos() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Usuario` is never constructed [INFO] [stdout] --> src/models/usuario.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Usuario { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Venta` is never constructed [INFO] [stdout] --> src/models/venta.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Venta { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DetalleVenta` is never constructed [INFO] [stdout] --> src/models/venta.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DetalleVenta { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DetalleVentaConProducto` is never constructed [INFO] [stdout] --> src/models/venta.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct DetalleVentaConProducto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VentaConDetalles` is never constructed [INFO] [stdout] --> src/models/venta.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct VentaConDetalles { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `filter_numeric` is never used [INFO] [stdout] --> src/ui_handlers.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn filter_numeric(input: &str, allow_decimal: bool, allow_negative: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_callbacks` is never used [INFO] [stdout] --> src/ui_handlers.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn setup_callbacks(ui: &AppWindow) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refresh_ui` is never used [INFO] [stdout] --> src/ui_handlers.rs:398:4 [INFO] [stdout] | [INFO] [stdout] 398 | fn refresh_ui(ui_handle: Weak) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `refresh_ui_from_main` is never used [INFO] [stdout] --> src/ui_handlers.rs:421:4 [INFO] [stdout] | [INFO] [stdout] 421 | fn refresh_ui_from_main(ui: &AppWindow) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_initial_data` is never used [INFO] [stdout] --> src/ui_handlers.rs:440:8 [INFO] [stdout] | [INFO] [stdout] 440 | pub fn load_initial_data(ui: &AppWindow) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::NaiveDateTime` [INFO] [stdout] --> src/db/usuarios.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::NaiveDateTime; [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::NaiveDateTime` [INFO] [stdout] --> src/models/producto.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::NaiveDateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `medida::Medida` [INFO] [stdout] --> src/models/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use medida::Medida; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tipo_empaque::TipoEmpaque` [INFO] [stdout] --> src/models/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use tipo_empaque::TipoEmpaque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DetalleVentaConProducto` and `VentaConDetalles` [INFO] [stdout] --> src/models/mod.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | pub use venta::{DetalleVenta, DetalleVentaConProducto, Venta, VentaConDetalles}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::NaiveDateTime` [INFO] [stdout] --> src/db/usuarios.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use chrono::NaiveDateTime; [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::NaiveDateTime` [INFO] [stdout] --> src/models/producto.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::NaiveDateTime; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `medida::Medida` [INFO] [stdout] --> src/models/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use medida::Medida; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tipo_empaque::TipoEmpaque` [INFO] [stdout] --> src/models/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use tipo_empaque::TipoEmpaque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DetalleVentaConProducto` and `VentaConDetalles` [INFO] [stdout] --> src/models/mod.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | pub use venta::{DetalleVenta, DetalleVentaConProducto, Venta, VentaConDetalles}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/inventory.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | let conn = db::open_connection()?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texto` [INFO] [stdout] --> src/ui_handlers.rs:111:15 [INFO] [stdout] | [INFO] [stdout] 111 | move |texto: SharedString| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_texto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `conn` [INFO] [stdout] --> src/inventory.rs:331:9 [INFO] [stdout] | [INFO] [stdout] 331 | let conn = db::open_connection()?; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texto` [INFO] [stdout] --> src/ui_handlers.rs:111:15 [INFO] [stdout] | [INFO] [stdout] 111 | move |texto: SharedString| { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_texto` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui` [INFO] [stdout] --> src/main.rs:71:46 [INFO] [stdout] | [INFO] [stdout] 71 | ui_handle.upgrade_in_event_loop(|ui| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_marcas` is never used [INFO] [stdout] --> src/db/marcas.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn obtener_marcas(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `crear_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn crear_marca(conn: &Connection, m: &MarcaNueva) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_marca_por_id` is never used [INFO] [stdout] --> src/db/marcas.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn obtener_marca_por_id(conn: &Connection, id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `actualizar_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn actualizar_marca(conn: &Connection, m: &Marca) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eliminar_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn eliminar_marca(conn: &Connection, id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_productos` is never used [INFO] [stdout] --> src/db/productos.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn obtener_productos(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mapear_producto` is never used [INFO] [stdout] --> src/db/productos.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn mapear_producto(row: &Row) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `crear_usuario` is never used [INFO] [stdout] --> src/db/usuarios.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn crear_usuario( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eliminar_usuario` is never used [INFO] [stdout] --> src/db/usuarios.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn eliminar_usuario(conn: &Connection, id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `registrar_venta` is never used [INFO] [stdout] --> src/db/ventas.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn registrar_venta( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_historial` is never used [INFO] [stdout] --> src/db/ventas.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn obtener_historial(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_inventory_rows` is never used [INFO] [stdout] --> src/inventory.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn get_inventory_rows() -> Result>, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_product` is never used [INFO] [stdout] --> src/inventory.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn update_product( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Marca` is never constructed [INFO] [stdout] --> src/models/marca.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Marca { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarcaNueva` is never constructed [INFO] [stdout] --> src/models/marca.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MarcaNueva { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Medida` is never used [INFO] [stdout] --> src/models/medida.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Medida { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_i32`, `info`, and `todos_los_nombres` are never used [INFO] [stdout] --> src/models/medida.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Medida { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 12 | pub fn from_i32(id: i32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn info(&self) -> (&'static str, &'static str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn todos_los_nombres() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Producto` is never constructed [INFO] [stdout] --> src/models/producto.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Producto { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/models/producto.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct ProductoConMarca { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | pub precio_neto: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub descripcion: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub marca_id: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub medida_p_id: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 59 | pub cantidad_p: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 60 | pub empaque_id: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 61 | // Categoría y subcategoría [INFO] [stdout] 62 | pub categoria_id: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 63 | pub subcategoria_id: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProductoConMarca` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TipoEmpaque` is never used [INFO] [stdout] --> src/models/tipo_empaque.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum TipoEmpaque { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_i32`, `info`, and `todos_tipos` are never used [INFO] [stdout] --> src/models/tipo_empaque.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl TipoEmpaque { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 15 | pub fn from_i32(id: i32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn info(&self) -> (&'static str, &'static str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn todos_tipos() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `username`, `password_hash`, `rol`, `activo`, and `ultimo_login` are never read [INFO] [stdout] --> src/models/usuario.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Usuario { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 6 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | pub password_hash: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub rol: Rol, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | pub activo: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub ultimo_login: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Usuario` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Venta` is never constructed [INFO] [stdout] --> src/models/venta.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Venta { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DetalleVenta` is never constructed [INFO] [stdout] --> src/models/venta.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DetalleVenta { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DetalleVentaConProducto` is never constructed [INFO] [stdout] --> src/models/venta.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct DetalleVentaConProducto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VentaConDetalles` is never constructed [INFO] [stdout] --> src/models/venta.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct VentaConDetalles { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui` [INFO] [stdout] --> src/main.rs:71:46 [INFO] [stdout] | [INFO] [stdout] 71 | ui_handle.upgrade_in_event_loop(|ui| { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_marcas` is never used [INFO] [stdout] --> src/db/marcas.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn obtener_marcas(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `crear_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn crear_marca(conn: &Connection, m: &MarcaNueva) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_marca_por_id` is never used [INFO] [stdout] --> src/db/marcas.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn obtener_marca_por_id(conn: &Connection, id: i64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `actualizar_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn actualizar_marca(conn: &Connection, m: &Marca) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eliminar_marca` is never used [INFO] [stdout] --> src/db/marcas.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn eliminar_marca(conn: &Connection, id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_productos` is never used [INFO] [stdout] --> src/db/productos.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn obtener_productos(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mapear_producto` is never used [INFO] [stdout] --> src/db/productos.rs:141:4 [INFO] [stdout] | [INFO] [stdout] 141 | fn mapear_producto(row: &Row) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `crear_usuario` is never used [INFO] [stdout] --> src/db/usuarios.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn crear_usuario( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eliminar_usuario` is never used [INFO] [stdout] --> src/db/usuarios.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn eliminar_usuario(conn: &Connection, id: i64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `registrar_venta` is never used [INFO] [stdout] --> src/db/ventas.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn registrar_venta( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `obtener_historial` is never used [INFO] [stdout] --> src/db/ventas.rs:85:8 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn obtener_historial(conn: &Connection) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_inventory_rows` is never used [INFO] [stdout] --> src/inventory.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn get_inventory_rows() -> Result>, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `update_product` is never used [INFO] [stdout] --> src/inventory.rs:311:8 [INFO] [stdout] | [INFO] [stdout] 311 | pub fn update_product( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Marca` is never constructed [INFO] [stdout] --> src/models/marca.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Marca { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MarcaNueva` is never constructed [INFO] [stdout] --> src/models/marca.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct MarcaNueva { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Medida` is never used [INFO] [stdout] --> src/models/medida.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Medida { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_i32`, `info`, and `todos_los_nombres` are never used [INFO] [stdout] --> src/models/medida.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Medida { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 12 | pub fn from_i32(id: i32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn info(&self) -> (&'static str, &'static str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn todos_los_nombres() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Producto` is never constructed [INFO] [stdout] --> src/models/producto.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Producto { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/models/producto.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct ProductoConMarca { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 49 | pub precio_neto: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub descripcion: Option, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub marca_id: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub medida_p_id: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 59 | pub cantidad_p: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 60 | pub empaque_id: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 61 | // Categoría y subcategoría [INFO] [stdout] 62 | pub categoria_id: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 63 | pub subcategoria_id: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ProductoConMarca` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TipoEmpaque` is never used [INFO] [stdout] --> src/models/tipo_empaque.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum TipoEmpaque { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_i32`, `info`, and `todos_tipos` are never used [INFO] [stdout] --> src/models/tipo_empaque.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl TipoEmpaque { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 15 | pub fn from_i32(id: i32) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn info(&self) -> (&'static str, &'static str) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn todos_tipos() -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `username`, `password_hash`, `rol`, `activo`, and `ultimo_login` are never read [INFO] [stdout] --> src/models/usuario.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Usuario { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 6 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 7 | pub username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | pub password_hash: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 9 | pub rol: Rol, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | pub activo: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | pub ultimo_login: Option, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Usuario` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Venta` is never constructed [INFO] [stdout] --> src/models/venta.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Venta { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DetalleVenta` is never constructed [INFO] [stdout] --> src/models/venta.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct DetalleVenta { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DetalleVentaConProducto` is never constructed [INFO] [stdout] --> src/models/venta.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct DetalleVentaConProducto { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VentaConDetalles` is never constructed [INFO] [stdout] --> src/models/venta.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct VentaConDetalles { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6m 26s [INFO] running `Command { std: "docker" "inspect" "4744a646407f8118ce0e84d80376953e8ec41d2ab95370552ecf4e9b8d687e16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4744a646407f8118ce0e84d80376953e8ec41d2ab95370552ecf4e9b8d687e16", kill_on_drop: false }` [INFO] [stdout] 4744a646407f8118ce0e84d80376953e8ec41d2ab95370552ecf4e9b8d687e16