[INFO] cloning repository https://github.com/yutiansut/quantaxis-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yutiansut/quantaxis-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyutiansut%2Fquantaxis-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyutiansut%2Fquantaxis-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4d4399bacf08bb286f98e181602cca104eb14a1f [INFO] testing yutiansut/quantaxis-rs against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyutiansut%2Fquantaxis-rs" "/workspace/builds/worker-3/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yutiansut/quantaxis-rs on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yutiansut/quantaxis-rs [INFO] finished tweaking git repo https://github.com/yutiansut/quantaxis-rs [INFO] tweaked toml for git repo https://github.com/yutiansut/quantaxis-rs written to /workspace/builds/worker-3/source/Cargo.toml [INFO] crate git repo https://github.com/yutiansut/quantaxis-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded once_cell v1.6.0 [INFO] [stderr] Downloaded os_info v3.0.1 [INFO] [stderr] Downloaded bencher v0.1.5 [INFO] [stderr] Downloaded darling v0.12.1 [INFO] [stderr] Downloaded ndarray-csv v0.4.1 [INFO] [stderr] Downloaded darling_core v0.12.1 [INFO] [stderr] Downloaded darling_macro v0.12.1 [INFO] [stderr] Downloaded mongodb v1.2.0 [INFO] [stderr] Downloaded stopwatch v0.0.7 [INFO] [stderr] Downloaded qifi-rs v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d3d775c4ccdfea0f237a8f9ab753ea00b9abf66186fdccb0bcaa3ec1c778c08d [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d3d775c4ccdfea0f237a8f9ab753ea00b9abf66186fdccb0bcaa3ec1c778c08d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d3d775c4ccdfea0f237a8f9ab753ea00b9abf66186fdccb0bcaa3ec1c778c08d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3d775c4ccdfea0f237a8f9ab753ea00b9abf66186fdccb0bcaa3ec1c778c08d", kill_on_drop: false }` [INFO] [stdout] d3d775c4ccdfea0f237a8f9ab753ea00b9abf66186fdccb0bcaa3ec1c778c08d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 98f0272754015b92f6a8c341df3700f69cc6d9f791b9d974317b42889513c991 [INFO] running `Command { std: "docker" "start" "-a" "98f0272754015b92f6a8c341df3700f69cc6d9f791b9d974317b42889513c991", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling once_cell v1.6.0 [INFO] [stderr] Compiling futures-core v0.3.12 [INFO] [stderr] Compiling futures-io v0.3.12 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling byteorder v1.4.2 [INFO] [stderr] Compiling futures-sink v0.3.12 [INFO] [stderr] Compiling rustversion v1.0.4 [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Compiling serde_json v1.0.62 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling ndarray v0.13.1 [INFO] [stderr] Compiling bencher v0.1.5 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling crossbeam-utils v0.8.2 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling tinyvec v1.1.1 [INFO] [stderr] Compiling matrixmultiply v0.2.4 [INFO] [stderr] Compiling futures-channel v0.3.12 [INFO] [stderr] Compiling regex-automata v0.1.9 [INFO] [stderr] Compiling futures-task v0.3.12 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling futures-lite v1.11.3 [INFO] [stderr] Compiling float-cmp v0.4.0 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling crypto-mac v0.7.0 [INFO] [stderr] Compiling regex v1.4.3 [INFO] [stderr] Compiling md-5 v0.8.0 [INFO] [stderr] Compiling sha-1 v0.8.2 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling pbkdf2 v0.3.0 [INFO] [stderr] Compiling hmac v0.7.1 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling async-executor v1.4.0 [INFO] [stderr] Compiling blocking v1.0.2 [INFO] [stderr] Compiling err-derive v0.2.4 [INFO] [stderr] Compiling crossbeam-epoch v0.9.2 [INFO] [stderr] Compiling crossbeam-channel v0.5.0 [INFO] [stderr] Compiling backtrace v0.3.56 [INFO] [stderr] Compiling num-complex v0.1.43 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling nb-connect v1.0.3 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling idna v0.2.2 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling num-bigint v0.1.44 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling sct v0.6.0 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling url v2.2.1 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling webpki-roots v0.18.0 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling stopwatch v0.0.7 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling darling_core v0.12.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling ctor v0.1.19 [INFO] [stderr] Compiling futures-macro v0.3.12 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling enum-as-inner v0.3.3 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling typed-builder v0.4.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling darling_macro v0.12.1 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.6 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling futures-util v0.3.12 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling polling v2.0.2 [INFO] [stderr] Compiling rustls v0.17.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling os_info v3.0.1 [INFO] [stderr] Compiling async-io v1.3.1 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling darling v0.12.1 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling async-global-executor v2.0.2 [INFO] [stderr] Compiling serde_with_macros v1.4.1 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling async-std v1.9.0 [INFO] [stderr] Compiling futures-executor v0.3.12 [INFO] [stderr] Compiling futures v0.3.12 [INFO] [stderr] Compiling trust-dns-proto v0.19.6 [INFO] [stderr] Compiling tokio-rustls v0.13.1 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling serde_with v1.6.4 [INFO] [stderr] Compiling bstr v0.2.15 [INFO] [stderr] Compiling serde_bytes v0.10.5 [INFO] [stderr] Compiling csv v1.1.5 [INFO] [stderr] Compiling bson v1.2.0 [INFO] [stderr] Compiling ndarray-csv v0.4.1 [INFO] [stderr] Compiling trust-dns-resolver v0.19.6 [INFO] [stderr] Compiling mongodb v1.2.0 [INFO] [stderr] Compiling qifi-rs v0.3.0 [INFO] [stderr] Compiling quantaxis-rs v0.3.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::f64::NAN` [INFO] [stdout] --> src/indicators/moving_average.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::NAN; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/qaaccount.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qaaccount.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::ParseError` [INFO] [stdout] --> src/qaaccount.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::format::ParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, `NaiveDateTime`, `NaiveDate`, `NaiveTime` [INFO] [stdout] --> src/qaaccount.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, FixedOffset, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/qaaccount.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodePreset` [INFO] [stdout] --> src/qaaccount.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::market_preset::{CodePreset, MarketPreset}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaposition` [INFO] [stdout] --> src/qaaccount.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::qaposition; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account_info` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct account_info { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AccountInfo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct account { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct QA_Account { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `QaAccount` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/qaaccount.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | #[warn(non_camel_case_types)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 886 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 886 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:959:23 [INFO] [stdout] | [INFO] [stdout] 959 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 959 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 959 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::array` [INFO] [stdout] --> src/qadata.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::array; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/qafetch.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qafetch.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/qafetch.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaorder::QAOrder` [INFO] [stdout] --> src/qaposition.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::qaorder::QAOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Frozen` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct QA_Frozen { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `QaFrozen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Postions` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct QA_Postions { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `QaPostions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:237:33 [INFO] [stdout] | [INFO] [stdout] 237 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 237 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 237 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:240:34 [INFO] [stdout] | [INFO] [stdout] 240 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 240 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 240 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:246:33 [INFO] [stdout] | [INFO] [stdout] 246 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 246 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 246 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:249:34 [INFO] [stdout] | [INFO] [stdout] 249 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 249 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 249 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Offset` [INFO] [stdout] --> src/transaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{DateTime, Offset, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/transaction.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, `NaiveDateTime`, `NaiveDate`, `NaiveTime` [INFO] [stdout] --> src/qaperformance.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, FixedOffset, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::ParseError` [INFO] [stdout] --> src/qaperformance.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::format::ParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QAPerformance_Single` should have an upper camel case name [INFO] [stdout] --> src/qaperformance.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct QAPerformance_Single { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `QaperformanceSingle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/trade_date.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/trade_date.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/trade_date.rs:941:19 [INFO] [stdout] | [INFO] [stdout] 941 | let day = (date - year * 10000 - month * 100); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 941 - let day = (date - year * 10000 - month * 100); [INFO] [stdout] 941 + let day = date - year * 10000 - month * 100; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 42 | prev => (input - prev).abs(), [INFO] [stdout] | ---- matches any value [INFO] [stdout] 43 | _ => 0.0 [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 64 | prev => (input - prev).abs(), [INFO] [stdout] | ---- matches any value [INFO] [stdout] 65 | _ => 0.0 [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 86 | prev_close => { [INFO] [stdout] | ---------- matches any value [INFO] [stdout] ... [INFO] [stdout] 92 | _ => bar.high() - bar.low(), [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 109 | prev_close => { [INFO] [stdout] | ---------- matches any value [INFO] [stdout] ... [INFO] [stdout] 115 | _ => bar.high() - bar.low(), [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/qaaccount.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | order_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `realorder_id` [INFO] [stdout] --> src/qaaccount.rs:856:9 [INFO] [stdout] | [INFO] [stdout] 856 | realorder_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_realorder_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:980:17 [INFO] [stdout] | [INFO] [stdout] 980 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:991:17 [INFO] [stdout] | [INFO] [stdout] 991 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:999:17 [INFO] [stdout] | [INFO] [stdout] 999 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:1014:17 [INFO] [stdout] | [INFO] [stdout] 1014 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaaccount.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | let mut acc = Self { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `init_hold` [INFO] [stdout] --> src/qaaccount.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | init_hold: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_t0` [INFO] [stdout] --> src/qaaccount.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | allow_t0: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_sellopen` [INFO] [stdout] --> src/qaaccount.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | allow_sellopen: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_margin` [INFO] [stdout] --> src/qaaccount.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | allow_margin: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `auto_reload` [INFO] [stdout] --> src/qaaccount.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | auto_reload: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `market_preset` [INFO] [stdout] --> src/qaaccount.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | market_preset: MarketPreset, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `commission_ratio` [INFO] [stdout] --> src/qaaccount.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | commission_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tax_ratio` [INFO] [stdout] --> src/qaaccount.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | tax_ratio: f64, // tax for qaaccount [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/qadata.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `message` [INFO] [stdout] --> src/qaposition.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | pub(crate) fn message(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `length` [INFO] [stdout] --> src/indicators/average_true_range.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | length: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AverageTrueRange` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/indicators/average_true_range.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `WithdrawQuota` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub WithdrawQuota: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `withdraw_quota` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_codeSubscribed` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:518:12 [INFO] [stdout] | [INFO] [stdout] 518 | pub fn get_codeSubscribed(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_code_subscribed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `codeSub` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:524:17 [INFO] [stdout] | [INFO] [stdout] 524 | let mut codeSub = vec![]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `code_sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 59 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ReaderBuilder`, `WriterBuilder` [INFO] [stdout] --> src/main.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use csv::{ReaderBuilder, WriterBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `array`, `stack` [INFO] [stdout] --> src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use ndarray::{array, stack}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::prelude::*` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use ndarray::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stopwatch::Stopwatch` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use stopwatch::Stopwatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/qaaccount.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qaaccount.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::ParseError` [INFO] [stdout] --> src/qaaccount.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::format::ParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, `NaiveDateTime`, `NaiveDate`, `NaiveTime` [INFO] [stdout] --> src/qaaccount.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, FixedOffset, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/qaaccount.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodePreset` [INFO] [stdout] --> src/qaaccount.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::market_preset::{CodePreset, MarketPreset}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaposition` [INFO] [stdout] --> src/qaaccount.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::qaposition; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account_info` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct account_info { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AccountInfo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct account { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct QA_Account { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `QaAccount` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/qaaccount.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | #[warn(non_camel_case_types)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 886 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 886 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:959:23 [INFO] [stdout] | [INFO] [stdout] 959 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 959 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 959 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::array` [INFO] [stdout] --> src/qadata.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::array; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/qafetch.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qafetch.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/qafetch.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaorder::QAOrder` [INFO] [stdout] --> src/qaposition.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::qaorder::QAOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Frozen` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct QA_Frozen { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `QaFrozen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Postions` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct QA_Postions { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `QaPostions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:237:33 [INFO] [stdout] | [INFO] [stdout] 237 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 237 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 237 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:240:34 [INFO] [stdout] | [INFO] [stdout] 240 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 240 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 240 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:246:33 [INFO] [stdout] | [INFO] [stdout] 246 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 246 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 246 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:249:34 [INFO] [stdout] | [INFO] [stdout] 249 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 249 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 249 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Offset` [INFO] [stdout] --> src/transaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{DateTime, Offset, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/transaction.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/trade_date.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/trade_date.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/trade_date.rs:941:19 [INFO] [stdout] | [INFO] [stdout] 941 | let day = (date - year * 10000 - month * 100); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 941 - let day = (date - year * 10000 - month * 100); [INFO] [stdout] 941 + let day = date - year * 10000 - month * 100; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bar` [INFO] [stdout] --> src/main.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | fn on_bar(&mut self, bar: qafetch::BAR) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bar` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/qaaccount.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | order_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `realorder_id` [INFO] [stdout] --> src/qaaccount.rs:856:9 [INFO] [stdout] | [INFO] [stdout] 856 | realorder_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_realorder_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:980:17 [INFO] [stdout] | [INFO] [stdout] 980 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:991:17 [INFO] [stdout] | [INFO] [stdout] 991 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:999:17 [INFO] [stdout] | [INFO] [stdout] 999 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:1014:17 [INFO] [stdout] | [INFO] [stdout] 1014 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaaccount.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | let mut acc = Self { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create` [INFO] [stdout] --> src/main.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn create() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init` [INFO] [stdout] --> src/main.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn init(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `on_bar` [INFO] [stdout] --> src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn on_bar(&mut self, bar: qafetch::BAR) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/main.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn run(&mut self) {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `day_open` [INFO] [stdout] --> src/main.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn day_open(&mut self) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `day_close` [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn day_close(&mut self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `on_backtest_close` [INFO] [stdout] --> src/main.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn on_backtest_close(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `init_hold` [INFO] [stdout] --> src/qaaccount.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | init_hold: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_t0` [INFO] [stdout] --> src/qaaccount.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | allow_t0: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_sellopen` [INFO] [stdout] --> src/qaaccount.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | allow_sellopen: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_margin` [INFO] [stdout] --> src/qaaccount.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | allow_margin: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `auto_reload` [INFO] [stdout] --> src/qaaccount.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | auto_reload: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `market_preset` [INFO] [stdout] --> src/qaaccount.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | market_preset: MarketPreset, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `commission_ratio` [INFO] [stdout] --> src/qaaccount.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | commission_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tax_ratio` [INFO] [stdout] --> src/qaaccount.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | tax_ratio: f64, // tax for qaaccount [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/qadata.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `message` [INFO] [stdout] --> src/qaposition.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | pub(crate) fn message(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `WithdrawQuota` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub WithdrawQuota: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `withdraw_quota` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_codeSubscribed` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:518:12 [INFO] [stdout] | [INFO] [stdout] 518 | pub fn get_codeSubscribed(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_code_subscribed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `codeSub` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:524:17 [INFO] [stdout] | [INFO] [stdout] 524 | let mut codeSub = vec![]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `code_sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 66 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 56s [INFO] running `Command { std: "docker" "inspect" "98f0272754015b92f6a8c341df3700f69cc6d9f791b9d974317b42889513c991", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98f0272754015b92f6a8c341df3700f69cc6d9f791b9d974317b42889513c991", kill_on_drop: false }` [INFO] [stdout] 98f0272754015b92f6a8c341df3700f69cc6d9f791b9d974317b42889513c991 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35ec3e067a3c9806ebee89b6df13d05351e59537fe2ffb3ce9e3940b7538ed42 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "35ec3e067a3c9806ebee89b6df13d05351e59537fe2ffb3ce9e3940b7538ed42", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::f64::NAN` [INFO] [stdout] --> src/indicators/moving_average.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::NAN; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/qaaccount.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qaaccount.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::ParseError` [INFO] [stdout] --> src/qaaccount.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::format::ParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, `NaiveDateTime`, `NaiveDate`, `NaiveTime` [INFO] [stdout] --> src/qaaccount.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, FixedOffset, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/qaaccount.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodePreset` [INFO] [stdout] --> src/qaaccount.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::market_preset::{CodePreset, MarketPreset}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaposition` [INFO] [stdout] --> src/qaaccount.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::qaposition; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account_info` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct account_info { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AccountInfo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct account { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct QA_Account { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `QaAccount` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/qaaccount.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | #[warn(non_camel_case_types)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 886 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 886 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:959:23 [INFO] [stdout] | [INFO] [stdout] 959 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 959 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 959 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::array` [INFO] [stdout] --> src/qadata.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::array; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/qafetch.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qafetch.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/qafetch.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaorder::QAOrder` [INFO] [stdout] --> src/qaposition.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::qaorder::QAOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Frozen` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct QA_Frozen { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `QaFrozen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Postions` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct QA_Postions { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `QaPostions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:237:33 [INFO] [stdout] | [INFO] [stdout] 237 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 237 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 237 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:240:34 [INFO] [stdout] | [INFO] [stdout] 240 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 240 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 240 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:246:33 [INFO] [stdout] | [INFO] [stdout] 246 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 246 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 246 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:249:34 [INFO] [stdout] | [INFO] [stdout] 249 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 249 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 249 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Offset` [INFO] [stdout] --> src/transaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{DateTime, Offset, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/transaction.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, `NaiveDateTime`, `NaiveDate`, `NaiveTime` [INFO] [stdout] --> src/qaperformance.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, FixedOffset, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::ParseError` [INFO] [stdout] --> src/qaperformance.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::format::ParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QAPerformance_Single` should have an upper camel case name [INFO] [stdout] --> src/qaperformance.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct QAPerformance_Single { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `QaperformanceSingle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/trade_date.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/trade_date.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quantaxis-rs v0.3.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/trade_date.rs:941:19 [INFO] [stdout] | [INFO] [stdout] 941 | let day = (date - year * 10000 - month * 100); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 941 - let day = (date - year * 10000 - month * 100); [INFO] [stdout] 941 + let day = date - year * 10000 - month * 100; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 42 | prev => (input - prev).abs(), [INFO] [stdout] | ---- matches any value [INFO] [stdout] 43 | _ => 0.0 [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 64 | prev => (input - prev).abs(), [INFO] [stdout] | ---- matches any value [INFO] [stdout] 65 | _ => 0.0 [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 86 | prev_close => { [INFO] [stdout] | ---------- matches any value [INFO] [stdout] ... [INFO] [stdout] 92 | _ => bar.high() - bar.low(), [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 109 | prev_close => { [INFO] [stdout] | ---------- matches any value [INFO] [stdout] ... [INFO] [stdout] 115 | _ => bar.high() - bar.low(), [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/qaaccount.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | order_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `realorder_id` [INFO] [stdout] --> src/qaaccount.rs:856:9 [INFO] [stdout] | [INFO] [stdout] 856 | realorder_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_realorder_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:980:17 [INFO] [stdout] | [INFO] [stdout] 980 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:991:17 [INFO] [stdout] | [INFO] [stdout] 991 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:999:17 [INFO] [stdout] | [INFO] [stdout] 999 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:1014:17 [INFO] [stdout] | [INFO] [stdout] 1014 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaaccount.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | let mut acc = Self { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `init_hold` [INFO] [stdout] --> src/qaaccount.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | init_hold: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_t0` [INFO] [stdout] --> src/qaaccount.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | allow_t0: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_sellopen` [INFO] [stdout] --> src/qaaccount.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | allow_sellopen: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_margin` [INFO] [stdout] --> src/qaaccount.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | allow_margin: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `auto_reload` [INFO] [stdout] --> src/qaaccount.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | auto_reload: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `market_preset` [INFO] [stdout] --> src/qaaccount.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | market_preset: MarketPreset, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `commission_ratio` [INFO] [stdout] --> src/qaaccount.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | commission_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tax_ratio` [INFO] [stdout] --> src/qaaccount.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | tax_ratio: f64, // tax for qaaccount [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/qadata.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `message` [INFO] [stdout] --> src/qaposition.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | pub(crate) fn message(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `length` [INFO] [stdout] --> src/indicators/average_true_range.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | length: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `AverageTrueRange` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/indicators/average_true_range.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `WithdrawQuota` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub WithdrawQuota: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `withdraw_quota` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_codeSubscribed` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:518:12 [INFO] [stdout] | [INFO] [stdout] 518 | pub fn get_codeSubscribed(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_code_subscribed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `codeSub` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:524:17 [INFO] [stdout] | [INFO] [stdout] 524 | let mut codeSub = vec![]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `code_sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 59 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ReaderBuilder`, `WriterBuilder` [INFO] [stdout] --> src/main.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use csv::{ReaderBuilder, WriterBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `array`, `stack` [INFO] [stdout] --> src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use ndarray::{array, stack}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::prelude::*` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use ndarray::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stopwatch::Stopwatch` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use stopwatch::Stopwatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/qaaccount.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qaaccount.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::ParseError` [INFO] [stdout] --> src/qaaccount.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::format::ParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, `NaiveDateTime`, `NaiveDate`, `NaiveTime` [INFO] [stdout] --> src/qaaccount.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, FixedOffset, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/qaaccount.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodePreset` [INFO] [stdout] --> src/qaaccount.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::market_preset::{CodePreset, MarketPreset}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaposition` [INFO] [stdout] --> src/qaaccount.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::qaposition; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account_info` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct account_info { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AccountInfo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct account { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct QA_Account { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `QaAccount` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/qaaccount.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | #[warn(non_camel_case_types)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 886 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 886 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:959:23 [INFO] [stdout] | [INFO] [stdout] 959 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 959 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 959 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::array` [INFO] [stdout] --> src/qadata.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::array; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/qafetch.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qafetch.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/qafetch.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaorder::QAOrder` [INFO] [stdout] --> src/qaposition.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::qaorder::QAOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Frozen` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct QA_Frozen { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `QaFrozen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Postions` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct QA_Postions { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `QaPostions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:237:33 [INFO] [stdout] | [INFO] [stdout] 237 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 237 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 237 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:240:34 [INFO] [stdout] | [INFO] [stdout] 240 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 240 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 240 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:246:33 [INFO] [stdout] | [INFO] [stdout] 246 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 246 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 246 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:249:34 [INFO] [stdout] | [INFO] [stdout] 249 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 249 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 249 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Offset` [INFO] [stdout] --> src/transaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{DateTime, Offset, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/transaction.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/trade_date.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/trade_date.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/trade_date.rs:941:19 [INFO] [stdout] | [INFO] [stdout] 941 | let day = (date - year * 10000 - month * 100); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 941 - let day = (date - year * 10000 - month * 100); [INFO] [stdout] 941 + let day = date - year * 10000 - month * 100; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bar` [INFO] [stdout] --> src/main.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | fn on_bar(&mut self, bar: qafetch::BAR) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bar` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/qaaccount.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | order_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `realorder_id` [INFO] [stdout] --> src/qaaccount.rs:856:9 [INFO] [stdout] | [INFO] [stdout] 856 | realorder_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_realorder_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:980:17 [INFO] [stdout] | [INFO] [stdout] 980 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:991:17 [INFO] [stdout] | [INFO] [stdout] 991 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:999:17 [INFO] [stdout] | [INFO] [stdout] 999 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:1014:17 [INFO] [stdout] | [INFO] [stdout] 1014 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaaccount.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | let mut acc = Self { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create` [INFO] [stdout] --> src/main.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn create() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init` [INFO] [stdout] --> src/main.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn init(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `on_bar` [INFO] [stdout] --> src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn on_bar(&mut self, bar: qafetch::BAR) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/main.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn run(&mut self) {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `day_open` [INFO] [stdout] --> src/main.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn day_open(&mut self) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `day_close` [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn day_close(&mut self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `on_backtest_close` [INFO] [stdout] --> src/main.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn on_backtest_close(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `init_hold` [INFO] [stdout] --> src/qaaccount.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | init_hold: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_t0` [INFO] [stdout] --> src/qaaccount.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | allow_t0: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_sellopen` [INFO] [stdout] --> src/qaaccount.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | allow_sellopen: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_margin` [INFO] [stdout] --> src/qaaccount.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | allow_margin: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `auto_reload` [INFO] [stdout] --> src/qaaccount.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | auto_reload: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `market_preset` [INFO] [stdout] --> src/qaaccount.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | market_preset: MarketPreset, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `commission_ratio` [INFO] [stdout] --> src/qaaccount.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | commission_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tax_ratio` [INFO] [stdout] --> src/qaaccount.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | tax_ratio: f64, // tax for qaaccount [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/qadata.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `message` [INFO] [stdout] --> src/qaposition.rs:79:19 [INFO] [stdout] | [INFO] [stdout] 79 | pub(crate) fn message(&self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `WithdrawQuota` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub WithdrawQuota: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `withdraw_quota` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_codeSubscribed` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:518:12 [INFO] [stdout] | [INFO] [stdout] 518 | pub fn get_codeSubscribed(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_code_subscribed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `codeSub` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:524:17 [INFO] [stdout] | [INFO] [stdout] 524 | let mut codeSub = vec![]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `code_sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 66 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> examples/qadata.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> examples/t01b2D.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max`, `min` [INFO] [stdout] --> examples/t01b2D.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `array`, `stack` [INFO] [stdout] --> examples/t01b2D.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use ndarray::{array, stack}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `indicators`, `qadata`, `qaindicator`, `qaposition`, `transaction` [INFO] [stdout] --> examples/t01b2D.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | indicators, Next, qaaccount, qadata, qafetch, qaindicator, qaposition, transaction, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BollingerBands`, `EfficiencyRatio`, `ExponentialMovingAverage`, `FastStochastic`, `Maximum`, `Minimum`, `MoneyFlowIndex`, `MovingAverageConvergenceDivergence`, `OnBalanceVolume`, `RateOfChange`, `RelativeStrengthIndex`, `SimpleMovingAverage`, `SlowStochastic`, `StandardDeviation`, `TrueRange` [INFO] [stdout] --> examples/t01b2D.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | BollingerBands, EfficiencyRatio, ExponentialMovingAverage, FastStochastic, HHV, LLV, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | Maximum, Minimum, MoneyFlowIndex, MovingAverage, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 22 | MovingAverageConvergenceDivergence, OnBalanceVolume, RateOfChange, RelativeStrengthIndex, SimpleMovingAverage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | SlowStochastic, StandardDeviation, TrueRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quantaxis_rs::qaposition::QA_Postions` [INFO] [stdout] --> examples/t01b2D.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use quantaxis_rs::qaposition::QA_Postions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> examples/t01b2D.rs:163:28 [INFO] [stdout] | [INFO] [stdout] 163 | stopLine = (HAE * (1.0 - TrailingStop1 / 1000.0)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 163 - stopLine = (HAE * (1.0 - TrailingStop1 / 1000.0)); [INFO] [stdout] 163 + stopLine = HAE * (1.0 - TrailingStop1 / 1000.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> examples/t01b2D.rs:191:28 [INFO] [stdout] | [INFO] [stdout] 191 | stopLine = (LAE * (1.0 + TrailingStop1 / 1000.0)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 191 - stopLine = (LAE * (1.0 + TrailingStop1 / 1000.0)); [INFO] [stdout] 191 + stopLine = LAE * (1.0 + TrailingStop1 / 1000.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime::Builder` [INFO] [stdout] --> examples/asynctest.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::runtime::Builder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::oneshot` [INFO] [stdout] --> examples/asynctest.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::sync::oneshot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::task` [INFO] [stdout] --> examples/asynctest.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use tokio::task; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> examples/asynctest.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> examples/asynctest.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> examples/asynctest.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex` [INFO] [stdout] --> examples/asynctest.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime` [INFO] [stdout] --> examples/asynctest.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `some_computation` [INFO] [stdout] --> examples/asynctest.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | async fn some_computation() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_traits::real::Real` [INFO] [stdout] --> examples/qadata.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use num_traits::real::Real; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> examples/t01b2.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `max`, `min` [INFO] [stdout] --> examples/t01b2.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | use std::cmp::{max, min}; [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `array`, `stack` [INFO] [stdout] --> examples/t01b2.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | use ndarray::{array, stack}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `indicators`, `qadata`, `qaindicator`, `qaposition`, `transaction` [INFO] [stdout] --> examples/t01b2.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | indicators, Next, qaaccount, qadata, qafetch, qaindicator, qaposition, transaction, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BollingerBands`, `EfficiencyRatio`, `ExponentialMovingAverage`, `FastStochastic`, `Maximum`, `Minimum`, `MoneyFlowIndex`, `MovingAverageConvergenceDivergence`, `OnBalanceVolume`, `RateOfChange`, `RelativeStrengthIndex`, `SimpleMovingAverage`, `SlowStochastic`, `StandardDeviation`, `TrueRange` [INFO] [stdout] --> examples/t01b2.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | BollingerBands, EfficiencyRatio, ExponentialMovingAverage, FastStochastic, HHV, LLV, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 21 | Maximum, Minimum, MoneyFlowIndex, MovingAverage, [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] 22 | MovingAverageConvergenceDivergence, OnBalanceVolume, RateOfChange, RelativeStrengthIndex, SimpleMovingAverage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 23 | SlowStochastic, StandardDeviation, TrueRange, [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> examples/x2.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `quantaxis_rs::qaposition::QA_Postions` [INFO] [stdout] --> examples/t01b2.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use quantaxis_rs::qaposition::QA_Postions; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> examples/t01b2.rs:165:28 [INFO] [stdout] | [INFO] [stdout] 165 | stopLine = (HAE * (1.0 - TrailingStop1 / 1000.0)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 165 - stopLine = (HAE * (1.0 - TrailingStop1 / 1000.0)); [INFO] [stdout] 165 + stopLine = HAE * (1.0 - TrailingStop1 / 1000.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> examples/t01b2.rs:168:16 [INFO] [stdout] | [INFO] [stdout] 168 | if (crossUnder && cond2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - if (crossUnder && cond2) { [INFO] [stdout] 168 + if crossUnder && cond2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> examples/t01b2.rs:177:23 [INFO] [stdout] | [INFO] [stdout] 177 | } else if (bar.low < stopLine) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 177 - } else if (bar.low < stopLine) { [INFO] [stdout] 177 + } else if bar.low < stopLine { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> examples/t01b2.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 188 | if (short_pos > 0.0 && long_pos == 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 188 - if (short_pos > 0.0 && long_pos == 0.0) { [INFO] [stdout] 188 + if short_pos > 0.0 && long_pos == 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> examples/t01b2.rs:192:16 [INFO] [stdout] | [INFO] [stdout] 192 | if (LAE >= (acc.get_open_price_short(code) * (1.0 - TrailingStart1 / 1000.0) as f64) [INFO] [stdout] | ^ [INFO] [stdout] 193 | && bar_id - count1 >= 1) [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 ~ if LAE >= (acc.get_open_price_short(code) * (1.0 - TrailingStart1 / 1000.0) as f64) [INFO] [stdout] 193 ~ && bar_id - count1 >= 1 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> examples/t01b2.rs:195:28 [INFO] [stdout] | [INFO] [stdout] 195 | stopLine = (LAE * (1.0 + TrailingStop1 / 1000.0)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 195 - stopLine = (LAE * (1.0 + TrailingStop1 / 1000.0)); [INFO] [stdout] 195 + stopLine = LAE * (1.0 + TrailingStop1 / 1000.0); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> examples/t01b2.rs:205:23 [INFO] [stdout] | [INFO] [stdout] 205 | } else if (bar.high >= stopLine) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 205 - } else if (bar.high >= stopLine) { [INFO] [stdout] 205 + } else if bar.high >= stopLine { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> examples/t01b2.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 215 | if (short_pos == 0.0 && long_pos == 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 215 - if (short_pos == 0.0 && long_pos == 0.0) { [INFO] [stdout] 215 + if short_pos == 0.0 && long_pos == 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> examples/x2.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> examples/x2.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc`, `Mutex` [INFO] [stdout] --> examples/x2.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime` [INFO] [stdout] --> examples/x2.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use tokio::runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime::Builder` [INFO] [stdout] --> examples/x2.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::runtime::Builder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::oneshot` [INFO] [stdout] --> examples/x2.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::sync::oneshot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime::Builder` [INFO] [stdout] --> examples/x1.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use tokio::runtime::Builder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::oneshot` [INFO] [stdout] --> examples/x1.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::sync::oneshot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> examples/x1.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> examples/x1.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> examples/x1.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::runtime` [INFO] [stdout] --> examples/x1.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use tokio::runtime; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::DerefMut` [INFO] [stdout] --> examples/x1.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `priceoffset` [INFO] [stdout] --> examples/t01b2D.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let priceoffset = 1; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_priceoffset` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count1` [INFO] [stdout] --> examples/t01b2D.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let count1 = 0; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_count1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ind_llv` [INFO] [stdout] --> examples/t01b2D.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let ind_llv = llv_i.next(bar.low); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ind_llv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ind_hhv` [INFO] [stdout] --> examples/t01b2D.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let ind_hhv = hhv_i.next(bar.high); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ind_hhv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ind_ma` [INFO] [stdout] --> examples/t01b2D.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let ind_ma = ma.next(bar.open); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ind_ma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc` [INFO] [stdout] --> examples/x2.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 41 | let (acc, code) = join.await.unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_acc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code` [INFO] [stdout] --> examples/x2.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | let (acc, code) = join.await.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc2` [INFO] [stdout] --> examples/x2.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | let (acc2, code2) = join2.await.unwrap(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_acc2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `code2` [INFO] [stdout] --> examples/x2.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | let (acc2, code2) = join2.await.unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_code2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `some_computation` [INFO] [stdout] --> examples/x2.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | async fn some_computation() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `t01b2D` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `t01b2_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order` [INFO] [stdout] --> examples/x1.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let order = acc_mut.send_order_async(&code, 10.0, "2020-01-20 22:10:00", 2, 3500.0, "BUY_OPEN"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_order` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lossP` should have a snake case name [INFO] [stdout] --> examples/t01b2D.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let lossP = 1.3; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `loss_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `K1` should have a snake case name [INFO] [stdout] --> examples/t01b2D.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let K1: usize = 20; [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `k1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `K2` should have a snake case name [INFO] [stdout] --> examples/t01b2D.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let K2: usize = 20; [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `k2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HAE` should have a snake case name [INFO] [stdout] --> examples/t01b2D.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut HAE: f64 = 0 as f64; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `hae` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `LAE` should have a snake case name [INFO] [stdout] --> examples/t01b2D.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut LAE: f64 = 0 as f64; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `lae` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TrailingStart1` should have a snake case name [INFO] [stdout] --> examples/t01b2D.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let TrailingStart1 = 90.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `trailing_start1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TrailingStop1` should have a snake case name [INFO] [stdout] --> examples/t01b2D.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let TrailingStop1 = 10.0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `trailing_stop1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `crossOver` should have a snake case name [INFO] [stdout] --> examples/t01b2D.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | let crossOver = bar.high > hhv_i.cached[K1 - 2] && lastbar.high < hhv_i.cached[K1 - 2]; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `cross_over` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `crossUnder` should have a snake case name [INFO] [stdout] --> examples/t01b2D.rs:110:13 [INFO] [stdout] | [INFO] [stdout] 110 | let crossUnder = bar.low < llv_i.cached[K2 - 2] && lastbar.low > llv_i.cached[K2 - 2]; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `cross_under` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2D.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | / acc.buy_open( [INFO] [stdout] 140 | | bar.code.as_ref(), [INFO] [stdout] 141 | | 10.0, [INFO] [stdout] 142 | | bar.datetime.as_ref(), [INFO] [stdout] 143 | | compare_max(bar.open, hhv_i.cached[K1 - 2]), [INFO] [stdout] 144 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2D.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | / acc.sell_open( [INFO] [stdout] 147 | | bar.code.as_ref(), [INFO] [stdout] 148 | | 10.0, [INFO] [stdout] 149 | | bar.datetime.as_ref(), [INFO] [stdout] 150 | | compare_min(bar.open, llv_i.cached[K2 - 2]), [INFO] [stdout] 151 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stopLine` should have a snake case name [INFO] [stdout] --> examples/t01b2D.rs:157:21 [INFO] [stdout] | [INFO] [stdout] 157 | let mut stopLine: f64 = acc.get_open_price_long(code) * (100.0 - lossP) / 100.0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `stop_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2D.rs:168:17 [INFO] [stdout] | [INFO] [stdout] 168 | / acc.sell_close( [INFO] [stdout] 169 | | code, [INFO] [stdout] 170 | | 10.0, [INFO] [stdout] 171 | | bar.datetime.as_ref(), [INFO] [stdout] 172 | | compare_min(bar.open, llv_i.cached[K2 - 2]), [INFO] [stdout] 173 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2D.rs:176:17 [INFO] [stdout] | [INFO] [stdout] 176 | / acc.sell_close( [INFO] [stdout] 177 | | code, [INFO] [stdout] 178 | | 10.0, [INFO] [stdout] 179 | | bar.datetime.as_ref(), [INFO] [stdout] 180 | | compare_min(bar.open, stopLine), [INFO] [stdout] 181 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stopLine` should have a snake case name [INFO] [stdout] --> examples/t01b2D.rs:186:21 [INFO] [stdout] | [INFO] [stdout] 186 | let mut stopLine: f64 = acc.get_open_price_short(code) * (100.0 + lossP) / 100.0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `stop_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2D.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | / acc.buy_close( [INFO] [stdout] 196 | | code, [INFO] [stdout] 197 | | 10.0, [INFO] [stdout] 198 | | bar.datetime.as_ref(), [INFO] [stdout] 199 | | compare_max(bar.open, hhv_i.cached[K1 - 2]), [INFO] [stdout] 200 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2D.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | / acc.buy_close( [INFO] [stdout] 206 | | code, [INFO] [stdout] 207 | | 10.0, [INFO] [stdout] 208 | | bar.datetime.as_ref(), [INFO] [stdout] 209 | | compare_max(bar.open, stopLine), [INFO] [stdout] 210 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2D.rs:229:5 [INFO] [stdout] | [INFO] [stdout] 229 | acc.to_csv(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/x1.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mut ac1= ac.clone(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `some_computation` [INFO] [stdout] --> examples/x1.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | async fn some_computation() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `priceoffset` [INFO] [stdout] --> examples/t01b2.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let priceoffset = 2; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_priceoffset` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ind_llv` [INFO] [stdout] --> examples/t01b2.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let ind_llv = llv_i.next(bar.low); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ind_llv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ind_hhv` [INFO] [stdout] --> examples/t01b2.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | let ind_hhv = hhv_i.next(bar.high); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ind_hhv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ind_ma` [INFO] [stdout] --> examples/t01b2.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let ind_ma = ma.next(bar.open); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ind_ma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `lossP` should have a snake case name [INFO] [stdout] --> examples/t01b2.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let lossP = 1.3; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `loss_p` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `K1` should have a snake case name [INFO] [stdout] --> examples/t01b2.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let K1: usize = 20; [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `k1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `K2` should have a snake case name [INFO] [stdout] --> examples/t01b2.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let K2: usize = 20; [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `k2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `HAE` should have a snake case name [INFO] [stdout] --> examples/t01b2.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let mut HAE: f64 = 0 as f64; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `hae` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `LAE` should have a snake case name [INFO] [stdout] --> examples/t01b2.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let mut LAE: f64 = 0 as f64; [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `lae` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TrailingStart1` should have a snake case name [INFO] [stdout] --> examples/t01b2.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let TrailingStart1 = 90.0; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `trailing_start1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TrailingStop1` should have a snake case name [INFO] [stdout] --> examples/t01b2.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let TrailingStop1 = 10.0; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `trailing_stop1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `crossOver` should have a snake case name [INFO] [stdout] --> examples/t01b2.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | let crossOver = bar.high > hhv_i.cached[K1 - 2] && lastbar.high < hhv_i.cached[K1 - 2]; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `cross_over` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `crossUnder` should have a snake case name [INFO] [stdout] --> examples/t01b2.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | let crossUnder = bar.low < llv_i.cached[K2 - 2] && lastbar.low > llv_i.cached[K2 - 2]; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `cross_under` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | / acc.buy_open( [INFO] [stdout] 136 | | bar.code.as_ref(), [INFO] [stdout] 137 | | 90.0, [INFO] [stdout] 138 | | bar.datetime.as_ref(), [INFO] [stdout] 139 | | compare_max(bar.open, hhv_i.cached[K1 - 2]), [INFO] [stdout] 140 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | / acc.sell_open( [INFO] [stdout] 147 | | bar.code.as_ref(), [INFO] [stdout] 148 | | 90.0, [INFO] [stdout] 149 | | bar.datetime.as_ref(), [INFO] [stdout] 150 | | compare_min(bar.open, llv_i.cached[K2 - 2]), [INFO] [stdout] 151 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stopLine` should have a snake case name [INFO] [stdout] --> examples/t01b2.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | let mut stopLine: f64 = acc.get_open_price_long(code) * (100.0 - lossP) / 100.0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `stop_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2.rs:171:17 [INFO] [stdout] | [INFO] [stdout] 171 | / acc.sell_close( [INFO] [stdout] 172 | | code, [INFO] [stdout] 173 | | 90.0, [INFO] [stdout] 174 | | bar.datetime.as_ref(), [INFO] [stdout] 175 | | compare_min(bar.open, llv_i.cached[K2 - 2]), [INFO] [stdout] 176 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2.rs:180:17 [INFO] [stdout] | [INFO] [stdout] 180 | / acc.sell_close( [INFO] [stdout] 181 | | code, [INFO] [stdout] 182 | | 90.0, [INFO] [stdout] 183 | | bar.datetime.as_ref(), [INFO] [stdout] 184 | | compare_min(bar.open, stopLine), [INFO] [stdout] 185 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `stopLine` should have a snake case name [INFO] [stdout] --> examples/t01b2.rs:190:21 [INFO] [stdout] | [INFO] [stdout] 190 | let mut stopLine: f64 = acc.get_open_price_short(code) * (100.0 + lossP) / 100.0; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `stop_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2.rs:199:17 [INFO] [stdout] | [INFO] [stdout] 199 | / acc.buy_close( [INFO] [stdout] 200 | | code, [INFO] [stdout] 201 | | 90.0, [INFO] [stdout] 202 | | bar.datetime.as_ref(), [INFO] [stdout] 203 | | compare_max(bar.open, hhv_i.cached[K1 - 2]), [INFO] [stdout] 204 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2.rs:207:17 [INFO] [stdout] | [INFO] [stdout] 207 | / acc.buy_close( [INFO] [stdout] 208 | | code, [INFO] [stdout] 209 | | 90.0, [INFO] [stdout] 210 | | bar.datetime.as_ref(), [INFO] [stdout] 211 | | compare_max(bar.open, stopLine), [INFO] [stdout] 212 | | ); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/t01b2.rs:235:5 [INFO] [stdout] | [INFO] [stdout] 235 | acc.to_csv(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ReaderBuilder`, `WriterBuilder` [INFO] [stdout] --> src/main.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | use csv::{ReaderBuilder, WriterBuilder}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `array`, `stack` [INFO] [stdout] --> src/main.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | use ndarray::{array, stack}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::prelude::*` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use ndarray::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stopwatch::Stopwatch` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use stopwatch::Stopwatch; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/qaaccount.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qaaccount.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::ParseError` [INFO] [stdout] --> src/qaaccount.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::format::ParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, `NaiveDateTime`, `NaiveDate`, `NaiveTime` [INFO] [stdout] --> src/qaaccount.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, FixedOffset, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/qaaccount.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodePreset` [INFO] [stdout] --> src/qaaccount.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::market_preset::{CodePreset, MarketPreset}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaposition` [INFO] [stdout] --> src/qaaccount.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::qaposition; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account_info` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct account_info { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AccountInfo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct account { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct QA_Account { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `QaAccount` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/qaaccount.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | #[warn(non_camel_case_types)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 886 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 886 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:959:23 [INFO] [stdout] | [INFO] [stdout] 959 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 959 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 959 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::array` [INFO] [stdout] --> src/qadata.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::array; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/qafetch.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qafetch.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/qafetch.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaorder::QAOrder` [INFO] [stdout] --> src/qaposition.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::qaorder::QAOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Frozen` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct QA_Frozen { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `QaFrozen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Postions` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct QA_Postions { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `QaPostions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:237:33 [INFO] [stdout] | [INFO] [stdout] 237 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 237 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 237 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:240:34 [INFO] [stdout] | [INFO] [stdout] 240 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 240 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 240 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:246:33 [INFO] [stdout] | [INFO] [stdout] 246 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 246 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 246 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:249:34 [INFO] [stdout] | [INFO] [stdout] 249 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 249 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 249 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Offset` [INFO] [stdout] --> src/transaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{DateTime, Offset, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/transaction.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/trade_date.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/trade_date.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/trade_date.rs:941:19 [INFO] [stdout] | [INFO] [stdout] 941 | let day = (date - year * 10000 - month * 100); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 941 - let day = (date - year * 10000 - month * 100); [INFO] [stdout] 941 + let day = date - year * 10000 - month * 100; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaaccount::QA_Account` [INFO] [stdout] --> src/trade_date.rs:1044:9 [INFO] [stdout] | [INFO] [stdout] 1044 | use crate::qaaccount::QA_Account; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f64::NAN` [INFO] [stdout] --> src/indicators/moving_average.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::f64::NAN; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `test_indicator` [INFO] [stdout] --> src/indicators/money_flow_index.rs:153:18 [INFO] [stdout] | [INFO] [stdout] 153 | macro_rules! test_indicator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/qaaccount.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qaaccount.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::ParseError` [INFO] [stdout] --> src/qaaccount.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use chrono::format::ParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, `NaiveDateTime`, `NaiveDate`, `NaiveTime` [INFO] [stdout] --> src/qaaccount.rs:7:14 [INFO] [stdout] | [INFO] [stdout] 7 | use chrono::{DateTime, FixedOffset, Local, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/qaaccount.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CodePreset` [INFO] [stdout] --> src/qaaccount.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::market_preset::{CodePreset, MarketPreset}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaposition` [INFO] [stdout] --> src/qaaccount.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::qaposition; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account_info` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct account_info { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper camel case: `AccountInfo` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct account { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Account` should have an upper camel case name [INFO] [stdout] --> src/qaaccount.rs:105:12 [INFO] [stdout] | [INFO] [stdout] 105 | pub struct QA_Account { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `QaAccount` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/qaaccount.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | #[warn(non_camel_case_types)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:886:23 [INFO] [stdout] | [INFO] [stdout] 886 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 886 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 886 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaaccount.rs:959:23 [INFO] [stdout] | [INFO] [stdout] 959 | self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 959 - self.money -= (margin - close_profit + commission + tax); [INFO] [stdout] 959 + self.money -= margin - close_profit + commission + tax; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::array` [INFO] [stdout] --> src/qadata.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ndarray::array; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/qafetch.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/qafetch.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/qafetch.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaorder::QAOrder` [INFO] [stdout] --> src/qaposition.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::qaorder::QAOrder; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Frozen` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct QA_Frozen { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `QaFrozen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QA_Postions` should have an upper camel case name [INFO] [stdout] --> src/qaposition.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct QA_Postions { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `QaPostions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:237:33 [INFO] [stdout] | [INFO] [stdout] 237 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 237 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 237 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:240:34 [INFO] [stdout] | [INFO] [stdout] 240 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 240 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 240 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:246:33 [INFO] [stdout] | [INFO] [stdout] 246 | self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 246 - self.volume_long_his += (self.volume_long_today + self.volume_long_frozen_today); [INFO] [stdout] 246 + self.volume_long_his += self.volume_long_today + self.volume_long_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/qaposition.rs:249:34 [INFO] [stdout] | [INFO] [stdout] 249 | self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 249 - self.volume_short_his += (self.volume_short_today + self.volume_short_frozen_today); [INFO] [stdout] 249 + self.volume_short_his += self.volume_short_today + self.volume_short_frozen_today; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `Offset` [INFO] [stdout] --> src/transaction.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{DateTime, Offset, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::to_string` [INFO] [stdout] --> src/transaction.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use serde_json::to_string; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `FixedOffset`, `NaiveDateTime`, `NaiveDate`, `NaiveTime` [INFO] [stdout] --> src/qaperformance.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, FixedOffset, NaiveDate, NaiveDateTime, NaiveTime, TimeZone, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::format::ParseError` [INFO] [stdout] --> src/qaperformance.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::format::ParseError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `QAPerformance_Single` should have an upper camel case name [INFO] [stdout] --> src/qaperformance.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct QAPerformance_Single { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `QaperformanceSingle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/trade_date.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Index` [INFO] [stdout] --> src/trade_date.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Index; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/trade_date.rs:941:19 [INFO] [stdout] | [INFO] [stdout] 941 | let day = (date - year * 10000 - month * 100); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 941 - let day = (date - year * 10000 - month * 100); [INFO] [stdout] 941 + let day = date - year * 10000 - month * 100; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::qaaccount::QA_Account` [INFO] [stdout] --> src/trade_date.rs:1044:9 [INFO] [stdout] | [INFO] [stdout] 1044 | use crate::qaaccount::QA_Account; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bar` [INFO] [stdout] --> src/main.rs:37:26 [INFO] [stdout] | [INFO] [stdout] 37 | fn on_bar(&mut self, bar: qafetch::BAR) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bar` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/qaaccount.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | order_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `realorder_id` [INFO] [stdout] --> src/qaaccount.rs:856:9 [INFO] [stdout] | [INFO] [stdout] 856 | realorder_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_realorder_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:980:17 [INFO] [stdout] | [INFO] [stdout] 980 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:991:17 [INFO] [stdout] | [INFO] [stdout] 991 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:999:17 [INFO] [stdout] | [INFO] [stdout] 999 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:1014:17 [INFO] [stdout] | [INFO] [stdout] 1014 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc` [INFO] [stdout] --> src/qaaccount.rs:1001:17 [INFO] [stdout] | [INFO] [stdout] 1001 | let mut acc = QA_Account::new("RustT01B2_RBL8", "test", "admin", 100000.0, false, "real"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_acc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/qaaccount.rs:1276:13 [INFO] [stdout] | [INFO] [stdout] 1276 | let slice = acc.get_qifi_slice(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/qaaccount.rs:1295:13 [INFO] [stdout] | [INFO] [stdout] 1295 | let slice = acc.get_qifi_slice(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaaccount.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | let mut acc = Self { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaaccount.rs:991:13 [INFO] [stdout] | [INFO] [stdout] 991 | let mut acc = QA_Account::new( [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaaccount.rs:1001:13 [INFO] [stdout] | [INFO] [stdout] 1001 | let mut acc = QA_Account::new("RustT01B2_RBL8", "test", "admin", 100000.0, false, "real"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:466:13 [INFO] [stdout] | [INFO] [stdout] 466 | let mut pos = QA_Postions::new( [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:481:13 [INFO] [stdout] | [INFO] [stdout] 481 | let mut pos = QA_Postions::new( [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `create` [INFO] [stdout] --> src/main.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn create() -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init` [INFO] [stdout] --> src/main.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn init(&mut self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `on_bar` [INFO] [stdout] --> src/main.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn on_bar(&mut self, bar: qafetch::BAR) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/main.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn run(&mut self) {} [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `day_open` [INFO] [stdout] --> src/main.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | fn day_open(&mut self) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `day_close` [INFO] [stdout] --> src/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn day_close(&mut self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `on_backtest_close` [INFO] [stdout] --> src/main.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | fn on_backtest_close(&mut self) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `init_hold` [INFO] [stdout] --> src/qaaccount.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | init_hold: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_t0` [INFO] [stdout] --> src/qaaccount.rs:109:5 [INFO] [stdout] | [INFO] [stdout] 109 | allow_t0: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_sellopen` [INFO] [stdout] --> src/qaaccount.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | allow_sellopen: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `allow_margin` [INFO] [stdout] --> src/qaaccount.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | allow_margin: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `auto_reload` [INFO] [stdout] --> src/qaaccount.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | auto_reload: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `market_preset` [INFO] [stdout] --> src/qaaccount.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | market_preset: MarketPreset, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `commission_ratio` [INFO] [stdout] --> src/qaaccount.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | commission_ratio: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tax_ratio` [INFO] [stdout] --> src/qaaccount.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 134 | tax_ratio: f64, // tax for qaaccount [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `QA_Account` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/qaaccount.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 104 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/qadata.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `WithdrawQuota` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub WithdrawQuota: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to snake case: `withdraw_quota` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_codeSubscribed` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:518:12 [INFO] [stdout] | [INFO] [stdout] 518 | pub fn get_codeSubscribed(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `get_code_subscribed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `codeSub` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:524:17 [INFO] [stdout] | [INFO] [stdout] 524 | let mut codeSub = vec![]; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `code_sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1052:9 [INFO] [stdout] | [INFO] [stdout] 1052 | acc.buy_open(code, 10.0, "2020-01-20", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1071:9 [INFO] [stdout] | [INFO] [stdout] 1071 | acc.buy_open(code, 1000.0, "2020-01-20", 35.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1090:9 [INFO] [stdout] | [INFO] [stdout] 1090 | acc.buy_open(code, 1000.0, "2020-01-20", 35.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1109:9 [INFO] [stdout] | [INFO] [stdout] 1109 | acc.sell_open(code, 10.0, "2020-01-20", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1127:9 [INFO] [stdout] | [INFO] [stdout] 1127 | acc.sell_open(code, 10.0, "2020-01-20", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1129:9 [INFO] [stdout] | [INFO] [stdout] 1129 | acc.buy_close(code, 10.0, "2020-01-20", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1149:9 [INFO] [stdout] | [INFO] [stdout] 1149 | acc.buy_open(code, 10.0, "2020-01-20", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1151:9 [INFO] [stdout] | [INFO] [stdout] 1151 | acc.sell_close(code, 10.0, "2020-01-20", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1171:9 [INFO] [stdout] | [INFO] [stdout] 1171 | acc.buy_open(code, 1000.0, "2020-01-20", 35.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1175:9 [INFO] [stdout] | [INFO] [stdout] 1175 | acc.sell_close(code, 1000.0, "2020-01-20", 36.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1192:9 [INFO] [stdout] | [INFO] [stdout] 1192 | acc.buy(code, 10.0, "2020-01-20 22:10:00", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1203:9 [INFO] [stdout] | [INFO] [stdout] 1203 | acc.buy(code, 10.0, "2020-01-20 22:10:00", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1207:9 [INFO] [stdout] | [INFO] [stdout] 1207 | acc.sell(code, 10.0, "2020-01-22 22:10:00", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1217:9 [INFO] [stdout] | [INFO] [stdout] 1217 | acc.buy(code, 10.0, "2020-01-20 22:10:00", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1220:9 [INFO] [stdout] | [INFO] [stdout] 1220 | acc.sell(code, 10.0, "2020-01-20 22:10:00", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_accountSlice` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:1225:8 [INFO] [stdout] | [INFO] [stdout] 1225 | fn test_accountSlice() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_account_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1238:9 [INFO] [stdout] | [INFO] [stdout] 1238 | acc.buy_open(code, 10.0, "2020-01-20", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1242:9 [INFO] [stdout] | [INFO] [stdout] 1242 | acc.sell_close(code, 10.0, "2020-01-20", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_accountSlice_for_qifi` should have a snake case name [INFO] [stdout] --> src/qaaccount.rs:1252:8 [INFO] [stdout] | [INFO] [stdout] 1252 | fn test_accountSlice_for_qifi() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_account_slice_for_qifi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1257:9 [INFO] [stdout] | [INFO] [stdout] 1257 | acc.buy_open(code, 10.0, "2020-01-20 22:10:00", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1261:9 [INFO] [stdout] | [INFO] [stdout] 1261 | acc.sell_close(code, 10.0, "2020-01-20 22:10:00", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1275:9 [INFO] [stdout] | [INFO] [stdout] 1275 | acc.buy_open(code, 10.0, "2020-01-20 22:10:00", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1281:9 [INFO] [stdout] | [INFO] [stdout] 1281 | new_acc.sell_close(code, 10.0, "2020-01-20 22:10:00", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1294:9 [INFO] [stdout] | [INFO] [stdout] 1294 | acc.buy_open(code, 10.0, "2020-01-20 22:10:00", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1300:9 [INFO] [stdout] | [INFO] [stdout] 1300 | new_acc.sell_close(code, 10.0, "2020-01-20 22:10:00", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1318:9 [INFO] [stdout] | [INFO] [stdout] 1318 | acc.buy_open(code, 10.0, "2020-01-20", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1322:9 [INFO] [stdout] | [INFO] [stdout] 1322 | acc.sell_close(code, 10.0, "2020-01-20", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1345:9 [INFO] [stdout] | [INFO] [stdout] 1345 | acc.buy_open(code, 10.0, "2020-01-20", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1352:9 [INFO] [stdout] | [INFO] [stdout] 1352 | acc.sell_close(code, 10.0, "2020-01-20", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1369:9 [INFO] [stdout] | [INFO] [stdout] 1369 | acc.buy_open(code, 10.0, "2020-01-22", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1398:9 [INFO] [stdout] | [INFO] [stdout] 1398 | acc.buy_open(code, 10.0, "2020-01-20", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1404:9 [INFO] [stdout] | [INFO] [stdout] 1404 | acc.sell_close(code, 10.0, "2020-01-20", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1428:9 [INFO] [stdout] | [INFO] [stdout] 1428 | acc.buy_open(code, 10.0, "2020-01-20", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1430:9 [INFO] [stdout] | [INFO] [stdout] 1430 | acc.sell_close(code, 10.0, "2020-01-20", 3600.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1435:9 [INFO] [stdout] | [INFO] [stdout] 1435 | acc.to_csv(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/qaaccount.rs:1449:9 [INFO] [stdout] | [INFO] [stdout] 1449 | acc.buy_open("rb2005", 10.0, "2020-01-20", 3500.0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 42 | prev => (input - prev).abs(), [INFO] [stdout] | ---- matches any value [INFO] [stdout] 43 | _ => 0.0 [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 64 | prev => (input - prev).abs(), [INFO] [stdout] | ---- matches any value [INFO] [stdout] 65 | _ => 0.0 [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 86 | prev_close => { [INFO] [stdout] | ---------- matches any value [INFO] [stdout] ... [INFO] [stdout] 92 | _ => bar.high() - bar.low(), [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/indicators/true_range.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 109 | prev_close => { [INFO] [stdout] | ---------- matches any value [INFO] [stdout] ... [INFO] [stdout] 115 | _ => bar.high() - bar.low(), [INFO] [stdout] | ^ unreachable pattern [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/qaaccount.rs:723:9 [INFO] [stdout] | [INFO] [stdout] 723 | order_id: &str, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `realorder_id` [INFO] [stdout] --> src/qaaccount.rs:856:9 [INFO] [stdout] | [INFO] [stdout] 856 | realorder_id: String, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_realorder_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:980:17 [INFO] [stdout] | [INFO] [stdout] 980 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:991:17 [INFO] [stdout] | [INFO] [stdout] 991 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:999:17 [INFO] [stdout] | [INFO] [stdout] 999 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `res` is never read [INFO] [stdout] --> src/trade_date.rs:1014:17 [INFO] [stdout] | [INFO] [stdout] 1014 | let mut res = 0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc` [INFO] [stdout] --> src/qaaccount.rs:1001:17 [INFO] [stdout] | [INFO] [stdout] 1001 | let mut acc = QA_Account::new("RustT01B2_RBL8", "test", "admin", 100000.0, false, "real"); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_acc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/qaaccount.rs:1276:13 [INFO] [stdout] | [INFO] [stdout] 1276 | let slice = acc.get_qifi_slice(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `slice` [INFO] [stdout] --> src/qaaccount.rs:1295:13 [INFO] [stdout] | [INFO] [stdout] 1295 | let slice = acc.get_qifi_slice(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_slice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaaccount.rs:269:13 [INFO] [stdout] | [INFO] [stdout] 269 | let mut acc = Self { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaposition.rs:154:13 [INFO] [stdout] | [INFO] [stdout] 154 | let mut preset: CodePreset = MarketPreset::new().get(code.as_ref()); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaaccount.rs:991:13 [INFO] [stdout] | [INFO] [stdout] 991 | let mut acc = QA_Account::new( [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/qaaccount.rs:1001:13 [INFO] [stdout] | [INFO] [stdout] 1001 | let mut acc = QA_Account::new("RustT01B2_RBL8", "test", "admin", 100000.0, false, "real"); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `quantaxis-rs`; 52 warnings emitted [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `rustc --crate-name quantaxis_rs --edition=2018 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=6b06fd483e994105 -C extra-filename=-6b06fd483e994105 --out-dir /opt/rustwide/target/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern bencher=/opt/rustwide/target/debug/deps/libbencher-1be1f95ede255ab3.rlib --extern chrono=/opt/rustwide/target/debug/deps/libchrono-9604aefbf23012f9.rlib --extern csv=/opt/rustwide/target/debug/deps/libcsv-d58d78634ea0b687.rlib --extern error_chain=/opt/rustwide/target/debug/deps/liberror_chain-471d8caf98677da6.rlib --extern float_cmp=/opt/rustwide/target/debug/deps/libfloat_cmp-63a6ad08d71013cc.rlib --extern log=/opt/rustwide/target/debug/deps/liblog-8925f54ec35a9a9e.rlib --extern ndarray=/opt/rustwide/target/debug/deps/libndarray-50d96db0ede7e8dd.rlib --extern ndarray_csv=/opt/rustwide/target/debug/deps/libndarray_csv-ff4b008386fe9ea4.rlib --extern num=/opt/rustwide/target/debug/deps/libnum-6039e0288707491b.rlib --extern num_traits=/opt/rustwide/target/debug/deps/libnum_traits-ae8623994a8ecaa9.rlib --extern qifi_rs=/opt/rustwide/target/debug/deps/libqifi_rs-a11f6c5dda2191d4.rlib --extern rand=/opt/rustwide/target/debug/deps/librand-49cab21343f4ba75.rlib --extern rayon=/opt/rustwide/target/debug/deps/librayon-a5579d2f70fb45e6.rlib --extern regex=/opt/rustwide/target/debug/deps/libregex-392770fd232858ae.rlib --extern serde=/opt/rustwide/target/debug/deps/libserde-5afd0de05015452a.rlib --extern serde_derive=/opt/rustwide/target/debug/deps/libserde_derive-fa83a7e0b93a92ec.so --extern serde_json=/opt/rustwide/target/debug/deps/libserde_json-ff53fd784e2214b6.rlib --extern stopwatch=/opt/rustwide/target/debug/deps/libstopwatch-e21ef471e9d19150.rlib --extern tokio=/opt/rustwide/target/debug/deps/libtokio-3a0b4abbe5e231a9.rlib --extern tokio_util=/opt/rustwide/target/debug/deps/libtokio_util-c0890e25f57fca95.rlib --extern uuid=/opt/rustwide/target/debug/deps/libuuid-9db83e8de03e8ead.rlib --cap-lints=warn -L native=/opt/rustwide/target/debug/build/ring-b15dc38c0ef3769b/out` (signal: 9, SIGKILL: kill) [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.0.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.1.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.10.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.11.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.12.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.13.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.14.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.15.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.2.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.3.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.4.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.5.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.6.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.7.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.8.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.x2.ce426154-cgu.9.rcgu.o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238.1uq82ht94bhj9t8r.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/ring-b15dc38c0ef3769b/out" "-L" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libquantaxis_rs-98bb56580f3ed3f5.rlib" "/opt/rustwide/target/debug/deps/libndarray-50d96db0ede7e8dd.rlib" "/opt/rustwide/target/debug/deps/libmatrixmultiply-932238b821afeee8.rlib" "/opt/rustwide/target/debug/deps/libnum_complex-a8c0fea548677471.rlib" "/opt/rustwide/target/debug/deps/librawpointer-d20498b141ace7b0.rlib" "/opt/rustwide/target/debug/deps/libqifi_rs-a11f6c5dda2191d4.rlib" "/opt/rustwide/target/debug/deps/libbson-bd6c068262912017.rlib" "/opt/rustwide/target/debug/deps/libbase64-d4a279990e77b9ac.rlib" "/opt/rustwide/target/debug/deps/libuuid-9db83e8de03e8ead.rlib" "/opt/rustwide/target/debug/deps/libgetrandom-4e4c21757a916d56.rlib" "/opt/rustwide/target/debug/deps/librand-ffe6dc50c7bb36a0.rlib" "/opt/rustwide/target/debug/deps/librand_pcg-1d5e67fae13dda50.rlib" "/opt/rustwide/target/debug/deps/librand_chacha-a71bb91f0d26bf63.rlib" "/opt/rustwide/target/debug/deps/libppv_lite86-588d0e00b70994d5.rlib" "/opt/rustwide/target/debug/deps/librand_core-6254384b19f4f58e.rlib" "/opt/rustwide/target/debug/deps/libgetrandom-84e7f4016f7ead8a.rlib" "/opt/rustwide/target/debug/deps/libhex-ef32f4e6e395efc6.rlib" "/opt/rustwide/target/debug/deps/liblinked_hash_map-756d4373557a55af.rlib" "/opt/rustwide/target/debug/deps/libserde_json-ff53fd784e2214b6.rlib" "/opt/rustwide/target/debug/deps/libindexmap-c959e1e1b291cb73.rlib" "/opt/rustwide/target/debug/deps/libhashbrown-d00313852205d792.rlib" "/opt/rustwide/target/debug/deps/libcsv-d58d78634ea0b687.rlib" "/opt/rustwide/target/debug/deps/libryu-b54e014f019506d7.rlib" "/opt/rustwide/target/debug/deps/libitoa-ffe013ffe1403a1e.rlib" "/opt/rustwide/target/debug/deps/libcsv_core-4fd3468ca34e35b2.rlib" "/opt/rustwide/target/debug/deps/libbstr-d05c563038678090.rlib" "/opt/rustwide/target/debug/deps/libregex_automata-c2aa24c60f343f5a.rlib" "/opt/rustwide/target/debug/deps/libbyteorder-c1175cf0a06b3819.rlib" "/opt/rustwide/target/debug/deps/libchrono-9604aefbf23012f9.rlib" "/opt/rustwide/target/debug/deps/libnum_integer-f93c724cf0f9fade.rlib" "/opt/rustwide/target/debug/deps/libnum_traits-ae8623994a8ecaa9.rlib" "/opt/rustwide/target/debug/deps/libtime-1ba33e7b14341c2e.rlib" "/opt/rustwide/target/debug/deps/libserde-5afd0de05015452a.rlib" "/opt/rustwide/target/debug/deps/libregex-392770fd232858ae.rlib" "/opt/rustwide/target/debug/deps/libthread_local-96049cb77d97572c.rlib" "/opt/rustwide/target/debug/deps/libonce_cell-bf46c3de3fc3cb5b.rlib" "/opt/rustwide/target/debug/deps/libregex_syntax-a85c9505f7f8db9f.rlib" "/opt/rustwide/target/debug/deps/libaho_corasick-38d1d4d3be96c2b9.rlib" "/opt/rustwide/target/debug/deps/liberror_chain-471d8caf98677da6.rlib" "/opt/rustwide/target/debug/deps/libbacktrace-9811f0ebb35bf71a.rlib" "/opt/rustwide/target/debug/deps/libminiz_oxide-6c609ddc6d074e32.rlib" "/opt/rustwide/target/debug/deps/libadler-9e52662b60a79489.rlib" "/opt/rustwide/target/debug/deps/libobject-928185d1165e292c.rlib" "/opt/rustwide/target/debug/deps/libaddr2line-62941f12dc87ddfc.rlib" "/opt/rustwide/target/debug/deps/libgimli-000d21fdcabeb472.rlib" "/opt/rustwide/target/debug/deps/librustc_demangle-715b82a9e4d83d1d.rlib" "/opt/rustwide/target/debug/deps/libtokio-3a0b4abbe5e231a9.rlib" "/opt/rustwide/target/debug/deps/libsignal_hook_registry-aa85f17791511b0c.rlib" "/opt/rustwide/target/debug/deps/libnum_cpus-f52f5efca9ce1f40.rlib" "/opt/rustwide/target/debug/deps/libmemchr-829eafb2866da253.rlib" "/opt/rustwide/target/debug/deps/libfnv-6d1578eb67bc4123.rlib" "/opt/rustwide/target/debug/deps/libmio_uds-e1cd2a89f32475a7.rlib" "/opt/rustwide/target/debug/deps/libmio-cf59d8d08c93d383.rlib" "/opt/rustwide/target/debug/deps/liblog-8925f54ec35a9a9e.rlib" "/opt/rustwide/target/debug/deps/libvalue_bag-3e86f94a4bc6bb21.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-56df745b5175507b.rlib" "/opt/rustwide/target/debug/deps/libslab-47832e98c319689d.rlib" "/opt/rustwide/target/debug/deps/libiovec-c869dcc73075c47a.rlib" "/opt/rustwide/target/debug/deps/libnet2-46ff8d5c293297d8.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-77abc38cc38d84d4.rlib" "/opt/rustwide/target/debug/deps/liblibc-b6ecb59a4cb3f258.rlib" "/opt/rustwide/target/debug/deps/libfutures_core-47c98fc9b7823d29.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-b341606102c7008f.rlib" "/opt/rustwide/target/debug/deps/libbytes-969060dc4a946f1e.rlib" "/opt/rustwide/target/debug/deps/libpin_project_lite-a4b49025b9164deb.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8d61b92a0a02f53a.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-fc45202bb435016b.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f2400674c7513725.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-605c3a7d1a5d300d.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3d4fb4efa907e4e8.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-65207f030ab23308.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-76ca199cb0186109.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-1e3e01ed4f561dc1.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd8dddcba7c13fee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-00b13d31c3420656.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-e4c8460b81557bd5.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-600d46e5f0005455.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e4a08a2585b62d37.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-fbc21ec567cb9dc7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-10b3fa8e49bd978f.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-64625b73694ffce7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-fb6b78ac543a58ee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-1d1f2d1bec6f51b8.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-acf5ff6e9595d982.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/examples/x2-9eab3cd9250ec238" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" [INFO] [stdout] = note: collect2: fatal error: ld terminated with signal 9 [Killed] [INFO] [stdout] compilation terminated. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.0.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.1.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.10.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.11.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.12.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.13.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.14.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.15.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.2.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.3.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.4.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.5.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.6.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.7.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.8.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.x1.0de2e68d-cgu.9.rcgu.o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502.58blsp2kg02ro364.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/ring-b15dc38c0ef3769b/out" "-L" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libquantaxis_rs-98bb56580f3ed3f5.rlib" "/opt/rustwide/target/debug/deps/libndarray-50d96db0ede7e8dd.rlib" "/opt/rustwide/target/debug/deps/libmatrixmultiply-932238b821afeee8.rlib" "/opt/rustwide/target/debug/deps/libnum_complex-a8c0fea548677471.rlib" "/opt/rustwide/target/debug/deps/librawpointer-d20498b141ace7b0.rlib" "/opt/rustwide/target/debug/deps/libqifi_rs-a11f6c5dda2191d4.rlib" "/opt/rustwide/target/debug/deps/libbson-bd6c068262912017.rlib" "/opt/rustwide/target/debug/deps/libbase64-d4a279990e77b9ac.rlib" "/opt/rustwide/target/debug/deps/libuuid-9db83e8de03e8ead.rlib" "/opt/rustwide/target/debug/deps/libgetrandom-4e4c21757a916d56.rlib" "/opt/rustwide/target/debug/deps/librand-ffe6dc50c7bb36a0.rlib" "/opt/rustwide/target/debug/deps/librand_pcg-1d5e67fae13dda50.rlib" "/opt/rustwide/target/debug/deps/librand_chacha-a71bb91f0d26bf63.rlib" "/opt/rustwide/target/debug/deps/libppv_lite86-588d0e00b70994d5.rlib" "/opt/rustwide/target/debug/deps/librand_core-6254384b19f4f58e.rlib" "/opt/rustwide/target/debug/deps/libgetrandom-84e7f4016f7ead8a.rlib" "/opt/rustwide/target/debug/deps/libhex-ef32f4e6e395efc6.rlib" "/opt/rustwide/target/debug/deps/liblinked_hash_map-756d4373557a55af.rlib" "/opt/rustwide/target/debug/deps/libserde_json-ff53fd784e2214b6.rlib" "/opt/rustwide/target/debug/deps/libindexmap-c959e1e1b291cb73.rlib" "/opt/rustwide/target/debug/deps/libhashbrown-d00313852205d792.rlib" "/opt/rustwide/target/debug/deps/libcsv-d58d78634ea0b687.rlib" "/opt/rustwide/target/debug/deps/libryu-b54e014f019506d7.rlib" "/opt/rustwide/target/debug/deps/libitoa-ffe013ffe1403a1e.rlib" "/opt/rustwide/target/debug/deps/libcsv_core-4fd3468ca34e35b2.rlib" "/opt/rustwide/target/debug/deps/libbstr-d05c563038678090.rlib" "/opt/rustwide/target/debug/deps/libregex_automata-c2aa24c60f343f5a.rlib" "/opt/rustwide/target/debug/deps/libbyteorder-c1175cf0a06b3819.rlib" "/opt/rustwide/target/debug/deps/libchrono-9604aefbf23012f9.rlib" "/opt/rustwide/target/debug/deps/libnum_integer-f93c724cf0f9fade.rlib" "/opt/rustwide/target/debug/deps/libnum_traits-ae8623994a8ecaa9.rlib" "/opt/rustwide/target/debug/deps/libtime-1ba33e7b14341c2e.rlib" "/opt/rustwide/target/debug/deps/libserde-5afd0de05015452a.rlib" "/opt/rustwide/target/debug/deps/libregex-392770fd232858ae.rlib" "/opt/rustwide/target/debug/deps/libthread_local-96049cb77d97572c.rlib" "/opt/rustwide/target/debug/deps/libonce_cell-bf46c3de3fc3cb5b.rlib" "/opt/rustwide/target/debug/deps/libregex_syntax-a85c9505f7f8db9f.rlib" "/opt/rustwide/target/debug/deps/libaho_corasick-38d1d4d3be96c2b9.rlib" "/opt/rustwide/target/debug/deps/liberror_chain-471d8caf98677da6.rlib" "/opt/rustwide/target/debug/deps/libbacktrace-9811f0ebb35bf71a.rlib" "/opt/rustwide/target/debug/deps/libminiz_oxide-6c609ddc6d074e32.rlib" "/opt/rustwide/target/debug/deps/libadler-9e52662b60a79489.rlib" "/opt/rustwide/target/debug/deps/libobject-928185d1165e292c.rlib" "/opt/rustwide/target/debug/deps/libaddr2line-62941f12dc87ddfc.rlib" "/opt/rustwide/target/debug/deps/libgimli-000d21fdcabeb472.rlib" "/opt/rustwide/target/debug/deps/librustc_demangle-715b82a9e4d83d1d.rlib" "/opt/rustwide/target/debug/deps/libtokio-3a0b4abbe5e231a9.rlib" "/opt/rustwide/target/debug/deps/libsignal_hook_registry-aa85f17791511b0c.rlib" "/opt/rustwide/target/debug/deps/libnum_cpus-f52f5efca9ce1f40.rlib" "/opt/rustwide/target/debug/deps/libmemchr-829eafb2866da253.rlib" "/opt/rustwide/target/debug/deps/libfnv-6d1578eb67bc4123.rlib" "/opt/rustwide/target/debug/deps/libmio_uds-e1cd2a89f32475a7.rlib" "/opt/rustwide/target/debug/deps/libmio-cf59d8d08c93d383.rlib" "/opt/rustwide/target/debug/deps/liblog-8925f54ec35a9a9e.rlib" "/opt/rustwide/target/debug/deps/libvalue_bag-3e86f94a4bc6bb21.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-56df745b5175507b.rlib" "/opt/rustwide/target/debug/deps/libslab-47832e98c319689d.rlib" "/opt/rustwide/target/debug/deps/libiovec-c869dcc73075c47a.rlib" "/opt/rustwide/target/debug/deps/libnet2-46ff8d5c293297d8.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-77abc38cc38d84d4.rlib" "/opt/rustwide/target/debug/deps/liblibc-b6ecb59a4cb3f258.rlib" "/opt/rustwide/target/debug/deps/libfutures_core-47c98fc9b7823d29.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-b341606102c7008f.rlib" "/opt/rustwide/target/debug/deps/libbytes-969060dc4a946f1e.rlib" "/opt/rustwide/target/debug/deps/libpin_project_lite-a4b49025b9164deb.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8d61b92a0a02f53a.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-fc45202bb435016b.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-f2400674c7513725.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-605c3a7d1a5d300d.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-3d4fb4efa907e4e8.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-65207f030ab23308.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-76ca199cb0186109.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-1e3e01ed4f561dc1.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-dd8dddcba7c13fee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-00b13d31c3420656.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-e4c8460b81557bd5.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-600d46e5f0005455.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-e4a08a2585b62d37.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-fbc21ec567cb9dc7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-10b3fa8e49bd978f.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-64625b73694ffce7.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-fb6b78ac543a58ee.rlib" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-1d1f2d1bec6f51b8.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-acf5ff6e9595d982.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/1.60.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/examples/x1-cd37ea52edf08502" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs" [INFO] [stdout] = note: collect2: fatal error: ld terminated with signal 9 [Killed] [INFO] [stdout] compilation terminated. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 32 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 109 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "35ec3e067a3c9806ebee89b6df13d05351e59537fe2ffb3ce9e3940b7538ed42", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35ec3e067a3c9806ebee89b6df13d05351e59537fe2ffb3ce9e3940b7538ed42", kill_on_drop: false }` [INFO] [stdout] 35ec3e067a3c9806ebee89b6df13d05351e59537fe2ffb3ce9e3940b7538ed42