[INFO] cloning repository https://github.com/with-backed/papr-liquidation-bot-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/with-backed/papr-liquidation-bot-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwith-backed%2Fpapr-liquidation-bot-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwith-backed%2Fpapr-liquidation-bot-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4d148a5bd2450e4ab4d2823710714b4f563100b6 [INFO] testing with-backed/papr-liquidation-bot-rs against 1.86.0 for beta-1.87-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwith-backed%2Fpapr-liquidation-bot-rs" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/with-backed/papr-liquidation-bot-rs on toolchain 1.86.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.86.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/with-backed/papr-liquidation-bot-rs [INFO] finished tweaking git repo https://github.com/with-backed/papr-liquidation-bot-rs [INFO] tweaked toml for git repo https://github.com/with-backed/papr-liquidation-bot-rs written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/with-backed/papr-liquidation-bot-rs 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" "+1.86.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cargo_metadata v0.15.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9a17650dc9ee5d6c9cba9c961d6f0059e564c84cd4a14db132c7bdc965435ef9 [INFO] running `Command { std: "docker" "start" "-a" "9a17650dc9ee5d6c9cba9c961d6f0059e564c84cd4a14db132c7bdc965435ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9a17650dc9ee5d6c9cba9c961d6f0059e564c84cd4a14db132c7bdc965435ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a17650dc9ee5d6c9cba9c961d6f0059e564c84cd4a14db132c7bdc965435ef9", kill_on_drop: false }` [INFO] [stdout] 9a17650dc9ee5d6c9cba9c961d6f0059e564c84cd4a14db132c7bdc965435ef9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4381e0e89e9ad185dbd0bb5452b2866f5e2d6fc47cd49724172bd0949ab1ee1f [INFO] running `Command { std: "docker" "start" "-a" "4381e0e89e9ad185dbd0bb5452b2866f5e2d6fc47cd49724172bd0949ab1ee1f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.49 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling serde_derive v1.0.152 [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling once_cell v1.17.0 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling itoa v1.0.5 [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling base64ct v1.5.3 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling zeroize v1.5.7 [INFO] [stderr] Compiling ryu v1.0.12 [INFO] [stderr] Compiling byte-slice-cast v1.2.2 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling const-oid v0.9.1 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling der v0.6.1 [INFO] [stderr] Compiling keccak v0.1.3 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Compiling base16ct v0.1.1 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.25 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling futures-channel v0.3.25 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling socket2 v0.4.7 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling spki v0.6.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling pkcs8 v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ff v0.12.1 [INFO] [stderr] Compiling tokio v1.25.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling group v0.12.1 [INFO] [stderr] Compiling camino v1.1.2 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling rustls v0.20.8 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling rustversion v1.0.11 [INFO] [stderr] Compiling semver v1.0.16 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling futures-task v0.3.25 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling futures-util v0.3.25 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling openssl v0.10.45 [INFO] [stderr] Compiling encoding_rs v0.8.31 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling crypto-bigint v0.4.9 [INFO] [stderr] Compiling sec1 v0.3.0 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling signature v1.6.4 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling sha3 v0.10.6 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling rustls-pemfile v1.0.2 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling rfc6979 v0.3.1 [INFO] [stderr] Compiling elliptic-curve v0.12.3 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling ecdsa v0.14.8 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling unicode-segmentation v1.10.0 [INFO] [stderr] Compiling ipnet v2.7.1 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling cipher v0.4.3 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling k256 v0.11.6 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling password-hash v0.4.2 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling async-trait v0.1.61 [INFO] [stderr] Compiling indenter v0.3.3 [INFO] [stderr] Compiling base58 v0.1.0 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling webpki v0.22.0 [INFO] [stderr] Compiling sct v0.7.0 [INFO] [stderr] Compiling base58check v0.1.0 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling ripemd v0.1.3 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling dunce v1.0.3 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling webpki-roots v0.22.6 [INFO] [stderr] Compiling bech32 v0.7.3 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling salsa20 v0.10.2 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling radium v0.3.0 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling ascii v0.9.3 [INFO] [stderr] Compiling scrypt v0.10.0 [INFO] [stderr] Compiling hashers v1.0.1 [INFO] [stderr] Compiling bitvec v0.17.4 [INFO] [stderr] Compiling combine v3.8.1 [INFO] [stderr] Compiling aes v0.8.2 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling futures-timer v3.0.2 [INFO] [stderr] Compiling futures-locks v0.7.1 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.2 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling tokio-macros v1.8.2 [INFO] [stderr] Compiling auto_impl v1.0.1 [INFO] [stderr] Compiling tracing-attributes v0.1.23 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling futures-macro v0.3.25 [INFO] [stderr] Compiling rlp-derive v0.1.0 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling auto_impl v0.5.0 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling strum v0.24.1 [INFO] [stderr] Compiling graphql-parser v0.4.0 [INFO] [stderr] Compiling bytes v1.3.0 [INFO] [stderr] Compiling toml v0.5.10 [INFO] [stderr] Compiling impl-serde v0.4.0 [INFO] [stderr] Compiling cargo-platform v0.1.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling coins-core v0.7.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling graphql-introspection-query v0.2.0 [INFO] [stderr] Compiling coins-bip32 v0.7.0 [INFO] [stderr] Compiling rlp v0.5.2 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling open-fastrlp-derive v0.1.1 [INFO] [stderr] Compiling cargo_metadata v0.15.2 [INFO] [stderr] Compiling graphql_client_codegen v0.11.0 [INFO] [stderr] Compiling coins-bip39 v0.7.0 [INFO] [stderr] Compiling impl-rlp v0.3.0 [INFO] [stderr] Compiling eth-keystore v0.5.0 [INFO] [stderr] Compiling serde-aux v4.1.2 [INFO] [stderr] Compiling proc-macro-crate v1.2.1 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling parity-scale-codec-derive v3.1.3 [INFO] [stderr] Compiling scale-info-derive v2.3.1 [INFO] [stderr] Compiling parity-scale-codec v3.2.1 [INFO] [stderr] Compiling tokio-util v0.7.4 [INFO] [stderr] Compiling tokio-rustls v0.23.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.0 [INFO] [stderr] Compiling scale-info v2.3.1 [INFO] [stderr] Compiling impl-codec v0.6.0 [INFO] [stderr] Compiling h2 v0.3.15 [INFO] [stderr] Compiling graphql_query_derive v0.11.0 [INFO] [stderr] Compiling primitive-types v0.12.1 [INFO] [stderr] Compiling ethbloom v0.13.0 [INFO] [stderr] Compiling graphql_client v0.11.0 [INFO] [stderr] Compiling ethereum-types v0.14.1 [INFO] [stderr] Compiling ethabi v18.0.0 [INFO] [stderr] Compiling open-fastrlp v0.1.4 [INFO] [stderr] Compiling hyper v0.14.23 [INFO] [stderr] Compiling ethers-core v1.0.2 [INFO] [stderr] Compiling hyper-rustls v0.23.2 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.13 [INFO] [stderr] Compiling ethers-providers v1.0.2 [INFO] [stderr] Compiling ethers-contract-abigen v1.0.2 [INFO] [stderr] Compiling ethers-etherscan v1.0.2 [INFO] [stderr] Compiling ethers-signers v1.0.2 [INFO] [stderr] Compiling ethers-addressbook v1.0.2 [INFO] [stderr] Compiling ethers-contract-derive v1.0.2 [INFO] [stderr] Compiling ethers-contract v1.0.2 [INFO] [stderr] Compiling ethers-middleware v1.0.2 [INFO] [stderr] Compiling ethers v1.0.2 [INFO] [stderr] Compiling auction-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `reservoir` [INFO] [stdout] --> src/purchase.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | reservoir: &ReservoirClient, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reservoir` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auctions` [INFO] [stdout] --> src/purchase.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let auctions = graphql.ongoing_auctions(&controller.id); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auctions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collection_bids_gt_percent_of_top_bid` is never used [INFO] [stdout] --> src/main.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | async fn collection_bids_gt_percent_of_top_bid( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collection_bids_gte` is never used [INFO] [stdout] --> src/main.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | async fn collection_bids_gte(collection: &str, price: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `collateral` and `ongoing_auctions` are never used [INFO] [stdout] --> src/papr_subgraph/client.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 30 | impl GraphQLClient { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn collateral( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub async fn ongoing_auctions(&self, controller: &str) -> Result, eyre::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WHITELIST` is never used [INFO] [stdout] --> src/purchase.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub static WHITELIST: Lazy> = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `purchase_auctions_from_whitelisted_controllers` is never used [INFO] [stdout] --> src/purchase.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn purchase_auctions_from_whitelisted_controllers( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arb_auctions_for_controller` is never used [INFO] [stdout] --> src/purchase.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | async fn arb_auctions_for_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_price` is never used [INFO] [stdout] --> src/purchase.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn current_price(auction: SubgraphAuction) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Upper`, `Lower`, and `Spot` are never constructed [INFO] [stdout] --> src/reservoir/oracle.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum PriceKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 12 | Upper, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Lower, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Twap, [INFO] [stdout] 15 | Spot, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OrderQueryParam` is never used [INFO] [stdout] --> src/reservoir/orders.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum OrderQueryParam { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `orders` is never read [INFO] [stdout] --> src/reservoir/orders.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct BidsResponse { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 14 | pub orders: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `kind`, `price`, and `criteria` are never read [INFO] [stdout] --> src/reservoir/orders.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Order { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 19 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 20 | pub kind: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub price: Price, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | pub criteria: Criteria, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `amount`, `net_amount`, and `currency` are never read [INFO] [stdout] --> src/reservoir/orders.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Price { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 27 | pub amount: Amount, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | pub net_amount: NetAmount, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 29 | pub currency: Currency, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `usd` and `native` are never read [INFO] [stdout] --> src/reservoir/orders.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Amount { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 34 | pub usd: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 35 | native: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `raw`, `decimal`, and `native` are never read [INFO] [stdout] --> src/reservoir/orders.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct NetAmount { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 40 | raw: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 41 | pub decimal: f64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 42 | native: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `contract` and `decimals` are never read [INFO] [stdout] --> src/reservoir/orders.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Currency { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 47 | contract: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 48 | decimals: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> src/reservoir/orders.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Criteria { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 53 | pub kind: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `bids` is never used [INFO] [stdout] --> src/reservoir/orders.rs:57:18 [INFO] [stdout] | [INFO] [stdout] 56 | impl crate::reservoir::client::ReservoirClient { [INFO] [stdout] | ---------------------------------------------- method in this implementation [INFO] [stdout] 57 | pub async fn bids( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `QueryParams` is never used [INFO] [stdout] --> src/reservoir/sell.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum QueryParams { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `steps` is never read [INFO] [stdout] --> src/reservoir/sell.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Response { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 14 | pub steps: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `items` is never read [INFO] [stdout] --> src/reservoir/sell.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Step { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 19 | pub items: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `status` and `data` are never read [INFO] [stdout] --> src/reservoir/sell.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Item { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 24 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | data: ItemData, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, and `data` are never read [INFO] [stdout] --> src/reservoir/sell.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct ItemData { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 30 | from: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | to: String, [INFO] [stdout] | ^^ [INFO] [stdout] 32 | data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sell_token` is never used [INFO] [stdout] --> src/reservoir/sell.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl crate::reservoir::client::ReservoirClient { [INFO] [stdout] | ---------------------------------------------- method in this implementation [INFO] [stdout] 36 | pub async fn sell_token( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 16s [INFO] running `Command { std: "docker" "inspect" "4381e0e89e9ad185dbd0bb5452b2866f5e2d6fc47cd49724172bd0949ab1ee1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4381e0e89e9ad185dbd0bb5452b2866f5e2d6fc47cd49724172bd0949ab1ee1f", kill_on_drop: false }` [INFO] [stdout] 4381e0e89e9ad185dbd0bb5452b2866f5e2d6fc47cd49724172bd0949ab1ee1f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 293f22ea3162461be9e0d9cfd55581753145ea7ec62f342a9f5f60c853bc473f [INFO] running `Command { std: "docker" "start" "-a" "293f22ea3162461be9e0d9cfd55581753145ea7ec62f342a9f5f60c853bc473f", kill_on_drop: false }` [INFO] [stderr] Compiling auction-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `reservoir` [INFO] [stdout] --> src/purchase.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | reservoir: &ReservoirClient, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reservoir` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auctions` [INFO] [stdout] --> src/purchase.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let auctions = graphql.ongoing_auctions(&controller.id); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auctions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collection_bids_gt_percent_of_top_bid` is never used [INFO] [stdout] --> src/main.rs:26:10 [INFO] [stdout] | [INFO] [stdout] 26 | async fn collection_bids_gt_percent_of_top_bid( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `collection_bids_gte` is never used [INFO] [stdout] --> src/main.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | async fn collection_bids_gte(collection: &str, price: f64) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `collateral` and `ongoing_auctions` are never used [INFO] [stdout] --> src/papr_subgraph/client.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 30 | impl GraphQLClient { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub async fn collateral( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub async fn ongoing_auctions(&self, controller: &str) -> Result, eyre::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `WHITELIST` is never used [INFO] [stdout] --> src/purchase.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub static WHITELIST: Lazy> = Lazy::new(|| { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `purchase_auctions_from_whitelisted_controllers` is never used [INFO] [stdout] --> src/purchase.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | pub async fn purchase_auctions_from_whitelisted_controllers( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `arb_auctions_for_controller` is never used [INFO] [stdout] --> src/purchase.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | async fn arb_auctions_for_controller( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Upper`, `Lower`, and `Spot` are never constructed [INFO] [stdout] --> src/reservoir/oracle.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum PriceKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 12 | Upper, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Lower, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Twap, [INFO] [stdout] 15 | Spot, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `OrderQueryParam` is never used [INFO] [stdout] --> src/reservoir/orders.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum OrderQueryParam { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `orders` is never read [INFO] [stdout] --> src/reservoir/orders.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct BidsResponse { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 14 | pub orders: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `kind`, `price`, and `criteria` are never read [INFO] [stdout] --> src/reservoir/orders.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Order { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 19 | pub id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 20 | pub kind: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 21 | pub price: Price, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 22 | pub criteria: Criteria, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `amount`, `net_amount`, and `currency` are never read [INFO] [stdout] --> src/reservoir/orders.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct Price { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 27 | pub amount: Amount, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 28 | pub net_amount: NetAmount, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 29 | pub currency: Currency, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `usd` and `native` are never read [INFO] [stdout] --> src/reservoir/orders.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct Amount { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 34 | pub usd: f64, [INFO] [stdout] | ^^^ [INFO] [stdout] 35 | native: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `raw`, `decimal`, and `native` are never read [INFO] [stdout] --> src/reservoir/orders.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct NetAmount { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 40 | raw: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 41 | pub decimal: f64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 42 | native: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `contract` and `decimals` are never read [INFO] [stdout] --> src/reservoir/orders.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Currency { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 47 | contract: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 48 | decimals: u8, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `kind` is never read [INFO] [stdout] --> src/reservoir/orders.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 52 | pub struct Criteria { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 53 | pub kind: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `bids` is never used [INFO] [stdout] --> src/reservoir/orders.rs:57:18 [INFO] [stdout] | [INFO] [stdout] 56 | impl crate::reservoir::client::ReservoirClient { [INFO] [stdout] | ---------------------------------------------- method in this implementation [INFO] [stdout] 57 | pub async fn bids( [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `QueryParams` is never used [INFO] [stdout] --> src/reservoir/sell.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | enum QueryParams { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `steps` is never read [INFO] [stdout] --> src/reservoir/sell.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Response { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 14 | pub steps: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `items` is never read [INFO] [stdout] --> src/reservoir/sell.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct Step { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 19 | pub items: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `status` and `data` are never read [INFO] [stdout] --> src/reservoir/sell.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Item { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 24 | status: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 25 | data: ItemData, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `from`, `to`, and `data` are never read [INFO] [stdout] --> src/reservoir/sell.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct ItemData { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 30 | from: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 31 | to: String, [INFO] [stdout] | ^^ [INFO] [stdout] 32 | data: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sell_token` is never used [INFO] [stdout] --> src/reservoir/sell.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 35 | impl crate::reservoir::client::ReservoirClient { [INFO] [stdout] | ---------------------------------------------- method in this implementation [INFO] [stdout] 36 | pub async fn sell_token( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 8.71s [INFO] running `Command { std: "docker" "inspect" "293f22ea3162461be9e0d9cfd55581753145ea7ec62f342a9f5f60c853bc473f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "293f22ea3162461be9e0d9cfd55581753145ea7ec62f342a9f5f60c853bc473f", kill_on_drop: false }` [INFO] [stdout] 293f22ea3162461be9e0d9cfd55581753145ea7ec62f342a9f5f60c853bc473f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1.86.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 0d24a9c47271df59fb1eb3073c4fb00d18eb2b63ceea77bcac4ba1ce21afb56d [INFO] running `Command { std: "docker" "start" "-a" "0d24a9c47271df59fb1eb3073c4fb00d18eb2b63ceea77bcac4ba1ce21afb56d", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `reservoir` [INFO] [stderr] --> src/purchase.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | reservoir: &ReservoirClient, [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reservoir` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `auctions` [INFO] [stderr] --> src/purchase.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | let auctions = graphql.ongoing_auctions(&controller.id); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auctions` [INFO] [stderr] [INFO] [stderr] warning: function `collection_bids_gt_percent_of_top_bid` is never used [INFO] [stderr] --> src/main.rs:26:10 [INFO] [stderr] | [INFO] [stderr] 26 | async fn collection_bids_gt_percent_of_top_bid( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `collection_bids_gte` is never used [INFO] [stderr] --> src/main.rs:44:10 [INFO] [stderr] | [INFO] [stderr] 44 | async fn collection_bids_gte(collection: &str, price: f64) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `collateral` and `ongoing_auctions` are never used [INFO] [stderr] --> src/papr_subgraph/client.rs:55:18 [INFO] [stderr] | [INFO] [stderr] 30 | impl GraphQLClient { [INFO] [stderr] | ------------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 55 | pub async fn collateral( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 79 | pub async fn ongoing_auctions(&self, controller: &str) -> Result, eyre::Error> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `WHITELIST` is never used [INFO] [stderr] --> src/purchase.rs:20:12 [INFO] [stderr] | [INFO] [stderr] 20 | pub static WHITELIST: Lazy> = Lazy::new(|| { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `purchase_auctions_from_whitelisted_controllers` is never used [INFO] [stderr] --> src/purchase.rs:29:14 [INFO] [stderr] | [INFO] [stderr] 29 | pub async fn purchase_auctions_from_whitelisted_controllers( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `arb_auctions_for_controller` is never used [INFO] [stderr] --> src/purchase.rs:43:10 [INFO] [stderr] | [INFO] [stderr] 43 | async fn arb_auctions_for_controller( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Upper`, `Lower`, and `Spot` are never constructed [INFO] [stderr] --> src/reservoir/oracle.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub enum PriceKind { [INFO] [stderr] | --------- variants in this enum [INFO] [stderr] 12 | Upper, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 13 | Lower, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 14 | Twap, [INFO] [stderr] 15 | Spot, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `OrderQueryParam` is never used [INFO] [stderr] --> src/reservoir/orders.rs:6:6 [INFO] [stderr] | [INFO] [stderr] 6 | enum OrderQueryParam { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `orders` is never read [INFO] [stderr] --> src/reservoir/orders.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct BidsResponse { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 14 | pub orders: Vec, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `id`, `kind`, `price`, and `criteria` are never read [INFO] [stderr] --> src/reservoir/orders.rs:19:9 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct Order { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] 19 | pub id: String, [INFO] [stderr] | ^^ [INFO] [stderr] 20 | pub kind: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 21 | pub price: Price, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 22 | pub criteria: Criteria, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `amount`, `net_amount`, and `currency` are never read [INFO] [stderr] --> src/reservoir/orders.rs:27:9 [INFO] [stderr] | [INFO] [stderr] 26 | pub struct Price { [INFO] [stderr] | ----- fields in this struct [INFO] [stderr] 27 | pub amount: Amount, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 28 | pub net_amount: NetAmount, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 29 | pub currency: Currency, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `usd` and `native` are never read [INFO] [stderr] --> src/reservoir/orders.rs:34:9 [INFO] [stderr] | [INFO] [stderr] 33 | pub struct Amount { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] 34 | pub usd: f64, [INFO] [stderr] | ^^^ [INFO] [stderr] 35 | native: f64, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `raw`, `decimal`, and `native` are never read [INFO] [stderr] --> src/reservoir/orders.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 39 | pub struct NetAmount { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 40 | raw: String, [INFO] [stderr] | ^^^ [INFO] [stderr] 41 | pub decimal: f64, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 42 | native: f64, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `contract` and `decimals` are never read [INFO] [stderr] --> src/reservoir/orders.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 46 | pub struct Currency { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 47 | contract: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 48 | decimals: u8, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `kind` is never read [INFO] [stderr] --> src/reservoir/orders.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 52 | pub struct Criteria { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] 53 | pub kind: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `bids` is never used [INFO] [stderr] --> src/reservoir/orders.rs:57:18 [INFO] [stderr] | [INFO] [stderr] 56 | impl crate::reservoir::client::ReservoirClient { [INFO] [stderr] | ---------------------------------------------- method in this implementation [INFO] [stderr] 57 | pub async fn bids( [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `QueryParams` is never used [INFO] [stderr] --> src/reservoir/sell.rs:7:6 [INFO] [stderr] | [INFO] [stderr] 7 | enum QueryParams { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `steps` is never read [INFO] [stderr] --> src/reservoir/sell.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct Response { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] 14 | pub steps: Vec, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `items` is never read [INFO] [stderr] --> src/reservoir/sell.rs:19:9 [INFO] [stderr] | [INFO] [stderr] 18 | pub struct Step { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] 19 | pub items: Vec, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `status` and `data` are never read [INFO] [stderr] --> src/reservoir/sell.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 23 | pub struct Item { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 24 | status: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 25 | data: ItemData, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `from`, `to`, and `data` are never read [INFO] [stderr] --> src/reservoir/sell.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 29 | pub struct ItemData { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 30 | from: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 31 | to: String, [INFO] [stderr] | ^^ [INFO] [stderr] 32 | data: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `sell_token` is never used [INFO] [stderr] --> src/reservoir/sell.rs:36:18 [INFO] [stderr] | [INFO] [stderr] 35 | impl crate::reservoir::client::ReservoirClient { [INFO] [stderr] | ---------------------------------------------- method in this implementation [INFO] [stderr] 36 | pub async fn sell_token( [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `auction-bot` (bin "auction-bot" test) generated 24 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.31s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/auction_bot-a6e1f72e23e630b3) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test reservoir::oracle::tests::price_in_atomic_units_computes_correctly ... ok [INFO] [stdout] test reservoir::oracle::tests::as_contract_oracle_info_converts_values_correctly ... ok [INFO] [stdout] test purchase::tests::current_price_computes_correctly ... ok [INFO] [stdout] test reservoir::oracle::tests::price_in_atomic_units_keeps_six_digits_precision ... ok [INFO] [stdout] test start::tests::max_debt_correctly_computes ... ok [INFO] [stdout] test start::tests::max_debt_panics_if_division_underflows ... ok [INFO] [stdout] test start::tests::max_debt_panics_if_multiplication_overflows ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0d24a9c47271df59fb1eb3073c4fb00d18eb2b63ceea77bcac4ba1ce21afb56d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d24a9c47271df59fb1eb3073c4fb00d18eb2b63ceea77bcac4ba1ce21afb56d", kill_on_drop: false }` [INFO] [stdout] 0d24a9c47271df59fb1eb3073c4fb00d18eb2b63ceea77bcac4ba1ce21afb56d