[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 beta-2021-01-01 for beta-1.50-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotdanilo%2Fnash-io" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/notdanilo/nash-io on toolchain beta-2021-01-01 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "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-8/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" "+beta-2021-01-01" "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-8/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" "+beta-2021-01-01" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "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] Downloading crates ... [INFO] [stderr] Downloaded crypto-mac v0.8.0 [INFO] [stderr] Downloaded hmac v0.8.1 [INFO] [stderr] Downloaded radium v0.4.1 [INFO] [stderr] Downloaded signature v1.2.2 [INFO] [stderr] Downloaded nash-mpc v1.2.0 [INFO] [stderr] Downloaded rust-gmp-serde v0.5.0 [INFO] [stderr] Downloaded ripemd160 v0.9.1 [INFO] [stderr] Downloaded bigdecimal v0.1.2 [INFO] [stderr] Downloaded rust_decimal v1.9.0 [INFO] [stderr] Downloaded ecdsa v0.8.5 [INFO] [stderr] Downloaded tokio-tungstenite v0.11.0 [INFO] [stderr] Downloaded k256 v0.5.10 [INFO] [stderr] Downloaded cute v0.3.0 [INFO] [stderr] Downloaded rust-bigint v1.1.0 [INFO] [stderr] Downloaded p256 v0.5.2 [INFO] [stderr] Downloaded group v0.8.0 [INFO] [stderr] Downloaded bitvec v0.18.4 [INFO] [stderr] Downloaded bs58 v0.3.1 [INFO] [stderr] Downloaded funty v1.1.0 [INFO] [stderr] Downloaded paillier-common v0.1.1 [INFO] [stderr] Downloaded const-oid v0.1.0 [INFO] [stderr] Downloaded nash-protocol v0.1.20 [INFO] [stderr] Downloaded ff v0.8.0 [INFO] [stderr] Downloaded elliptic-curve v0.6.6 [INFO] [stderr] Downloaded min_max_macros v0.1.1 [INFO] [stderr] Downloaded sugar v0.2.0 [INFO] [stderr] Downloaded Inflector v0.11.4 [INFO] [stderr] Downloaded vec_box v1.0.0 [INFO] [stderr] Downloaded nash-native-client v0.1.13 [INFO] [stderr] Downloaded openlimits v0.1.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4dbf44793607f3496ae472de997a9dec602a5f257161279ab45dbb563e15f29b [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" "4dbf44793607f3496ae472de997a9dec602a5f257161279ab45dbb563e15f29b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4dbf44793607f3496ae472de997a9dec602a5f257161279ab45dbb563e15f29b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4dbf44793607f3496ae472de997a9dec602a5f257161279ab45dbb563e15f29b", kill_on_drop: false }` [INFO] [stdout] 4dbf44793607f3496ae472de997a9dec602a5f257161279ab45dbb563e15f29b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d13c1474424b137f254a508edea91591e9e3c3031911260fc1a284c33f2601a [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" "0d13c1474424b137f254a508edea91591e9e3c3031911260fc1a284c33f2601a", 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] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling radium v0.4.1 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling getrandom v0.2.1 [INFO] [stderr] Compiling const-oid v0.1.0 [INFO] [stderr] Compiling min_max_macros v0.1.1 [INFO] [stderr] Compiling vec_box v1.0.0 [INFO] [stderr] Compiling cute v0.3.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio-macros v0.2.6 [INFO] [stderr] Compiling async-trait v0.1.42 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Compiling signature v1.2.2 [INFO] [stderr] Compiling sha2 v0.8.2 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling crypto-mac v0.9.1 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling sugar v0.2.0 [INFO] [stderr] Compiling futures-util v0.3.8 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling combine v3.8.1 [INFO] [stderr] Compiling hmac v0.9.0 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling bs58 v0.3.1 [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 rayon v1.5.0 [INFO] [stderr] Compiling bitvec v0.18.4 [INFO] [stderr] Compiling tungstenite v0.11.1 [INFO] [stderr] Compiling tungstenite v0.10.1 [INFO] [stderr] Compiling tokio v0.2.24 [INFO] [stderr] Compiling serde_json v1.0.61 [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 serde_urlencoded v0.6.1 [INFO] [stderr] Compiling rust_decimal v1.9.0 [INFO] [stderr] Compiling ff v0.8.0 [INFO] [stderr] Compiling group v0.8.0 [INFO] [stderr] Compiling elliptic-curve v0.6.6 [INFO] [stderr] Compiling ecdsa v0.8.5 [INFO] [stderr] Compiling futures-executor v0.3.8 [INFO] [stderr] Compiling p256 v0.5.2 [INFO] [stderr] Compiling k256 v0.5.10 [INFO] [stderr] Compiling futures v0.3.8 [INFO] [stderr] Compiling rust-gmp-serde v0.5.0 [INFO] [stderr] Compiling rust-bigint v1.1.0 [INFO] [stderr] Compiling graphql-parser v0.2.3 [INFO] [stderr] Compiling paillier-common v0.1.1 [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 tokio-tungstenite v0.11.0 [INFO] [stderr] Compiling tokio-tungstenite v0.10.1 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling nash-mpc v1.2.0 [INFO] [stderr] Compiling graphql_client_codegen v0.9.0 [INFO] [stderr] Compiling hyper v0.13.9 [INFO] [stderr] Compiling graphql_query_derive v0.9.0 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.10 [INFO] [stderr] Compiling graphql_client v0.9.0 [INFO] [stderr] Compiling nash-protocol v0.1.20 [INFO] [stderr] Compiling nash-native-client v0.1.13 [INFO] [stderr] Compiling openlimits v0.1.6 [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 `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 `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 `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 `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.6/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" "0d13c1474424b137f254a508edea91591e9e3c3031911260fc1a284c33f2601a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d13c1474424b137f254a508edea91591e9e3c3031911260fc1a284c33f2601a", kill_on_drop: false }` [INFO] [stdout] 0d13c1474424b137f254a508edea91591e9e3c3031911260fc1a284c33f2601a