[INFO] cloning repository https://github.com/Shrimer06/polymarket-btc-hedge-bot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Shrimer06/polymarket-btc-hedge-bot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShrimer06%2Fpolymarket-btc-hedge-bot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShrimer06%2Fpolymarket-btc-hedge-bot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 777ad6ac46a773c973d6015e8fcecb724c54e760 [INFO] linting Shrimer06/polymarket-btc-hedge-bot against nightly for clippy-nonminimal_bool-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShrimer06%2Fpolymarket-btc-hedge-bot" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Shrimer06/polymarket-btc-hedge-bot [INFO] finished tweaking git repo https://github.com/Shrimer06/polymarket-btc-hedge-bot [INFO] tweaked toml for git repo https://github.com/Shrimer06/polymarket-btc-hedge-bot written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Shrimer06/polymarket-btc-hedge-bot on toolchain nightly [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Shrimer06/polymarket-btc-hedge-bot already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded async-http-proxy v1.2.5 [INFO] [stderr] Downloaded const-hex v1.17.0 [INFO] [stderr] Downloaded proptest v1.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 524d37b639845dbc5d6415af71b7acf739d7211d201c5cc658c9d6a528fa368f [INFO] running `Command { std: "docker" "start" "-a" "524d37b639845dbc5d6415af71b7acf739d7211d201c5cc658c9d6a528fa368f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "524d37b639845dbc5d6415af71b7acf739d7211d201c5cc658c9d6a528fa368f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "524d37b639845dbc5d6415af71b7acf739d7211d201c5cc658c9d6a528fa368f", kill_on_drop: false }` [INFO] [stdout] 524d37b639845dbc5d6415af71b7acf739d7211d201c5cc658c9d6a528fa368f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "clippy" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5d6b41e9b8f86e072d5e6b51c33586c8b769f76ca0b17cc5d69ef381710d516c [INFO] running `Command { std: "docker" "start" "-a" "5d6b41e9b8f86e072d5e6b51c33586c8b769f76ca0b17cc5d69ef381710d516c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.105 [INFO] [stderr] Compiling quote v1.0.43 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling toml_datetime v0.7.5+spec-1.1.0 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling toml_parser v1.0.6+spec-1.1.0 [INFO] [stderr] Compiling cc v1.2.53 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parity-scale-codec v3.7.5 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Compiling zmij v1.0.15 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Checking rustc-hex v2.1.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Checking byte-slice-cast v1.2.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling camino v1.2.2 [INFO] [stderr] Compiling toml_edit v0.23.10+spec-1.0.0 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Compiling zerocopy v0.8.33 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.108 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking uint v0.9.5 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling aho-corasick v1.1.4 [INFO] [stderr] Checking iana-time-zone v0.1.64 [INFO] [stderr] Checking const_format v0.2.35 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking socket2 v0.6.1 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling regex-syntax v0.8.8 [INFO] [stderr] Compiling bumpalo v3.19.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking fixed-hash v0.8.0 [INFO] [stderr] Checking const-hex v1.17.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.108 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling time-core v0.1.7 [INFO] [stderr] Checking deranged v0.5.5 [INFO] [stderr] Compiling time-macros v0.2.25 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking semver v1.0.27 [INFO] [stderr] Compiling rlp-derive v0.1.0 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking k256 v0.13.4 [INFO] [stderr] Compiling keccak v0.1.5 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking ryu v1.0.22 [INFO] [stderr] Checking webpki-roots v0.25.4 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Checking winnow v0.7.14 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking time v0.3.45 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Checking ripemd v0.1.3 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Compiling indenter v0.3.4 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Checking tempfile v3.24.0 [INFO] [stderr] Checking bech32 v0.9.1 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking pem v1.1.1 [INFO] [stderr] Compiling pest v2.8.5 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking salsa20 v0.10.2 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking send_wrapper v0.4.0 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Checking hashers v1.0.1 [INFO] [stderr] Checking scrypt v0.10.0 [INFO] [stderr] Checking Inflector v0.11.4 [INFO] [stderr] Checking const-random v0.1.18 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking instant v0.1.13 [INFO] [stderr] Checking dlv-list v0.5.2 [INFO] [stderr] Checking anstream v0.6.21 [INFO] [stderr] Checking futures-locks v0.7.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.108 [INFO] [stderr] Checking ordered-multimap v0.7.3 [INFO] [stderr] Checking hashlink v0.8.4 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking clap_lex v0.7.7 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking rust-ini v0.20.0 [INFO] [stderr] Checking clap_builder v4.5.54 [INFO] [stderr] Checking yaml-rust2 v0.8.1 [INFO] [stderr] Checking crossbeam-channel v0.5.15 [INFO] [stderr] Compiling pest_meta v2.8.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling parity-scale-codec-derive v3.7.5 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling scale-info-derive v2.11.6 [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] Checking derive_more v1.0.0 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling num_enum_derive v0.7.5 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking yoke v0.8.1 [INFO] [stderr] Checking zerotrie v0.2.3 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Compiling pest_generator v2.8.5 [INFO] [stderr] Compiling clap_derive v4.5.49 [INFO] [stderr] Checking num_enum v0.7.5 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking thiserror v2.0.18 [INFO] [stderr] Compiling pest_derive v2.8.5 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.108 [INFO] [stderr] Checking pin-project v1.1.10 [INFO] [stderr] Checking tracing-futures v0.2.5 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking tracing-appender v0.2.4 [INFO] [stderr] Checking js-sys v0.3.85 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Checking clap v4.5.54 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking bytes v1.11.0 [INFO] [stderr] Checking impl-serde v0.4.0 [INFO] [stderr] Checking cargo-platform v0.1.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking coins-core v0.8.7 [INFO] [stderr] Checking uuid v0.8.2 [INFO] [stderr] Checking jsonwebtoken v8.3.0 [INFO] [stderr] Checking json5 v0.4.1 [INFO] [stderr] Checking cargo_metadata v0.18.1 [INFO] [stderr] Checking ron v0.8.1 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking coins-bip32 v0.8.7 [INFO] [stderr] Checking eth-keystore v0.5.0 [INFO] [stderr] Checking tokio v1.49.0 [INFO] [stderr] Checking rlp v0.5.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking impl-rlp v0.3.0 [INFO] [stderr] Checking enr v0.10.0 [INFO] [stderr] Checking coins-bip39 v0.8.7 [INFO] [stderr] Checking impl-codec v0.6.0 [INFO] [stderr] Checking scale-info v2.11.6 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Compiling open-fastrlp-derive v0.1.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking primitive-types v0.12.2 [INFO] [stderr] Checking ethbloom v0.13.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking tungstenite v0.20.1 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking config v0.14.1 [INFO] [stderr] Checking ethereum-types v0.14.1 [INFO] [stderr] Checking gloo-timers v0.2.6 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking open-fastrlp v0.1.4 [INFO] [stderr] Checking ethabi v18.0.0 [INFO] [stderr] Checking ethers-core v2.0.14 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking async-http-proxy v1.2.5 [INFO] [stderr] Checking tokio-tungstenite v0.20.1 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking ethers-contract-abigen v2.0.14 [INFO] [stderr] Checking ethers-signers v2.0.14 [INFO] [stderr] Checking ethers-addressbook v2.0.14 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking hyper-rustls v0.24.2 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking ethers-providers v2.0.14 [INFO] [stderr] Checking ethers-etherscan v2.0.14 [INFO] [stderr] Compiling ethers-contract-derive v2.0.14 [INFO] [stderr] Checking ethers-contract v2.0.14 [INFO] [stderr] Checking ethers-middleware v2.0.14 [INFO] [stderr] Checking ethers v2.0.14 [INFO] [stderr] Checking polymarket-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/recorder/mod.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this import is redundant [INFO] [stdout] --> src/recorder/mod.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove it entirely [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports [INFO] [stdout] = note: `#[warn(clippy::single_component_path_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Engine` [INFO] [stdout] --> src/clob/auth.rs:153:18 [INFO] [stdout] | [INFO] [stdout] 153 | use base64::{Engine as _, engine::general_purpose::STANDARD as BASE64}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `redeem_market` is never used [INFO] [stdout] --> src/clob/client.rs:273:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl ClobClient { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 273 | pub async fn redeem_market(&self, l1_pk: &str, condition_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_pending_redemption_count` and `get_thread_budget` are never used [INFO] [stdout] --> src/position_tracker.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl PositionStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn get_pending_redemption_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn get_thread_budget(&self, thread: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/clob/client.rs:59:102 [INFO] [stdout] | [INFO] [stdout] 59 | fn create_request(&self, method: Method, path: &str, body: Option<&T>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | WebSocket(#[from] tokio_tungstenite::tungstenite::Error), [INFO] [stdout] | -------------------------------------------------------- the largest variant contains at least 136 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::BotError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: compiling a regex in a loop [INFO] [stdout] --> src/clob/client.rs:505:58 [INFO] [stdout] | [INFO] [stdout] 505 | ... let strike_re = Regex::new(r"(?i)above\s*\$?\s*([0-9,]+\.?[0-9]*)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: move the regex construction outside this loop [INFO] [stdout] --> src/clob/client.rs:461:30 [INFO] [stdout] | [INFO] [stdout] 461 | ... for market in markets { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#regex_creation_in_loops [INFO] [stdout] = note: `#[warn(clippy::regex_creation_in_loops)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/clob/auth.rs:44:75 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn create_headers(&self, method: &str, path: &str, body: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | WebSocket(#[from] tokio_tungstenite::tungstenite::Error), [INFO] [stdout] | -------------------------------------------------------- the largest variant contains at least 136 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::BotError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `redeem_market` is never used [INFO] [stdout] --> src/clob/client.rs:273:18 [INFO] [stdout] | [INFO] [stdout] 18 | impl ClobClient { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 273 | pub async fn redeem_market(&self, l1_pk: &str, condition_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `record_entry`, `get_pending_redemption_count`, and `get_thread_budget` are never used [INFO] [stdout] --> src/position_tracker.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl PositionStore { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn record_entry( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn get_pending_redemption_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 181 | pub fn get_thread_budget(&self, thread: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/clob/auth.rs:104:54 [INFO] [stdout] | [INFO] [stdout] 104 | let signature_hex = format!("0x{}", signature.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/clob/client.rs:59:102 [INFO] [stdout] | [INFO] [stdout] 59 | fn create_request(&self, method: Method, path: &str, body: Option<&T>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | WebSocket(#[from] tokio_tungstenite::tungstenite::Error), [INFO] [stdout] | -------------------------------------------------------- the largest variant contains at least 136 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::BotError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] = note: `#[warn(clippy::result_large_err)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: compiling a regex in a loop [INFO] [stdout] --> src/clob/client.rs:505:58 [INFO] [stdout] | [INFO] [stdout] 505 | ... let strike_re = Regex::new(r"(?i)above\s*\$?\s*([0-9,]+\.?[0-9]*)").unwrap(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: move the regex construction outside this loop [INFO] [stdout] --> src/clob/client.rs:461:30 [INFO] [stdout] | [INFO] [stdout] 461 | ... for market in markets { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#regex_creation_in_loops [INFO] [stdout] = note: `#[warn(clippy::regex_creation_in_loops)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `Err`-variant returned from this function is very large [INFO] [stdout] --> src/clob/auth.rs:44:75 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn create_headers(&self, method: &str, path: &str, body: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/error.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | WebSocket(#[from] tokio_tungstenite::tungstenite::Error), [INFO] [stdout] | -------------------------------------------------------- the largest variant contains at least 136 bytes [INFO] [stdout] | [INFO] [stdout] = help: try reducing the size of `error::BotError`, for example by boxing large elements or replacing it with `Box` [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `to_string` applied to a type that implements `Display` in `format!` args [INFO] [stdout] --> src/clob/auth.rs:104:54 [INFO] [stdout] | [INFO] [stdout] 104 | let signature_hex = format!("0x{}", signature.to_string()); [INFO] [stdout] | ^^^^^^^^^^^^ help: remove this [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args [INFO] [stdout] = note: `#[warn(clippy::to_string_in_format_args)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual arithmetic check found [INFO] [stdout] --> src/strategy/engine.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 83 | let time_to_settlement = if tick.market_end_time > now_sec { [INFO] [stdout] | __________________________________^ [INFO] [stdout] 84 | | tick.market_end_time - now_sec [INFO] [stdout] 85 | | } else { [INFO] [stdout] 86 | | 0 [INFO] [stdout] 87 | | }; [INFO] [stdout] | |_________^ help: replace it with: `tick.market_end_time.saturating_sub(now_sec)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub [INFO] [stdout] = note: `#[warn(clippy::implicit_saturating_sub)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/strategy/engine.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | / if (self.market_strike_price.is_none() || self.market_strike_price == Some(0.0)) && tick.market_start_time > 0 { [INFO] [stdout] 104 | | if tick.timestamp >= tick.market_start_time && tick.btc_price > 0.0 { [INFO] [stdout] 105 | | info!("📊 Dynamic Strike Capture: Setting Strike Price to ${:.2} (BTC at market start)", tick.btc_price); [INFO] [stdout] 106 | | self.market_strike_price = Some(tick.btc_price); [INFO] [stdout] 107 | | } [INFO] [stdout] 108 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 103 ~ if (self.market_strike_price.is_none() || self.market_strike_price == Some(0.0)) && tick.market_start_time > 0 [INFO] [stdout] 104 ~ && tick.timestamp >= tick.market_start_time && tick.btc_price > 0.0 { [INFO] [stdout] 105 | info!("📊 Dynamic Strike Capture: Setting Strike Price to ${:.2} (BTC at market start)", tick.btc_price); [INFO] [stdout] 106 | self.market_strike_price = Some(tick.btc_price); [INFO] [stdout] 107 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual arithmetic check found [INFO] [stdout] --> src/strategy/engine.rs:83:34 [INFO] [stdout] | [INFO] [stdout] 83 | let time_to_settlement = if tick.market_end_time > now_sec { [INFO] [stdout] | __________________________________^ [INFO] [stdout] 84 | | tick.market_end_time - now_sec [INFO] [stdout] 85 | | } else { [INFO] [stdout] 86 | | 0 [INFO] [stdout] 87 | | }; [INFO] [stdout] | |_________^ help: replace it with: `tick.market_end_time.saturating_sub(now_sec)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub [INFO] [stdout] = note: `#[warn(clippy::implicit_saturating_sub)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this `if` statement can be collapsed [INFO] [stdout] --> src/strategy/engine.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | / if (self.market_strike_price.is_none() || self.market_strike_price == Some(0.0)) && tick.market_start_time > 0 { [INFO] [stdout] 104 | | if tick.timestamp >= tick.market_start_time && tick.btc_price > 0.0 { [INFO] [stdout] 105 | | info!("📊 Dynamic Strike Capture: Setting Strike Price to ${:.2} (BTC at market start)", tick.btc_price); [INFO] [stdout] 106 | | self.market_strike_price = Some(tick.btc_price); [INFO] [stdout] 107 | | } [INFO] [stdout] 108 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stdout] = note: `#[warn(clippy::collapsible_if)]` on by default [INFO] [stdout] help: collapse nested if block [INFO] [stdout] | [INFO] [stdout] 103 ~ if (self.market_strike_price.is_none() || self.market_strike_price == Some(0.0)) && tick.market_start_time > 0 [INFO] [stdout] 104 ~ && tick.timestamp >= tick.market_start_time && tick.btc_price > 0.0 { [INFO] [stdout] 105 | info!("📊 Dynamic Strike Capture: Setting Strike Price to ${:.2} (BTC at market start)", tick.btc_price); [INFO] [stdout] 106 | self.market_strike_price = Some(tick.btc_price); [INFO] [stdout] 107 ~ } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual arithmetic check found [INFO] [stdout] --> src/strategy/engine.rs:427:22 [INFO] [stdout] | [INFO] [stdout] 427 | let cutoff = if timestamp_sec > 60 { timestamp_sec - 60 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `timestamp_sec.saturating_sub(60)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual arithmetic check found [INFO] [stdout] --> src/strategy/engine.rs:451:22 [INFO] [stdout] | [INFO] [stdout] 451 | let cutoff = if current_ts > 60 { current_ts - 60 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `current_ts.saturating_sub(60)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual arithmetic check found [INFO] [stdout] --> src/strategy/engine.rs:427:22 [INFO] [stdout] | [INFO] [stdout] 427 | let cutoff = if timestamp_sec > 60 { timestamp_sec - 60 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `timestamp_sec.saturating_sub(60)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: manual arithmetic check found [INFO] [stdout] --> src/strategy/engine.rs:451:22 [INFO] [stdout] | [INFO] [stdout] 451 | let cutoff = if current_ts > 60 { current_ts - 60 } else { 0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `current_ts.saturating_sub(60)` [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#implicit_saturating_sub [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/ws/client.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / pub fn new( [INFO] [stdout] 26 | | url: String, [INFO] [stdout] 27 | | token_up: String, [INFO] [stdout] 28 | | token_down: String, [INFO] [stdout] ... | [INFO] [stdout] 33 | | market_id: String, [INFO] [stdout] 34 | | ) -> Self { [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/ws/client.rs:91:94 [INFO] [stdout] | [INFO] [stdout] 91 | ...tungstenite::Error::Io(std::io::Error::new(std::io::ErrorKind::Other, format!("TLS Connect Error: {}", e)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] = note: `#[warn(clippy::io_other_error)]` on by default [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 91 - Err(e) => Err(tokio_tungstenite::tungstenite::Error::Io(std::io::Error::new(std::io::ErrorKind::Other, format!("TLS Connect Error: {}", e)))) [INFO] [stdout] 91 + Err(e) => Err(tokio_tungstenite::tungstenite::Error::Io(std::io::Error::other(format!("TLS Connect Error: {}", e)))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/ws/client.rs:94:86 [INFO] [stdout] | [INFO] [stdout] 94 | ...ungstenite::Error::Io(std::io::Error::new(std::io::ErrorKind::Other, format!("Proxy Tunnel Error: {}", e)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 94 - Err(e) => Err(tokio_tungstenite::tungstenite::Error::Io(std::io::Error::new(std::io::ErrorKind::Other, format!("Proxy Tunnel Error: {}", e)))) [INFO] [stdout] 94 + Err(e) => Err(tokio_tungstenite::tungstenite::Error::Io(std::io::Error::other(format!("Proxy Tunnel Error: {}", e)))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_err()` [INFO] [stdout] --> src/ws/client.rs:216:56 [INFO] [stdout] | [INFO] [stdout] 216 | ... if let Err(_) = _tx.send(tick).await { [INFO] [stdout] | -------^^^^^^----------------------- help: try: `if _tx.send(tick).await.is_err()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_err()` [INFO] [stdout] --> src/ws/client.rs:266:52 [INFO] [stdout] | [INFO] [stdout] 266 | ... if let Err(_) = _tx.send(tick).await { [INFO] [stdout] | -------^^^^^^----------------------- help: try: `if _tx.send(tick).await.is_err()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function has too many arguments (8/7) [INFO] [stdout] --> src/ws/client.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | / pub fn new( [INFO] [stdout] 26 | | url: String, [INFO] [stdout] 27 | | token_up: String, [INFO] [stdout] 28 | | token_down: String, [INFO] [stdout] ... | [INFO] [stdout] 33 | | market_id: String, [INFO] [stdout] 34 | | ) -> Self { [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stdout] = note: `#[warn(clippy::too_many_arguments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/ws/client.rs:91:94 [INFO] [stdout] | [INFO] [stdout] 91 | ...tungstenite::Error::Io(std::io::Error::new(std::io::ErrorKind::Other, format!("TLS Connect Error: {}", e)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] = note: `#[warn(clippy::io_other_error)]` on by default [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 91 - Err(e) => Err(tokio_tungstenite::tungstenite::Error::Io(std::io::Error::new(std::io::ErrorKind::Other, format!("TLS Connect Error: {}", e)))) [INFO] [stdout] 91 + Err(e) => Err(tokio_tungstenite::tungstenite::Error::Io(std::io::Error::other(format!("TLS Connect Error: {}", e)))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/ws/client.rs:94:86 [INFO] [stdout] | [INFO] [stdout] 94 | ...ungstenite::Error::Io(std::io::Error::new(std::io::ErrorKind::Other, format!("Proxy Tunnel Error: {}", e)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 94 - Err(e) => Err(tokio_tungstenite::tungstenite::Error::Io(std::io::Error::new(std::io::ErrorKind::Other, format!("Proxy Tunnel Error: {}", e)))) [INFO] [stdout] 94 + Err(e) => Err(tokio_tungstenite::tungstenite::Error::Io(std::io::Error::other(format!("Proxy Tunnel Error: {}", e)))) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_err()` [INFO] [stdout] --> src/ws/client.rs:216:56 [INFO] [stdout] | [INFO] [stdout] 216 | ... if let Err(_) = _tx.send(tick).await { [INFO] [stdout] | -------^^^^^^----------------------- help: try: `if _tx.send(tick).await.is_err()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] = note: `#[warn(clippy::redundant_pattern_matching)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: redundant pattern matching, consider using `is_err()` [INFO] [stdout] --> src/ws/client.rs:266:52 [INFO] [stdout] | [INFO] [stdout] 266 | ... if let Err(_) = _tx.send(tick).await { [INFO] [stdout] | -------^^^^^^----------------------- help: try: `if _tx.send(tick).await.is_err()` [INFO] [stdout] | [INFO] [stdout] = note: this will change drop order of the result, as well as all temporaries [INFO] [stdout] = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `if let` since only the `Ok` variant of the iterator element is used [INFO] [stdout] --> src/recorder/replayer.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | / for line in reader.lines() { [INFO] [stdout] 35 | | if let Ok(json) = line { [INFO] [stdout] 36 | | if let Ok(tick) = serde_json::from_str::(&json) { [INFO] [stdout] 37 | | count += 1; [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] help: try `.flatten()` and remove the `if let` statement in the for loop [INFO] [stdout] --> src/recorder/replayer.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | / if let Ok(json) = line { [INFO] [stdout] 36 | | if let Ok(tick) = serde_json::from_str::(&json) { [INFO] [stdout] 37 | | count += 1; [INFO] [stdout] ... | [INFO] [stdout] 48 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten [INFO] [stdout] = note: `#[warn(clippy::manual_flatten)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 34 ~ for json in reader.lines().flatten() { [INFO] [stdout] 35 + if let Ok(tick) = serde_json::from_str::(&json) { [INFO] [stdout] 36 + count += 1; [INFO] [stdout] 37 + // Feed to strategy [INFO] [stdout] 38 + // Feed to strategy (Replay assumes no active positions or static state) [INFO] [stdout] 39 + let actions = strategy.on_tick(tick.clone(), &[]); [INFO] [stdout] 40 + [INFO] [stdout] 41 + if !actions.is_empty() { [INFO] [stdout] 42 + info!("Replay Tick #{}: Triggered Actions: {:?}", count, actions); [INFO] [stdout] 43 + } [INFO] [stdout] 44 + } else { [INFO] [stdout] 45 + warn!("Failed to parse line as Tick: {}", json); [INFO] [stdout] 46 + } [INFO] [stdout] 47 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/position_tracker.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 72 - .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?; [INFO] [stdout] 72 + .map_err(|e| std::io::Error::other(e))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `if let` since only the `Ok` variant of the iterator element is used [INFO] [stdout] --> src/recorder/replayer.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | / for line in reader.lines() { [INFO] [stdout] 35 | | if let Ok(json) = line { [INFO] [stdout] 36 | | if let Ok(tick) = serde_json::from_str::(&json) { [INFO] [stdout] 37 | | count += 1; [INFO] [stdout] ... | [INFO] [stdout] 49 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] help: try `.flatten()` and remove the `if let` statement in the for loop [INFO] [stdout] --> src/recorder/replayer.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | / if let Ok(json) = line { [INFO] [stdout] 36 | | if let Ok(tick) = serde_json::from_str::(&json) { [INFO] [stdout] 37 | | count += 1; [INFO] [stdout] ... | [INFO] [stdout] 48 | | } [INFO] [stdout] | |_____________^ [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_flatten [INFO] [stdout] = note: `#[warn(clippy::manual_flatten)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 34 ~ for json in reader.lines().flatten() { [INFO] [stdout] 35 + if let Ok(tick) = serde_json::from_str::(&json) { [INFO] [stdout] 36 + count += 1; [INFO] [stdout] 37 + // Feed to strategy [INFO] [stdout] 38 + // Feed to strategy (Replay assumes no active positions or static state) [INFO] [stdout] 39 + let actions = strategy.on_tick(tick.clone(), &[]); [INFO] [stdout] 40 + [INFO] [stdout] 41 + if !actions.is_empty() { [INFO] [stdout] 42 + info!("Replay Tick #{}: Triggered Actions: {:?}", count, actions); [INFO] [stdout] 43 + } [INFO] [stdout] 44 + } else { [INFO] [stdout] 45 + warn!("Failed to parse line as Tick: {}", json); [INFO] [stdout] 46 + } [INFO] [stdout] 47 + } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/position_tracker.rs:183:22 [INFO] [stdout] | [INFO] [stdout] 183 | let recent = self.positions.iter() [INFO] [stdout] | ______________________^ [INFO] [stdout] 184 | | .filter(|p| p.thread == thread && p.status == PositionStatus::Redeemed) [INFO] [stdout] 185 | | .last(); [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] = note: `#[warn(clippy::double_ended_iterator_last)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 185 - .last(); [INFO] [stdout] 185 + .next_back(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this can be `std::io::Error::other(_)` [INFO] [stdout] --> src/position_tracker.rs:72:26 [INFO] [stdout] | [INFO] [stdout] 72 | .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error [INFO] [stdout] help: use `std::io::Error::other` [INFO] [stdout] | [INFO] [stdout] 72 - .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?; [INFO] [stdout] 72 + .map_err(|e| std::io::Error::other(e))?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator [INFO] [stdout] --> src/position_tracker.rs:183:22 [INFO] [stdout] | [INFO] [stdout] 183 | let recent = self.positions.iter() [INFO] [stdout] | ______________________^ [INFO] [stdout] 184 | | .filter(|p| p.thread == thread && p.status == PositionStatus::Redeemed) [INFO] [stdout] 185 | | .last(); [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last [INFO] [stdout] = note: `#[warn(clippy::double_ended_iterator_last)]` on by default [INFO] [stdout] help: try [INFO] [stdout] | [INFO] [stdout] 185 - .last(); [INFO] [stdout] 185 + .next_back(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 03s [INFO] running `Command { std: "docker" "inspect" "5d6b41e9b8f86e072d5e6b51c33586c8b769f76ca0b17cc5d69ef381710d516c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d6b41e9b8f86e072d5e6b51c33586c8b769f76ca0b17cc5d69ef381710d516c", kill_on_drop: false }` [INFO] [stdout] 5d6b41e9b8f86e072d5e6b51c33586c8b769f76ca0b17cc5d69ef381710d516c