[INFO] fetching crate gateio-rs 0.1.0... [INFO] testing gateio-rs-0.1.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate gateio-rs 0.1.0 into /workspace/builds/worker-4-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-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate gateio-rs 0.1.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 04c51f23cc831a0b85efdb801a32f98ae4436017faa61fee249b61b6c1016bd4 [INFO] running `Command { std: "docker" "start" "-a" "04c51f23cc831a0b85efdb801a32f98ae4436017faa61fee249b61b6c1016bd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04c51f23cc831a0b85efdb801a32f98ae4436017faa61fee249b61b6c1016bd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04c51f23cc831a0b85efdb801a32f98ae4436017faa61fee249b61b6c1016bd4", kill_on_drop: false }` [INFO] [stdout] 04c51f23cc831a0b85efdb801a32f98ae4436017faa61fee249b61b6c1016bd4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5ebd9fe4467ca9447ac238929e5f38b2de86893afc8381a36c07e18634107e4b [INFO] running `Command { std: "docker" "start" "-a" "5ebd9fe4467ca9447ac238929e5f38b2de86893afc8381a36c07e18634107e4b", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.102 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling ureq-proto v0.4.2 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling rustls-webpki v0.103.3 [INFO] [stderr] Compiling rustls v0.23.27 [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 serde v1.0.219 [INFO] [stderr] Compiling ureq v3.0.12 [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 gateio-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.79s [INFO] running `Command { std: "docker" "inspect" "5ebd9fe4467ca9447ac238929e5f38b2de86893afc8381a36c07e18634107e4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ebd9fe4467ca9447ac238929e5f38b2de86893afc8381a36c07e18634107e4b", kill_on_drop: false }` [INFO] [stdout] 5ebd9fe4467ca9447ac238929e5f38b2de86893afc8381a36c07e18634107e4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ddd97b7f9aa2947499ded01e1744c2477d47c62f8fa56d1de4297c403226d0d8 [INFO] running `Command { std: "docker" "start" "-a" "ddd97b7f9aa2947499ded01e1744c2477d47c62f8fa56d1de4297c403226d0d8", 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 9.51s [INFO] running `Command { std: "docker" "inspect" "ddd97b7f9aa2947499ded01e1744c2477d47c62f8fa56d1de4297c403226d0d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ddd97b7f9aa2947499ded01e1744c2477d47c62f8fa56d1de4297c403226d0d8", kill_on_drop: false }` [INFO] [stdout] ddd97b7f9aa2947499ded01e1744c2477d47c62f8fa56d1de4297c403226d0d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 39bd0a450d490ec46e9146463537931c26de1339cee793d198995b19229b8773 [INFO] running `Command { std: "docker" "start" "-a" "39bd0a450d490ec46e9146463537931c26de1339cee793d198995b19229b8773", 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)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `gateio-rs` (example "async_example") generated 1 warning (run `cargo fix --example "async_example"` 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/ureq/client.rs - ureq::client::GateHttpClient (line 25) - compile ... FAILED [INFO] [stdout] test src/api/spot/mod.rs - api::spot::get_ticker (line 215) - compile ... FAILED [INFO] [stdout] test src/ureq/mod.rs - ureq (line 18) - compile ... ok [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 (line 53) - compile ... FAILED [INFO] [stdout] test src/api/spot/mod.rs - api::spot::get_account (line 272) - compile ... FAILED [INFO] [stdout] test src/api/spot/get_ticker.rs - api::spot::get_ticker::GetTicker (line 13) - compile ... FAILED [INFO] [stdout] test src/ureq/mod.rs - ureq (line 53) ... FAILED [INFO] [stdout] test src/api/spot/create_order.rs - api::spot::create_order::CreateOrder (line 17) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 7) - 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/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] 4 | 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] 9 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ureq_client_rs_25_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{api::spot::get_ticker, ureq::GateHttpClient}; [INFO] [stdout] ... [INFO] [stdout] 10| Ok::<(), Box>(()).expect(""); [INFO] [stdout] 11+ 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] 4 | 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] 11 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_215_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{api::spot::get_ticker, ureq::GateHttpClient}; [INFO] [stdout] ... [INFO] [stdout] 16 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 17 + 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] 4 | 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] 15 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_215_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{api::spot::get_ticker, ureq::GateHttpClient}; [INFO] [stdout] ... [INFO] [stdout] 16 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 17 + 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::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] 4 | 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] 19 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_328_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 25 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 26 + 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] 4 | 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] 24 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_328_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 25 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 26 + 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] 4 | 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] 14 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_ureq_client_rs_36_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 15 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 16 + 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 (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] 4 | 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] 14 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_53_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 21 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 22 + 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] 4 | 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] 20 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_53_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 21 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 22 + 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] 4 | 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] 16 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_272_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 21 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 22 + 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] 4 | 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] 20 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_mod_rs_272_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 21 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 22 + 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] 4 | 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] 13 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_get_ticker_rs_13_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{api::spot::get_ticker, ureq::GateHttpClient}; [INFO] [stdout] ... [INFO] [stdout] 18 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 19 + 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] 4 | 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] 17 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_get_ticker_rs_13_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{api::spot::get_ticker, ureq::GateHttpClient}; [INFO] [stdout] ... [INFO] [stdout] 18 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 19 + 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] 9 | let agent: Agent = Agent::config_builder() [INFO] [stdout] | ____________________- [INFO] [stdout] 10 | | .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] 10 | .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/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] 4 | 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] 20 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_create_order_rs_17_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 26 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 27 + 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] 4 | 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] 25 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_api_spot_create_order_rs_17_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 26 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 27 + 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/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] 4 | 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] 17 | 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] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_7_0() -> Result<(), Box> { [INFO] [stdout] 5 | use gateio_rs::{ [INFO] [stdout] ... [INFO] [stdout] 18 | Ok::<(), Box>(()).expect(""); [INFO] [stdout] 19 + 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] [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.65s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.91s; merged doctests compilation took 0.26s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "39bd0a450d490ec46e9146463537931c26de1339cee793d198995b19229b8773", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39bd0a450d490ec46e9146463537931c26de1339cee793d198995b19229b8773", kill_on_drop: false }` [INFO] [stdout] 39bd0a450d490ec46e9146463537931c26de1339cee793d198995b19229b8773