[INFO] cloning repository https://github.com/code-epic/sandra.sentinel [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/code-epic/sandra.sentinel" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcode-epic%2Fsandra.sentinel", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcode-epic%2Fsandra.sentinel'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 02777382194f215f772bf036a699c8207a56d8bf [INFO] linting code-epic/sandra.sentinel/02777382194f215f772bf036a699c8207a56d8bf against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcode-epic%2Fsandra.sentinel" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/code-epic/sandra.sentinel [INFO] finished tweaking git repo https://github.com/code-epic/sandra.sentinel [INFO] tweaked toml for git repo https://github.com/code-epic/sandra.sentinel written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/code-epic/sandra.sentinel on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/code-epic/sandra.sentinel 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" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded derive_arbitrary v1.4.2 [INFO] [stderr] Downloaded rhai v1.24.0 [INFO] [stderr] Downloaded rhai_codegen v3.1.0 [INFO] [stderr] Downloaded zip v2.4.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] adb032a0d0295718b8341bf33f56a8df2ae1a9faa4a1d538d4605aa4bfc025bc [INFO] running `Command { std: "docker" "start" "-a" "adb032a0d0295718b8341bf33f56a8df2ae1a9faa4a1d538d4605aa4bfc025bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "adb032a0d0295718b8341bf33f56a8df2ae1a9faa4a1d538d4605aa4bfc025bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adb032a0d0295718b8341bf33f56a8df2ae1a9faa4a1d538d4605aa4bfc025bc", kill_on_drop: false }` [INFO] [stdout] adb032a0d0295718b8341bf33f56a8df2ae1a9faa4a1d538d4605aa4bfc025bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f37fe60b047b1827b53884fc6d7f63e93445e7d296108826281c5fdee8568cb [INFO] running `Command { std: "docker" "start" "-a" "6f37fe60b047b1827b53884fc6d7f63e93445e7d296108826281c5fdee8568cb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.181 [INFO] [stderr] Compiling unicode-ident v1.0.23 [INFO] [stderr] Compiling portable-atomic v1.13.1 [INFO] [stderr] Compiling anyhow v1.0.101 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling getrandom v0.4.1 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling regex-syntax v0.8.9 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Checking slab v0.4.12 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling fixedbitset v0.5.7 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling petgraph v0.7.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling multimap v0.10.1 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Checking simd-adler32 v0.3.8 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling zmij v1.0.20 [INFO] [stderr] Compiling rust_decimal v1.40.0 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking deranged v0.5.6 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Checking bumpalo v3.19.1 [INFO] [stderr] Compiling cc v1.2.55 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking time-core v0.1.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling zip v2.4.2 [INFO] [stderr] Checking num-conv v0.2.0 [INFO] [stderr] Checking lzma-rs v0.3.0 [INFO] [stderr] Checking zopfli v0.8.3 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking time v0.3.47 [INFO] [stderr] Checking flate2 v1.1.9 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking csv-core v0.1.13 [INFO] [stderr] Checking deflate64 v0.1.10 [INFO] [stderr] Checking thin-vec v0.2.14 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking clap_builder v4.5.57 [INFO] [stderr] Checking serde_json v1.0.149 [INFO] [stderr] Checking csv v1.4.0 [INFO] [stderr] Compiling tempfile v3.25.0 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling lzma-sys v0.1.20 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Checking xz2 v0.1.7 [INFO] [stderr] Checking bzip2 v0.5.2 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling prost-derive v0.13.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling zeroize_derive v1.4.3 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling rhai_codegen v3.1.0 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Compiling prost v0.13.5 [INFO] [stderr] Checking prost-types v0.13.5 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking clap v4.5.57 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling prost-build v0.13.5 [INFO] [stderr] Checking chrono v0.4.43 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking rhai v1.24.0 [INFO] [stderr] Compiling tonic-build v0.12.3 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Checking h2 v0.4.13 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Compiling sandra_core v0.1.0 (/opt/rustwide/workdir/core) [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Checking hyper-timeout v0.5.2 [INFO] [stderr] Checking tonic v0.12.3 [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:436:17 [INFO] [stdout] | [INFO] [stdout] 436 | tamano: tamano, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `tamano` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:437:17 [INFO] [stdout] | [INFO] [stdout] 437 | hash: hash, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `hash` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:438:17 [INFO] [stdout] | [INFO] [stdout] 438 | hash_csv: hash_csv, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `hash_csv` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:436:17 [INFO] [stdout] | [INFO] [stdout] 436 | tamano: tamano, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: replace it with: `tamano` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] = note: `#[warn(clippy::redundant_field_names)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:437:17 [INFO] [stdout] | [INFO] [stdout] 437 | hash: hash, [INFO] [stdout] | ^^^^^^^^^^ help: replace it with: `hash` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant field names in struct initialization [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:438:17 [INFO] [stdout] | [INFO] [stdout] 438 | hash_csv: hash_csv, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace it with: `hash_csv` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> core/src/calc/calculos.rs:242:32 [INFO] [stdout] | [INFO] [stdout] 242 | generar_calculos(&mut [&mut base], &movimientos, 0.0); [INFO] [stdout] | ^^^^^^^^^ expected `Base`, found `&mut Base` [INFO] [stdout] | [INFO] [stdout] help: consider removing the borrow [INFO] [stdout] | [INFO] [stdout] 242 - generar_calculos(&mut [&mut base], &movimientos, 0.0); [INFO] [stdout] 242 + generar_calculos(&mut [base], &movimientos, 0.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> core/src/calc/motor.rs:109:29 [INFO] [stdout] | [INFO] [stdout] 102 | / ... let r = if let Ok(f) = val.as_float() { [INFO] [stdout] 103 | | ... f [INFO] [stdout] 104 | | ... } else if let Ok(i) = val.as_int() { [INFO] [stdout] 105 | | ... i as f64 [INFO] [stdout] 106 | | ... } else { [INFO] [stdout] 107 | | ... 0.0 [INFO] [stdout] 108 | | ... }; [INFO] [stdout] | |________________________- unnecessary `let` binding [INFO] [stdout] 109 | ... r [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stdout] = note: `#[warn(clippy::let_and_return)]` on by default [INFO] [stdout] help: return the expression directly [INFO] [stdout] | [INFO] [stdout] 102 ~ [INFO] [stdout] 103 ~ if let Ok(f) = val.as_float() { [INFO] [stdout] 104 + f [INFO] [stdout] 105 + } else if let Ok(i) = val.as_int() { [INFO] [stdout] 106 + i as f64 [INFO] [stdout] 107 + } else { [INFO] [stdout] 108 + 0.0 [INFO] [stdout] 109 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> core/src/calc/mod.rs:76:28 [INFO] [stdout] | [INFO] [stdout] 76 | let d_r_safe = d_r.max(1).min(30) as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace with clamp: `d_r.clamp(1, 30)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] = note: `#[warn(clippy::manual_clamp)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: clamp-like pattern without using clamp function [INFO] [stdout] --> core/src/calc/mod.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | let m_r_safe = m_r.max(1).min(12) as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: replace with clamp: `m_r.clamp(1, 12)` [INFO] [stdout] | [INFO] [stdout] = note: clamp will panic if max < min [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> core/src/calc/mod.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | directivas: &Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] = note: `#[warn(clippy::ptr_arg)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 93 - directivas: &Vec, [INFO] [stdout] 93 + directivas: &[Directiva], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> core/src/calc/mod.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | f_inicio.year() as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `f_inicio.year()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] = note: `#[warn(clippy::unnecessary_cast)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting to the same type is unnecessary (`i32` -> `i32`) [INFO] [stdout] --> core/src/calc/mod.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | f_fin.year() as i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: try: `f_fin.year()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sandra_core` (lib test) due to 1 previous error; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do [INFO] [stdout] --> core/src/kernel/logica/cargador.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 64 | movimientos: &Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 64 - movimientos: &Vec, [INFO] [stdout] 64 + movimientos: &[Movimiento], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: length comparison to zero [INFO] [stdout] --> core/src/kernel/logica/cargador.rs:109:28 [INFO] [stdout] | [INFO] [stdout] 109 | if results.len() == 0 && chunks <= 5 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `results.is_empty()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stdout] = note: `#[warn(clippy::len_zero)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:96:22 [INFO] [stdout] | [INFO] [stdout] 96 | wtr.write_record(&[ [INFO] [stdout] | ______________________^ [INFO] [stdout] 97 | | "cedula", [INFO] [stdout] 98 | | "nombres", [INFO] [stdout] 99 | | "apellidos", [INFO] [stdout] ... | [INFO] [stdout] 139 | | "patterns", [INFO] [stdout] 140 | | ])?; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 96 ~ wtr.write_record([ [INFO] [stdout] 97 + "cedula", [INFO] [stdout] 98 + "nombres", [INFO] [stdout] 99 + "apellidos", [INFO] [stdout] 100 + "sexo", [INFO] [stdout] 101 + "edo_civil", [INFO] [stdout] 102 + "n_hijos (base)", [INFO] [stdout] 103 + "componente_id", [INFO] [stdout] 104 + "grado_id (base)", [INFO] [stdout] 105 + "categoria", [INFO] [stdout] 106 + "status_id", [INFO] [stdout] 107 + "status", [INFO] [stdout] 108 + "st_no_ascenso", [INFO] [stdout] 109 + "fecha_ingreso", [INFO] [stdout] 110 + "fecha_ultimo_ascenso", [INFO] [stdout] 111 + "fecha_retiro", [INFO] [stdout] 112 + "anio_reconocido", [INFO] [stdout] 113 + "mes_reconocido", [INFO] [stdout] 114 + "dia_reconocido", [INFO] [stdout] 115 + "antiguedad_total (decimal)", [INFO] [stdout] 116 + "antiguedad_grado (anos)", [INFO] [stdout] 117 + "sueldo_base", [INFO] [stdout] 118 + "prima_antiguedad", [INFO] [stdout] 119 + "prima_hijos", [INFO] [stdout] 120 + "prima_profesionalizacion", [INFO] [stdout] 121 + "total_asignaciones_base", [INFO] [stdout] 122 + "sueldo_mensual", [INFO] [stdout] 123 + "aguinaldos", [INFO] [stdout] 124 + "vacaciones", [INFO] [stdout] 125 + "dia_vacaciones", [INFO] [stdout] 126 + "sueldo_integral", [INFO] [stdout] 127 + "asignacion_antiguedad", [INFO] [stdout] 128 + "garantias", [INFO] [stdout] 129 + "dias_adicionales", [INFO] [stdout] 130 + "deposito_banco", [INFO] [stdout] 131 + "no_depositado_banco", [INFO] [stdout] 132 + "cap_banco", [INFO] [stdout] 133 + "anticipo", [INFO] [stdout] 134 + "f_cap_banco", [INFO] [stdout] 135 + "dif_asi_anti", [INFO] [stdout] 136 + "anticipo_retroactivo", [INFO] [stdout] 137 + "dep_adicional", [INFO] [stdout] 138 + "dep_garantia", [INFO] [stdout] 139 + "patterns", [INFO] [stdout] 140 ~ ])?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:152:26 [INFO] [stdout] | [INFO] [stdout] 152 | wtr.write_record(&[ [INFO] [stdout] | __________________________^ [INFO] [stdout] 153 | | &b.cedula, [INFO] [stdout] 154 | | &b.nombres, [INFO] [stdout] 155 | | &b.apellidos, [INFO] [stdout] ... | [INFO] [stdout] 204 | | &b.patterns, [INFO] [stdout] 205 | | ])?; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 152 ~ wtr.write_record([ [INFO] [stdout] 153 + &b.cedula, [INFO] [stdout] 154 + &b.nombres, [INFO] [stdout] 155 + &b.apellidos, [INFO] [stdout] 156 + b.sexo.as_deref().unwrap_or(""), [INFO] [stdout] 157 + b.edo_civil.as_deref().unwrap_or(""), [INFO] [stdout] 158 + &b.base.n_hijos.to_string(), [INFO] [stdout] 159 + &b.componente_id.to_string(), [INFO] [stdout] 160 + &b.base.grado_id.to_string(), [INFO] [stdout] 161 + b.categoria.as_deref().unwrap_or(""), [INFO] [stdout] 162 + &b.status_id.to_string(), [INFO] [stdout] 163 + &b.status.to_string(), [INFO] [stdout] 164 + &b.st_no_ascenso.to_string(), [INFO] [stdout] 165 + b.base [INFO] [stdout] 166 + .fecha_ingreso [INFO] [stdout] 167 + .as_deref() [INFO] [stdout] 168 + .unwrap_or(b.f_ingreso_sistema.as_deref().unwrap_or("")), [INFO] [stdout] 169 + b.base [INFO] [stdout] 170 + .f_ult_ascenso [INFO] [stdout] 171 + .as_deref() [INFO] [stdout] 172 + .unwrap_or(b.f_ult_ascenso.as_deref().unwrap_or("")), [INFO] [stdout] 173 + b.base [INFO] [stdout] 174 + .f_retiro [INFO] [stdout] 175 + .as_deref() [INFO] [stdout] 176 + .unwrap_or(b.f_retiro.as_deref().unwrap_or("")), [INFO] [stdout] 177 + &b.base.anio_reconocido.to_string(), [INFO] [stdout] 178 + &b.base.mes_reconocido.to_string(), [INFO] [stdout] 179 + &b.base.dia_reconocido.to_string(), [INFO] [stdout] 180 + &format!("{:.4}", b.base.antiguedad), [INFO] [stdout] 181 + &b.base.antiguedad_grado.to_string(), [INFO] [stdout] 182 + &format!("{:.2}", b.base.sueldo_base), [INFO] [stdout] 183 + &get_calc("prima_tiemposervicio"), [INFO] [stdout] 184 + &get_calc("prima_hijos"), [INFO] [stdout] 185 + &get_calc("prima_profesionalizacion"), [INFO] [stdout] 186 + &format!("{:.2}", b.base.total_asignaciones), [INFO] [stdout] 187 + &format!("{:.2}", b.base.sueldo_mensual), [INFO] [stdout] 188 + &format!("{:.2}", b.base.aguinaldos), [INFO] [stdout] 189 + &format!("{:.2}", b.base.vacaciones), [INFO] [stdout] 190 + &b.base.dia_vacaciones.to_string(), [INFO] [stdout] 191 + &format!("{:.2}", b.base.sueldo_integral), [INFO] [stdout] 192 + &format!("{:.2}", b.base.asignacion_antiguedad), [INFO] [stdout] 193 + &format!("{:.2}", b.base.garantias), [INFO] [stdout] 194 + &format!("{:.2}", b.base.dias_adicionales), [INFO] [stdout] 195 + &format!("{:.2}", b.base.deposito_banco), [INFO] [stdout] 196 + &format!("{:.2}", b.base.no_depositado_banco), [INFO] [stdout] 197 + &format!("{:.2}", b.movimientos.cap_banco), [INFO] [stdout] 198 + &format!("{:.2}", b.movimientos.anticipo), [INFO] [stdout] 199 + &format!("{:.2}", b.movimientos.fcap_banco), [INFO] [stdout] 200 + &format!("{:.2}", b.movimientos.dif_asi_anti), [INFO] [stdout] 201 + &format!("{:.2}", b.movimientos.anticipor), [INFO] [stdout] 202 + &format!("{:.2}", b.movimientos.dep_adicional), [INFO] [stdout] 203 + &format!("{:.2}", b.movimientos.dep_garantia), [INFO] [stdout] 204 + &b.patterns, [INFO] [stdout] 205 ~ ])?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:213:5 [INFO] [stdout] | [INFO] [stdout] 213 | let resultado: ResultadoExport; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] = note: `#[warn(clippy::needless_late_init)]` on by default [INFO] [stdout] help: move the declaration `resultado` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 213 ~ [INFO] [stdout] 214 | [INFO] [stdout] 215 ~ let resultado: ResultadoExport = if comprimir { [INFO] [stdout] 216 | println!( [INFO] [stdout] ... [INFO] [stdout] 248 | [INFO] [stdout] 249 ~ ResultadoExport { [INFO] [stdout] 250 | ruta: ruta_zst.display().to_string(), [INFO] [stdout] ... [INFO] [stdout] 256 | compresion_aplicada: true, [INFO] [stdout] 257 ~ } [INFO] [stdout] 258 | } else { [INFO] [stdout] ... [INFO] [stdout] 269 | [INFO] [stdout] 270 ~ ResultadoExport { [INFO] [stdout] 271 | ruta: ruta_completa.display().to_string(), [INFO] [stdout] ... [INFO] [stdout] 277 | compresion_aplicada: false, [INFO] [stdout] 278 ~ } [INFO] [stdout] 279 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:312:22 [INFO] [stdout] | [INFO] [stdout] 312 | wtr.write_record(&[ [INFO] [stdout] | ______________________^ [INFO] [stdout] 313 | | "cedula", [INFO] [stdout] 314 | | "nombres", [INFO] [stdout] 315 | | "apellidos", [INFO] [stdout] ... | [INFO] [stdout] 319 | | "garantia_anticipo", [INFO] [stdout] 320 | | ])?; [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 312 ~ wtr.write_record([ [INFO] [stdout] 313 + "cedula", [INFO] [stdout] 314 + "nombres", [INFO] [stdout] 315 + "apellidos", [INFO] [stdout] 316 + "numero_cuenta", [INFO] [stdout] 317 + "garantia_original", [INFO] [stdout] 318 + "factor_aplicado", [INFO] [stdout] 319 + "garantia_anticipo", [INFO] [stdout] 320 ~ ])?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:323:26 [INFO] [stdout] | [INFO] [stdout] 323 | wtr.write_record(&[ [INFO] [stdout] | __________________________^ [INFO] [stdout] 324 | | &b.cedula, [INFO] [stdout] 325 | | &b.nombres, [INFO] [stdout] 326 | | &b.apellidos, [INFO] [stdout] ... | [INFO] [stdout] 330 | | &format!("{:.2}", b.base.garantia_anticipo), [INFO] [stdout] 331 | | ])?; [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args [INFO] [stdout] help: change this to [INFO] [stdout] | [INFO] [stdout] 323 ~ wtr.write_record([ [INFO] [stdout] 324 + &b.cedula, [INFO] [stdout] 325 + &b.nombres, [INFO] [stdout] 326 + &b.apellidos, [INFO] [stdout] 327 + &b.numero_cuenta, [INFO] [stdout] 328 + &format!("{:.2}", b.base.garantia_original), [INFO] [stdout] 329 + &format!("{:.6}", b.base.factor_aplicado), [INFO] [stdout] 330 + &format!("{:.2}", b.base.garantia_anticipo), [INFO] [stdout] 331 ~ ])?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unneeded late initialization [INFO] [stdout] --> core/src/kernel/logica/exportador.rs:339:5 [INFO] [stdout] | [INFO] [stdout] 339 | let resultado: ResultadoExport; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init [INFO] [stdout] help: move the declaration `resultado` here and remove the assignments from the branches [INFO] [stdout] | [INFO] [stdout] 339 ~ [INFO] [stdout] 340 | [INFO] [stdout] 341 ~ let resultado: ResultadoExport = if comprimir { [INFO] [stdout] 342 | println!( [INFO] [stdout] ... [INFO] [stdout] 371 | [INFO] [stdout] 372 ~ ResultadoExport { [INFO] [stdout] 373 | ruta: ruta_zst.display().to_string(), [INFO] [stdout] ... [INFO] [stdout] 379 | compresion_aplicada: true, [INFO] [stdout] 380 ~ } [INFO] [stdout] 381 | } else { [INFO] [stdout] ... [INFO] [stdout] 392 | [INFO] [stdout] 393 ~ ResultadoExport { [INFO] [stdout] 394 | ruta: ruta_completa.display().to_string(), [INFO] [stdout] ... [INFO] [stdout] 400 | compresion_aplicada: false, [INFO] [stdout] 401 ~ } [INFO] [stdout] 402 ~ }; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary use of `.write(true)` because there is `.append(true)` [INFO] [stdout] --> core/src/kernel/logica/logger.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | .write(true) [INFO] [stdout] | ^^^^^^^^^^^^ help: remove `.write(true)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ineffective_open_options [INFO] [stdout] = note: `#[warn(clippy::ineffective_open_options)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: literal with an empty format string [INFO] [stdout] --> core/src/kernel/logica/telemetria.rs:79:82 [INFO] [stdout] | [INFO] [stdout] 79 | "OPERACION", "CATEGORIA", "ESTATUS", "T-SEG", "TIEMPO", "REGISTROS", "DETALLES" [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_literal [INFO] [stdout] = note: `#[warn(clippy::write_literal)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 78 ~ "{:<25} {:<10} {:<8} {:<10} {:<12} {:<12} DETALLES", [INFO] [stdout] 79 ~ "OPERACION", "CATEGORIA", "ESTATUS", "T-SEG", "TIEMPO", "REGISTROS" [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `impl` can be derived [INFO] [stdout] --> core/src/kernel/mod.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | / impl Default for Perceptron { [INFO] [stdout] 37 | | fn default() -> Self { [INFO] [stdout] 38 | | Perceptron { [INFO] [stdout] 39 | | client: None, [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls [INFO] [stdout] = note: `#[warn(clippy::derivable_impls)]` on by default [INFO] [stdout] help: replace the manual implementation with a derive attribute [INFO] [stdout] | [INFO] [stdout] 20 + #[derive(Default)] [INFO] [stdout] 21 | pub struct Perceptron { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: match expression looks like `matches!` macro [INFO] [stdout] --> core/src/model/beneficiario.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | / match self.estatus { [INFO] [stdout] 131 | | Estatus::Activo | Estatus::Paralizado => true, [INFO] [stdout] 132 | | _ => false, [INFO] [stdout] 133 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro [INFO] [stdout] = note: `#[warn(clippy::match_like_matches_macro)]` on by default [INFO] [stdout] help: use `matches!` directly [INFO] [stdout] | [INFO] [stdout] 130 - match self.estatus { [INFO] [stdout] 131 - Estatus::Activo | Estatus::Paralizado => true, [INFO] [stdout] 132 - _ => false, [INFO] [stdout] 133 - } [INFO] [stdout] 130 + matches!(self.estatus, Estatus::Activo | Estatus::Paralizado) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6f37fe60b047b1827b53884fc6d7f63e93445e7d296108826281c5fdee8568cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f37fe60b047b1827b53884fc6d7f63e93445e7d296108826281c5fdee8568cb", kill_on_drop: false }` [INFO] [stdout] 6f37fe60b047b1827b53884fc6d7f63e93445e7d296108826281c5fdee8568cb