[INFO] cloning repository https://github.com/Fabian5859/motor_fix_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Fabian5859/motor_fix_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabian5859%2Fmotor_fix_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabian5859%2Fmotor_fix_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bb752cb68c9408e678b1d46dcec08635a1d37050 [INFO] linting Fabian5859/motor_fix_rust against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFabian5859%2Fmotor_fix_rust" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Fabian5859/motor_fix_rust [INFO] finished tweaking git repo https://github.com/Fabian5859/motor_fix_rust [INFO] tweaked toml for git repo https://github.com/Fabian5859/motor_fix_rust written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Fabian5859/motor_fix_rust 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/Fabian5859/motor_fix_rust 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] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ringbuffer v0.15.0 [INFO] [stderr] Downloaded strum v0.22.0 [INFO] [stderr] Downloaded ndarray-rand v0.15.0 [INFO] [stderr] Downloaded crc-catalog v1.1.1 [INFO] [stderr] Downloaded darling_macro v0.12.4 [INFO] [stderr] Downloaded env_filter v1.0.0 [INFO] [stderr] Downloaded sha-1 v0.10.1 [INFO] [stderr] Downloaded sqlx-rt v0.5.13 [INFO] [stderr] Downloaded crc v2.1.0 [INFO] [stderr] Downloaded fefix_derive v0.7.0 [INFO] [stderr] Downloaded indoc v1.0.9 [INFO] [stderr] Downloaded matrixmultiply v0.3.10 [INFO] [stderr] Downloaded rkyv_derive v0.7.46 [INFO] [stderr] Downloaded ord_subset v3.1.2 [INFO] [stderr] Downloaded darling v0.12.4 [INFO] [stderr] Downloaded hashlink v0.7.0 [INFO] [stderr] Downloaded sqlformat v0.1.8 [INFO] [stderr] Downloaded tokio-util v0.6.10 [INFO] [stderr] Downloaded xmlparser v0.13.6 [INFO] [stderr] Downloaded env_logger v0.11.9 [INFO] [stderr] Downloaded roxmltree v0.14.1 [INFO] [stderr] Downloaded sqlx-macros v0.5.13 [INFO] [stderr] Downloaded atoi v0.4.0 [INFO] [stderr] Downloaded strum_macros v0.22.0 [INFO] [stderr] Downloaded erased-serde v0.3.31 [INFO] [stderr] Downloaded darling_core v0.12.4 [INFO] [stderr] Downloaded slog v2.8.2 [INFO] [stderr] Downloaded sqlx v0.5.13 [INFO] [stderr] Downloaded jiff-static v0.2.20 [INFO] [stderr] Downloaded futures-intrusive v0.4.2 [INFO] [stderr] Downloaded quick-xml v0.22.0 [INFO] [stderr] Downloaded bitvec v0.18.5 [INFO] [stderr] Downloaded rkyv v0.7.46 [INFO] [stderr] Downloaded rust_decimal v1.40.0 [INFO] [stderr] Downloaded ndarray v0.16.1 [INFO] [stderr] Downloaded sqlx-core v0.5.13 [INFO] [stderr] Downloaded jiff v0.2.20 [INFO] [stderr] Downloaded decimal v2.1.0 [INFO] [stderr] Downloaded fefix v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 84c5e90ede89469be0a2c20f4e59d5bd077ccf7e27acf56aab1291f7490f3383 [INFO] running `Command { std: "docker" "start" "-a" "84c5e90ede89469be0a2c20f4e59d5bd077ccf7e27acf56aab1291f7490f3383", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84c5e90ede89469be0a2c20f4e59d5bd077ccf7e27acf56aab1291f7490f3383", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84c5e90ede89469be0a2c20f4e59d5bd077ccf7e27acf56aab1291f7490f3383", kill_on_drop: false }` [INFO] [stdout] 84c5e90ede89469be0a2c20f4e59d5bd077ccf7e27acf56aab1291f7490f3383 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 2433dc515bdd70e02a819422dde5561227845dc3614f0ab890267af672950e01 [INFO] running `Command { std: "docker" "start" "-a" "2433dc515bdd70e02a819422dde5561227845dc3614f0ab890267af672950e01", kill_on_drop: false }` [INFO] [stderr] Compiling find-msvc-tools v0.1.8 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling libm v0.2.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling cc v1.2.54 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling zmij v1.0.16 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling socket2 v0.6.2 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling crc-catalog v1.1.1 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling crc v2.1.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling darling_core v0.12.4 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling sqlformat v0.1.8 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling futures-intrusive v0.4.2 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling matrixmultiply v0.3.10 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling xmlparser v0.13.6 [INFO] [stderr] Checking regex-syntax v0.8.8 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling strum_macros v0.22.0 [INFO] [stderr] Compiling roxmltree v0.14.1 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Checking tokio-stream v0.1.18 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling slog v2.8.2 [INFO] [stderr] Compiling darling_macro v0.12.4 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling decimal v2.1.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling webpki-roots v0.21.1 [INFO] [stderr] Compiling quick-xml v0.22.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling rust_decimal v1.40.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling strum v0.22.0 [INFO] [stderr] Compiling indoc v1.0.9 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling darling v0.12.4 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking erased-serde v0.3.31 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Checking ord_subset v3.1.2 [INFO] [stderr] Checking radium v0.3.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking wyz v0.2.0 [INFO] [stderr] Checking funty v1.1.0 [INFO] [stderr] Checking ndarray v0.16.1 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking heck v0.3.3 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tokio-util v0.6.10 [INFO] [stderr] Checking rand_distr v0.4.3 [INFO] [stderr] Checking bitvec v0.18.5 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking env_filter v1.0.0 [INFO] [stderr] Checking jiff v0.2.20 [INFO] [stderr] Compiling fefix v0.7.0 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking ringbuffer v0.15.0 [INFO] [stderr] Checking tokio-rustls v0.22.0 [INFO] [stderr] Compiling fefix_derive v0.7.0 [INFO] [stderr] Checking sqlx-rt v0.5.13 [INFO] [stderr] Compiling sqlx-core v0.5.13 [INFO] [stderr] Checking ndarray-rand v0.15.0 [INFO] [stderr] Checking env_logger v0.11.9 [INFO] [stderr] Compiling sqlx-macros v0.5.13 [INFO] [stderr] Checking sqlx v0.5.13 [INFO] [stderr] Checking motor_fix_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/main.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/math_utils.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / /// Utilidades matemáticas para gestión de riesgo Bayesiano y Cuantiles. [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 6 | pub fn erf_inv(x: f64) -> f64 { [INFO] [stdout] | -------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! src/math_utils.rs [INFO] [stdout] 2 ~ //! Utilidades matemáticas para gestión de riesgo Bayesiano y Cuantiles. [INFO] [stdout] | [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 3 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/main.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{error, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: empty line after doc comment [INFO] [stdout] --> src/math_utils.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | / /// Utilidades matemáticas para gestión de riesgo Bayesiano y Cuantiles. [INFO] [stdout] 3 | | [INFO] [stdout] | |_^ [INFO] [stdout] ... [INFO] [stdout] 6 | pub fn erf_inv(x: f64) -> f64 { [INFO] [stdout] | -------------- the comment documents this function [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments [INFO] [stdout] = note: `#[warn(clippy::empty_line_after_doc_comments)]` on by default [INFO] [stdout] = help: if the empty line is unintentional, remove it [INFO] [stdout] help: if the comment should document the parent module use an inner doc comment [INFO] [stdout] | [INFO] [stdout] 1 ~ //! src/math_utils.rs [INFO] [stdout] 2 ~ //! Utilidades matemáticas para gestión de riesgo Bayesiano y Cuantiles. [INFO] [stdout] | [INFO] [stdout] help: if the documentation should include the empty line include it in the comment [INFO] [stdout] | [INFO] [stdout] 3 | /// [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_snr` is never used [INFO] [stdout] --> src/math_utils.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn calculate_snr(mu: f64, sigma: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_units` and `kelly_fraction` are never read [INFO] [stdout] --> src/risk.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RiskManager { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub max_units: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub kelly_fraction: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PartiallyFilled` and `Rejected` are never constructed [INFO] [stdout] --> src/state.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TradeStatus { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | PartiallyFilled, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | Filled, [INFO] [stdout] 12 | Rejected, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradeStatus` 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: fields `entry_price`, `entry_mu`, and `entry_snr` are never read [INFO] [stdout] --> src/state.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 19 | pub cl_ord_id: String, [INFO] [stdout] 20 | pub entry_price: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub entry_mu: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 28 | pub entry_sigma_total: f64, [INFO] [stdout] 29 | pub entry_snr: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` 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: calls to `push` immediately after creation [INFO] [stdout] --> src/features.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / let mut current_row = Vec::new(); [INFO] [stdout] 26 | | [INFO] [stdout] 27 | | // 1. Precio medio (Normalizado internamente luego) [INFO] [stdout] 28 | | current_row.push(book.get_mid_price().unwrap_or(0.0)); [INFO] [stdout] ... | [INFO] [stdout] 32 | | current_row.push(noise); [INFO] [stdout] 33 | | current_row.push(context); [INFO] [stdout] | |__________________________________^ help: consider using the `vec![]` macro: `let mut current_row = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] = note: `#[warn(clippy::vec_init_then_push)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/fix_engine.rs:27:30 [INFO] [stdout] | [INFO] [stdout] 27 | let account_number = sender_id.split('.').last().unwrap_or(sender_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] = note: `#[warn(clippy::double_ended_iterator_last)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 27 - let account_number = sender_id.split('.').last().unwrap_or(sender_id); [INFO] [stdout] 27 + let account_number = sender_id.split('.').next_back().unwrap_or(sender_id); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/fix_engine.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | / pub fn build_order_request( [INFO] [stdout] 107 | | &mut self, [INFO] [stdout] 108 | | buffer: &mut Vec, [INFO] [stdout] 109 | | sender_id: &str, [INFO] [stdout] ... | [INFO] [stdout] 115 | | qty: f64, [INFO] [stdout] 116 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/fix_engine.rs:133:47 [INFO] [stdout] | [INFO] [stdout] 133 | msg.set_any(TagU16::new(54).unwrap(), &[side as u8]); [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `[side as u8]` [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] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/gaussian.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 73 | let uncertainty = (deviation * 1000.0).min(1.0); [INFO] [stdout] | ------------------------------------------------ unnecessary `let` binding [INFO] [stdout] 74 | [INFO] [stdout] 75 | uncertainty [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] 73 ~ [INFO] [stdout] 74 | [INFO] [stdout] 75 ~ (deviation * 1000.0).min(1.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual backwards iteration [INFO] [stdout] --> src/state.rs:66:40 [INFO] [stdout] | [INFO] [stdout] 66 | let best_bid = self.bids.keys().rev().next()?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: use: `.next_back()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back [INFO] [stdout] = note: `#[warn(clippy::manual_next_back)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual backwards iteration [INFO] [stdout] --> src/state.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 72 | self.bids.keys().rev().next().map(|&p| p as f64 / 100000.0) [INFO] [stdout] | ^^^^^^^^^^^^^ help: use: `.next_back()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual backwards iteration [INFO] [stdout] --> src/state.rs:81:39 [INFO] [stdout] | [INFO] [stdout] 81 | let b_vol = self.bids.values().rev().next().unwrap_or(&0.0); [INFO] [stdout] | ^^^^^^^^^^^^^ help: use: `.next_back()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:140:33 [INFO] [stdout] | [INFO] [stdout] 140 | / ... if risk_manager.status == TradeStatus::Filled { [INFO] [stdout] 141 | | ... if executor.monitor_position(mid, noise, &mut risk_manager) { [INFO] [stdout] 142 | | ... if let Some(pos) = &executor.active_position { [INFO] [stdout] 143 | | ... trade_seq += 1; [INFO] [stdout] ... | [INFO] [stdout] 153 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 140 ~ if risk_manager.status == TradeStatus::Filled [INFO] [stdout] 141 ~ && executor.monitor_position(mid, noise, &mut risk_manager) { [INFO] [stdout] 142 | if let Some(pos) = &executor.active_position { [INFO] [stdout] ... [INFO] [stdout] 151 | } [INFO] [stdout] 152 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:180:40 [INFO] [stdout] | [INFO] [stdout] 180 | ... if msg_count % 10 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: replace with: `msg_count.is_multiple_of(10)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:184:44 [INFO] [stdout] | [INFO] [stdout] 184 | ... if msg_count % 500 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `msg_count.is_multiple_of(500)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:189:41 [INFO] [stdout] | [INFO] [stdout] 189 | / ... if risk_manager.status == TradeStatus::Idle && noise < 0.7 && context_favorable { [INFO] [stdout] 190 | | ... if b_out.snr > 0.40 { [INFO] [stdout] 191 | | ... let side = if b_out.mu > 0.5 { '1' } else { '2' }; [INFO] [stdout] ... | [INFO] [stdout] 221 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 189 ~ if risk_manager.status == TradeStatus::Idle && noise < 0.7 && context_favorable [INFO] [stdout] 190 ~ && b_out.snr > 0.40 { [INFO] [stdout] 191 | let side = if b_out.mu > 0.5 { '1' } else { '2' }; [INFO] [stdout] ... [INFO] [stdout] 219 | } [INFO] [stdout] 220 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_snr` is never used [INFO] [stdout] --> src/math_utils.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn calculate_snr(mu: f64, sigma: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `max_units` and `kelly_fraction` are never read [INFO] [stdout] --> src/risk.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct RiskManager { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub max_units: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub kelly_fraction: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `PartiallyFilled` and `Rejected` are never constructed [INFO] [stdout] --> src/state.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum TradeStatus { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | PartiallyFilled, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 11 | Filled, [INFO] [stdout] 12 | Rejected, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TradeStatus` 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: fields `entry_price`, `entry_mu`, and `entry_snr` are never read [INFO] [stdout] --> src/state.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 19 | pub cl_ord_id: String, [INFO] [stdout] 20 | pub entry_price: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub entry_mu: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 28 | pub entry_sigma_total: f64, [INFO] [stdout] 29 | pub entry_snr: f64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Position` 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: calls to `push` immediately after creation [INFO] [stdout] --> src/features.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / let mut current_row = Vec::new(); [INFO] [stdout] 26 | | [INFO] [stdout] 27 | | // 1. Precio medio (Normalizado internamente luego) [INFO] [stdout] 28 | | current_row.push(book.get_mid_price().unwrap_or(0.0)); [INFO] [stdout] ... | [INFO] [stdout] 32 | | current_row.push(noise); [INFO] [stdout] 33 | | current_row.push(context); [INFO] [stdout] | |__________________________________^ help: consider using the `vec![]` macro: `let mut current_row = vec![..];` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#vec_init_then_push [INFO] [stdout] = note: `#[warn(clippy::vec_init_then_push)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/fix_engine.rs:27:30 [INFO] [stdout] | [INFO] [stdout] 27 | let account_number = sender_id.split('.').last().unwrap_or(sender_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] = note: `#[warn(clippy::double_ended_iterator_last)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 27 - let account_number = sender_id.split('.').last().unwrap_or(sender_id); [INFO] [stdout] 27 + let account_number = sender_id.split('.').next_back().unwrap_or(sender_id); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (9/7) [INFO] [stdout] --> src/fix_engine.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 106 | / pub fn build_order_request( [INFO] [stdout] 107 | | &mut self, [INFO] [stdout] 108 | | buffer: &mut Vec, [INFO] [stdout] 109 | | sender_id: &str, [INFO] [stdout] ... | [INFO] [stdout] 115 | | qty: f64, [INFO] [stdout] 116 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the borrowed expression implements the required traits [INFO] [stdout] --> src/fix_engine.rs:133:47 [INFO] [stdout] | [INFO] [stdout] 133 | msg.set_any(TagU16::new(54).unwrap(), &[side as u8]); [INFO] [stdout] | ^^^^^^^^^^^^^ help: change this to: `[side as u8]` [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] [INFO] [stdout] [INFO] [stdout] warning: returning the result of a `let` binding from a block [INFO] [stdout] --> src/gaussian.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 73 | let uncertainty = (deviation * 1000.0).min(1.0); [INFO] [stdout] | ------------------------------------------------ unnecessary `let` binding [INFO] [stdout] 74 | [INFO] [stdout] 75 | uncertainty [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] 73 ~ [INFO] [stdout] 74 | [INFO] [stdout] 75 ~ (deviation * 1000.0).min(1.0) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual backwards iteration [INFO] [stdout] --> src/state.rs:66:40 [INFO] [stdout] | [INFO] [stdout] 66 | let best_bid = self.bids.keys().rev().next()?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: use: `.next_back()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back [INFO] [stdout] = note: `#[warn(clippy::manual_next_back)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual backwards iteration [INFO] [stdout] --> src/state.rs:72:25 [INFO] [stdout] | [INFO] [stdout] 72 | self.bids.keys().rev().next().map(|&p| p as f64 / 100000.0) [INFO] [stdout] | ^^^^^^^^^^^^^ help: use: `.next_back()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual backwards iteration [INFO] [stdout] --> src/state.rs:81:39 [INFO] [stdout] | [INFO] [stdout] 81 | let b_vol = self.bids.values().rev().next().unwrap_or(&0.0); [INFO] [stdout] | ^^^^^^^^^^^^^ help: use: `.next_back()` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_next_back [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:140:33 [INFO] [stdout] | [INFO] [stdout] 140 | / ... if risk_manager.status == TradeStatus::Filled { [INFO] [stdout] 141 | | ... if executor.monitor_position(mid, noise, &mut risk_manager) { [INFO] [stdout] 142 | | ... if let Some(pos) = &executor.active_position { [INFO] [stdout] 143 | | ... trade_seq += 1; [INFO] [stdout] ... | [INFO] [stdout] 153 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 140 ~ if risk_manager.status == TradeStatus::Filled [INFO] [stdout] 141 ~ && executor.monitor_position(mid, noise, &mut risk_manager) { [INFO] [stdout] 142 | if let Some(pos) = &executor.active_position { [INFO] [stdout] ... [INFO] [stdout] 151 | } [INFO] [stdout] 152 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:180:40 [INFO] [stdout] | [INFO] [stdout] 180 | ... if msg_count % 10 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: replace with: `msg_count.is_multiple_of(10)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] = note: `#[warn(clippy::manual_is_multiple_of)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual implementation of `.is_multiple_of()` [INFO] [stdout] --> src/main.rs:184:44 [INFO] [stdout] | [INFO] [stdout] 184 | ... if msg_count % 500 == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: replace with: `msg_count.is_multiple_of(500)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/main.rs:189:41 [INFO] [stdout] | [INFO] [stdout] 189 | / ... if risk_manager.status == TradeStatus::Idle && noise < 0.7 && context_favorable { [INFO] [stdout] 190 | | ... if b_out.snr > 0.40 { [INFO] [stdout] 191 | | ... let side = if b_out.mu > 0.5 { '1' } else { '2' }; [INFO] [stdout] ... | [INFO] [stdout] 221 | | ... } [INFO] [stdout] | |_______________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 189 ~ if risk_manager.status == TradeStatus::Idle && noise < 0.7 && context_favorable [INFO] [stdout] 190 ~ && b_out.snr > 0.40 { [INFO] [stdout] 191 | let side = if b_out.mu > 0.5 { '1' } else { '2' }; [INFO] [stdout] ... [INFO] [stdout] 219 | } [INFO] [stdout] 220 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 20s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: quick-xml v0.22.0, sqlx-core v0.5.13 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "2433dc515bdd70e02a819422dde5561227845dc3614f0ab890267af672950e01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2433dc515bdd70e02a819422dde5561227845dc3614f0ab890267af672950e01", kill_on_drop: false }` [INFO] [stdout] 2433dc515bdd70e02a819422dde5561227845dc3614f0ab890267af672950e01