[INFO] cloning repository https://github.com/Whisker17/triangular-arbitrage-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Whisker17/triangular-arbitrage-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWhisker17%2Ftriangular-arbitrage-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWhisker17%2Ftriangular-arbitrage-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4de068d4b17d5af88e3c0cd4f530779930681ea0 [INFO] building Whisker17/triangular-arbitrage-demo against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FWhisker17%2Ftriangular-arbitrage-demo" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Whisker17/triangular-arbitrage-demo [INFO] finished tweaking git repo https://github.com/Whisker17/triangular-arbitrage-demo [INFO] tweaked toml for git repo https://github.com/Whisker17/triangular-arbitrage-demo written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Whisker17/triangular-arbitrage-demo on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Whisker17/triangular-arbitrage-demo 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ruint-macro v1.2.1 [INFO] [stderr] Downloaded alloy-trie v0.9.1 [INFO] [stderr] Downloaded rand_xorshift v0.4.0 [INFO] [stderr] Downloaded parity-scale-codec-derive v3.7.5 [INFO] [stderr] Downloaded fastrlp v0.3.1 [INFO] [stderr] Downloaded fastrlp v0.4.0 [INFO] [stderr] Downloaded alloy-json-rpc v1.0.27 [INFO] [stderr] Downloaded nybbles v0.4.3 [INFO] [stderr] Downloaded alloy-network v1.0.27 [INFO] [stderr] Downloaded parity-scale-codec v3.7.5 [INFO] [stderr] Downloaded alloy-genesis v1.0.27 [INFO] [stderr] Downloaded alloy-tx-macros v1.0.27 [INFO] [stderr] Downloaded alloy-consensus-any v1.0.27 [INFO] [stderr] Downloaded alloy-core v1.3.1 [INFO] [stderr] Downloaded alloy-serde v1.0.27 [INFO] [stderr] Downloaded alloy-chains v0.2.9 [INFO] [stderr] Downloaded alloy-contract v1.0.27 [INFO] [stderr] Downloaded alloy-rpc-types v1.0.27 [INFO] [stderr] Downloaded alloy-rpc-client v1.0.27 [INFO] [stderr] Downloaded alloy-rpc-types-eth v1.0.27 [INFO] [stderr] Downloaded alloy-primitives v1.3.1 [INFO] [stderr] Downloaded alloy-consensus v1.0.27 [INFO] [stderr] Downloaded alloy-sol-type-parser v1.3.1 [INFO] [stderr] Downloaded alloy-json-abi v1.3.1 [INFO] [stderr] Downloaded semver-parser v0.10.3 [INFO] [stderr] Downloaded alloy-signer-local v1.0.27 [INFO] [stderr] Downloaded wasmtimer v0.4.2 [INFO] [stderr] Downloaded const-hex v1.15.0 [INFO] [stderr] Downloaded sha3-asm v0.1.4 [INFO] [stderr] Downloaded ark-serialize v0.3.0 [INFO] [stderr] Downloaded alloy-eip2124 v0.2.0 [INFO] [stderr] Downloaded alloy-provider v1.0.27 [INFO] [stderr] Downloaded alloy-rlp v0.3.12 [INFO] [stderr] Downloaded alloy-sol-macro-expander v1.3.1 [INFO] [stderr] Downloaded c-kzg v2.1.1 [INFO] [stderr] Downloaded alloy-sol-types v1.3.1 [INFO] [stderr] Downloaded ark-ff-macros v0.3.0 [INFO] [stderr] Downloaded alloy-dyn-abi v1.3.1 [INFO] [stderr] Downloaded alloy-rpc-types-any v1.0.27 [INFO] [stderr] Downloaded alloy-eip7702 v0.6.1 [INFO] [stderr] Downloaded alloy-eips v1.0.27 [INFO] [stderr] Downloaded ark-ff v0.3.0 [INFO] [stderr] Downloaded byte-slice-cast v1.2.3 [INFO] [stderr] Downloaded syn-solidity v1.3.1 [INFO] [stderr] Downloaded alloy-sol-macro v1.3.1 [INFO] [stderr] Downloaded futures-utils-wasm v0.1.0 [INFO] [stderr] Downloaded alloy-transport-http v1.0.27 [INFO] [stderr] Downloaded ark-std v0.3.0 [INFO] [stderr] Downloaded ark-ff-asm v0.3.0 [INFO] [stderr] Downloaded auto_impl v1.3.0 [INFO] [stderr] Downloaded alloy-eip2930 v0.2.1 [INFO] [stderr] Downloaded alloy-network-primitives v1.0.27 [INFO] [stderr] Downloaded alloy-signer v1.0.27 [INFO] [stderr] Downloaded alloy-sol-macro-input v1.3.1 [INFO] [stderr] Downloaded alloy-transport v1.0.27 [INFO] [stderr] Downloaded keccak-asm v0.1.4 [INFO] [stderr] Downloaded alloy-rlp-derive v0.3.12 [INFO] [stderr] Downloaded proptest v1.7.0 [INFO] [stderr] Downloaded blst v0.3.15 [INFO] [stderr] Downloaded ruint v1.16.0 [INFO] [stderr] Downloaded alloy v1.0.27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 04d4e4be9e5b582bd32441294dcd091ed262c43233f703bb0dedecc110b278a5 [INFO] running `Command { std: "docker" "start" "-a" "04d4e4be9e5b582bd32441294dcd091ed262c43233f703bb0dedecc110b278a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04d4e4be9e5b582bd32441294dcd091ed262c43233f703bb0dedecc110b278a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04d4e4be9e5b582bd32441294dcd091ed262c43233f703bb0dedecc110b278a5", kill_on_drop: false }` [INFO] [stdout] 04d4e4be9e5b582bd32441294dcd091ed262c43233f703bb0dedecc110b278a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d2329ca044118dbbb85ebc6e1ef9d69a3aaefac75e3fc916b1054b196c2e4f6 [INFO] running `Command { std: "docker" "start" "-a" "3d2329ca044118dbbb85ebc6e1ef9d69a3aaefac75e3fc916b1054b196c2e4f6", kill_on_drop: false }` [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling futures-utils-wasm v0.1.0 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling csv-core v0.1.12 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling k256 v0.13.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling macro-string v0.1.4 [INFO] [stderr] Compiling syn-solidity v1.3.1 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling derive_more-impl v2.0.1 [INFO] [stderr] Compiling alloy-rlp-derive v0.3.12 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling num_enum v0.7.4 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling derive_more v2.0.1 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v3.14.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling const-hex v1.15.0 [INFO] [stderr] Compiling alloy-sol-type-parser v1.3.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling serde_with v3.14.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling csv v1.3.1 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling ruint v1.16.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling lru v0.13.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling alloy-rlp v0.3.12 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling alloy-primitives v1.3.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling nybbles v0.4.3 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling alloy-json-abi v1.3.1 [INFO] [stderr] Compiling alloy-tx-macros v1.0.27 [INFO] [stderr] Compiling alloy-eip2124 v0.2.0 [INFO] [stderr] Compiling alloy-eip7702 v0.6.1 [INFO] [stderr] Compiling alloy-eip2930 v0.2.1 [INFO] [stderr] Compiling alloy-serde v1.0.27 [INFO] [stderr] Compiling alloy-trie v0.9.1 [INFO] [stderr] Compiling alloy-signer v1.0.27 [INFO] [stderr] Compiling alloy-chains v0.2.9 [INFO] [stderr] Compiling alloy-sol-macro-input v1.3.1 [INFO] [stderr] Compiling alloy-eips v1.0.27 [INFO] [stderr] Compiling alloy-sol-macro-expander v1.3.1 [INFO] [stderr] Compiling alloy-consensus v1.0.27 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling alloy-sol-macro v1.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling alloy-sol-types v1.3.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling alloy-network-primitives v1.0.27 [INFO] [stderr] Compiling alloy-consensus-any v1.0.27 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling alloy-json-rpc v1.0.27 [INFO] [stderr] Compiling alloy-rpc-types-eth v1.0.27 [INFO] [stderr] Compiling alloy-dyn-abi v1.3.1 [INFO] [stderr] Compiling alloy-transport v1.0.27 [INFO] [stderr] Compiling alloy-core v1.3.1 [INFO] [stderr] Compiling alloy-transport-http v1.0.27 [INFO] [stderr] Compiling alloy-rpc-client v1.0.27 [INFO] [stderr] Compiling alloy-rpc-types-any v1.0.27 [INFO] [stderr] Compiling alloy-rpc-types v1.0.27 [INFO] [stderr] Compiling alloy-network v1.0.27 [INFO] [stderr] Compiling alloy-provider v1.0.27 [INFO] [stderr] Compiling alloy-signer-local v1.0.27 [INFO] [stderr] Compiling alloy-contract v1.0.27 [INFO] [stderr] Compiling alloy v1.0.27 [INFO] [stderr] Compiling triangular-arbitrage-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `futures::future::join_all` [INFO] [stdout] --> src/batch_fetcher.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use futures::future::join_all; [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 `get_reserves_for_pair` is never used [INFO] [stdout] --> src/types.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl PoolReserves { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn get_reserves_for_pair(&self, token_in: Token, token_out: Token) -> Option<(U256, U256)> { [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 `is_cycle` is never used [INFO] [stdout] --> src/types.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 175 | impl ArbitragePath { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn is_cycle(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `best_opportunity`, `total_profit`, and `analysis_time_ms` are never read [INFO] [stdout] --> src/types.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct MultiPathOpportunity { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 228 | pub opportunities: Vec, [INFO] [stdout] 229 | pub best_opportunity: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 230 | pub total_profit: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 231 | pub analysis_time_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MultiPathOpportunity` 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 `get`, `get_last_block`, `clear`, and `get_all` are never used [INFO] [stdout] --> src/cache.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl ReservesCache { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get(&self, address: &Address) -> Option<&PoolReserves> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn get_last_block(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_all(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `f64_to_u256` is never used [INFO] [stdout] --> src/math.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | pub fn f64_to_u256(value: f64) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_amount_out` is never used [INFO] [stdout] --> src/math.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get_amount_out(amount_in: U256, reserve_in: U256, reserve_out: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_arbitrage_legacy` is never used [INFO] [stdout] --> src/arbitrage.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn check_arbitrage_legacy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ArbitragePath` is never used [INFO] [stdout] --> src/arbitrage.rs:127:11 [INFO] [stdout] | [INFO] [stdout] 127 | pub trait ArbitragePath { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TriangularPath` is never constructed [INFO] [stdout] --> src/arbitrage.rs:133:12 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct TriangularPath { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ArbitrageLogger` is never used [INFO] [stdout] --> src/logging.rs:123:11 [INFO] [stdout] | [INFO] [stdout] 123 | pub trait ArbitrageLogger { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConsoleLogger` is never constructed [INFO] [stdout] --> src/logging.rs:131:12 [INFO] [stdout] | [INFO] [stdout] 131 | pub struct ConsoleLogger; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileLogger` is never constructed [INFO] [stdout] --> src/logging.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct FileLogger { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/logging.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 162 | impl FileLogger { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 163 | pub fn new(file_path: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_single_pool_reserves` is never used [INFO] [stdout] --> src/display.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn format_single_pool_reserves(reserves: &PoolReserves) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_pool_addresses` is never used [INFO] [stdout] --> src/display.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn format_pool_addresses( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_arbitrage_path` is never used [INFO] [stdout] --> src/display.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn format_arbitrage_path(tokens: &[Token]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_token_amount` is never used [INFO] [stdout] --> src/display.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn format_token_amount(amount: f64, token: &Token) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_percentage` is never used [INFO] [stdout] --> src/display.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn format_percentage(percentage: f64) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_duration` is never used [INFO] [stdout] --> src/display.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn format_duration(duration: std::time::Duration) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_error` is never used [INFO] [stdout] --> src/display.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn format_error(message: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_success` is never used [INFO] [stdout] --> src/display.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn format_success(message: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_warning` is never used [INFO] [stdout] --> src/display.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn format_warning(message: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_info` is never used [INFO] [stdout] --> src/display.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn format_info(message: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ReservesFormatter` is never used [INFO] [stdout] --> src/display.rs:135:11 [INFO] [stdout] | [INFO] [stdout] 135 | pub trait ReservesFormatter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DefaultReservesFormatter` is never constructed [INFO] [stdout] --> src/display.rs:141:12 [INFO] [stdout] | [INFO] [stdout] 141 | pub struct DefaultReservesFormatter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `with_pools` are never used [INFO] [stdout] --> src/display.rs:146:12 [INFO] [stdout] | [INFO] [stdout] 145 | impl DefaultReservesFormatter { [INFO] [stdout] | ----------------------------- associated functions in this implementation [INFO] [stdout] 146 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn with_pools(pools: Vec<(Address, String)>) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PoolInfo` is never constructed [INFO] [stdout] --> src/pools/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct PoolInfo { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_display_name`, and `contains_tokens` are never used [INFO] [stdout] --> src/pools/mod.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl PoolInfo { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 23 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_display_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub fn contains_tokens(&self, token_a: Token, token_b: Token) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `default_fee` are never read [INFO] [stdout] --> src/pools/moe.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct MoeProtocol { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 9 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | default_fee: f64, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_pool_addresses`, `get_pool_info`, `get_triangular_paths`, `name`, `default_fee`, and `get_known_pools` are never used [INFO] [stdout] --> src/pools/moe.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl MoeProtocol { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn get_pool_addresses(&self) -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_pool_info(&self, address: Address) -> Option<&(Address, String, Token, Token)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_triangular_paths(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn default_fee(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn get_known_pools(&self) -> Vec<(Address, String, Token, Token)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token_b` is never read [INFO] [stdout] --> src/graph.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct PoolEdge { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub token_b: Token, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PoolEdge` 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 `get_rate_a_to_b`, `get_rate_b_to_a`, and `calculate_output` are never used [INFO] [stdout] --> src/graph.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl PoolEdge { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get_rate_a_to_b(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn get_rate_b_to_a(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn calculate_output(&self, input_amount: f64, token_in: Token) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from_token` and `to_token` are never read [INFO] [stdout] --> src/graph.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 144 | pub struct DirectedEdge { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 145 | pub pool_address: Address, [INFO] [stdout] 146 | pub from_token: Token, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 147 | pub to_token: Token, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DirectedEdge` 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 `calculate_path_profit` and `get_all_tokens` are never used [INFO] [stdout] --> src/graph.rs:494:12 [INFO] [stdout] | [INFO] [stdout] 164 | impl TokenGraph { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 494 | pub fn calculate_path_profit(&self, path: &ArbitragePath, input_amount: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 541 | pub fn get_all_tokens(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BatchReservesFetcher` is never constructed [INFO] [stdout] --> src/multi_path.rs:226:12 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct BatchReservesFetcher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load_pool_addresses_from_csv`, `get_pool_addresses`, and `add_pool_address` are never used [INFO] [stdout] --> src/multi_path.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 230 | impl BatchReservesFetcher { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 231 | /// Create new batch fetcher [INFO] [stdout] 232 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn load_pool_addresses_from_csv(&mut self, csv_path: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 256 | pub fn get_pool_addresses(&self) -> &[Address] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 261 | pub fn add_pool_address(&mut self, address: Address) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MaxProfitPercent`, `MinRisk`, and `BalancedRiskReturn` are never constructed [INFO] [stdout] --> src/multi_path.rs:271:5 [INFO] [stdout] | [INFO] [stdout] 269 | pub enum OptimizationStrategy { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] 270 | MaxProfit, [INFO] [stdout] 271 | MaxProfitPercent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 272 | MinRisk, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 273 | BalancedRiskReturn, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_pool_addresses`, `add_pool_address`, `filter_by_liquidity`, and `set_batch_size` are never used [INFO] [stdout] --> src/batch_fetcher.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl BatchReservesFetcher { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn get_pool_addresses(&self) -> &[Address] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn add_pool_address(&mut self, address: Address) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn filter_by_liquidity(&self, reserves_map: &HashMap, min_liquidity_usd: f64) -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 116 | pub fn set_batch_size(&mut self, batch_size: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/batch_fetcher.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct LiquidityStats { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 193 | pub total_pools: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 194 | pub total_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 195 | pub mean_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 196 | pub median_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 197 | pub max_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 198 | pub min_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 199 | pub top_10_pools: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiquidityStats` 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 `print_analysis` is never used [INFO] [stdout] --> src/batch_fetcher.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 202 | impl LiquidityStats { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 203 | /// Print liquidity analysis [INFO] [stdout] 204 | pub fn print_analysis(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 47s [INFO] running `Command { std: "docker" "inspect" "3d2329ca044118dbbb85ebc6e1ef9d69a3aaefac75e3fc916b1054b196c2e4f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d2329ca044118dbbb85ebc6e1ef9d69a3aaefac75e3fc916b1054b196c2e4f6", kill_on_drop: false }` [INFO] [stdout] 3d2329ca044118dbbb85ebc6e1ef9d69a3aaefac75e3fc916b1054b196c2e4f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e0cd9388285d62d191a282662ec17a56b039e0e2fb4376200b69da0378174e5a [INFO] running `Command { std: "docker" "start" "-a" "e0cd9388285d62d191a282662ec17a56b039e0e2fb4376200b69da0378174e5a", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling alloy-transport-http v1.0.27 [INFO] [stderr] Compiling alloy-rpc-client v1.0.27 [INFO] [stderr] Compiling alloy-provider v1.0.27 [INFO] [stderr] Compiling alloy-contract v1.0.27 [INFO] [stderr] Compiling alloy v1.0.27 [INFO] [stderr] Compiling triangular-arbitrage-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `futures::future::join_all` [INFO] [stdout] --> src/batch_fetcher.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use futures::future::join_all; [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: `super::*` [INFO] [stdout] --> src/multi_path_main.rs:297:9 [INFO] [stdout] | [INFO] [stdout] 297 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_reserves_for_pair` is never used [INFO] [stdout] --> src/types.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl PoolReserves { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn get_reserves_for_pair(&self, token_in: Token, token_out: Token) -> Option<(U256, U256)> { [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 `is_cycle` is never used [INFO] [stdout] --> src/types.rs:201:12 [INFO] [stdout] | [INFO] [stdout] 175 | impl ArbitragePath { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn is_cycle(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `best_opportunity`, `total_profit`, and `analysis_time_ms` are never read [INFO] [stdout] --> src/types.rs:229:9 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct MultiPathOpportunity { [INFO] [stdout] | -------------------- fields in this struct [INFO] [stdout] 228 | pub opportunities: Vec, [INFO] [stdout] 229 | pub best_opportunity: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 230 | pub total_profit: f64, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 231 | pub analysis_time_ms: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MultiPathOpportunity` 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 `get`, `get_last_block`, `clear`, and `get_all` are never used [INFO] [stdout] --> src/cache.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl ReservesCache { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get(&self, address: &Address) -> Option<&PoolReserves> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn get_last_block(&self) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn get_all(&self) -> &HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_amount_out` is never used [INFO] [stdout] --> src/math.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn get_amount_out(amount_in: U256, reserve_in: U256, reserve_out: U256) -> U256 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_arbitrage_legacy` is never used [INFO] [stdout] --> src/arbitrage.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn check_arbitrage_legacy( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `calculate_output` is never used [INFO] [stdout] --> src/arbitrage.rs:128:8 [INFO] [stdout] | [INFO] [stdout] 127 | pub trait ArbitragePath { [INFO] [stdout] | ------------- method in this trait [INFO] [stdout] 128 | fn calculate_output(&self, input_amount: f64, reserves: &[&PoolReserves]) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `log_reserves_change`, `log_error`, and `log_info` are never used [INFO] [stdout] --> src/logging.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 123 | pub trait ArbitrageLogger { [INFO] [stdout] | --------------- methods in this trait [INFO] [stdout] 124 | fn log_opportunity(&self, opportunity: &ArbitrageOpportunity) -> Result<(), Box>; [INFO] [stdout] 125 | fn log_reserves_change(&self, block_number: u64, timestamp: DateTime); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 126 | fn log_error(&self, error: &str); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 127 | fn log_info(&self, message: &str); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FileLogger` is never constructed [INFO] [stdout] --> src/logging.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | pub struct FileLogger { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/logging.rs:163:12 [INFO] [stdout] | [INFO] [stdout] 162 | impl FileLogger { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 163 | pub fn new(file_path: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_pool_addresses` is never used [INFO] [stdout] --> src/display.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn format_pool_addresses( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_token_amount` is never used [INFO] [stdout] --> src/display.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn format_token_amount(amount: f64, token: &Token) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_duration` is never used [INFO] [stdout] --> src/display.rs:100:8 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn format_duration(duration: std::time::Duration) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_error` is never used [INFO] [stdout] --> src/display.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn format_error(message: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_success` is never used [INFO] [stdout] --> src/display.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn format_success(message: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_warning` is never used [INFO] [stdout] --> src/display.rs:125:8 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn format_warning(message: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `format_info` is never used [INFO] [stdout] --> src/display.rs:130:8 [INFO] [stdout] | [INFO] [stdout] 130 | pub fn format_info(message: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `format_pool` is never used [INFO] [stdout] --> src/display.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 135 | pub trait ReservesFormatter { [INFO] [stdout] | ----------------- method in this trait [INFO] [stdout] 136 | fn format_reserves(&self, reserves_map: &HashMap) -> String; [INFO] [stdout] 137 | fn format_pool(&self, address: Address, reserves: &PoolReserves) -> String; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_pools` is never used [INFO] [stdout] --> src/display.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 145 | impl DefaultReservesFormatter { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn with_pools(pools: Vec<(Address, String)>) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `address`, `name`, and `fee_tier` are never read [INFO] [stdout] --> src/pools/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct PoolInfo { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 14 | pub address: Address, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fee_tier: f64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PoolInfo` 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 `get_pool_info` is never used [INFO] [stdout] --> src/pools/moe.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl MoeProtocol { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn get_pool_info(&self, address: Address) -> Option<&(Address, String, Token, Token)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token_b` is never read [INFO] [stdout] --> src/graph.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct PoolEdge { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 29 | pub token_b: Token, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `PoolEdge` 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 `get_rate_a_to_b`, `get_rate_b_to_a`, and `calculate_output` are never used [INFO] [stdout] --> src/graph.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl PoolEdge { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn get_rate_a_to_b(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn get_rate_b_to_a(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn calculate_output(&self, input_amount: f64, token_in: Token) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from_token` and `to_token` are never read [INFO] [stdout] --> src/graph.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 144 | pub struct DirectedEdge { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 145 | pub pool_address: Address, [INFO] [stdout] 146 | pub from_token: Token, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 147 | pub to_token: Token, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DirectedEdge` 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 `calculate_path_profit` and `get_all_tokens` are never used [INFO] [stdout] --> src/graph.rs:494:12 [INFO] [stdout] | [INFO] [stdout] 164 | impl TokenGraph { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 494 | pub fn calculate_path_profit(&self, path: &ArbitragePath, input_amount: f64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 541 | pub fn get_all_tokens(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `load_pool_addresses_from_csv` is never used [INFO] [stdout] --> src/multi_path.rs:239:12 [INFO] [stdout] | [INFO] [stdout] 230 | impl BatchReservesFetcher { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 239 | pub fn load_pool_addresses_from_csv(&mut self, csv_path: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MaxProfitPercent`, `MinRisk`, and `BalancedRiskReturn` are never constructed [INFO] [stdout] --> src/multi_path.rs:271:5 [INFO] [stdout] | [INFO] [stdout] 269 | pub enum OptimizationStrategy { [INFO] [stdout] | -------------------- variants in this enum [INFO] [stdout] 270 | MaxProfit, [INFO] [stdout] 271 | MaxProfitPercent, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 272 | MinRisk, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 273 | BalancedRiskReturn, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `filter_by_liquidity` is never used [INFO] [stdout] --> src/batch_fetcher.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl BatchReservesFetcher { [INFO] [stdout] | ------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn filter_by_liquidity(&self, reserves_map: &HashMap, min_liquidity_usd: f64) -> Vec
{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/batch_fetcher.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 192 | pub struct LiquidityStats { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 193 | pub total_pools: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 194 | pub total_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 195 | pub mean_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 196 | pub median_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 197 | pub max_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 198 | pub min_liquidity: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 199 | pub top_10_pools: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiquidityStats` 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 `print_analysis` is never used [INFO] [stdout] --> src/batch_fetcher.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 202 | impl LiquidityStats { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 203 | /// Print liquidity analysis [INFO] [stdout] 204 | pub fn print_analysis(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 18.65s [INFO] running `Command { std: "docker" "inspect" "e0cd9388285d62d191a282662ec17a56b039e0e2fb4376200b69da0378174e5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0cd9388285d62d191a282662ec17a56b039e0e2fb4376200b69da0378174e5a", kill_on_drop: false }` [INFO] [stdout] e0cd9388285d62d191a282662ec17a56b039e0e2fb4376200b69da0378174e5a