[INFO] cloning repository https://github.com/javiervazquezh/bot-claude [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/javiervazquezh/bot-claude" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaviervazquezh%2Fbot-claude", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaviervazquezh%2Fbot-claude'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d0d73214acc2fc3cb5adb4619b08dee6ca958f25 [INFO] testing javiervazquezh/bot-claude against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaviervazquezh%2Fbot-claude" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/javiervazquezh/bot-claude [INFO] finished tweaking git repo https://github.com/javiervazquezh/bot-claude [INFO] tweaked toml for git repo https://github.com/javiervazquezh/bot-claude written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/javiervazquezh/bot-claude on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/javiervazquezh/bot-claude already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.106 [INFO] [stderr] Downloaded wasm-bindgen v0.2.106 [INFO] [stderr] Downloaded js-sys v0.3.83 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.106 [INFO] [stderr] Downloaded sha1 v0.10.6 [INFO] [stderr] Downloaded tinyvec_macros v0.1.1 [INFO] [stderr] Downloaded rend v0.4.2 [INFO] [stderr] Downloaded windows-targets v0.53.5 [INFO] [stderr] Downloaded bytecheck v0.6.12 [INFO] [stderr] Downloaded toml_write v0.1.2 [INFO] [stderr] Downloaded hex v0.4.3 [INFO] [stderr] Downloaded urlencoding v2.1.3 [INFO] [stderr] Downloaded proc-macro-crate v3.4.0 [INFO] [stderr] Downloaded json5 v0.4.1 [INFO] [stderr] Downloaded wyz v0.5.1 [INFO] [stderr] Downloaded event-listener v2.5.3 [INFO] [stderr] Downloaded borsh-derive v1.6.0 [INFO] [stderr] Downloaded pest_generator v2.8.5 [INFO] [stderr] Downloaded pest_derive v2.8.5 [INFO] [stderr] Downloaded once_cell_polyfill v1.70.2 [INFO] [stderr] Downloaded anstyle-wincon v3.0.11 [INFO] [stderr] Downloaded humansize v2.1.3 [INFO] [stderr] Downloaded askama_escape v0.10.3 [INFO] [stderr] Downloaded matchit v0.7.3 [INFO] [stderr] Downloaded askama_derive v0.12.5 [INFO] [stderr] Downloaded pathdiff v0.2.3 [INFO] [stderr] Downloaded askama_parser v0.2.1 [INFO] [stderr] Downloaded const-random-macro v0.1.16 [INFO] [stderr] Downloaded arraydeque v0.5.1 [INFO] [stderr] Downloaded const-random v0.1.18 [INFO] [stderr] Downloaded askama v0.12.1 [INFO] [stderr] Downloaded basic-toml v0.1.10 [INFO] [stderr] Downloaded ron v0.8.1 [INFO] [stderr] Downloaded reqwest v0.11.27 [INFO] [stderr] Downloaded num-bigint-dig v0.8.6 [INFO] [stderr] Downloaded chrono v0.4.42 [INFO] [stderr] Downloaded portable-atomic v1.13.0 [INFO] [stderr] Downloaded sled v0.34.7 [INFO] [stderr] Downloaded regex-syntax v0.8.8 [INFO] [stderr] Downloaded unicode-segmentation v1.12.0 [INFO] [stderr] Downloaded hkdf v0.12.4 [INFO] [stderr] Downloaded raw-cpuid v11.6.0 [INFO] [stderr] Downloaded web-sys v0.3.83 [INFO] [stderr] Downloaded rustls v0.22.4 [INFO] [stderr] Downloaded h2 v0.3.27 [INFO] [stderr] Downloaded unicode-normalization v0.1.25 [INFO] [stderr] Downloaded config v0.14.1 [INFO] [stderr] Downloaded socket2 v0.5.10 [INFO] [stderr] Downloaded sqlx-postgres v0.7.4 [INFO] [stderr] Downloaded rustls v0.21.12 [INFO] [stderr] Downloaded regex-automata v0.4.13 [INFO] [stderr] Downloaded pest v2.8.5 [INFO] [stderr] Downloaded dlv-list v0.5.2 [INFO] [stderr] Downloaded rust-ini v0.20.0 [INFO] [stderr] Downloaded spinning_top v0.3.0 [INFO] [stderr] Downloaded mockall_derive v0.12.1 [INFO] [stderr] Downloaded windows_aarch64_gnullvm v0.53.1 [INFO] [stderr] Downloaded axum v0.7.9 [INFO] [stderr] Downloaded windows_x86_64_gnullvm v0.53.1 [INFO] [stderr] Downloaded windows_x86_64_msvc v0.53.1 [INFO] [stderr] Downloaded governor v0.6.3 [INFO] [stderr] Downloaded windows_aarch64_msvc v0.53.1 [INFO] [stderr] Downloaded windows_x86_64_gnu v0.53.1 [INFO] [stderr] Downloaded windows_i686_gnullvm v0.53.1 [INFO] [stderr] Downloaded sqlx-mysql v0.7.4 [INFO] [stderr] Downloaded windows_i686_gnu v0.53.1 [INFO] [stderr] Downloaded windows_i686_msvc v0.53.1 [INFO] [stderr] Downloaded unicode-properties v0.1.4 [INFO] [stderr] Downloaded zerocopy v0.8.33 [INFO] [stderr] Downloaded ordered-multimap v0.7.3 [INFO] [stderr] Downloaded futures-timer v3.0.3 [INFO] [stderr] Downloaded quanta v0.12.6 [INFO] [stderr] Downloaded yaml-rust2 v0.8.1 [INFO] [stderr] Downloaded predicates v3.1.3 [INFO] [stderr] Downloaded mockall v0.12.1 [INFO] [stderr] Downloaded hyper-rustls v0.24.2 [INFO] [stderr] Downloaded http-body v0.4.6 [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.56 [INFO] [stderr] Downloaded parking_lot v0.11.2 [INFO] [stderr] Downloaded rsa v0.9.10 [INFO] [stderr] Downloaded hmac v0.12.1 [INFO] [stderr] Downloaded hyper v0.14.32 [INFO] [stderr] Downloaded webpki-roots v0.25.4 [INFO] [stderr] Downloaded tracing-subscriber v0.3.22 [INFO] [stderr] Downloaded redox_syscall v0.2.16 [INFO] [stderr] Downloaded num-iter v0.1.45 [INFO] [stderr] Downloaded pkcs8 v0.10.2 [INFO] [stderr] Downloaded der v0.7.10 [INFO] [stderr] Downloaded whoami v1.6.1 [INFO] [stderr] Downloaded bitvec v1.0.1 [INFO] [stderr] Downloaded dashmap v5.5.3 [INFO] [stderr] Downloaded fragile v2.0.1 [INFO] [stderr] Downloaded predicates-tree v1.0.12 [INFO] [stderr] Downloaded parking_lot_core v0.8.6 [INFO] [stderr] Downloaded android_system_properties v0.1.5 [INFO] [stderr] Downloaded rustls-webpki v0.102.8 [INFO] [stderr] Downloaded nonzero_ext v0.3.0 [INFO] [stderr] Downloaded termtree v0.5.1 [INFO] [stderr] Downloaded rust_decimal_macros v1.39.0 [INFO] [stderr] Downloaded sqlx v0.7.4 [INFO] [stderr] Downloaded winnow v0.7.14 [INFO] [stderr] Downloaded aho-corasick v1.1.4 [INFO] [stderr] Downloaded tungstenite v0.24.0 [INFO] [stderr] Downloaded redox_syscall v0.7.0 [INFO] [stderr] Downloaded flume v0.11.1 [INFO] [stderr] Downloaded atoi v2.0.0 [INFO] [stderr] Downloaded windows-interface v0.59.3 [INFO] [stderr] Downloaded crc v3.4.0 [INFO] [stderr] Downloaded rust_decimal v1.39.0 [INFO] [stderr] Downloaded rustls-webpki v0.101.7 [INFO] [stderr] Downloaded serde_json v1.0.149 [INFO] [stderr] Downloaded no-std-compat v0.4.1 [INFO] [stderr] Downloaded downcast v0.11.0 [INFO] [stderr] Downloaded predicates-core v1.0.9 [INFO] [stderr] Downloaded hyper-tls v0.5.0 [INFO] [stderr] Downloaded sync_wrapper v0.1.2 [INFO] [stderr] Downloaded system-configuration v0.5.1 [INFO] [stderr] Downloaded tokio-rustls v0.24.1 [INFO] [stderr] Downloaded fxhash v0.2.1 [INFO] [stderr] Downloaded sqlx-macros-core v0.7.4 [INFO] [stderr] Downloaded pkcs1 v0.7.5 [INFO] [stderr] Downloaded signature v2.2.0 [INFO] [stderr] Downloaded spki v0.7.3 [INFO] [stderr] Downloaded dotenvy v0.15.7 [INFO] [stderr] Downloaded unicode-bidi v0.3.18 [INFO] [stderr] Downloaded windows-strings v0.5.1 [INFO] [stderr] Downloaded windows-core v0.62.2 [INFO] [stderr] Downloaded iana-time-zone v0.1.64 [INFO] [stderr] Downloaded crossbeam-queue v0.3.12 [INFO] [stderr] Downloaded libm v0.2.15 [INFO] [stderr] Downloaded axum-core v0.4.5 [INFO] [stderr] Downloaded winreg v0.50.0 [INFO] [stderr] Downloaded sqlx-macros v0.7.4 [INFO] [stderr] Downloaded base64ct v1.8.3 [INFO] [stderr] Downloaded stringprep v0.1.5 [INFO] [stderr] Downloaded wasite v0.1.0 [INFO] [stderr] Downloaded tokio-tungstenite v0.24.0 [INFO] [stderr] Downloaded async-trait v0.1.89 [INFO] [stderr] Downloaded system-configuration-sys v0.5.0 [INFO] [stderr] Downloaded fs2 v0.4.3 [INFO] [stderr] Downloaded pem-rfc7468 v0.7.0 [INFO] [stderr] Downloaded libredox v0.1.12 [INFO] [stderr] Downloaded rkyv v0.7.46 [INFO] [stderr] Downloaded sqlx-core v0.7.4 [INFO] [stderr] Downloaded tower v0.4.13 [INFO] [stderr] Downloaded tower-http v0.5.2 [INFO] [stderr] Downloaded wasip2 v1.0.1+wasi-0.2.4 [INFO] [stderr] Downloaded windows-sys v0.60.2 [INFO] [stderr] Downloaded serde_path_to_error v0.1.20 [INFO] [stderr] Downloaded md-5 v0.10.6 [INFO] [stderr] Downloaded base64 v0.21.7 [INFO] [stderr] Downloaded zerocopy-derive v0.8.33 [INFO] [stderr] Downloaded sharded-slab v0.1.7 [INFO] [stderr] Downloaded convert_case v0.6.0 [INFO] [stderr] Downloaded ucd-trie v0.1.7 [INFO] [stderr] Downloaded borsh v1.6.0 [INFO] [stderr] Downloaded windows-sys v0.61.2 [INFO] [stderr] Downloaded typenum v1.19.0 [INFO] [stderr] Downloaded pest_meta v2.8.5 [INFO] [stderr] Downloaded etcetera v0.8.0 [INFO] [stderr] Downloaded futures-intrusive v0.5.0 [INFO] [stderr] Downloaded allocator-api2 v0.2.21 [INFO] [stderr] Downloaded tracing-attributes v0.1.31 [INFO] [stderr] Downloaded iana-time-zone-haiku v0.1.2 [INFO] [stderr] Downloaded windows-implement v0.60.2 [INFO] [stderr] Downloaded windows-result v0.4.1 [INFO] [stderr] Downloaded crc-catalog v2.4.0 [INFO] [stderr] Downloaded toml_parser v1.0.6+spec-1.1.0 [INFO] [stderr] Downloaded toml_edit v0.23.10+spec-1.0.0 [INFO] [stderr] Downloaded seahash v4.1.0 [INFO] [stderr] Downloaded tinyvec v1.10.0 [INFO] [stderr] Downloaded sqlx-sqlite v0.7.4 [INFO] [stderr] Downloaded tokio-stream v0.1.18 [INFO] [stderr] Downloaded rustls-native-certs v0.7.3 [INFO] [stderr] Downloaded rustls-pki-types v1.13.2 [INFO] [stderr] Downloaded const-oid v0.9.6 [INFO] [stderr] Downloaded tungstenite v0.21.0 [INFO] [stderr] Downloaded tokio-tungstenite v0.21.0 [INFO] [stderr] Downloaded parking_lot_core v0.9.12 [INFO] [stderr] Downloaded parking_lot v0.12.5 [INFO] [stderr] Downloaded lock_api v0.4.14 [INFO] [stderr] Downloaded bumpalo v3.19.1 [INFO] [stderr] Downloaded uuid v1.19.0 [INFO] [stderr] Downloaded ahash v0.8.12 [INFO] [stderr] Downloaded hashlink v0.8.4 [INFO] [stderr] Downloaded toml_datetime v0.7.5+spec-1.1.0 [INFO] [stderr] Downloaded ahash v0.7.8 [INFO] [stderr] Downloaded rkyv_derive v0.7.46 [INFO] [stderr] Downloaded sct v0.7.1 [INFO] [stderr] Downloaded rustls-pemfile v1.0.4 [INFO] [stderr] Downloaded sha2 v0.10.9 [INFO] [stderr] Downloaded rustls-pemfile v2.2.0 [INFO] [stderr] Downloaded signal-hook-registry v1.4.8 [INFO] [stderr] Downloaded nu-ansi-term v0.50.3 [INFO] [stderr] Downloaded valuable v0.1.1 [INFO] [stderr] Downloaded mime_guess v2.0.5 [INFO] [stderr] Downloaded redox_syscall v0.5.18 [INFO] [stderr] Downloaded thread_local v1.1.9 [INFO] [stderr] Downloaded tracing-log v0.2.0 [INFO] [stderr] Downloaded tracing-serde v0.2.0 [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.106 [INFO] [stderr] Downloaded unicase v2.9.0 [INFO] [stderr] Downloaded zmij v1.0.14 [INFO] [stderr] Downloaded ptr_meta v0.1.4 [INFO] [stderr] Downloaded simdutf8 v0.1.5 [INFO] [stderr] Downloaded sqlformat v0.2.6 [INFO] [stderr] Downloaded tokio-rustls v0.25.0 [INFO] [stderr] Downloaded data-encoding v2.10.0 [INFO] [stderr] Downloaded block-buffer v0.10.4 [INFO] [stderr] Downloaded digest v0.10.7 [INFO] [stderr] Downloaded tokio-macros v2.6.0 [INFO] [stderr] Downloaded funty v2.0.0 [INFO] [stderr] Downloaded tokio-test v0.4.5 [INFO] [stderr] Downloaded tap v1.0.1 [INFO] [stderr] Downloaded crypto-common v0.1.7 [INFO] [stderr] Downloaded radium v0.7.0 [INFO] [stderr] Downloaded bytecheck_derive v0.6.12 [INFO] [stderr] Downloaded ptr_meta_derive v0.1.4 [INFO] [stderr] Downloaded http-range-header v0.4.2 [INFO] [stderr] Downloaded windows-link v0.2.1 [INFO] [stderr] Downloaded wit-bindgen v0.46.0 [INFO] [stderr] Downloaded matchers v0.2.0 [INFO] [stderr] Downloaded libsqlite3-sys v0.27.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 73ac6c44ca4df9cf2bfd05866b50593d9835862c4c34d597296e320bfc3c69bd [INFO] running `Command { std: "docker" "start" "-a" "73ac6c44ca4df9cf2bfd05866b50593d9835862c4c34d597296e320bfc3c69bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "73ac6c44ca4df9cf2bfd05866b50593d9835862c4c34d597296e320bfc3c69bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73ac6c44ca4df9cf2bfd05866b50593d9835862c4c34d597296e320bfc3c69bd", kill_on_drop: false }` [INFO] [stdout] 73ac6c44ca4df9cf2bfd05866b50593d9835862c4c34d597296e320bfc3c69bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] c58b08ecf43b9afaf22b772ce0961801b33971752e1b94de977fe8ff20140344 [INFO] running `Command { std: "docker" "start" "-a" "c58b08ecf43b9afaf22b772ce0961801b33971752e1b94de977fe8ff20140344", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling find-msvc-tools v0.1.7 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling cc v1.2.52 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling parking_lot_core v0.9.12 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling mio v1.1.1 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling parking_lot v0.12.5 [INFO] [stderr] Compiling errno v0.3.14 [INFO] [stderr] Compiling signal-hook-registry v1.4.8 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zmij v1.0.14 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling http v1.4.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling rust_decimal v1.39.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling unicase v2.9.0 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling rustls-pki-types v1.13.2 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling pest v2.8.5 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling rustls v0.22.4 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling data-encoding v2.10.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling pest_meta v2.8.5 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling rustls-webpki v0.102.8 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Compiling pest_generator v2.8.5 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling sqlx-sqlite v0.7.4 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling anstyle v1.0.13 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.2 [INFO] [stderr] Compiling portable-atomic v1.13.0 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling ryu v1.0.22 [INFO] [stderr] Compiling anstyle-query v1.1.5 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling pest_derive v2.8.5 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling ordered-multimap v0.7.3 [INFO] [stderr] Compiling tungstenite v0.24.0 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling basic-toml v0.1.10 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling askama_parser v0.2.1 [INFO] [stderr] Compiling raw-cpuid v11.6.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling arraydeque v0.5.1 [INFO] [stderr] Compiling clap_lex v0.7.7 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling clap_builder v4.5.54 [INFO] [stderr] Compiling quanta v0.12.6 [INFO] [stderr] Compiling yaml-rust2 v0.8.1 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Compiling humansize v2.1.3 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling askama_derive v0.12.5 [INFO] [stderr] Compiling rustls-native-certs v0.7.3 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling rust-ini v0.20.0 [INFO] [stderr] Compiling axum-core v0.4.5 [INFO] [stderr] Compiling json5 v0.4.1 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tungstenite v0.21.0 [INFO] [stderr] Compiling tokio-rustls v0.25.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling serde_path_to_error v0.1.20 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling spinning_top v0.3.0 [INFO] [stderr] Compiling thread_local v1.1.9 [INFO] [stderr] Compiling nu-ansi-term v0.50.3 [INFO] [stderr] Compiling no-std-compat v0.4.1 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling nonzero_ext v0.3.0 [INFO] [stderr] Compiling pathdiff v0.2.3 [INFO] [stderr] Compiling askama_escape v0.10.3 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling http-range-header v0.4.2 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling governor v0.6.3 [INFO] [stderr] Compiling askama v0.12.1 [INFO] [stderr] Compiling config v0.14.1 [INFO] [stderr] Compiling tracing-subscriber v0.3.22 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling clap v4.5.54 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling rust_decimal_macros v1.39.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Compiling crypto_trading_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/types/position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `trend::*` [INFO] [stdout] --> src/strategies/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use trend::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `momentum::*` [INFO] [stdout] --> src/strategies/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use momentum::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mean_reversion::*` [INFO] [stdout] --> src/strategies/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use mean_reversion::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/exchange/binance.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/exchange/binance.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing::{debug, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Side` [INFO] [stdout] --> src/exchange/websocket.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::types::{Candle, Side, Ticker, TimeFrame, Trade, TradingPair}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/engine/paper.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use tracing::{debug, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/engine/paper.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ticker` [INFO] [stdout] --> src/engine/paper.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Ticker, TimeFrame, TradingPair, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Side` [INFO] [stdout] --> src/engine/portfolio.rs:9:70 [INFO] [stdout] | [INFO] [stdout] 9 | Order, OrderStatus, Position, PositionStatus, PortfolioSnapshot, Side, TradingPair, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AlertType` [INFO] [stdout] --> src/engine/executor.rs:9:127 [INFO] [stdout] | [INFO] [stdout] 9 | ...osition_closed, stop_loss_triggered, take_profit_triggered, AlertType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/engine/backtest.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::{debug, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Signal` [INFO] [stdout] --> src/engine/backtest.rs:11:74 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::types::{Candle, CandleBuffer, Position, PositionStatus, Side, Signal, TimeFrame, TradingPair}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `results::*` [INFO] [stdout] --> src/engine/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use results::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `limits::*` [INFO] [stdout] --> src/risk/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use limits::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RuntimeConfig` [INFO] [stdout] --> src/web/api.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | RuntimeConfig, RiskSettings, ExecutorSettings, StrategySettings, GeneralSettings, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DashboardState` [INFO] [stdout] --> src/web/api.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | use super::{AppState, DashboardState, DashboardEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BotStatus` [INFO] [stdout] --> src/web/state.rs:9:46 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::engine::{BotController, BotState, BotStatus}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Position` and `Signal` [INFO] [stdout] --> src/web/state.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::types::{Position, Side, Signal, TradingPair}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `api::*` [INFO] [stdout] --> src/web/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use api::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Side` [INFO] [stdout] --> src/analytics/mod.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::types::{Side, TradingPair}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sqlite` [INFO] [stdout] --> src/database/mod.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::{Row, Sqlite}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/database/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::RwLock` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Signal` [INFO] [stdout] --> src/main.rs:28:51 [INFO] [stdout] | [INFO] [stdout] 28 | use types::{TimeFrame, TradingPair, CandleBuffer, Signal, Side}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `close` [INFO] [stdout] --> src/indicators/atr.rs:48:65 [INFO] [stdout] | [INFO] [stdout] 48 | fn calculate_true_range(&self, high: Decimal, low: Decimal, close: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_close` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recent` [INFO] [stdout] --> src/strategies/momentum.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let recent = candles.last_n(self.lookback); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_recent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bb_middle` [INFO] [stdout] --> src/strategies/mean_reversion.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | bb_middle: Decimal, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bb_middle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/strategies/combined.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | let current = candles.last()?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ema20` [INFO] [stdout] --> src/strategies/improved.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let ema20 = self.ema_20.value()?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ema20` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position_id` [INFO] [stdout] --> src/engine/portfolio.rs:272:46 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/engine/portfolio.rs:272:65 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/engine/portfolio.rs:272:84 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prices` [INFO] [stdout] --> src/engine/portfolio.rs:278:49 [INFO] [stdout] | [INFO] [stdout] 278 | pub fn update_all_trailing_stops(&mut self, prices: &HashMap) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_capital` [INFO] [stdout] --> src/engine/results.rs:351:49 [INFO] [stdout] | [INFO] [stdout] 351 | fn calculate_ratios(trades: &[TradeRecord], initial_capital: Decimal) -> (Decimal, Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_capital` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/risk/manager.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let config = self.config.read().await; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/web/api.rs:488:30 [INFO] [stdout] | [INFO] [stdout] 488 | Ok(Message::Ping(data)) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile_config` [INFO] [stdout] --> src/web/api.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 559 | let profile_config = match req.profile { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `price_precision` is never used [INFO] [stdout] --> src/types/trading.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TradingPair { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn price_precision(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opposite` is never used [INFO] [stdout] --> src/types/trading.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Side { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 113 | pub fn opposite(&self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_minutes` and `to_milliseconds` are never used [INFO] [stdout] --> src/types/trading.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl TimeFrame { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn to_minutes(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn to_milliseconds(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TradingMode` is never used [INFO] [stdout] --> src/types/trading.rs:179:10 [INFO] [stdout] | [INFO] [stdout] 179 | pub enum TradingMode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_bearish` is never used [INFO] [stdout] --> src/types/trading.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 202 | impl Signal { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn is_bearish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/types/order.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl OrderType { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 19 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_active` and `is_final` are never used [INFO] [stdout] --> src/types/order.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl OrderStatus { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 43 | pub fn is_active(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn is_final(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/types/order.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl TimeInForce { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 60 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `limit` is never used [INFO] [stdout] --> src/types/order.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl OrderRequest { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn limit(pair: TradingPair, side: Side, quantity: Decimal, price: Decimal) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remaining_quantity`, `fill_percentage`, and `notional_value` are never used [INFO] [stdout] --> src/types/order.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 142 | impl Order { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn remaining_quantity(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn fill_percentage(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn notional_value(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fill` is never constructed [INFO] [stdout] --> src/types/order.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct Fill { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `notional_value`, `with_stop_loss`, `with_take_profit`, and `is_profitable` are never used [INFO] [stdout] --> src/types/position.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Position { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn notional_value(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn with_stop_loss(mut self, stop_loss: Decimal) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn with_take_profit(mut self, take_profit: Decimal) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn is_profitable(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PortfolioSnapshot` is never constructed [INFO] [stdout] --> src/types/position.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub struct PortfolioSnapshot { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `position_count` and `total_position_value` are never used [INFO] [stdout] --> src/types/position.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 157 | impl PortfolioSnapshot { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 158 | pub fn position_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn total_position_value(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/types/candle.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Candle { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 24 | pub fn body_size(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn range(&self) -> Decimal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn upper_wick(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn lower_wick(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn is_bearish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn is_doji(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn body_percentage(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn typical_price(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn hlc3(&self) -> Decimal { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn ohlc4(&self) -> Decimal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn change(&self) -> Decimal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_empty`, `closes`, `highs`, `lows`, `volumes`, and `typical_prices` are never used [INFO] [stdout] --> src/types/candle.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl CandleBuffer { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn closes(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn highs(&self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn lows(&self) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn volumes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn typical_prices(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `spread`, `spread_percentage`, and `mid_price` are never used [INFO] [stdout] --> src/types/candle.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl Ticker { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 167 | pub fn spread(&self) -> Decimal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn spread_percentage(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn mid_price(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `reset` are never used [INFO] [stdout] --> src/indicators/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait Indicator { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 18 | fn name(&self) -> &'static str; [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | fn is_ready(&self) -> bool; [INFO] [stdout] 20 | fn reset(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `highest` is never used [INFO] [stdout] --> src/indicators/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn highest(values: &[Decimal], period: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lowest` is never used [INFO] [stdout] --> src/indicators/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn lowest(values: &[Decimal], period: usize) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `period` is never used [INFO] [stdout] --> src/indicators/ema.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl EMA { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn period(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_ema_series` is never used [INFO] [stdout] --> src/indicators/ema.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn calculate_ema_series(prices: &[Decimal], period: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `crossover` and `spread` are never used [INFO] [stdout] --> src/indicators/ema.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl DoubleEMA { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn crossover(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn spread(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_oversold`, `is_overbought`, and `zone` are never used [INFO] [stdout] --> src/indicators/rsi.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl RSI { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn is_oversold(&self, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn is_overbought(&self, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn zone(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RSIZone` is never used [INFO] [stdout] --> src/indicators/rsi.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum RSIZone { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_extreme` is never used [INFO] [stdout] --> src/indicators/rsi.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 127 | impl RSIZone { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 128 | pub fn is_extreme(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StochasticRSI` is never constructed [INFO] [stdout] --> src/indicators/rsi.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct StochasticRSI { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update` are never used [INFO] [stdout] --> src/indicators/rsi.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 143 | impl StochasticRSI { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 144 | pub fn new(rsi_period: usize, stoch_period: usize, k_period: usize, d_period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn update(&mut self, price: Decimal) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `macd_line`, `signal_line`, `histogram`, `is_bullish_crossover`, `is_bearish_crossover`, and `histogram_decreasing` are never used [INFO] [stdout] --> src/indicators/macd.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl MACD { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn macd_line(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn signal_line(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn histogram(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn is_bullish_crossover(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn is_bearish_crossover(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn histogram_decreasing(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `macd_line`, `signal_line`, and `histogram` are never read [INFO] [stdout] --> src/indicators/macd.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct MACDOutput { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 142 | pub macd_line: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 143 | pub signal_line: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 144 | pub histogram: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MACDOutput` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `strength` is never used [INFO] [stdout] --> src/indicators/macd.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl MACDTrend { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn strength(&self) -> i8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bandwidth`, `percent_b`, `is_squeeze`, `is_expansion`, and `position` are never used [INFO] [stdout] --> src/indicators/bollinger.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl BollingerBands { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn bandwidth(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn percent_b(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn is_squeeze(&self, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn is_expansion(&self, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn position(&self, price: Decimal) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `upper`, `middle`, `lower`, `bandwidth`, and `percent_b` are never read [INFO] [stdout] --> src/indicators/bollinger.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct BollingerOutput { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 148 | pub upper: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 149 | pub middle: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 150 | pub lower: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 151 | pub bandwidth: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 152 | pub percent_b: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BollingerOutput` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BollingerPosition` is never used [INFO] [stdout] --> src/indicators/bollinger.rs:156:10 [INFO] [stdout] | [INFO] [stdout] 156 | pub enum BollingerPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_extreme`, `is_overbought`, and `is_oversold` are never used [INFO] [stdout] --> src/indicators/bollinger.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 164 | impl BollingerPosition { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 165 | pub fn is_extreme(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn is_overbought(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn is_oversold(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calculate_stop_loss`, `calculate_take_profit`, and `volatility_level` are never used [INFO] [stdout] --> src/indicators/atr.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl ATR { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn calculate_stop_loss(&self, entry_price: Decimal, multiplier: Decimal, is_long: bool) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn calculate_take_profit(&self, entry_price: Decimal, multiplier: Decimal, is_long: bool) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn volatility_level(&self, price: Decimal) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `VolatilityLevel` is never used [INFO] [stdout] --> src/indicators/atr.rs:125:10 [INFO] [stdout] | [INFO] [stdout] 125 | pub enum VolatilityLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position_size_factor` is never used [INFO] [stdout] --> src/indicators/atr.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 132 | impl VolatilityLevel { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 133 | pub fn position_size_factor(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ATRTrailingStop` is never constructed [INFO] [stdout] --> src/indicators/atr.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | pub struct ATRTrailingStop { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `is_stopped`, and `stop_price` are never used [INFO] [stdout] --> src/indicators/atr.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 151 | impl ATRTrailingStop { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 152 | pub fn new(period: usize, multiplier: Decimal, is_long: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn update(&mut self, high: Decimal, low: Decimal, close: Decimal) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn is_stopped(&self, price: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn stop_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_low_volume` is never used [INFO] [stdout] --> src/indicators/volume.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl VolumeProfile { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn is_low_volume(&self, current_volume: Decimal, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OBV` is never constructed [INFO] [stdout] --> src/indicators/volume.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct OBV { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `value` are never used [INFO] [stdout] --> src/indicators/volume.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl OBV { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 82 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn update(&mut self, close: Decimal, volume: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn value(&self) -> Decimal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VWAP` is never constructed [INFO] [stdout] --> src/indicators/volume.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct VWAP { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `value`, and `price_vs_vwap` are never used [INFO] [stdout] --> src/indicators/volume.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 134 | impl VWAP { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 135 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn update(&mut self, high: Decimal, low: Decimal, close: Decimal, volume: Decimal) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn value(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn price_vs_vwap(&self, price: Decimal) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PriceVsVWAP` is never used [INFO] [stdout] --> src/indicators/volume.rs:205:10 [INFO] [stdout] | [INFO] [stdout] 205 | pub enum PriceVsVWAP { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_bullish` and `is_bearish` are never used [INFO] [stdout] --> src/indicators/volume.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 213 | impl PriceVsVWAP { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 214 | pub fn is_bullish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn is_bearish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MoneyFlowIndex` is never constructed [INFO] [stdout] --> src/indicators/volume.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct MoneyFlowIndex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `value`, `is_oversold`, and `is_overbought` are never used [INFO] [stdout] --> src/indicators/volume.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl MoneyFlowIndex { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 233 | pub fn new(period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn update(&mut self, high: Decimal, low: Decimal, close: Decimal, volume: Decimal) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | pub fn value(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn is_oversold(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn is_overbought(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `reset` are never used [INFO] [stdout] --> src/strategies/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Strategy: Send + Sync { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 17 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn reset(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `should_trade` is never used [INFO] [stdout] --> src/strategies/mod.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl StrategySignal { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn should_trade(&self, min_confidence: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_params` is never used [INFO] [stdout] --> src/strategies/trend.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl TrendStrategy { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn with_params( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `aggressive` is never used [INFO] [stdout] --> src/strategies/momentum.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl MomentumStrategy { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn aggressive() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `conservative` is never used [INFO] [stdout] --> src/strategies/mean_reversion.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl MeanReversionStrategy { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn conservative(pair: TradingPair) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `min_agreement` is never read [INFO] [stdout] --> src/strategies/combined.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct CombinedStrategy { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | min_agreement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BTCCorrelationStrategy` is never constructed [INFO] [stdout] --> src/strategies/combined.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 217 | pub struct BTCCorrelationStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update_btc`, and `calculate_btc_momentum` are never used [INFO] [stdout] --> src/strategies/combined.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl BTCCorrelationStrategy { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 226 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | pub fn update_btc(&mut self, candle: crate::types::Candle) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | fn calculate_btc_momentum(&self) -> Option<(Decimal, bool)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Exchange` is never used [INFO] [stdout] --> src/exchange/mod.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait Exchange: Send + Sync { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BINANCE_US_TESTNET` is never used [INFO] [stdout] --> src/exchange/binance.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const BINANCE_US_TESTNET: &str = "https://testnet.binance.vision"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `HmacSha256` is never used [INFO] [stdout] --> src/exchange/binance.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | type HmacSha256 = Hmac; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_key`, `secret_key`, and `use_testnet` are never read [INFO] [stdout] --> src/exchange/binance.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct BinanceClient { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 23 | client: Client, [INFO] [stdout] 24 | api_key: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | secret_key: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | base_url: String, [INFO] [stdout] 27 | use_testnet: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceClient` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/exchange/binance.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl BinanceClient { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 31 | pub fn new(api_key: String, secret_key: String, use_testnet: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn sign(&self, query: &str) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn build_signed_query(&self, params: &HashMap<&str, String>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn get_server_time(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub async fn get_order_book(&self, pair: TradingPair, limit: u32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | pub async fn place_order(&self, request: &OrderRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub async fn cancel_order(&self, pair: TradingPair, order_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub async fn get_order(&self, pair: TradingPair, order_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub async fn get_balance(&self, asset: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 396 | pub async fn get_all_balances(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 429 | fn convert_order_response(&self, resp: OrderResponse, pair: TradingPair) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderBook` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:503:12 [INFO] [stdout] | [INFO] [stdout] 503 | pub struct OrderBook { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `best_bid`, `best_ask`, `spread`, and `mid_price` are never used [INFO] [stdout] --> src/exchange/binance.rs:511:12 [INFO] [stdout] | [INFO] [stdout] 510 | impl OrderBook { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 511 | pub fn best_bid(&self) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 515 | pub fn best_ask(&self) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | pub fn spread(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 526 | pub fn mid_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerTimeResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:536:8 [INFO] [stdout] | [INFO] [stdout] 536 | struct ServerTimeResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KlineResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:561:8 [INFO] [stdout] | [INFO] [stdout] 561 | struct KlineResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderBookResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:583:8 [INFO] [stdout] | [INFO] [stdout] 583 | struct OrderBookResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:591:8 [INFO] [stdout] | [INFO] [stdout] 591 | struct OrderResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccountResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:618:8 [INFO] [stdout] | [INFO] [stdout] 618 | struct AccountResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BalanceResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:623:8 [INFO] [stdout] | [INFO] [stdout] 623 | struct BalanceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/exchange/websocket.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | Trade(Trade), [INFO] [stdout] | ----- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MarketEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 20 - Trade(Trade), [INFO] [stdout] 20 + Trade(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `subscribe_ticker` and `subscribe_trade` are never used [INFO] [stdout] --> src/exchange/websocket.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl BinanceWebSocket { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn subscribe_ticker(&mut self, pair: TradingPair) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn subscribe_trade(&mut self, pair: TradingPair) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cancel_order` and `portfolio_arc` are never used [INFO] [stdout] --> src/engine/paper.rs:321:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl PaperTradingEngine { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | pub async fn cancel_order(&self, order_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 359 | pub fn portfolio_arc(&self) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/engine/portfolio.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Portfolio { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn set_balance(&mut self, asset: &str, amount: Decimal) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn get_position_for_pair_mut(&mut self, pair: TradingPair) -> Option<&mut Position> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn update_order(&mut self, order_id: &str, status: OrderStatus, filled_qty: Decimal, avg_price: Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | pub fn get_active_orders(&self) -> Vec<&Order> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn scale_position(&mut self, _position_id: &str, _additional_qty: Decimal, _price: Decimal) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn update_all_trailing_stops(&mut self, prices: &HashMap) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn get_position(&self, position_id: &str) -> Option<&Position> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn snapshot(&self, prices: &HashMap) -> PortfolioSnapshot { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrategyRunner` is never constructed [INFO] [stdout] --> src/engine/executor.rs:307:12 [INFO] [stdout] | [INFO] [stdout] 307 | pub struct StrategyRunner { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_strategy`, `run_analysis`, and `execute_signals` are never used [INFO] [stdout] --> src/engine/executor.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 312 | impl StrategyRunner { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 313 | pub fn new(executor: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn add_strategy(&mut self, strategy: Box) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | pub async fn run_analysis(&mut self, candles: &CandleBuffer) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 339 | pub async fn execute_signals(&self, signals: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `subscribe` is never used [INFO] [stdout] --> src/engine/controller.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl BotController { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn subscribe(&self) -> broadcast::Receiver { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calculate_stop_loss`, `calculate_take_profit`, `should_close_position`, `assess_portfolio_risk`, and `config_arc` are never used [INFO] [stdout] --> src/risk/manager.rs:149:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl RiskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 149 | pub async fn calculate_stop_loss( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub async fn calculate_take_profit( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub async fn should_close_position( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub async fn assess_portfolio_risk(&self, portfolio: &Portfolio) -> RiskAssessment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn config_arc(&self) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CloseReason` is never used [INFO] [stdout] --> src/risk/manager.rs:275:10 [INFO] [stdout] | [INFO] [stdout] 275 | pub enum CloseReason { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RiskLevel` is never used [INFO] [stdout] --> src/risk/manager.rs:285:10 [INFO] [stdout] | [INFO] [stdout] 285 | pub enum RiskLevel { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RiskAssessment` is never constructed [INFO] [stdout] --> src/risk/manager.rs:293:12 [INFO] [stdout] | [INFO] [stdout] 293 | pub struct RiskAssessment { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RiskLimits` is never constructed [INFO] [stdout] --> src/risk/limits.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct RiskLimits { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `conservative`, `moderate`, `aggressive`, `custom`, and `validate` are never used [INFO] [stdout] --> src/risk/limits.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl RiskLimits { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 31 | pub fn conservative() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn moderate() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn aggressive() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn custom( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn validate(&self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositionSizeConfig` is never constructed [INFO] [stdout] --> src/risk/limits.rs:123:12 [INFO] [stdout] | [INFO] [stdout] 123 | pub struct PositionSizeConfig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `balanced`, `btc_heavy`, and `altcoin_heavy` are never used [INFO] [stdout] --> src/risk/limits.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 139 | impl PositionSizeConfig { [INFO] [stdout] | ----------------------- associated functions in this implementation [INFO] [stdout] 140 | pub fn balanced() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn btc_heavy() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn altcoin_heavy() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FullConfigUpdated` is never constructed [INFO] [stdout] --> src/config/manager.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum ConfigChangeEvent { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | FullConfigUpdated, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConfigChangeEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_full` and `subscribe` are never used [INFO] [stdout] --> src/config/manager.rs:94:18 [INFO] [stdout] | [INFO] [stdout] 24 | impl RuntimeConfigManager { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub async fn update_full(&self, new_config: RuntimeConfig) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn subscribe(&self) -> broadcast::Receiver { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/config/profiles.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl StrategyConfig { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `win_rate`, `profit_factor`, `avg_win`, and `avg_loss` are never used [INFO] [stdout] --> src/web/state.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl TradingStats { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 193 | pub fn win_rate(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn profit_factor(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn avg_win(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn avg_loss(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ConfigChange` is never constructed [INFO] [stdout] --> src/web/state.rs:289:5 [INFO] [stdout] | [INFO] [stdout] 283 | pub enum DashboardEvent { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 289 | ConfigChange { change: ConfigChangeEvent }, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DashboardEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/database/mod.rs:299:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 299 | pub async fn get_trades_since(&self, since: DateTime) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 337 | pub async fn get_recent_trades(&self, limit: u32) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | pub async fn get_trade_count(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 384 | pub async fn insert_equity_snapshot( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 410 | pub async fn get_equity_snapshots_since(&self, since: DateTime) -> Result, Decimal)>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | pub async fn get_all_signals(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | pub async fn get_signals_since(&self, since: DateTime) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 570 | pub async fn insert_partial_exit( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 598 | pub async fn get_partial_exits_for_position(&self, position_id: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 626 | pub async fn update_position_state(&self, position_id: &str, state_json: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 672 | pub async fn get_recent_notifications(&self, limit: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 711 | pub async fn get_unacknowledged_critical(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 757 | pub async fn cleanup_old_data(&self, keep_days: i64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PartialExitRecord` is never constructed [INFO] [stdout] --> src/database/mod.rs:777:12 [INFO] [stdout] | [INFO] [stdout] 777 | pub struct PartialExitRecord { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_severity` is never used [INFO] [stdout] --> src/notifications/mod.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 209 | impl Notification { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn with_severity(mut self, severity: Severity) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_all` and `clear_old` are never used [INFO] [stdout] --> src/notifications/mod.rs:282:18 [INFO] [stdout] | [INFO] [stdout] 234 | impl NotificationManager { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 282 | pub async fn get_all(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 311 | pub async fn clear_old(&self, keep_count: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 04s [INFO] running `Command { std: "docker" "inspect" "c58b08ecf43b9afaf22b772ce0961801b33971752e1b94de977fe8ff20140344", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c58b08ecf43b9afaf22b772ce0961801b33971752e1b94de977fe8ff20140344", kill_on_drop: false }` [INFO] [stdout] c58b08ecf43b9afaf22b772ce0961801b33971752e1b94de977fe8ff20140344 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 6cb516e2cbd6bec93d030ced90e2081df2d1495933f91e5f9f7d12ce2bb23423 [INFO] running `Command { std: "docker" "start" "-a" "6cb516e2cbd6bec93d030ced90e2081df2d1495933f91e5f9f7d12ce2bb23423", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling mockall_derive v0.12.1 [INFO] [stderr] Compiling fragile v2.0.1 [INFO] [stderr] Compiling downcast v0.11.0 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling mockall v0.12.1 [INFO] [stderr] Compiling tokio-util v0.7.18 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Compiling hyper v1.8.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tokio-tungstenite v0.24.0 [INFO] [stderr] Compiling tokio-rustls v0.25.0 [INFO] [stderr] Compiling tower v0.5.3 [INFO] [stderr] Compiling tokio-tungstenite v0.21.0 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling tokio-test v0.4.5 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling tower-http v0.5.2 [INFO] [stderr] Compiling hyper-util v0.1.19 [INFO] [stderr] Compiling axum v0.7.9 [INFO] [stderr] Compiling sqlx-sqlite v0.7.4 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling crypto_trading_bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `anyhow::Result` [INFO] [stdout] --> src/types/position.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Result; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `trend::*` [INFO] [stdout] --> src/strategies/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use trend::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `momentum::*` [INFO] [stdout] --> src/strategies/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use momentum::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mean_reversion::*` [INFO] [stdout] --> src/strategies/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use mean_reversion::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/exchange/binance.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/exchange/binance.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | use tracing::{debug, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Side` [INFO] [stdout] --> src/exchange/websocket.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::types::{Candle, Side, Ticker, TimeFrame, Trade, TradingPair}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/engine/paper.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use tracing::{debug, info, warn}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/engine/paper.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ticker` [INFO] [stdout] --> src/engine/paper.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Ticker, TimeFrame, TradingPair, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Side` [INFO] [stdout] --> src/engine/portfolio.rs:9:70 [INFO] [stdout] | [INFO] [stdout] 9 | Order, OrderStatus, Position, PositionStatus, PortfolioSnapshot, Side, TradingPair, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AlertType` [INFO] [stdout] --> src/engine/executor.rs:9:127 [INFO] [stdout] | [INFO] [stdout] 9 | ...osition_closed, stop_loss_triggered, take_profit_triggered, AlertType}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `warn` [INFO] [stdout] --> src/engine/backtest.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use tracing::{debug, info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Signal` [INFO] [stdout] --> src/engine/backtest.rs:11:74 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::types::{Candle, CandleBuffer, Position, PositionStatus, Side, Signal, TimeFrame, TradingPair}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `results::*` [INFO] [stdout] --> src/engine/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use results::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `limits::*` [INFO] [stdout] --> src/risk/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use limits::*; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RuntimeConfig` [INFO] [stdout] --> src/web/api.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | RuntimeConfig, RiskSettings, ExecutorSettings, StrategySettings, GeneralSettings, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DashboardState` [INFO] [stdout] --> src/web/api.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | use super::{AppState, DashboardState, DashboardEvent}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BotStatus` [INFO] [stdout] --> src/web/state.rs:9:46 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::engine::{BotController, BotState, BotStatus}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Position` and `Signal` [INFO] [stdout] --> src/web/state.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::types::{Position, Side, Signal, TradingPair}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `api::*` [INFO] [stdout] --> src/web/mod.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub use api::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Side` [INFO] [stdout] --> src/analytics/mod.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::types::{Side, TradingPair}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Sqlite` [INFO] [stdout] --> src/database/mod.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use sqlx::{Row, Sqlite}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/database/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::RwLock` [INFO] [stdout] --> src/main.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | use tokio::sync::RwLock; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Signal` [INFO] [stdout] --> src/main.rs:28:51 [INFO] [stdout] | [INFO] [stdout] 28 | use types::{TimeFrame, TradingPair, CandleBuffer, Signal, Side}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `close` [INFO] [stdout] --> src/indicators/atr.rs:48:65 [INFO] [stdout] | [INFO] [stdout] 48 | fn calculate_true_range(&self, high: Decimal, low: Decimal, close: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_close` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `recent` [INFO] [stdout] --> src/strategies/momentum.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | let recent = candles.last_n(self.lookback); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_recent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bb_middle` [INFO] [stdout] --> src/strategies/mean_reversion.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | bb_middle: Decimal, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bb_middle` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current` [INFO] [stdout] --> src/strategies/combined.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | let current = candles.last()?; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ema20` [INFO] [stdout] --> src/strategies/improved.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let ema20 = self.ema_20.value()?; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ema20` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position_id` [INFO] [stdout] --> src/engine/portfolio.rs:272:46 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quantity` [INFO] [stdout] --> src/engine/portfolio.rs:272:65 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `price` [INFO] [stdout] --> src/engine/portfolio.rs:272:84 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `prices` [INFO] [stdout] --> src/engine/portfolio.rs:278:49 [INFO] [stdout] | [INFO] [stdout] 278 | pub fn update_all_trailing_stops(&mut self, prices: &HashMap) -> Vec { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prices` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `initial_capital` [INFO] [stdout] --> src/engine/results.rs:351:49 [INFO] [stdout] | [INFO] [stdout] 351 | fn calculate_ratios(trades: &[TradeRecord], initial_capital: Decimal) -> (Decimal, Decimal) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_capital` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/risk/manager.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let config = self.config.read().await; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/web/api.rs:488:30 [INFO] [stdout] | [INFO] [stdout] 488 | Ok(Message::Ping(data)) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `profile_config` [INFO] [stdout] --> src/web/api.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 559 | let profile_config = match req.profile { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `price_precision` is never used [INFO] [stdout] --> src/types/trading.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl TradingPair { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn price_precision(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `opposite` is never used [INFO] [stdout] --> src/types/trading.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 112 | impl Side { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 113 | pub fn opposite(&self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_minutes` and `to_milliseconds` are never used [INFO] [stdout] --> src/types/trading.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl TimeFrame { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn to_minutes(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn to_milliseconds(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TradingMode` is never used [INFO] [stdout] --> src/types/trading.rs:179:10 [INFO] [stdout] | [INFO] [stdout] 179 | pub enum TradingMode { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_bearish` is never used [INFO] [stdout] --> src/types/trading.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 202 | impl Signal { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 217 | pub fn is_bearish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/types/order.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl OrderType { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 19 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_active` and `is_final` are never used [INFO] [stdout] --> src/types/order.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl OrderStatus { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 43 | pub fn is_active(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn is_final(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `as_str` is never used [INFO] [stdout] --> src/types/order.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl TimeInForce { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 60 | pub fn as_str(&self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `limit` is never used [INFO] [stdout] --> src/types/order.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl OrderRequest { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn limit(pair: TradingPair, side: Side, quantity: Decimal, price: Decimal) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remaining_quantity`, `fill_percentage`, and `notional_value` are never used [INFO] [stdout] --> src/types/order.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 142 | impl Order { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn remaining_quantity(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn fill_percentage(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub fn notional_value(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Fill` is never constructed [INFO] [stdout] --> src/types/order.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct Fill { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `notional_value`, `with_stop_loss`, `with_take_profit`, and `is_profitable` are never used [INFO] [stdout] --> src/types/position.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Position { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn notional_value(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn with_stop_loss(mut self, stop_loss: Decimal) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | pub fn with_take_profit(mut self, take_profit: Decimal) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn is_profitable(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PortfolioSnapshot` is never constructed [INFO] [stdout] --> src/types/position.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 146 | pub struct PortfolioSnapshot { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `position_count` and `total_position_value` are never used [INFO] [stdout] --> src/types/position.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 157 | impl PortfolioSnapshot { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 158 | pub fn position_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn total_position_value(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/types/candle.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Candle { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 24 | pub fn body_size(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn range(&self) -> Decimal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn upper_wick(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn lower_wick(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn is_bearish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn is_doji(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn body_percentage(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn typical_price(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn hlc3(&self) -> Decimal { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | pub fn ohlc4(&self) -> Decimal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn change(&self) -> Decimal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_empty`, `closes`, `highs`, `lows`, `volumes`, and `typical_prices` are never used [INFO] [stdout] --> src/types/candle.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl CandleBuffer { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | pub fn closes(&self) -> Vec { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn highs(&self) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn lows(&self) -> Vec { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn volumes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn typical_prices(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `spread`, `spread_percentage`, and `mid_price` are never used [INFO] [stdout] --> src/types/candle.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 166 | impl Ticker { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 167 | pub fn spread(&self) -> Decimal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | pub fn spread_percentage(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn mid_price(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `reset` are never used [INFO] [stdout] --> src/indicators/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait Indicator { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 18 | fn name(&self) -> &'static str; [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | fn is_ready(&self) -> bool; [INFO] [stdout] 20 | fn reset(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `highest` is never used [INFO] [stdout] --> src/indicators/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn highest(values: &[Decimal], period: usize) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lowest` is never used [INFO] [stdout] --> src/indicators/mod.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn lowest(values: &[Decimal], period: usize) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `period` is never used [INFO] [stdout] --> src/indicators/ema.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl EMA { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn period(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_ema_series` is never used [INFO] [stdout] --> src/indicators/ema.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn calculate_ema_series(prices: &[Decimal], period: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `crossover` and `spread` are never used [INFO] [stdout] --> src/indicators/ema.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 85 | impl DoubleEMA { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn crossover(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn spread(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_oversold`, `is_overbought`, and `zone` are never used [INFO] [stdout] --> src/indicators/rsi.rs:77:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl RSI { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn is_oversold(&self, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn is_overbought(&self, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn zone(&self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RSIZone` is never used [INFO] [stdout] --> src/indicators/rsi.rs:120:10 [INFO] [stdout] | [INFO] [stdout] 120 | pub enum RSIZone { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_extreme` is never used [INFO] [stdout] --> src/indicators/rsi.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 127 | impl RSIZone { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 128 | pub fn is_extreme(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StochasticRSI` is never constructed [INFO] [stdout] --> src/indicators/rsi.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct StochasticRSI { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `update` are never used [INFO] [stdout] --> src/indicators/rsi.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 143 | impl StochasticRSI { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 144 | pub fn new(rsi_period: usize, stoch_period: usize, k_period: usize, d_period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn update(&mut self, price: Decimal) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `macd_line`, `signal_line`, `histogram`, `is_bullish_crossover`, `is_bearish_crossover`, and `histogram_decreasing` are never used [INFO] [stdout] --> src/indicators/macd.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl MACD { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn macd_line(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub fn signal_line(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn histogram(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn is_bullish_crossover(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn is_bearish_crossover(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub fn histogram_decreasing(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `macd_line`, `signal_line`, and `histogram` are never read [INFO] [stdout] --> src/indicators/macd.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct MACDOutput { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 142 | pub macd_line: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 143 | pub signal_line: Decimal, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 144 | pub histogram: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MACDOutput` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `strength` is never used [INFO] [stdout] --> src/indicators/macd.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl MACDTrend { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 165 | pub fn strength(&self) -> i8 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `bandwidth`, `percent_b`, `is_squeeze`, `is_expansion`, and `position` are never used [INFO] [stdout] --> src/indicators/bollinger.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl BollingerBands { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn bandwidth(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn percent_b(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn is_squeeze(&self, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn is_expansion(&self, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn position(&self, price: Decimal) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `upper`, `middle`, `lower`, `bandwidth`, and `percent_b` are never read [INFO] [stdout] --> src/indicators/bollinger.rs:148:9 [INFO] [stdout] | [INFO] [stdout] 147 | pub struct BollingerOutput { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] 148 | pub upper: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 149 | pub middle: Decimal, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 150 | pub lower: Decimal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 151 | pub bandwidth: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 152 | pub percent_b: Decimal, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BollingerOutput` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BollingerPosition` is never used [INFO] [stdout] --> src/indicators/bollinger.rs:156:10 [INFO] [stdout] | [INFO] [stdout] 156 | pub enum BollingerPosition { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_extreme`, `is_overbought`, and `is_oversold` are never used [INFO] [stdout] --> src/indicators/bollinger.rs:165:12 [INFO] [stdout] | [INFO] [stdout] 164 | impl BollingerPosition { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 165 | pub fn is_extreme(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn is_overbought(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub fn is_oversold(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calculate_stop_loss`, `calculate_take_profit`, and `volatility_level` are never used [INFO] [stdout] --> src/indicators/atr.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl ATR { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn calculate_stop_loss(&self, entry_price: Decimal, multiplier: Decimal, is_long: bool) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn calculate_take_profit(&self, entry_price: Decimal, multiplier: Decimal, is_long: bool) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn volatility_level(&self, price: Decimal) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `VolatilityLevel` is never used [INFO] [stdout] --> src/indicators/atr.rs:125:10 [INFO] [stdout] | [INFO] [stdout] 125 | pub enum VolatilityLevel { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `position_size_factor` is never used [INFO] [stdout] --> src/indicators/atr.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 132 | impl VolatilityLevel { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 133 | pub fn position_size_factor(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ATRTrailingStop` is never constructed [INFO] [stdout] --> src/indicators/atr.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | pub struct ATRTrailingStop { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `is_stopped`, and `stop_price` are never used [INFO] [stdout] --> src/indicators/atr.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 151 | impl ATRTrailingStop { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 152 | pub fn new(period: usize, multiplier: Decimal, is_long: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 161 | pub fn update(&mut self, high: Decimal, low: Decimal, close: Decimal) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | pub fn is_stopped(&self, price: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 193 | pub fn stop_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_low_volume` is never used [INFO] [stdout] --> src/indicators/volume.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl VolumeProfile { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn is_low_volume(&self, current_volume: Decimal, threshold: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OBV` is never constructed [INFO] [stdout] --> src/indicators/volume.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct OBV { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, and `value` are never used [INFO] [stdout] --> src/indicators/volume.rs:82:12 [INFO] [stdout] | [INFO] [stdout] 81 | impl OBV { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 82 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn update(&mut self, close: Decimal, volume: Decimal) -> Decimal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn value(&self) -> Decimal { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VWAP` is never constructed [INFO] [stdout] --> src/indicators/volume.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 128 | pub struct VWAP { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `value`, and `price_vs_vwap` are never used [INFO] [stdout] --> src/indicators/volume.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 134 | impl VWAP { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 135 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn update(&mut self, high: Decimal, low: Decimal, close: Decimal, volume: Decimal) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 155 | pub fn value(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn price_vs_vwap(&self, price: Decimal) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `PriceVsVWAP` is never used [INFO] [stdout] --> src/indicators/volume.rs:205:10 [INFO] [stdout] | [INFO] [stdout] 205 | pub enum PriceVsVWAP { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_bullish` and `is_bearish` are never used [INFO] [stdout] --> src/indicators/volume.rs:214:12 [INFO] [stdout] | [INFO] [stdout] 213 | impl PriceVsVWAP { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 214 | pub fn is_bullish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 218 | pub fn is_bearish(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MoneyFlowIndex` is never constructed [INFO] [stdout] --> src/indicators/volume.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct MoneyFlowIndex { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update`, `value`, `is_oversold`, and `is_overbought` are never used [INFO] [stdout] --> src/indicators/volume.rs:233:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl MoneyFlowIndex { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 233 | pub fn new(period: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 243 | pub fn update(&mut self, high: Decimal, low: Decimal, close: Decimal, volume: Decimal) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 281 | pub fn value(&self) -> Option { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 285 | pub fn is_oversold(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 289 | pub fn is_overbought(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `reset` are never used [INFO] [stdout] --> src/strategies/mod.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub trait Strategy: Send + Sync { [INFO] [stdout] | -------- methods in this trait [INFO] [stdout] 17 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn reset(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `should_trade` is never used [INFO] [stdout] --> src/strategies/mod.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl StrategySignal { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn should_trade(&self, min_confidence: Decimal) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_params` is never used [INFO] [stdout] --> src/strategies/trend.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl TrendStrategy { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn with_params( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `aggressive` is never used [INFO] [stdout] --> src/strategies/momentum.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl MomentumStrategy { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn aggressive() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `conservative` is never used [INFO] [stdout] --> src/strategies/mean_reversion.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl MeanReversionStrategy { [INFO] [stdout] | -------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn conservative(pair: TradingPair) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `min_agreement` is never read [INFO] [stdout] --> src/strategies/combined.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct CombinedStrategy { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 15 | min_agreement: Decimal, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BTCCorrelationStrategy` is never constructed [INFO] [stdout] --> src/strategies/combined.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 217 | pub struct BTCCorrelationStrategy { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `update_btc`, and `calculate_btc_momentum` are never used [INFO] [stdout] --> src/strategies/combined.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl BTCCorrelationStrategy { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 226 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 236 | pub fn update_btc(&mut self, candle: crate::types::Candle) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 240 | fn calculate_btc_momentum(&self) -> Option<(Decimal, bool)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Exchange` is never used [INFO] [stdout] --> src/exchange/mod.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait Exchange: Send + Sync { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BINANCE_US_TESTNET` is never used [INFO] [stdout] --> src/exchange/binance.rs:17:7 [INFO] [stdout] | [INFO] [stdout] 17 | const BINANCE_US_TESTNET: &str = "https://testnet.binance.vision"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `HmacSha256` is never used [INFO] [stdout] --> src/exchange/binance.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | type HmacSha256 = Hmac; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `api_key`, `secret_key`, and `use_testnet` are never read [INFO] [stdout] --> src/exchange/binance.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub struct BinanceClient { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 23 | client: Client, [INFO] [stdout] 24 | api_key: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | secret_key: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 26 | base_url: String, [INFO] [stdout] 27 | use_testnet: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinanceClient` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/exchange/binance.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl BinanceClient { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 31 | pub fn new(api_key: String, secret_key: String, use_testnet: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | fn sign(&self, query: &str) -> String { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn build_signed_query(&self, params: &HashMap<&str, String>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub async fn get_server_time(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 241 | pub async fn get_order_book(&self, pair: TradingPair, limit: u32) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 271 | pub async fn place_order(&self, request: &OrderRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 314 | pub async fn cancel_order(&self, pair: TradingPair, order_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 340 | pub async fn get_order(&self, pair: TradingPair, order_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 366 | pub async fn get_balance(&self, asset: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 396 | pub async fn get_all_balances(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 429 | fn convert_order_response(&self, resp: OrderResponse, pair: TradingPair) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderBook` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:503:12 [INFO] [stdout] | [INFO] [stdout] 503 | pub struct OrderBook { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `best_bid`, `best_ask`, `spread`, and `mid_price` are never used [INFO] [stdout] --> src/exchange/binance.rs:511:12 [INFO] [stdout] | [INFO] [stdout] 510 | impl OrderBook { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 511 | pub fn best_bid(&self) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 515 | pub fn best_ask(&self) -> Option<(Decimal, Decimal)> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | pub fn spread(&self) -> Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 526 | pub fn mid_price(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ServerTimeResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:536:8 [INFO] [stdout] | [INFO] [stdout] 536 | struct ServerTimeResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `KlineResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:561:8 [INFO] [stdout] | [INFO] [stdout] 561 | struct KlineResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderBookResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:583:8 [INFO] [stdout] | [INFO] [stdout] 583 | struct OrderBookResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OrderResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:591:8 [INFO] [stdout] | [INFO] [stdout] 591 | struct OrderResponse { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AccountResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:618:8 [INFO] [stdout] | [INFO] [stdout] 618 | struct AccountResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BalanceResponse` is never constructed [INFO] [stdout] --> src/exchange/binance.rs:623:8 [INFO] [stdout] | [INFO] [stdout] 623 | struct BalanceResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/exchange/websocket.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | Trade(Trade), [INFO] [stdout] | ----- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `MarketEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 20 - Trade(Trade), [INFO] [stdout] 20 + Trade(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `subscribe_ticker` and `subscribe_trade` are never used [INFO] [stdout] --> src/exchange/websocket.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl BinanceWebSocket { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn subscribe_ticker(&mut self, pair: TradingPair) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn subscribe_trade(&mut self, pair: TradingPair) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `cancel_order` and `portfolio_arc` are never used [INFO] [stdout] --> src/engine/paper.rs:321:18 [INFO] [stdout] | [INFO] [stdout] 29 | impl PaperTradingEngine { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | pub async fn cancel_order(&self, order_id: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 359 | pub fn portfolio_arc(&self) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/engine/portfolio.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Portfolio { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn set_balance(&mut self, asset: &str, amount: Decimal) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn get_position_for_pair_mut(&mut self, pair: TradingPair) -> Option<&mut Position> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn update_order(&mut self, order_id: &str, status: OrderStatus, filled_qty: Decimal, avg_price: Option) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 210 | pub fn get_active_orders(&self) -> Vec<&Order> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 267 | pub fn scale_position(&mut self, _position_id: &str, _additional_qty: Decimal, _price: Decimal) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn update_all_trailing_stops(&mut self, prices: &HashMap) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 282 | pub fn get_position(&self, position_id: &str) -> Option<&Position> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 290 | pub fn snapshot(&self, prices: &HashMap) -> PortfolioSnapshot { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StrategyRunner` is never constructed [INFO] [stdout] --> src/engine/executor.rs:307:12 [INFO] [stdout] | [INFO] [stdout] 307 | pub struct StrategyRunner { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_strategy`, `run_analysis`, and `execute_signals` are never used [INFO] [stdout] --> src/engine/executor.rs:313:12 [INFO] [stdout] | [INFO] [stdout] 312 | impl StrategyRunner { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 313 | pub fn new(executor: Arc) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 320 | pub fn add_strategy(&mut self, strategy: Box) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 325 | pub async fn run_analysis(&mut self, candles: &CandleBuffer) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 339 | pub async fn execute_signals(&self, signals: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `subscribe` is never used [INFO] [stdout] --> src/engine/controller.rs:169:12 [INFO] [stdout] | [INFO] [stdout] 42 | impl BotController { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | pub fn subscribe(&self) -> broadcast::Receiver { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `calculate_stop_loss`, `calculate_take_profit`, `should_close_position`, `assess_portfolio_risk`, and `config_arc` are never used [INFO] [stdout] --> src/risk/manager.rs:149:18 [INFO] [stdout] | [INFO] [stdout] 16 | impl RiskManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 149 | pub async fn calculate_stop_loss( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 173 | pub async fn calculate_take_profit( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub async fn should_close_position( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 225 | pub async fn assess_portfolio_risk(&self, portfolio: &Portfolio) -> RiskAssessment { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 269 | pub fn config_arc(&self) -> Arc> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CloseReason` is never used [INFO] [stdout] --> src/risk/manager.rs:275:10 [INFO] [stdout] | [INFO] [stdout] 275 | pub enum CloseReason { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RiskLevel` is never used [INFO] [stdout] --> src/risk/manager.rs:285:10 [INFO] [stdout] | [INFO] [stdout] 285 | pub enum RiskLevel { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RiskAssessment` is never constructed [INFO] [stdout] --> src/risk/manager.rs:293:12 [INFO] [stdout] | [INFO] [stdout] 293 | pub struct RiskAssessment { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `conservative`, `aggressive`, and `custom` are never used [INFO] [stdout] --> src/risk/limits.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl RiskLimits { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] 31 | pub fn conservative() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn aggressive() -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn custom( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `balanced`, `btc_heavy`, and `altcoin_heavy` are never used [INFO] [stdout] --> src/risk/limits.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 139 | impl PositionSizeConfig { [INFO] [stdout] | ----------------------- associated functions in this implementation [INFO] [stdout] 140 | pub fn balanced() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 148 | pub fn btc_heavy() -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn altcoin_heavy() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `FullConfigUpdated` is never constructed [INFO] [stdout] --> src/config/manager.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum ConfigChangeEvent { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 16 | FullConfigUpdated, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConfigChangeEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_full` and `subscribe` are never used [INFO] [stdout] --> src/config/manager.rs:94:18 [INFO] [stdout] | [INFO] [stdout] 24 | impl RuntimeConfigManager { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 94 | pub async fn update_full(&self, new_config: RuntimeConfig) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn subscribe(&self) -> broadcast::Receiver { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `default` is never used [INFO] [stdout] --> src/config/profiles.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl StrategyConfig { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `win_rate`, `profit_factor`, `avg_win`, and `avg_loss` are never used [INFO] [stdout] --> src/web/state.rs:193:12 [INFO] [stdout] | [INFO] [stdout] 192 | impl TradingStats { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 193 | pub fn win_rate(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn profit_factor(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn avg_win(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn avg_loss(&self) -> Decimal { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `ConfigChange` is never constructed [INFO] [stdout] --> src/web/state.rs:289:5 [INFO] [stdout] | [INFO] [stdout] 283 | pub enum DashboardEvent { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 289 | ConfigChange { change: ConfigChangeEvent }, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DashboardEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/database/mod.rs:299:18 [INFO] [stdout] | [INFO] [stdout] 17 | impl Database { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 299 | pub async fn get_trades_since(&self, since: DateTime) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 337 | pub async fn get_recent_trades(&self, limit: u32) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 375 | pub async fn get_trade_count(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 384 | pub async fn insert_equity_snapshot( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 410 | pub async fn get_equity_snapshots_since(&self, since: DateTime) -> Result, Decimal)>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | pub async fn get_all_signals(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 512 | pub async fn get_signals_since(&self, since: DateTime) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 570 | pub async fn insert_partial_exit( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 598 | pub async fn get_partial_exits_for_position(&self, position_id: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 626 | pub async fn update_position_state(&self, position_id: &str, state_json: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 672 | pub async fn get_recent_notifications(&self, limit: usize) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 711 | pub async fn get_unacknowledged_critical(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 757 | pub async fn cleanup_old_data(&self, keep_days: i64) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PartialExitRecord` is never constructed [INFO] [stdout] --> src/database/mod.rs:777:12 [INFO] [stdout] | [INFO] [stdout] 777 | pub struct PartialExitRecord { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `with_severity` is never used [INFO] [stdout] --> src/notifications/mod.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 209 | impl Notification { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 221 | pub fn with_severity(mut self, severity: Severity) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `clear_old` is never used [INFO] [stdout] --> src/notifications/mod.rs:311:18 [INFO] [stdout] | [INFO] [stdout] 234 | impl NotificationManager { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 311 | pub async fn clear_old(&self, keep_count: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 17.80s [INFO] running `Command { std: "docker" "inspect" "6cb516e2cbd6bec93d030ced90e2081df2d1495933f91e5f9f7d12ce2bb23423", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cb516e2cbd6bec93d030ced90e2081df2d1495933f91e5f9f7d12ce2bb23423", kill_on_drop: false }` [INFO] [stdout] 6cb516e2cbd6bec93d030ced90e2081df2d1495933f91e5f9f7d12ce2bb23423 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] d0be749d5d08fd4d05e35045717cf68c8d8e533f83dec685e5e2013930212010 [INFO] running `Command { std: "docker" "start" "-a" "d0be749d5d08fd4d05e35045717cf68c8d8e533f83dec685e5e2013930212010", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `anyhow::Result` [INFO] [stderr] --> src/types/position.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use anyhow::Result; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `trend::*` [INFO] [stderr] --> src/strategies/mod.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub use trend::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `momentum::*` [INFO] [stderr] --> src/strategies/mod.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub use momentum::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `mean_reversion::*` [INFO] [stderr] --> src/strategies/mod.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | pub use mean_reversion::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Serialize` [INFO] [stderr] --> src/exchange/binance.rs:6:26 [INFO] [stderr] | [INFO] [stderr] 6 | use serde::{Deserialize, Serialize}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `warn` [INFO] [stderr] --> src/exchange/binance.rs:10:28 [INFO] [stderr] | [INFO] [stderr] 10 | use tracing::{debug, info, warn}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Side` [INFO] [stderr] --> src/exchange/websocket.rs:11:28 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::types::{Candle, Side, Ticker, TimeFrame, Trade, TradingPair}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `debug` [INFO] [stderr] --> src/engine/paper.rs:7:15 [INFO] [stderr] | [INFO] [stderr] 7 | use tracing::{debug, info, warn}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `uuid::Uuid` [INFO] [stderr] --> src/engine/paper.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use uuid::Uuid; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Ticker` [INFO] [stderr] --> src/engine/paper.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | Ticker, TimeFrame, TradingPair, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Side` [INFO] [stderr] --> src/engine/portfolio.rs:9:70 [INFO] [stderr] | [INFO] [stderr] 9 | Order, OrderStatus, Position, PositionStatus, PortfolioSnapshot, Side, TradingPair, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `AlertType` [INFO] [stderr] --> src/engine/executor.rs:9:127 [INFO] [stderr] | [INFO] [stderr] 9 | ...osition_closed, stop_loss_triggered, take_profit_triggered, AlertType}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `warn` [INFO] [stderr] --> src/engine/backtest.rs:6:28 [INFO] [stderr] | [INFO] [stderr] 6 | use tracing::{debug, info, warn}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Signal` [INFO] [stderr] --> src/engine/backtest.rs:11:74 [INFO] [stderr] | [INFO] [stderr] 11 | use crate::types::{Candle, CandleBuffer, Position, PositionStatus, Side, Signal, TimeFrame, TradingPair}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `results::*` [INFO] [stderr] --> src/engine/mod.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub use results::*; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `limits::*` [INFO] [stderr] --> src/risk/mod.rs:5:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub use limits::*; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `RuntimeConfig` [INFO] [stderr] --> src/web/api.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | RuntimeConfig, RiskSettings, ExecutorSettings, StrategySettings, GeneralSettings, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `DashboardState` [INFO] [stderr] --> src/web/api.rs:16:23 [INFO] [stderr] | [INFO] [stderr] 16 | use super::{AppState, DashboardState, DashboardEvent}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `BotStatus` [INFO] [stderr] --> src/web/state.rs:9:46 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::engine::{BotController, BotState, BotStatus}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Position` and `Signal` [INFO] [stderr] --> src/web/state.rs:10:20 [INFO] [stderr] | [INFO] [stderr] 10 | use crate::types::{Position, Side, Signal, TradingPair}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `api::*` [INFO] [stderr] --> src/web/mod.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub use api::*; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Side` [INFO] [stderr] --> src/analytics/mod.rs:8:20 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::types::{Side, TradingPair}; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Sqlite` [INFO] [stderr] --> src/database/mod.rs:5:17 [INFO] [stderr] | [INFO] [stderr] 5 | use sqlx::{Row, Sqlite}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::path::Path` [INFO] [stderr] --> src/database/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::path::Path; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `tokio::sync::RwLock` [INFO] [stderr] --> src/main.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | use tokio::sync::RwLock; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Signal` [INFO] [stderr] --> src/main.rs:28:51 [INFO] [stderr] | [INFO] [stderr] 28 | use types::{TimeFrame, TradingPair, CandleBuffer, Signal, Side}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `close` [INFO] [stderr] --> src/indicators/atr.rs:48:65 [INFO] [stderr] | [INFO] [stderr] 48 | fn calculate_true_range(&self, high: Decimal, low: Decimal, close: Decimal) -> Decimal { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_close` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `recent` [INFO] [stderr] --> src/strategies/momentum.rs:215:13 [INFO] [stderr] | [INFO] [stderr] 215 | let recent = candles.last_n(self.lookback); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_recent` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `bb_middle` [INFO] [stderr] --> src/strategies/mean_reversion.rs:49:9 [INFO] [stderr] | [INFO] [stderr] 49 | bb_middle: Decimal, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_bb_middle` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `current` [INFO] [stderr] --> src/strategies/combined.rs:284:13 [INFO] [stderr] | [INFO] [stderr] 284 | let current = candles.last()?; [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ema20` [INFO] [stderr] --> src/strategies/improved.rs:116:13 [INFO] [stderr] | [INFO] [stderr] 116 | let ema20 = self.ema_20.value()?; [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ema20` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `position_id` [INFO] [stderr] --> src/engine/portfolio.rs:272:46 [INFO] [stderr] | [INFO] [stderr] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `quantity` [INFO] [stderr] --> src/engine/portfolio.rs:272:65 [INFO] [stderr] | [INFO] [stderr] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_quantity` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `price` [INFO] [stderr] --> src/engine/portfolio.rs:272:84 [INFO] [stderr] | [INFO] [stderr] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_price` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `prices` [INFO] [stderr] --> src/engine/portfolio.rs:278:49 [INFO] [stderr] | [INFO] [stderr] 278 | pub fn update_all_trailing_stops(&mut self, prices: &HashMap) -> Vec { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_prices` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `initial_capital` [INFO] [stderr] --> src/engine/results.rs:351:49 [INFO] [stderr] | [INFO] [stderr] 351 | fn calculate_ratios(trades: &[TradeRecord], initial_capital: Decimal) -> (Decimal, Decimal) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_initial_capital` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `config` [INFO] [stderr] --> src/risk/manager.rs:226:13 [INFO] [stderr] | [INFO] [stderr] 226 | let config = self.config.read().await; [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/web/api.rs:488:30 [INFO] [stderr] | [INFO] [stderr] 488 | Ok(Message::Ping(data)) => { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `profile_config` [INFO] [stderr] --> src/web/api.rs:559:9 [INFO] [stderr] | [INFO] [stderr] 559 | let profile_config = match req.profile { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_profile_config` [INFO] [stderr] [INFO] [stderr] warning: method `price_precision` is never used [INFO] [stderr] --> src/types/trading.rs:77:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl TradingPair { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 77 | pub fn price_precision(&self) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `opposite` is never used [INFO] [stderr] --> src/types/trading.rs:113:12 [INFO] [stderr] | [INFO] [stderr] 112 | impl Side { [INFO] [stderr] | --------- method in this implementation [INFO] [stderr] 113 | pub fn opposite(&self) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `to_minutes` and `to_milliseconds` are never used [INFO] [stderr] --> src/types/trading.rs:156:12 [INFO] [stderr] | [INFO] [stderr] 144 | impl TimeFrame { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 156 | pub fn to_minutes(&self) -> u64 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 167 | pub fn to_milliseconds(&self) -> u64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `TradingMode` is never used [INFO] [stderr] --> src/types/trading.rs:179:10 [INFO] [stderr] | [INFO] [stderr] 179 | pub enum TradingMode { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `is_bearish` is never used [INFO] [stderr] --> src/types/trading.rs:217:12 [INFO] [stderr] | [INFO] [stderr] 202 | impl Signal { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 217 | pub fn is_bearish(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_str` is never used [INFO] [stderr] --> src/types/order.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl OrderType { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] 19 | pub fn as_str(&self) -> &'static str { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `is_active` and `is_final` are never used [INFO] [stderr] --> src/types/order.rs:43:12 [INFO] [stderr] | [INFO] [stderr] 42 | impl OrderStatus { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] 43 | pub fn is_active(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 47 | pub fn is_final(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `as_str` is never used [INFO] [stderr] --> src/types/order.rs:60:12 [INFO] [stderr] | [INFO] [stderr] 59 | impl TimeInForce { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] 60 | pub fn as_str(&self) -> &'static str { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `limit` is never used [INFO] [stderr] --> src/types/order.rs:95:12 [INFO] [stderr] | [INFO] [stderr] 81 | impl OrderRequest { [INFO] [stderr] | ----------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 95 | pub fn limit(pair: TradingPair, side: Side, quantity: Decimal, price: Decimal) -> Self { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `remaining_quantity`, `fill_percentage`, and `notional_value` are never used [INFO] [stderr] --> src/types/order.rs:165:12 [INFO] [stderr] | [INFO] [stderr] 142 | impl Order { [INFO] [stderr] | ---------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 165 | pub fn remaining_quantity(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 169 | pub fn fill_percentage(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 177 | pub fn notional_value(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Fill` is never constructed [INFO] [stderr] --> src/types/order.rs:183:12 [INFO] [stderr] | [INFO] [stderr] 183 | pub struct Fill { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `notional_value`, `with_stop_loss`, `with_take_profit`, and `is_profitable` are never used [INFO] [stderr] --> src/types/position.rs:86:12 [INFO] [stderr] | [INFO] [stderr] 35 | impl Position { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 86 | pub fn notional_value(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 124 | pub fn with_stop_loss(mut self, stop_loss: Decimal) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 129 | pub fn with_take_profit(mut self, take_profit: Decimal) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 139 | pub fn is_profitable(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PortfolioSnapshot` is never constructed [INFO] [stderr] --> src/types/position.rs:146:12 [INFO] [stderr] | [INFO] [stderr] 146 | pub struct PortfolioSnapshot { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `position_count` and `total_position_value` are never used [INFO] [stderr] --> src/types/position.rs:158:12 [INFO] [stderr] | [INFO] [stderr] 157 | impl PortfolioSnapshot { [INFO] [stderr] | ---------------------- methods in this implementation [INFO] [stderr] 158 | pub fn position_count(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 162 | pub fn total_position_value(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/types/candle.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 23 | impl Candle { [INFO] [stderr] | ----------- methods in this implementation [INFO] [stderr] 24 | pub fn body_size(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 28 | pub fn range(&self) -> Decimal { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn upper_wick(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 36 | pub fn lower_wick(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 44 | pub fn is_bearish(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 48 | pub fn is_doji(&self) -> bool { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | pub fn body_percentage(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 65 | pub fn typical_price(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 69 | pub fn hlc3(&self) -> Decimal { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 73 | pub fn ohlc4(&self) -> Decimal { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 77 | pub fn change(&self) -> Decimal { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `is_empty`, `closes`, `highs`, `lows`, `volumes`, and `typical_prices` are never used [INFO] [stderr] --> src/types/candle.rs:114:12 [INFO] [stderr] | [INFO] [stderr] 95 | impl CandleBuffer { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 114 | pub fn is_empty(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 131 | pub fn closes(&self) -> Vec { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 135 | pub fn highs(&self) -> Vec { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 139 | pub fn lows(&self) -> Vec { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 143 | pub fn volumes(&self) -> Vec { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 147 | pub fn typical_prices(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `spread`, `spread_percentage`, and `mid_price` are never used [INFO] [stderr] --> src/types/candle.rs:167:12 [INFO] [stderr] | [INFO] [stderr] 166 | impl Ticker { [INFO] [stderr] | ----------- methods in this implementation [INFO] [stderr] 167 | pub fn spread(&self) -> Decimal { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 171 | pub fn spread_percentage(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 178 | pub fn mid_price(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `name` and `reset` are never used [INFO] [stderr] --> src/indicators/mod.rs:18:8 [INFO] [stderr] | [INFO] [stderr] 17 | pub trait Indicator { [INFO] [stderr] | --------- methods in this trait [INFO] [stderr] 18 | fn name(&self) -> &'static str; [INFO] [stderr] | ^^^^ [INFO] [stderr] 19 | fn is_ready(&self) -> bool; [INFO] [stderr] 20 | fn reset(&mut self); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `highest` is never used [INFO] [stderr] --> src/indicators/mod.rs:31:8 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn highest(values: &[Decimal], period: usize) -> Option { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `lowest` is never used [INFO] [stderr] --> src/indicators/mod.rs:38:8 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn lowest(values: &[Decimal], period: usize) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `period` is never used [INFO] [stderr] --> src/indicators/ema.rs:50:12 [INFO] [stderr] | [INFO] [stderr] 13 | impl EMA { [INFO] [stderr] | -------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 50 | pub fn period(&self) -> usize { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `calculate_ema_series` is never used [INFO] [stderr] --> src/indicators/ema.rs:71:8 [INFO] [stderr] | [INFO] [stderr] 71 | pub fn calculate_ema_series(prices: &[Decimal], period: usize) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `crossover` and `spread` are never used [INFO] [stderr] --> src/indicators/ema.rs:107:12 [INFO] [stderr] | [INFO] [stderr] 85 | impl DoubleEMA { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 107 | pub fn crossover(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 114 | pub fn spread(&self) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `is_oversold`, `is_overbought`, and `zone` are never used [INFO] [stderr] --> src/indicators/rsi.rs:77:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl RSI { [INFO] [stderr] | -------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 77 | pub fn is_oversold(&self, threshold: Decimal) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 81 | pub fn is_overbought(&self, threshold: Decimal) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 85 | pub fn zone(&self) -> Option { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `RSIZone` is never used [INFO] [stderr] --> src/indicators/rsi.rs:120:10 [INFO] [stderr] | [INFO] [stderr] 120 | pub enum RSIZone { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `is_extreme` is never used [INFO] [stderr] --> src/indicators/rsi.rs:128:12 [INFO] [stderr] | [INFO] [stderr] 127 | impl RSIZone { [INFO] [stderr] | ------------ method in this implementation [INFO] [stderr] 128 | pub fn is_extreme(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `StochasticRSI` is never constructed [INFO] [stderr] --> src/indicators/rsi.rs:134:12 [INFO] [stderr] | [INFO] [stderr] 134 | pub struct StochasticRSI { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `update` are never used [INFO] [stderr] --> src/indicators/rsi.rs:144:12 [INFO] [stderr] | [INFO] [stderr] 143 | impl StochasticRSI { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 144 | pub fn new(rsi_period: usize, stoch_period: usize, k_period: usize, d_period: usize) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 155 | pub fn update(&mut self, price: Decimal) -> Option<(Decimal, Decimal)> { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `macd_line`, `signal_line`, `histogram`, `is_bullish_crossover`, `is_bearish_crossover`, and `histogram_decreasing` are never used [INFO] [stderr] --> src/indicators/macd.rs:60:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl MACD { [INFO] [stderr] | --------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 60 | pub fn macd_line(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 64 | pub fn signal_line(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 68 | pub fn histogram(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 72 | pub fn is_bullish_crossover(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | pub fn is_bearish_crossover(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 93 | pub fn histogram_decreasing(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `macd_line`, `signal_line`, and `histogram` are never read [INFO] [stderr] --> src/indicators/macd.rs:142:9 [INFO] [stderr] | [INFO] [stderr] 141 | pub struct MACDOutput { [INFO] [stderr] | ---------- fields in this struct [INFO] [stderr] 142 | pub macd_line: Decimal, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 143 | pub signal_line: Decimal, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 144 | pub histogram: Decimal, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MACDOutput` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `strength` is never used [INFO] [stderr] --> src/indicators/macd.rs:165:12 [INFO] [stderr] | [INFO] [stderr] 156 | impl MACDTrend { [INFO] [stderr] | -------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 165 | pub fn strength(&self) -> i8 { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `bandwidth`, `percent_b`, `is_squeeze`, `is_expansion`, and `position` are never used [INFO] [stderr] --> src/indicators/bollinger.rs:91:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl BollingerBands { [INFO] [stderr] | ------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 91 | pub fn bandwidth(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 95 | pub fn percent_b(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 99 | pub fn is_squeeze(&self, threshold: Decimal) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | pub fn is_expansion(&self, threshold: Decimal) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | pub fn position(&self, price: Decimal) -> Option { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `upper`, `middle`, `lower`, `bandwidth`, and `percent_b` are never read [INFO] [stderr] --> src/indicators/bollinger.rs:148:9 [INFO] [stderr] | [INFO] [stderr] 147 | pub struct BollingerOutput { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] 148 | pub upper: Decimal, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 149 | pub middle: Decimal, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 150 | pub lower: Decimal, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 151 | pub bandwidth: Decimal, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 152 | pub percent_b: Decimal, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BollingerOutput` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: enum `BollingerPosition` is never used [INFO] [stderr] --> src/indicators/bollinger.rs:156:10 [INFO] [stderr] | [INFO] [stderr] 156 | pub enum BollingerPosition { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `is_extreme`, `is_overbought`, and `is_oversold` are never used [INFO] [stderr] --> src/indicators/bollinger.rs:165:12 [INFO] [stderr] | [INFO] [stderr] 164 | impl BollingerPosition { [INFO] [stderr] | ---------------------- methods in this implementation [INFO] [stderr] 165 | pub fn is_extreme(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 169 | pub fn is_overbought(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 173 | pub fn is_oversold(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `calculate_stop_loss`, `calculate_take_profit`, and `volatility_level` are never used [INFO] [stderr] --> src/indicators/atr.rs:65:12 [INFO] [stderr] | [INFO] [stderr] 12 | impl ATR { [INFO] [stderr] | -------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 65 | pub fn calculate_stop_loss(&self, entry_price: Decimal, multiplier: Decimal, is_long: bool) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 76 | pub fn calculate_take_profit(&self, entry_price: Decimal, multiplier: Decimal, is_long: bool) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 87 | pub fn volatility_level(&self, price: Decimal) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `VolatilityLevel` is never used [INFO] [stderr] --> src/indicators/atr.rs:125:10 [INFO] [stderr] | [INFO] [stderr] 125 | pub enum VolatilityLevel { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `position_size_factor` is never used [INFO] [stderr] --> src/indicators/atr.rs:133:12 [INFO] [stderr] | [INFO] [stderr] 132 | impl VolatilityLevel { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] 133 | pub fn position_size_factor(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ATRTrailingStop` is never constructed [INFO] [stderr] --> src/indicators/atr.rs:144:12 [INFO] [stderr] | [INFO] [stderr] 144 | pub struct ATRTrailingStop { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `update`, `is_stopped`, and `stop_price` are never used [INFO] [stderr] --> src/indicators/atr.rs:152:12 [INFO] [stderr] | [INFO] [stderr] 151 | impl ATRTrailingStop { [INFO] [stderr] | -------------------- associated items in this implementation [INFO] [stderr] 152 | pub fn new(period: usize, multiplier: Decimal, is_long: bool) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 161 | pub fn update(&mut self, high: Decimal, low: Decimal, close: Decimal) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 180 | pub fn is_stopped(&self, price: Decimal) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 193 | pub fn stop_price(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `is_low_volume` is never used [INFO] [stderr] --> src/indicators/volume.rs:53:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl VolumeProfile { [INFO] [stderr] | ------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 53 | pub fn is_low_volume(&self, current_volume: Decimal, threshold: Decimal) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `OBV` is never constructed [INFO] [stderr] --> src/indicators/volume.rs:76:12 [INFO] [stderr] | [INFO] [stderr] 76 | pub struct OBV { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `update`, and `value` are never used [INFO] [stderr] --> src/indicators/volume.rs:82:12 [INFO] [stderr] | [INFO] [stderr] 81 | impl OBV { [INFO] [stderr] | -------- associated items in this implementation [INFO] [stderr] 82 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 89 | pub fn update(&mut self, close: Decimal, volume: Decimal) -> Decimal { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 101 | pub fn value(&self) -> Decimal { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `VWAP` is never constructed [INFO] [stderr] --> src/indicators/volume.rs:128:12 [INFO] [stderr] | [INFO] [stderr] 128 | pub struct VWAP { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `update`, `value`, and `price_vs_vwap` are never used [INFO] [stderr] --> src/indicators/volume.rs:135:12 [INFO] [stderr] | [INFO] [stderr] 134 | impl VWAP { [INFO] [stderr] | --------- associated items in this implementation [INFO] [stderr] 135 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 143 | pub fn update(&mut self, high: Decimal, low: Decimal, close: Decimal, volume: Decimal) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 155 | pub fn value(&self) -> Option { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 159 | pub fn price_vs_vwap(&self, price: Decimal) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `PriceVsVWAP` is never used [INFO] [stderr] --> src/indicators/volume.rs:205:10 [INFO] [stderr] | [INFO] [stderr] 205 | pub enum PriceVsVWAP { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `is_bullish` and `is_bearish` are never used [INFO] [stderr] --> src/indicators/volume.rs:214:12 [INFO] [stderr] | [INFO] [stderr] 213 | impl PriceVsVWAP { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] 214 | pub fn is_bullish(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 218 | pub fn is_bearish(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `MoneyFlowIndex` is never constructed [INFO] [stderr] --> src/indicators/volume.rs:224:12 [INFO] [stderr] | [INFO] [stderr] 224 | pub struct MoneyFlowIndex { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `update`, `value`, `is_oversold`, and `is_overbought` are never used [INFO] [stderr] --> src/indicators/volume.rs:233:12 [INFO] [stderr] | [INFO] [stderr] 232 | impl MoneyFlowIndex { [INFO] [stderr] | ------------------- associated items in this implementation [INFO] [stderr] 233 | pub fn new(period: usize) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 243 | pub fn update(&mut self, high: Decimal, low: Decimal, close: Decimal, volume: Decimal) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 281 | pub fn value(&self) -> Option { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 285 | pub fn is_oversold(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 289 | pub fn is_overbought(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `name` and `reset` are never used [INFO] [stderr] --> src/strategies/mod.rs:17:8 [INFO] [stderr] | [INFO] [stderr] 16 | pub trait Strategy: Send + Sync { [INFO] [stderr] | -------- methods in this trait [INFO] [stderr] 17 | fn name(&self) -> &str; [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 21 | fn reset(&mut self); [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `should_trade` is never used [INFO] [stderr] --> src/strategies/mod.rs:76:12 [INFO] [stderr] | [INFO] [stderr] 36 | impl StrategySignal { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 76 | pub fn should_trade(&self, min_confidence: Decimal) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `with_params` is never used [INFO] [stderr] --> src/strategies/trend.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 20 | impl TrendStrategy { [INFO] [stderr] | ------------------ associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 34 | pub fn with_params( [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `aggressive` is never used [INFO] [stderr] --> src/strategies/momentum.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 22 | impl MomentumStrategy { [INFO] [stderr] | --------------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 38 | pub fn aggressive() -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `conservative` is never used [INFO] [stderr] --> src/strategies/mean_reversion.rs:32:12 [INFO] [stderr] | [INFO] [stderr] 19 | impl MeanReversionStrategy { [INFO] [stderr] | -------------------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 32 | pub fn conservative(pair: TradingPair) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `min_agreement` is never read [INFO] [stderr] --> src/strategies/combined.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub struct CombinedStrategy { [INFO] [stderr] | ---------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 15 | min_agreement: Decimal, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BTCCorrelationStrategy` is never constructed [INFO] [stderr] --> src/strategies/combined.rs:217:12 [INFO] [stderr] | [INFO] [stderr] 217 | pub struct BTCCorrelationStrategy { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `update_btc`, and `calculate_btc_momentum` are never used [INFO] [stderr] --> src/strategies/combined.rs:226:12 [INFO] [stderr] | [INFO] [stderr] 225 | impl BTCCorrelationStrategy { [INFO] [stderr] | --------------------------- associated items in this implementation [INFO] [stderr] 226 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 236 | pub fn update_btc(&mut self, candle: crate::types::Candle) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 240 | fn calculate_btc_momentum(&self) -> Option<(Decimal, bool)> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `Exchange` is never used [INFO] [stderr] --> src/exchange/mod.rs:12:11 [INFO] [stderr] | [INFO] [stderr] 12 | pub trait Exchange: Send + Sync { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `BINANCE_US_TESTNET` is never used [INFO] [stderr] --> src/exchange/binance.rs:17:7 [INFO] [stderr] | [INFO] [stderr] 17 | const BINANCE_US_TESTNET: &str = "https://testnet.binance.vision"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: type alias `HmacSha256` is never used [INFO] [stderr] --> src/exchange/binance.rs:19:6 [INFO] [stderr] | [INFO] [stderr] 19 | type HmacSha256 = Hmac; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `api_key`, `secret_key`, and `use_testnet` are never read [INFO] [stderr] --> src/exchange/binance.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 22 | pub struct BinanceClient { [INFO] [stderr] | ------------- fields in this struct [INFO] [stderr] 23 | client: Client, [INFO] [stderr] 24 | api_key: String, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 25 | secret_key: String, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 26 | base_url: String, [INFO] [stderr] 27 | use_testnet: bool, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BinanceClient` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/exchange/binance.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 30 | impl BinanceClient { [INFO] [stderr] | ------------------ associated items in this implementation [INFO] [stderr] 31 | pub fn new(api_key: String, secret_key: String, use_testnet: bool) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 57 | fn sign(&self, query: &str) -> String { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 64 | fn build_signed_query(&self, params: &HashMap<&str, String>) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 77 | pub async fn get_server_time(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 241 | pub async fn get_order_book(&self, pair: TradingPair, limit: u32) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 271 | pub async fn place_order(&self, request: &OrderRequest) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 314 | pub async fn cancel_order(&self, pair: TradingPair, order_id: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 340 | pub async fn get_order(&self, pair: TradingPair, order_id: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 366 | pub async fn get_balance(&self, asset: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 396 | pub async fn get_all_balances(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 429 | fn convert_order_response(&self, resp: OrderResponse, pair: TradingPair) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `OrderBook` is never constructed [INFO] [stderr] --> src/exchange/binance.rs:503:12 [INFO] [stderr] | [INFO] [stderr] 503 | pub struct OrderBook { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `best_bid`, `best_ask`, `spread`, and `mid_price` are never used [INFO] [stderr] --> src/exchange/binance.rs:511:12 [INFO] [stderr] | [INFO] [stderr] 510 | impl OrderBook { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] 511 | pub fn best_bid(&self) -> Option<(Decimal, Decimal)> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 515 | pub fn best_ask(&self) -> Option<(Decimal, Decimal)> { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 519 | pub fn spread(&self) -> Option { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 526 | pub fn mid_price(&self) -> Option { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `ServerTimeResponse` is never constructed [INFO] [stderr] --> src/exchange/binance.rs:536:8 [INFO] [stderr] | [INFO] [stderr] 536 | struct ServerTimeResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `KlineResponse` is never constructed [INFO] [stderr] --> src/exchange/binance.rs:561:8 [INFO] [stderr] | [INFO] [stderr] 561 | struct KlineResponse { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `OrderBookResponse` is never constructed [INFO] [stderr] --> src/exchange/binance.rs:583:8 [INFO] [stderr] | [INFO] [stderr] 583 | struct OrderBookResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `OrderResponse` is never constructed [INFO] [stderr] --> src/exchange/binance.rs:591:8 [INFO] [stderr] | [INFO] [stderr] 591 | struct OrderResponse { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `AccountResponse` is never constructed [INFO] [stderr] --> src/exchange/binance.rs:618:8 [INFO] [stderr] | [INFO] [stderr] 618 | struct AccountResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `BalanceResponse` is never constructed [INFO] [stderr] --> src/exchange/binance.rs:623:8 [INFO] [stderr] | [INFO] [stderr] 623 | struct BalanceResponse { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/exchange/websocket.rs:20:11 [INFO] [stderr] | [INFO] [stderr] 20 | Trade(Trade), [INFO] [stderr] | ----- ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] = note: `MarketEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 20 - Trade(Trade), [INFO] [stderr] 20 + Trade(()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: methods `subscribe_ticker` and `subscribe_trade` are never used [INFO] [stderr] --> src/exchange/websocket.rs:44:12 [INFO] [stderr] | [INFO] [stderr] 39 | impl BinanceWebSocket { [INFO] [stderr] | --------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 44 | pub fn subscribe_ticker(&mut self, pair: TradingPair) -> &mut Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 60 | pub fn subscribe_trade(&mut self, pair: TradingPair) -> &mut Self { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `cancel_order` and `portfolio_arc` are never used [INFO] [stderr] --> src/engine/paper.rs:321:18 [INFO] [stderr] | [INFO] [stderr] 29 | impl PaperTradingEngine { [INFO] [stderr] | ----------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 321 | pub async fn cancel_order(&self, order_id: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 359 | pub fn portfolio_arc(&self) -> Arc> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/engine/portfolio.rs:57:12 [INFO] [stderr] | [INFO] [stderr] 27 | impl Portfolio { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 57 | pub fn set_balance(&mut self, asset: &str, amount: Decimal) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 175 | pub fn get_position_for_pair_mut(&mut self, pair: TradingPair) -> Option<&mut Position> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 201 | pub fn update_order(&mut self, order_id: &str, status: OrderStatus, filled_qty: Decimal, avg_price: Option) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 210 | pub fn get_active_orders(&self) -> Vec<&Order> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 267 | pub fn scale_position(&mut self, _position_id: &str, _additional_qty: Decimal, _price: Decimal) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 272 | pub fn partial_close_position(&mut self, position_id: &str, quantity: Decimal, price: Decimal) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 278 | pub fn update_all_trailing_stops(&mut self, prices: &HashMap) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 282 | pub fn get_position(&self, position_id: &str) -> Option<&Position> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 290 | pub fn snapshot(&self, prices: &HashMap) -> PortfolioSnapshot { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `StrategyRunner` is never constructed [INFO] [stderr] --> src/engine/executor.rs:307:12 [INFO] [stderr] | [INFO] [stderr] 307 | pub struct StrategyRunner { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `add_strategy`, `run_analysis`, and `execute_signals` are never used [INFO] [stderr] --> src/engine/executor.rs:313:12 [INFO] [stderr] | [INFO] [stderr] 312 | impl StrategyRunner { [INFO] [stderr] | ------------------- associated items in this implementation [INFO] [stderr] 313 | pub fn new(executor: Arc) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 320 | pub fn add_strategy(&mut self, strategy: Box) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 325 | pub async fn run_analysis(&mut self, candles: &CandleBuffer) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 339 | pub async fn execute_signals(&self, signals: Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `subscribe` is never used [INFO] [stderr] --> src/engine/controller.rs:169:12 [INFO] [stderr] | [INFO] [stderr] 42 | impl BotController { [INFO] [stderr] | ------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 169 | pub fn subscribe(&self) -> broadcast::Receiver { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `calculate_stop_loss`, `calculate_take_profit`, `should_close_position`, `assess_portfolio_risk`, and `config_arc` are never used [INFO] [stderr] --> src/risk/manager.rs:149:18 [INFO] [stderr] | [INFO] [stderr] 16 | impl RiskManager { [INFO] [stderr] | ---------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 149 | pub async fn calculate_stop_loss( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 173 | pub async fn calculate_take_profit( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 190 | pub async fn should_close_position( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 225 | pub async fn assess_portfolio_risk(&self, portfolio: &Portfolio) -> RiskAssessment { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 269 | pub fn config_arc(&self) -> Arc> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `CloseReason` is never used [INFO] [stderr] --> src/risk/manager.rs:275:10 [INFO] [stderr] | [INFO] [stderr] 275 | pub enum CloseReason { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `RiskLevel` is never used [INFO] [stderr] --> src/risk/manager.rs:285:10 [INFO] [stderr] | [INFO] [stderr] 285 | pub enum RiskLevel { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `RiskAssessment` is never constructed [INFO] [stderr] --> src/risk/manager.rs:293:12 [INFO] [stderr] | [INFO] [stderr] 293 | pub struct RiskAssessment { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `conservative`, `aggressive`, and `custom` are never used [INFO] [stderr] --> src/risk/limits.rs:31:12 [INFO] [stderr] | [INFO] [stderr] 30 | impl RiskLimits { [INFO] [stderr] | --------------- associated functions in this implementation [INFO] [stderr] 31 | pub fn conservative() -> Self { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 63 | pub fn aggressive() -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | pub fn custom( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `balanced`, `btc_heavy`, and `altcoin_heavy` are never used [INFO] [stderr] --> src/risk/limits.rs:140:12 [INFO] [stderr] | [INFO] [stderr] 139 | impl PositionSizeConfig { [INFO] [stderr] | ----------------------- associated functions in this implementation [INFO] [stderr] 140 | pub fn balanced() -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 148 | pub fn btc_heavy() -> Self { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 156 | pub fn altcoin_heavy() -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `FullConfigUpdated` is never constructed [INFO] [stderr] --> src/config/manager.rs:16:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub enum ConfigChangeEvent { [INFO] [stderr] | ----------------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 16 | FullConfigUpdated, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ConfigChangeEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `update_full` and `subscribe` are never used [INFO] [stderr] --> src/config/manager.rs:94:18 [INFO] [stderr] | [INFO] [stderr] 24 | impl RuntimeConfigManager { [INFO] [stderr] | ------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 94 | pub async fn update_full(&self, new_config: RuntimeConfig) -> Result<(), String> { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | pub fn subscribe(&self) -> broadcast::Receiver { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `default` is never used [INFO] [stderr] --> src/config/profiles.rs:121:12 [INFO] [stderr] | [INFO] [stderr] 75 | impl StrategyConfig { [INFO] [stderr] | ------------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 121 | pub fn default() -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `win_rate`, `profit_factor`, `avg_win`, and `avg_loss` are never used [INFO] [stderr] --> src/web/state.rs:193:12 [INFO] [stderr] | [INFO] [stderr] 192 | impl TradingStats { [INFO] [stderr] | ----------------- methods in this implementation [INFO] [stderr] 193 | pub fn win_rate(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 201 | pub fn profit_factor(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 213 | pub fn avg_win(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 221 | pub fn avg_loss(&self) -> Decimal { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `ConfigChange` is never constructed [INFO] [stderr] --> src/web/state.rs:289:5 [INFO] [stderr] | [INFO] [stderr] 283 | pub enum DashboardEvent { [INFO] [stderr] | -------------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 289 | ConfigChange { change: ConfigChangeEvent }, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DashboardEvent` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/database/mod.rs:299:18 [INFO] [stderr] | [INFO] [stderr] 17 | impl Database { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 299 | pub async fn get_trades_since(&self, since: DateTime) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 337 | pub async fn get_recent_trades(&self, limit: u32) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 375 | pub async fn get_trade_count(&self) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 384 | pub async fn insert_equity_snapshot( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 410 | pub async fn get_equity_snapshots_since(&self, since: DateTime) -> Result, Decimal)>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 477 | pub async fn get_all_signals(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 512 | pub async fn get_signals_since(&self, since: DateTime) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 570 | pub async fn insert_partial_exit( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 598 | pub async fn get_partial_exits_for_position(&self, position_id: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 626 | pub async fn update_position_state(&self, position_id: &str, state_json: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 672 | pub async fn get_recent_notifications(&self, limit: usize) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 711 | pub async fn get_unacknowledged_critical(&self) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 757 | pub async fn cleanup_old_data(&self, keep_days: i64) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `PartialExitRecord` is never constructed [INFO] [stderr] --> src/database/mod.rs:777:12 [INFO] [stderr] | [INFO] [stderr] 777 | pub struct PartialExitRecord { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `with_severity` is never used [INFO] [stderr] --> src/notifications/mod.rs:221:12 [INFO] [stderr] | [INFO] [stderr] 209 | impl Notification { [INFO] [stderr] | ----------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 221 | pub fn with_severity(mut self, severity: Severity) -> Self { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `clear_old` is never used [INFO] [stderr] --> src/notifications/mod.rs:311:18 [INFO] [stderr] | [INFO] [stderr] 234 | impl NotificationManager { [INFO] [stderr] | ------------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 311 | pub async fn clear_old(&self, keep_count: usize) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `crypto_trading_bot` (bin "crypto_trading_bot" test) generated 131 warnings (run `cargo fix --bin "crypto_trading_bot" -p crypto_trading_bot --tests` to apply 39 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/build/crypto_trading_bot/c85607f9bf96904c/deps/crypto_trading_bot-c85607f9bf96904c) [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test config::profiles::tests::test_profile_configs ... ok [INFO] [stdout] test config::profiles::tests::test_profile_metadata ... ok [INFO] [stdout] test engine::portfolio::tests::test_balance_update ... ok [INFO] [stdout] test engine::portfolio::tests::test_portfolio_creation ... ok [INFO] [stdout] test notifications::tests::test_notification_creation ... ok [INFO] [stdout] test notifications::tests::test_severity_defaults ... ok [INFO] [stdout] test risk::limits::tests::test_position_size_config ... ok [INFO] [stdout] test risk::limits::tests::test_risk_limits_validation ... ok [INFO] [stdout] test notifications::tests::test_notification_manager ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d0be749d5d08fd4d05e35045717cf68c8d8e533f83dec685e5e2013930212010", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0be749d5d08fd4d05e35045717cf68c8d8e533f83dec685e5e2013930212010", kill_on_drop: false }` [INFO] [stdout] d0be749d5d08fd4d05e35045717cf68c8d8e533f83dec685e5e2013930212010