[INFO] cloning repository https://github.com/AgustinLeguizamon/rust-modulo-manejo-de-stocks [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AgustinLeguizamon/rust-modulo-manejo-de-stocks" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAgustinLeguizamon%2Frust-modulo-manejo-de-stocks", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAgustinLeguizamon%2Frust-modulo-manejo-de-stocks'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d823c3e299817e7a15ea0e4d956bf2f3bfddfc94 [INFO] checking AgustinLeguizamon/rust-modulo-manejo-de-stocks/d823c3e299817e7a15ea0e4d956bf2f3bfddfc94 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAgustinLeguizamon%2Frust-modulo-manejo-de-stocks" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 98% (424/431) Updating files: 99% (427/431) Updating files: 100% (431/431) Updating files: 100% (431/431), done. [INFO] validating manifest of git repo https://github.com/AgustinLeguizamon/rust-modulo-manejo-de-stocks on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/AgustinLeguizamon/rust-modulo-manejo-de-stocks [INFO] finished tweaking git repo https://github.com/AgustinLeguizamon/rust-modulo-manejo-de-stocks [INFO] tweaked toml for git repo https://github.com/AgustinLeguizamon/rust-modulo-manejo-de-stocks written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/AgustinLeguizamon/rust-modulo-manejo-de-stocks 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded std-semaphore v0.1.0 [INFO] [stderr] Downloaded serde v1.0.192 [INFO] [stderr] Downloaded serde_derive v1.0.192 [INFO] [stderr] Downloaded actix v0.13.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8264add2543404b67017dac35323598d139841a0c212c6e51a48ef71f487b2cf [INFO] running `Command { std: "docker" "start" "-a" "8264add2543404b67017dac35323598d139841a0c212c6e51a48ef71f487b2cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8264add2543404b67017dac35323598d139841a0c212c6e51a48ef71f487b2cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8264add2543404b67017dac35323598d139841a0c212c6e51a48ef71f487b2cf", kill_on_drop: false }` [INFO] [stdout] 8264add2543404b67017dac35323598d139841a0c212c6e51a48ef71f487b2cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e7752b751da9fb583712e12b13c13cef6d032f281c7cbca374065728eea8474d [INFO] running `Command { std: "docker" "start" "-a" "e7752b751da9fb583712e12b13c13cef6d032f281c7cbca374065728eea8474d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking futures-sink v0.3.29 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking futures-io v0.3.29 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Checking std-semaphore v0.1.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.9 [INFO] [stderr] Checking socket2 v0.5.5 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.192 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling actix_derive v0.6.1 [INFO] [stderr] Checking tokio v1.33.0 [INFO] [stderr] Checking futures-executor v0.3.29 [INFO] [stderr] Checking futures v0.3.29 [INFO] [stderr] Checking actix-rt v2.9.0 [INFO] [stderr] Checking tokio-util v0.7.10 [INFO] [stderr] Checking actix v0.13.1 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking donotunwrap v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Direccion` [INFO] [stdout] --> src/common/mensaje_protocolo.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::common::orden::{Direccion, Orden}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Conexion` and `TipoDeMensaje` [INFO] [stdout] --> src/common/socket.rs:2:40 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::common::mensaje_protocolo::{Conexion, MandarOrdenes, MensajeProtocolo, TipoDeMensaje}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/common/socket.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Direccion` [INFO] [stdout] --> src/common/mensaje_protocolo.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::common::orden::{Direccion, Orden}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Conexion` and `TipoDeMensaje` [INFO] [stdout] --> src/common/socket.rs:2:40 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::common::mensaje_protocolo::{Conexion, MandarOrdenes, MensajeProtocolo, TipoDeMensaje}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/common/socket.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Direccion` [INFO] [stdout] --> src/common/mensaje_protocolo.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::common::orden::{Direccion, Orden}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Conexion` and `TipoDeMensaje` [INFO] [stdout] --> src/common/socket.rs:2:40 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::common::mensaje_protocolo::{Conexion, MandarOrdenes, MensajeProtocolo, TipoDeMensaje}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/common/socket.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Direccion` [INFO] [stdout] --> src/common/mensaje_protocolo.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::common::orden::{Direccion, Orden}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Conexion` and `TipoDeMensaje` [INFO] [stdout] --> src/common/socket.rs:2:40 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::common::mensaje_protocolo::{Conexion, MandarOrdenes, MensajeProtocolo, TipoDeMensaje}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/common/socket.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/common/cordinador.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(id: u32) -> Cordinador { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/common/cordinador.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(id: u32) -> Cordinador { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/common/cordinador.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(id: u32) -> Cordinador { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_error_local` is never used [INFO] [stdout] --> src/common/mensaje_protocolo.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl TipoDeMensaje { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn from_error_local(error_local: &ErrorLocal) -> TipoDeMensaje { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/common/cordinador.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(id: u32) -> Cordinador { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_orden`, `new_orden_aceptada`, and `new_stock_insuficiente` are never used [INFO] [stdout] --> src/common/mensaje_protocolo.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl MensajeProtocolo { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn new_orden(data: Orden) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn new_orden_aceptada() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn new_stock_insuficiente() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ECOMMERCE_PUERTO_BASE` is never used [INFO] [stdout] --> src/common/socket.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const ECOMMERCE_PUERTO_BASE: u32 = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `direccion`, `puerto`, and `id` are never read [INFO] [stdout] --> src/common/socket.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Socket { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 39 | direccion: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 40 | puerto: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | listener: Option, [INFO] [stdout] 42 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_cordinator_leader_value` is never used [INFO] [stdout] --> src/common/socket.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Socket { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn get_cordinator_leader_value(id: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `StockInsuficiente`, `NoExisteProductoEnLocal`, and `CantidadOrdenMayorQueBloqueados` are never constructed [INFO] [stdout] --> src/common/error_local.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum ErrorLocal { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 8 | StockInsuficiente, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | NoExisteProductoEnLocal, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 10 | CantidadOrdenMayorQueBloqueados, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorLocal` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `leer_linea_csv` is never used [INFO] [stdout] --> src/common/lector_csv.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn leer_linea_csv( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Productos` is never used [INFO] [stdout] --> src/common/local.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type Productos = HashMap; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Local` is never constructed [INFO] [stdout] --> src/common/local.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Local { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `agregar_orden`, `vender`, `new`, `entregar_orden`, and `cancelar_orden` are never used [INFO] [stdout] --> src/common/local.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Local { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 14 | /// Agrega la orden al local y bloquea la cantidad del producto especificado [INFO] [stdout] 15 | pub fn agregar_orden(&mut self, orden: Orden) -> Result<(), ErrorLocal> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn vender(&mut self, orden: Orden) -> Result<(), ErrorLocal> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn new(productos: Productos) -> Local { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn entregar_orden(&mut self, rng: impl Fn() -> usize) -> Result<(), ErrorLocal> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn cancelar_orden(&mut self, rng: impl Fn() -> usize) -> Result<(), ErrorLocal> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_error_local` is never used [INFO] [stdout] --> src/common/mensaje_protocolo.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl TipoDeMensaje { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn from_error_local(error_local: &ErrorLocal) -> TipoDeMensaje { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_orden`, `new_orden_aceptada`, and `new_stock_insuficiente` are never used [INFO] [stdout] --> src/common/mensaje_protocolo.rs:94:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl MensajeProtocolo { [INFO] [stdout] | --------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn new_orden(data: Orden) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn new_orden_aceptada() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn new_stock_insuficiente() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `deserializar` are never used [INFO] [stdout] --> src/common/orden.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Orden { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] 44 | /// Solo para testing [INFO] [stdout] 45 | pub fn new(id_producto: usize, cantidad: usize, latitud: i32, longitud: i32) -> Orden { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn deserializar(data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ECOMMERCE_PUERTO_BASE` is never used [INFO] [stdout] --> src/common/socket.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const ECOMMERCE_PUERTO_BASE: u32 = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `direccion`, `puerto`, and `id` are never read [INFO] [stdout] --> src/common/socket.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Socket { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 39 | direccion: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 40 | puerto: u32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | listener: Option, [INFO] [stdout] 42 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_cordinator_leader_value` is never used [INFO] [stdout] --> src/common/socket.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Socket { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn get_cordinator_leader_value(id: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StockProducto` is never constructed [INFO] [stdout] --> src/common/stock_producto.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct StockProducto { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StockProducto` 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/common/stock_producto.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl StockProducto { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 13 | pub fn new(id_producto: usize, stock: usize) -> StockProducto { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn new_con_bloqueados( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn from_record(record: StringRecord) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn bloquear(&mut self, cantidad_a_bloquear: usize) -> Result<(), ErrorLocal> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn vender(&mut self, cantidad: usize) -> Result<(), ErrorLocal> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn entregar(&mut self, cantidad: usize) -> Result<(), ErrorLocal> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn cancelar(&mut self, cantidad: usize) -> Result<(), ErrorLocal> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/local_main.rs:317:31 [INFO] [stdout] | [INFO] [stdout] 317 | struct ResultadoVenderEnLocal(Option); [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/local_main.rs:357:31 [INFO] [stdout] | [INFO] [stdout] 357 | struct ResultadoEntregarOrden(Option); [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConexionTcp` is never constructed [INFO] [stdout] --> src/common/conexion_tcp.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ConexionTcp { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_detalles_conexion`, `get_detalles_conexion`, `enviar_mensaje`, `read_all`, and `esperar_mensaje` are never used [INFO] [stdout] --> src/common/conexion_tcp.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ConexionTcp { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(stream: TcpStream, addr: SocketAddr) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn set_detalles_conexion(&mut self, conexion: Conexion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_detalles_conexion(&self) -> &Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn enviar_mensaje(&self, mensaje: &MensajeProtocolo) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn read_all(stream: &mut TcpStream) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn esperar_mensaje(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cordinador` is never constructed [INFO] [stdout] --> src/common/cordinador.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Cordinador { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_permso`, and `release_permiso` are never used [INFO] [stdout] --> src/common/cordinador.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Cordinador { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(id: u32) -> Cordinador { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_permso(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn release_permiso(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_conexion` is never used [INFO] [stdout] --> src/common/cordinador.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn setup_conexion(stream: TcpStream) -> ConexionTcp { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_to_leader` is never used [INFO] [stdout] --> src/common/cordinador.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn connect_to_leader(direccion: String, id: u32) -> ConexionTcp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `coordinar` is never used [INFO] [stdout] --> src/common/cordinador.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn coordinar(stream: TcpStream, cordinador: Arc>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `coordinar_conexion` is never used [INFO] [stdout] --> src/common/cordinador.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn coordinar_conexion(stream: TcpStream, cordinador: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `leer_linea_csv_desde` is never used [INFO] [stdout] --> src/common/lector_csv.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn leer_linea_csv_desde( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MensajeProtocolo` is never constructed [INFO] [stdout] --> src/common/mensaje_protocolo.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MensajeProtocolo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MensajeProtocolo` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Conexion`, `Orden`, `QuieroMandarOrdenes`, `PuedoMandarOrdenes`, `TermineDeMandarOrdenes`, and `Desconexion` are never constructed [INFO] [stdout] --> src/common/mensaje_protocolo.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum TipoDeMensaje { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 16 | Conexion, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | Orden, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | QuieroMandarOrdenes, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | PuedoMandarOrdenes, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | TermineDeMandarOrdenes, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | Desconexion, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TipoDeMensaje` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_tipo_de_mensaje` is never used [INFO] [stdout] --> src/common/mensaje_protocolo.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl TipoDeMensaje { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn new_tipo_de_mensaje(tipo_de_mensaje: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `deserializar` is never used [INFO] [stdout] --> src/common/mensaje_protocolo.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 68 | impl Conexion { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 69 | pub fn deserializar(data: &[u8]) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/common/mensaje_protocolo.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl MensajeProtocolo { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 81 | pub fn new(tipo_de_mensaje: TipoDeMensaje, contenido: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn new_conexion(data: Conexion) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn new_orden(data: Orden) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn new_desconexion() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn new_termino_de_mandar_ordenes() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn new_orden_aceptada() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn new_stock_insuficiente() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn new_quiero_mandar_ordenes() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn new_puedo_mandar_ordenes(cursor: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn get_tipo_de_mensaje(&self) -> TipoDeMensaje { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn get_tamanio(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn get_contenido(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `distancia` is never used [INFO] [stdout] --> src/common/orden.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Direccion { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn distancia(&self, other: &Direccion) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common/orden.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl Orden { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 44 | /// Solo para testing [INFO] [stdout] 45 | pub fn new(id_producto: usize, cantidad: usize, latitud: i32, longitud: i32) -> Orden { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ECOMMERCE_PUERTO_BASE` is never used [INFO] [stdout] --> src/common/socket.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const ECOMMERCE_PUERTO_BASE: u32 = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ECOMMERCE_ADDR_BASE` is never used [INFO] [stdout] --> src/common/socket.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const ECOMMERCE_ADDR_BASE: &str = "127.0.0.1"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ErrorLectura` and `ErrorTipoDeMensaje` are never constructed [INFO] [stdout] --> src/common/socket.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum TipodeError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 20 | ErrorLectura, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | ErrorTipoDeMensaje, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TipodeError` 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 `Socket` is never constructed [INFO] [stdout] --> src/common/socket.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Socket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/common/socket.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Socket { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 48 | pub fn new(direccion: String, puerto: u32, id: u32) -> Socket { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn get_permiso(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn release_permiso(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn get_cordinator_leader_value(id: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn esperar_conexiones(&mut self, id: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn quiero_enviar_ordenes(&mut self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn ordenes_enviadas(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn desconexion(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_con_bloqueados` are never used [INFO] [stdout] --> src/common/stock_producto.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl StockProducto { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 13 | pub fn new(id_producto: usize, stock: usize) -> StockProducto { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn new_con_bloqueados( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/local_main.rs:317:31 [INFO] [stdout] | [INFO] [stdout] 317 | struct ResultadoVenderEnLocal(Option); [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/local_main.rs:357:31 [INFO] [stdout] | [INFO] [stdout] 357 | struct ResultadoEntregarOrden(Option); [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConexionTcp` is never constructed [INFO] [stdout] --> src/common/conexion_tcp.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct ConexionTcp { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `set_detalles_conexion`, `get_detalles_conexion`, `enviar_mensaje`, `read_all`, and `esperar_mensaje` are never used [INFO] [stdout] --> src/common/conexion_tcp.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ConexionTcp { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 17 | pub fn new(stream: TcpStream, addr: SocketAddr) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn set_detalles_conexion(&mut self, conexion: Conexion) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn get_detalles_conexion(&self) -> &Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn enviar_mensaje(&self, mensaje: &MensajeProtocolo) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn read_all(stream: &mut TcpStream) -> Result> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn esperar_mensaje(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cordinador` is never constructed [INFO] [stdout] --> src/common/cordinador.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Cordinador { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_permso`, and `release_permiso` are never used [INFO] [stdout] --> src/common/cordinador.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Cordinador { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(id: u32) -> Cordinador { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_permso(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn release_permiso(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `setup_conexion` is never used [INFO] [stdout] --> src/common/cordinador.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn setup_conexion(stream: TcpStream) -> ConexionTcp { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `connect_to_leader` is never used [INFO] [stdout] --> src/common/cordinador.rs:54:15 [INFO] [stdout] | [INFO] [stdout] 54 | pub(crate) fn connect_to_leader(direccion: String, id: u32) -> ConexionTcp { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `coordinar` is never used [INFO] [stdout] --> src/common/cordinador.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn coordinar(stream: TcpStream, cordinador: Arc>) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `coordinar_conexion` is never used [INFO] [stdout] --> src/common/cordinador.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn coordinar_conexion(stream: TcpStream, cordinador: Arc>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MensajeProtocolo` is never constructed [INFO] [stdout] --> src/common/mensaje_protocolo.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct MensajeProtocolo { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MensajeProtocolo` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Conexion`, `Orden`, `QuieroMandarOrdenes`, `PuedoMandarOrdenes`, `TermineDeMandarOrdenes`, and `Desconexion` are never constructed [INFO] [stdout] --> src/common/mensaje_protocolo.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum TipoDeMensaje { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 16 | Conexion, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 17 | Orden, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | QuieroMandarOrdenes, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | PuedoMandarOrdenes, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | TermineDeMandarOrdenes, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | Desconexion, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TipoDeMensaje` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_tipo_de_mensaje` is never used [INFO] [stdout] --> src/common/mensaje_protocolo.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl TipoDeMensaje { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn new_tipo_de_mensaje(tipo_de_mensaje: u8) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/common/mensaje_protocolo.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl MensajeProtocolo { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 81 | pub fn new(tipo_de_mensaje: TipoDeMensaje, contenido: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn new_conexion(data: Conexion) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn new_orden(data: Orden) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn new_desconexion() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn new_termino_de_mandar_ordenes() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn new_orden_aceptada() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | pub fn new_stock_insuficiente() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | pub fn new_quiero_mandar_ordenes() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn new_puedo_mandar_ordenes(cursor: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn get_tipo_de_mensaje(&self) -> TipoDeMensaje { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn get_tamanio(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn get_contenido(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ECOMMERCE_PUERTO_BASE` is never used [INFO] [stdout] --> src/common/socket.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const ECOMMERCE_PUERTO_BASE: u32 = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ECOMMERCE_ADDR_BASE` is never used [INFO] [stdout] --> src/common/socket.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const ECOMMERCE_ADDR_BASE: &str = "127.0.0.1"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ErrorLectura` and `ErrorTipoDeMensaje` are never constructed [INFO] [stdout] --> src/common/socket.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum TipodeError { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 20 | ErrorLectura, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 21 | ErrorTipoDeMensaje, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TipodeError` 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 `Socket` is never constructed [INFO] [stdout] --> src/common/socket.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub struct Socket { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/common/socket.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 47 | impl Socket { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 48 | pub fn new(direccion: String, puerto: u32, id: u32) -> Socket { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn get_permiso(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn release_permiso(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn get_cordinator_leader_value(id: u32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn esperar_conexiones(&mut self, id: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn quiero_enviar_ordenes(&mut self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn ordenes_enviadas(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub fn desconexion(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.39s [INFO] running `Command { std: "docker" "inspect" "e7752b751da9fb583712e12b13c13cef6d032f281c7cbca374065728eea8474d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7752b751da9fb583712e12b13c13cef6d032f281c7cbca374065728eea8474d", kill_on_drop: false }` [INFO] [stdout] e7752b751da9fb583712e12b13c13cef6d032f281c7cbca374065728eea8474d