[INFO] fetching crate gateio-rs 0.1.0... [INFO] testing gateio-rs-0.1.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate gateio-rs 0.1.0 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate gateio-rs 0.1.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate gateio-rs 0.1.0 [INFO] tweaked toml for crates.io crate gateio-rs 0.1.0 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate gateio-rs 0.1.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate gateio-rs 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6a00ac055c9d946c23bd6720df396d3711f4f2f744bcb563c0ca22465b1ba050 [INFO] running `Command { std: "docker" "start" "-a" "6a00ac055c9d946c23bd6720df396d3711f4f2f744bcb563c0ca22465b1ba050", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6a00ac055c9d946c23bd6720df396d3711f4f2f744bcb563c0ca22465b1ba050", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6a00ac055c9d946c23bd6720df396d3711f4f2f744bcb563c0ca22465b1ba050", kill_on_drop: false }` [INFO] [stdout] 6a00ac055c9d946c23bd6720df396d3711f4f2f744bcb563c0ca22465b1ba050 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d5312ce8c01dd9dfd7489ac931b7a8cd4a810ca98cd0790b1035180609b86fb [INFO] running `Command { std: "docker" "start" "-a" "7d5312ce8c01dd9dfd7489ac931b7a8cd4a810ca98cd0790b1035180609b86fb", kill_on_drop: false }` [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling cc v1.2.26 [INFO] [stderr] Compiling rustls v0.23.27 [INFO] [stderr] Compiling webpki-roots v1.0.0 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling syn v2.0.102 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling ureq-proto v0.4.2 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling rustls-webpki v0.103.3 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling ed25519 v2.2.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling ed25519-dalek v2.1.1 [INFO] [stderr] Compiling ureq v3.0.12 [INFO] [stderr] Compiling gateio-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.62s [INFO] running `Command { std: "docker" "inspect" "7d5312ce8c01dd9dfd7489ac931b7a8cd4a810ca98cd0790b1035180609b86fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d5312ce8c01dd9dfd7489ac931b7a8cd4a810ca98cd0790b1035180609b86fb", kill_on_drop: false }` [INFO] [stdout] 7d5312ce8c01dd9dfd7489ac931b7a8cd4a810ca98cd0790b1035180609b86fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b226192ba40fcb83897a40cf5507451706c51488dbbea6118a6fe99ee33ad9f7 [INFO] running `Command { std: "docker" "start" "-a" "b226192ba40fcb83897a40cf5507451706c51488dbbea6118a6fe99ee33ad9f7", kill_on_drop: false }` [INFO] [stderr] Compiling gateio-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Order`, `create_batch_orders`, and `create_order` [INFO] [stdout] --> examples/async_example.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use gateio_rs::api::spot::{Order, create_batch_orders, create_order}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 7.25s [INFO] running `Command { std: "docker" "inspect" "b226192ba40fcb83897a40cf5507451706c51488dbbea6118a6fe99ee33ad9f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b226192ba40fcb83897a40cf5507451706c51488dbbea6118a6fe99ee33ad9f7", kill_on_drop: false }` [INFO] [stdout] b226192ba40fcb83897a40cf5507451706c51488dbbea6118a6fe99ee33ad9f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e10aac2f1f0ded1127b554a62ebc68aeea090732bf9d704ee51503b3ae7d8ac6 [INFO] running `Command { std: "docker" "start" "-a" "e10aac2f1f0ded1127b554a62ebc68aeea090732bf9d704ee51503b3ae7d8ac6", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Order`, `create_batch_orders`, and `create_order` [INFO] [stderr] --> examples/async_example.rs:1:28 [INFO] [stderr] | [INFO] [stderr] 1 | use gateio_rs::api::spot::{Order, create_batch_orders, create_order}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `gateio-rs` (example "async_example") generated 1 warning (run `cargo fix --example "async_example" -p gateio-rs` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/gateio_rs-22b933cb87bea00b) [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 gateio_rs [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/api/spot/mod.rs - api::spot::create_order (line 328) - compile ... FAILED [INFO] [stdout] test src/ureq/client.rs - ureq::client::GateHttpClient (line 36) - compile ... FAILED [INFO] [stdout] test src/api/spot/mod.rs - api::spot::get_ticker (line 215) - compile ... FAILED [INFO] [stdout] test src/api/spot/mod.rs - api::spot (line 53) - compile ... FAILED [INFO] [stdout] test src/ureq/mod.rs - ureq (line 18) - compile ... ok [INFO] [stdout] test src/api/spot/get_ticker.rs - api::spot::get_ticker::GetTicker (line 13) - compile ... FAILED [INFO] [stdout] test src/api/spot/mod.rs - api::spot::get_account (line 272) - compile ... FAILED [INFO] [stdout] test src/ureq/mod.rs - ureq (line 53) ... FAILED [INFO] [stdout] test src/ureq/client.rs - ureq::client::GateHttpClient (line 25) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 7) - compile ... FAILED [INFO] [stdout] test src/api/spot/create_order.rs - api::spot::create_order::CreateOrder (line 17) - compile ... FAILED [INFO] [stdout] test src/ureq/mod.rs - ureq (line 39) ... ok [INFO] [stdout] test src/ureq/client.rs - ureq::client::GateHttpClient (line 52) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/api/spot/mod.rs - api::spot::create_order (line 328) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/mod.rs:344:36 [INFO] [stdout] | [INFO] [stdout] 329 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_328_0() { [INFO] [stdout] | -------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 344 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 329 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_328_0() -> Result<(), Box> { [INFO] [stdout] 330 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 350 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 351 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/mod.rs:349:36 [INFO] [stdout] | [INFO] [stdout] 329 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_328_0() { [INFO] [stdout] | -------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 349 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 329 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_328_0() -> Result<(), Box> { [INFO] [stdout] 330 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 350 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 351 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ureq/client.rs - ureq::client::GateHttpClient (line 36) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ureq/client.rs:47:36 [INFO] [stdout] | [INFO] [stdout] 37 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ureq_client_rs_36_0() { [INFO] [stdout] | ------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 47 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 37 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ureq_client_rs_36_0() -> Result<(), Box> { [INFO] [stdout] 38 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 48 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 49 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/spot/mod.rs - api::spot::get_ticker (line 215) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/mod.rs:223:36 [INFO] [stdout] | [INFO] [stdout] 216 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_215_0() { [INFO] [stdout] | -------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 223 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 216 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_215_0() -> Result<(), Box> { [INFO] [stdout] 217 | use gateio_rs::{api::spot::get_ticker, ureq::GateHttpClient}; [INFO] [stdout] ... [INFO] [stdout] 228 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 229 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/mod.rs:227:36 [INFO] [stdout] | [INFO] [stdout] 216 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_215_0() { [INFO] [stdout] | -------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 227 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 216 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_215_0() -> Result<(), Box> { [INFO] [stdout] 217 | use gateio_rs::{api::spot::get_ticker, ureq::GateHttpClient}; [INFO] [stdout] ... [INFO] [stdout] 228 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 229 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/spot/mod.rs - api::spot (line 53) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/mod.rs:64:39 [INFO] [stdout] | [INFO] [stdout] 54 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_53_0() { [INFO] [stdout] | ------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 64 | let response = client.send(ticker_req)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 54 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_53_0() -> Result<(), Box> { [INFO] [stdout] 55 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 71 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 72 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/mod.rs:70:38 [INFO] [stdout] | [INFO] [stdout] 54 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_53_0() { [INFO] [stdout] | ------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 70 | let response = client.send(order_req)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 54 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_53_0() -> Result<(), Box> { [INFO] [stdout] 55 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 71 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 72 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/spot/get_ticker.rs - api::spot::get_ticker::GetTicker (line 13) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/get_ticker.rs:23:36 [INFO] [stdout] | [INFO] [stdout] 14 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_get_ticker_rs_13_0() { [INFO] [stdout] | -------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 23 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 14 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_get_ticker_rs_13_0() -> Result<(), Box> { [INFO] [stdout] 15 | use gateio_rs::{api::spot::get_ticker, ureq::GateHttpClient}; [INFO] [stdout] ... [INFO] [stdout] 28 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 29 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/get_ticker.rs:27:36 [INFO] [stdout] | [INFO] [stdout] 14 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_get_ticker_rs_13_0() { [INFO] [stdout] | -------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 27 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 14 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_get_ticker_rs_13_0() -> Result<(), Box> { [INFO] [stdout] 15 | use gateio_rs::{api::spot::get_ticker, ureq::GateHttpClient}; [INFO] [stdout] ... [INFO] [stdout] 28 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 29 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/spot/mod.rs - api::spot::get_account (line 272) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/mod.rs:285:36 [INFO] [stdout] | [INFO] [stdout] 273 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_272_0() { [INFO] [stdout] | -------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 285 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 273 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_272_0() -> Result<(), Box> { [INFO] [stdout] 274 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 290 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 291 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/mod.rs:289:36 [INFO] [stdout] | [INFO] [stdout] 273 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_272_0() { [INFO] [stdout] | -------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 289 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 273 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_272_0() -> Result<(), Box> { [INFO] [stdout] 274 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 290 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 291 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ureq/mod.rs - ureq (line 53) stdout ---- [INFO] [stdout] error[E0599]: no method named `timeout_request` found for struct `ConfigBuilder` in the current scope [INFO] [stdout] --> src/ureq/mod.rs:60:6 [INFO] [stdout] | [INFO] [stdout] 59 | let agent: Agent = Agent::config_builder() [INFO] [stdout] | ____________________- [INFO] [stdout] 60 | | .timeout_request(Duration::from_secs(10)) [INFO] [stdout] | |_____-^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `timeout_send_request` with a similar name [INFO] [stdout] | [INFO] [stdout] 60 | .timeout_send_request(Duration::from_secs(10)) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/ureq/client.rs - ureq::client::GateHttpClient (line 25) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/ureq/client.rs:31:36 [INFO] [stdout] | [INFO] [stdout] 26 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ureq_client_rs_25_0() { [INFO] [stdout] | ------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 31 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 26 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ureq_client_rs_25_0() -> Result<(), Box> { [INFO] [stdout] 27 | use gateio_rs::{api::spot::get_ticker, ureq::GateHttpClient}; [INFO] [stdout] ... [INFO] [stdout] 32 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 33 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 7) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 8 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() { [INFO] [stdout] | --------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 21 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 8 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() -> Result<(), Box> { [INFO] [stdout] 9 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 22 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 23 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/spot/create_order.rs - api::spot::create_order::CreateOrder (line 17) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/create_order.rs:34:36 [INFO] [stdout] | [INFO] [stdout] 18 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_create_order_rs_17_0() { [INFO] [stdout] | ---------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 34 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 18 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_create_order_rs_17_0() -> Result<(), Box> { [INFO] [stdout] 19 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 40 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 41 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/api/spot/create_order.rs:39:36 [INFO] [stdout] | [INFO] [stdout] 18 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_create_order_rs_17_0() { [INFO] [stdout] | ---------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 39 | let response = client.send(request)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 18 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_create_order_rs_17_0() -> Result<(), Box> { [INFO] [stdout] 19 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 40 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 41 + Ok(()) [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 E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/api/spot/create_order.rs - api::spot::create_order::CreateOrder (line 17) [INFO] [stdout] src/api/spot/get_ticker.rs - api::spot::get_ticker::GetTicker (line 13) [INFO] [stdout] src/api/spot/mod.rs - api::spot (line 53) [INFO] [stdout] src/api/spot/mod.rs - api::spot::create_order (line 328) [INFO] [stdout] src/api/spot/mod.rs - api::spot::get_account (line 272) [INFO] [stdout] src/api/spot/mod.rs - api::spot::get_ticker (line 215) [INFO] [stdout] src/lib.rs - (line 7) [INFO] [stdout] src/ureq/client.rs - ureq::client::GateHttpClient (line 25) [INFO] [stdout] src/ureq/client.rs - ureq::client::GateHttpClient (line 36) [INFO] [stdout] src/ureq/mod.rs - ureq (line 53) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 3 passed; 10 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.82s [INFO] [stdout] [INFO] [stdout] all doctests ran in 1.02s; merged doctests compilation took 0.20s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "e10aac2f1f0ded1127b554a62ebc68aeea090732bf9d704ee51503b3ae7d8ac6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e10aac2f1f0ded1127b554a62ebc68aeea090732bf9d704ee51503b3ae7d8ac6", kill_on_drop: false }` [INFO] [stdout] e10aac2f1f0ded1127b554a62ebc68aeea090732bf9d704ee51503b3ae7d8ac6