[INFO] cloning repository https://github.com/notdanilo/nash-io [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/notdanilo/nash-io" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotdanilo%2Fnash-io", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotdanilo%2Fnash-io'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d6666ba759059b289caf0d7553a872e48ea2a7c9 [INFO] testing notdanilo/nash-io against master#5d5ff84130da0d74c6ece368dbe821d8f83fa526 for pr-79296 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotdanilo%2Fnash-io" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/notdanilo/nash-io on toolchain 5d5ff84130da0d74c6ece368dbe821d8f83fa526 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/notdanilo/nash-io [INFO] removed path dependency openlimits from git repo https://github.com/notdanilo/nash-io [INFO] finished tweaking git repo https://github.com/notdanilo/nash-io [INFO] tweaked toml for git repo https://github.com/notdanilo/nash-io written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/notdanilo/nash-io already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (openlimits) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-0/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (openlimits) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e998d3937fcce1275b627bcd2cb9e98779b0052507259177e1f6cfbb44b4bf12 [INFO] running `Command { std: "docker" "start" "-a" "e998d3937fcce1275b627bcd2cb9e98779b0052507259177e1f6cfbb44b4bf12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e998d3937fcce1275b627bcd2cb9e98779b0052507259177e1f6cfbb44b4bf12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e998d3937fcce1275b627bcd2cb9e98779b0052507259177e1f6cfbb44b4bf12", kill_on_drop: false }` [INFO] [stdout] e998d3937fcce1275b627bcd2cb9e98779b0052507259177e1f6cfbb44b4bf12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+5d5ff84130da0d74c6ece368dbe821d8f83fa526" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6bf1c4ca353c17fcf77e5c1c0945bcb563615fddac7845e6dce2a35c043df04a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6bf1c4ca353c17fcf77e5c1c0945bcb563615fddac7845e6dce2a35c043df04a", kill_on_drop: false }` [INFO] [stderr] warning: dependency (openlimits) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling syn v1.0.53 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling serde_derive v1.0.117 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling cc v1.0.65 [INFO] [stderr] Compiling futures-core v0.3.8 [INFO] [stderr] Compiling futures-sink v0.3.8 [INFO] [stderr] Compiling subtle v2.3.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling once_cell v1.5.2 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling radium v0.4.1 [INFO] [stderr] Compiling futures-io v0.3.8 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling native-tls v0.2.6 [INFO] [stderr] Compiling pin-project-lite v0.1.11 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling funty v1.0.1 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling serde_json v1.0.59 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling opaque-debug v0.2.3 [INFO] [stderr] Compiling getrandom v0.2.0 [INFO] [stderr] Compiling const-oid v0.1.0 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling ascii v0.9.3 [INFO] [stderr] Compiling pin-project-lite v0.2.0 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling keccak v0.1.0 [INFO] [stderr] Compiling encoding_rs v0.8.26 [INFO] [stderr] Compiling base64 v0.11.0 [INFO] [stderr] Compiling hex v0.4.2 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling vec_box v1.0.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling min_max_macros v0.1.1 [INFO] [stderr] Compiling cute v0.3.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling num-bigint v0.3.1 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling tracing-core v0.1.17 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling futures-channel v0.3.8 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling tinyvec v1.1.0 [INFO] [stderr] Compiling futures-task v0.3.8 [INFO] [stderr] Compiling block-padding v0.1.5 [INFO] [stderr] Compiling form_urlencoded v1.0.0 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling sugar v0.2.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling crossbeam-utils v0.8.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.9.1 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling tracing v0.1.22 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling bitvec v0.18.4 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling combine v3.8.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.0 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling hmac v0.9.0 [INFO] [stderr] Compiling sha2 v0.9.2 [INFO] [stderr] Compiling sha-1 v0.9.2 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling ripemd160 v0.9.1 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling sha-1 v0.8.2 [INFO] [stderr] Compiling unicode-normalization v0.1.16 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.36 [INFO] [stderr] Compiling signal-hook-registry v1.2.2 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling socket2 v0.3.17 [INFO] [stderr] Compiling backtrace v0.3.55 [INFO] [stderr] Compiling crossbeam-deque v0.8.0 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling signature v1.2.2 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling ff v0.8.0 [INFO] [stderr] Compiling group v0.8.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling elliptic-curve v0.6.6 [INFO] [stderr] Compiling url v2.2.0 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling ecdsa v0.8.5 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling p256 v0.5.2 [INFO] [stderr] Compiling k256 v0.5.10 [INFO] [stderr] Compiling synstructure v0.12.4 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling tungstenite v0.10.1 [INFO] [stderr] Compiling pin-project-internal v1.0.2 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling futures-macro v0.3.8 [INFO] [stderr] Compiling thiserror-impl v1.0.22 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling tokio v0.2.23 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling graphql-parser v0.2.3 [INFO] [stderr] Compiling thiserror v1.0.22 [INFO] [stderr] Compiling pin-project v1.0.2 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling pin-project v0.4.27 [INFO] [stderr] Compiling tracing-futures v0.2.4 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling tokio-native-tls v0.1.0 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling tokio-tungstenite v0.11.0 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling tokio-tungstenite v0.10.1 [INFO] [stderr] Compiling graphql-introspection-query v0.1.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling bigdecimal v0.1.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling rust_decimal v1.8.1 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling graphql_client_codegen v0.9.0 [INFO] [stderr] Compiling rust-bigint v1.1.0 [INFO] [stderr] Compiling hyper v0.13.9 [INFO] [stderr] Compiling paillier-common v0.1.1 [INFO] [stderr] Compiling nash-mpc v1.2.0 [INFO] [stderr] Compiling graphql_query_derive v0.9.0 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.9 [INFO] [stderr] Compiling graphql_client v0.9.0 [INFO] [stderr] Compiling nash-protocol v0.1.17 [INFO] [stderr] Compiling nash-native-client v0.1.9 [INFO] [stderr] Compiling openlimits v0.1.5 [INFO] [stderr] Compiling hiring-challenge v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `openlimits::nash::NashStream` [INFO] [stdout] --> src/exchanges/nash.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use openlimits::nash::NashStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `NashStream` in `nash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::websocket::OpenLimitsWebsocketMessage` [INFO] [stdout] --> src/exchanges/nash.rs:5:50 [INFO] [stdout] | [INFO] [stdout] 5 | use openlimits::model::websocket::{Subscription, OpenLimitsWebsocketMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `OpenLimitsWebsocketMessage` in `model::websocket` [INFO] [stdout] | help: a similar name exists in the module (notice the capitalization): `OpenLimitsWebSocketMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `openlimits::model::websocket::OpenLimitsWebsocketMessage` [INFO] [stdout] --> src/exchanges/binance.rs:4:50 [INFO] [stdout] | [INFO] [stdout] 4 | use openlimits::model::websocket::{Subscription, OpenLimitsWebsocketMessage}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `OpenLimitsWebsocketMessage` in `model::websocket` [INFO] [stdout] | help: a similar name exists in the module (notice the capitalization): `OpenLimitsWebSocketMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/exchanges.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/exchanges/nash.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | 1, [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/exchanges/nash.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let websocket = NashStream::with_credential( [INFO] [stdout] | _____________________^ [INFO] [stdout] 15 | | &std::env::var("NASH_API_SECRET").unwrap(), [INFO] [stdout] 16 | | &std::env::var("NASH_API_KEY").unwrap(), [INFO] [stdout] 17 | | 1, [INFO] [stdout] 18 | | false, [INFO] [stdout] 19 | | 1000, [INFO] [stdout] 20 | | ).await; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async fn` body must be known in this context [INFO] [stdout] --> src/exchanges/nash.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | 1000, [INFO] [stdout] | ^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async fn` body because of this `await` [INFO] [stdout] --> src/exchanges/nash.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 14 | let websocket = NashStream::with_credential( [INFO] [stdout] | _____________________^ [INFO] [stdout] 15 | | &std::env::var("NASH_API_SECRET").unwrap(), [INFO] [stdout] 16 | | &std::env::var("NASH_API_KEY").unwrap(), [INFO] [stdout] 17 | | 1, [INFO] [stdout] 18 | | false, [INFO] [stdout] 19 | | 1000, [INFO] [stdout] 20 | | ).await; [INFO] [stdout] | |___________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `OrderBook` found for enum `openlimits::model::websocket::Subscription` in the current scope [INFO] [stdout] --> src/exchanges/nash.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | let subscription = Subscription::OrderBook(pair.to_string("_"), depth as i64); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `openlimits::model::websocket::Subscription` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `BinanceWebsocket` in the current scope [INFO] [stdout] --> src/exchanges/binance.rs:12:38 [INFO] [stdout] | [INFO] [stdout] 12 | websocket: BinanceWebsocket::new() [INFO] [stdout] | ^^^ function or associated item not found in `BinanceWebsocket` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use openlimits::exchange_ws::ExchangeWs;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `OrderBook` found for enum `openlimits::model::websocket::Subscription` in the current scope [INFO] [stdout] --> src/exchanges/binance.rs:19:42 [INFO] [stdout] | [INFO] [stdout] 19 | let subscription = Subscription::OrderBook(pair.to_string(""), depth as i64); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `openlimits::model::websocket::Subscription` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/exchanges/binance.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | self.subscribe(subscription).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^ ------------ supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for mutable reference `&mut OpenLimitsWs` in the current scope [INFO] [stdout] --> src/exchanges/binance.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 24 | self.next().await.and_then(|msg| msg.ok()).and_then(|msg| { [INFO] [stdout] | ^^^^ method not found in `&mut OpenLimitsWs` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/openlimits-0.1.5/src/exchange_ws.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | pub struct OpenLimitsWs { [INFO] [stdout] | -------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | doesn't satisfy `OpenLimitsWs: Iterator` [INFO] [stdout] | doesn't satisfy `OpenLimitsWs: StreamExt` [INFO] [stdout] | doesn't satisfy `OpenLimitsWs: Stream` [INFO] [stdout] | [INFO] [stdout] = note: the method `next` exists but the following trait bounds were not satisfied: [INFO] [stdout] `OpenLimitsWs: Stream` [INFO] [stdout] which is required by `OpenLimitsWs: StreamExt` [INFO] [stdout] `&mut OpenLimitsWs: Stream` [INFO] [stdout] which is required by `&mut OpenLimitsWs: StreamExt` [INFO] [stdout] `OpenLimitsWs: Iterator` [INFO] [stdout] which is required by `&mut OpenLimitsWs: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let mut nash = exchanges::nash().await; [INFO] [stdout] | ^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:54 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:49 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^ cannot infer type [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0698]: type inside `async` block must be known in this context [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^ cannot infer type for type parameter `T` declared on the associated function `new` [INFO] [stdout] | [INFO] [stdout] note: the type is part of the `async` block because of this `await` [INFO] [stdout] --> src/main.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 13 | if let Some(arbitrage) = Arbitrage::new(&mut nash, &mut binance, CoinPair(Coin::BTC, Coin::USDC), 5).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::stream::StreamExt` [INFO] [stdout] --> src/exchanges/nash.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use tokio::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::stream::StreamExt` [INFO] [stdout] --> src/exchanges/binance.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0432, E0599, E0698. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hiring-challenge` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "6bf1c4ca353c17fcf77e5c1c0945bcb563615fddac7845e6dce2a35c043df04a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6bf1c4ca353c17fcf77e5c1c0945bcb563615fddac7845e6dce2a35c043df04a", kill_on_drop: false }` [INFO] [stdout] 6bf1c4ca353c17fcf77e5c1c0945bcb563615fddac7845e6dce2a35c043df04a