[INFO] fetching crate price-adapter-raw 0.1.0... [INFO] testing price-adapter-raw-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate price-adapter-raw 0.1.0 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate price-adapter-raw 0.1.0 [INFO] finished tweaking crates.io crate price-adapter-raw 0.1.0 [INFO] tweaked toml for crates.io crate price-adapter-raw 0.1.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate price-adapter-raw 0.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate price-adapter-raw 0.1.0 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded data-encoding v2.4.0 [INFO] [stderr] Downloaded cc v1.0.84 [INFO] [stderr] Downloaded openssl v0.10.59 [INFO] [stderr] Downloaded rustix v0.38.22 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c494b4f6114e8f26fae42c1879d88698b2ae32c370c0f2e3a381541cc944df2f [INFO] running `Command { std: "docker" "start" "-a" "c494b4f6114e8f26fae42c1879d88698b2ae32c370c0f2e3a381541cc944df2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c494b4f6114e8f26fae42c1879d88698b2ae32c370c0f2e3a381541cc944df2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c494b4f6114e8f26fae42c1879d88698b2ae32c370c0f2e3a381541cc944df2f", kill_on_drop: false }` [INFO] [stdout] c494b4f6114e8f26fae42c1879d88698b2ae32c370c0f2e3a381541cc944df2f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 03c43b285a707c2a777eb81f40fd125a222cf98067bdbbf53bbdde17a71f5c1d [INFO] running `Command { std: "docker" "start" "-a" "03c43b285a707c2a777eb81f40fd125a222cf98067bdbbf53bbdde17a71f5c1d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling once_cell v1.18.0 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling itoa v1.0.9 [INFO] [stderr] Compiling futures-core v0.3.29 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling openssl v0.10.59 [INFO] [stderr] Compiling http v0.2.11 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling futures-sink v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling bitflags v2.4.1 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling percent-encoding v2.3.0 [INFO] [stderr] Compiling form_urlencoded v1.2.0 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling cc v1.0.84 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling mio v0.8.9 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling serde v1.0.192 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling openssl-sys v0.9.95 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling cpufeatures v0.2.11 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling ryu v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling data-encoding v2.4.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling either v1.9.0 [INFO] [stderr] Compiling base64 v0.21.5 [INFO] [stderr] Compiling iana-time-zone v0.1.58 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling itertools v0.11.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling serde_derive v1.0.192 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling tokio v1.34.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tungstenite v0.20.1 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tokio-tungstenite v0.20.1 [INFO] [stderr] Compiling h2 v0.3.21 [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.22 [INFO] [stderr] Compiling price-adapter-raw v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> src/binance_websocket/types.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct MiniTickerResponse { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 30 | pub stream: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MiniTickerResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `symbol` and `name` are never read [INFO] [stdout] --> src/coingecko.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CoinMarketResponse { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 14 | pub id: String, [INFO] [stdout] 15 | pub symbol: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoinMarketResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 25s [INFO] running `Command { std: "docker" "inspect" "03c43b285a707c2a777eb81f40fd125a222cf98067bdbbf53bbdde17a71f5c1d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03c43b285a707c2a777eb81f40fd125a222cf98067bdbbf53bbdde17a71f5c1d", kill_on_drop: false }` [INFO] [stdout] 03c43b285a707c2a777eb81f40fd125a222cf98067bdbbf53bbdde17a71f5c1d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c3c0036181d2f01c2101f097cd679bee8f92024e029e0941857ed113b90c89ee [INFO] running `Command { std: "docker" "start" "-a" "c3c0036181d2f01c2101f097cd679bee8f92024e029e0941857ed113b90c89ee", kill_on_drop: false }` [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> src/binance_websocket/types.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct MiniTickerResponse { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 30 | pub stream: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MiniTickerResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `symbol` and `name` are never read [INFO] [stdout] --> src/coingecko.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CoinMarketResponse { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 14 | pub id: String, [INFO] [stdout] 15 | pub symbol: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoinMarketResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling price-adapter-raw v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `stream` is never read [INFO] [stdout] --> src/binance_websocket/types.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct MiniTickerResponse { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] 30 | pub stream: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MiniTickerResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `symbol` and `name` are never read [INFO] [stdout] --> src/coingecko.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CoinMarketResponse { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 14 | pub id: String, [INFO] [stdout] 15 | pub symbol: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CoinMarketResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.31s [INFO] running `Command { std: "docker" "inspect" "c3c0036181d2f01c2101f097cd679bee8f92024e029e0941857ed113b90c89ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3c0036181d2f01c2101f097cd679bee8f92024e029e0941857ed113b90c89ee", kill_on_drop: false }` [INFO] [stdout] c3c0036181d2f01c2101f097cd679bee8f92024e029e0941857ed113b90c89ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cbe0f2f732ce5e2ca84b33f58851ba961d8503049e26df214ab765ea3f620c61 [INFO] running `Command { std: "docker" "start" "-a" "cbe0f2f732ce5e2ca84b33f58851ba961d8503049e26df214ab765ea3f620c61", kill_on_drop: false }` [INFO] [stderr] warning: field `stream` is never read [INFO] [stderr] --> src/binance_websocket/types.rs:30:9 [INFO] [stderr] | [INFO] [stderr] 29 | pub struct MiniTickerResponse { [INFO] [stderr] | ------------------ field in this struct [INFO] [stderr] 30 | pub stream: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `MiniTickerResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: fields `symbol` and `name` are never read [INFO] [stderr] --> src/coingecko.rs:15:9 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct CoinMarketResponse { [INFO] [stderr] | ------------------ fields in this struct [INFO] [stderr] 14 | pub id: String, [INFO] [stderr] 15 | pub symbol: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 16 | pub name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `CoinMarketResponse` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `price-adapter-raw` (lib) generated 2 warnings [INFO] [stderr] warning: `price-adapter-raw` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/price_adapter_raw-81ce8f0fe42a500c) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests price_adapter_raw [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - (line 27) ... FAILED [INFO] [stdout] test src/lib.rs - (line 51) ... FAILED [INFO] [stdout] test src/lib.rs - (line 12) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 27) stdout ---- [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:34:26 [INFO] [stdout] | [INFO] [stdout] 9 | let mut binance_ws = BinanceWebsocket::new("wss://stream.binance.com:9443", &["ethbtc", "btcusdt"]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ---------------------- unexpected argument #2 of type `&[&str; 2]` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/binance_websocket/websocket.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn new(url: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 9 - let mut binance_ws = BinanceWebsocket::new("wss://stream.binance.com:9443", &["ethbtc", "btcusdt"]); [INFO] [stdout] 9 + let mut binance_ws = BinanceWebsocket::new("wss://stream.binance.com:9443"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: `WebsocketMessage` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:39:39 [INFO] [stdout] | [INFO] [stdout] 14 | println!("price: {}", price); [INFO] [stdout] | -- ^^^^^ `WebsocketMessage` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `WebsocketMessage` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 51) stdout ---- [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/lib.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 9 | let mut binance_ws = BinanceWebsocket::new("wss://stream.binance.com:9443", &["ethbtc", "btcusdt"]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ ---------------------- unexpected argument #2 of type `&[&str; 2]` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/binance_websocket/websocket.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn new(url: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 9 - let mut binance_ws = BinanceWebsocket::new("wss://stream.binance.com:9443", &["ethbtc", "btcusdt"]); [INFO] [stdout] 9 + let mut binance_ws = BinanceWebsocket::new("wss://stream.binance.com:9443"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:61:13 [INFO] [stdout] | [INFO] [stdout] 12 | service.start().await.unwrap(); [INFO] [stdout] | ^^^^^-- argument #1 of type `&[&str]` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/binance_websocket/service.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | pub async fn start(&mut self, ids: &[&str]) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 12 | service.start(/* &[&str] */).await.unwrap(); [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 27) [INFO] [stdout] src/lib.rs - (line 51) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.33s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "cbe0f2f732ce5e2ca84b33f58851ba961d8503049e26df214ab765ea3f620c61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbe0f2f732ce5e2ca84b33f58851ba961d8503049e26df214ab765ea3f620c61", kill_on_drop: false }` [INFO] [stdout] cbe0f2f732ce5e2ca84b33f58851ba961d8503049e26df214ab765ea3f620c61