[INFO] cloning repository https://github.com/volkovartem77/gateio-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/volkovartem77/gateio-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolkovartem77%2Fgateio-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolkovartem77%2Fgateio-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6b44f89908ae13c9be576fecb1514c0c23486c97 [INFO] testing volkovartem77/gateio-rs against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvolkovartem77%2Fgateio-rs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/volkovartem77/gateio-rs [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/volkovartem77/gateio-rs [INFO] tweaked toml for git repo https://github.com/volkovartem77/gateio-rs written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/volkovartem77/gateio-rs on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/volkovartem77/gateio-rs 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5202e9cbe4438eaa09ee1b18458828c82fb1f3eec0ea72ab465eb945db3d1245 [INFO] running `Command { std: "docker" "start" "-a" "5202e9cbe4438eaa09ee1b18458828c82fb1f3eec0ea72ab465eb945db3d1245", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5202e9cbe4438eaa09ee1b18458828c82fb1f3eec0ea72ab465eb945db3d1245", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5202e9cbe4438eaa09ee1b18458828c82fb1f3eec0ea72ab465eb945db3d1245", kill_on_drop: false }` [INFO] [stdout] 5202e9cbe4438eaa09ee1b18458828c82fb1f3eec0ea72ab465eb945db3d1245 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d4007c3ffe9e0868f17af1921641734de9e778391ee069144b732b2c6274258 [INFO] running `Command { std: "docker" "start" "-a" "1d4007c3ffe9e0868f17af1921641734de9e778391ee069144b732b2c6274258", kill_on_drop: false }` [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling base64ct v1.8.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling cc v1.2.26 [INFO] [stderr] Compiling rustls v0.23.27 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling syn v2.0.102 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling webpki-roots v1.0.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling ureq-proto v0.4.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling pkcs8 v0.10.2 [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 rustls-webpki v0.103.3 [INFO] [stderr] Compiling ed25519 v2.2.3 [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 26.01s [INFO] running `Command { std: "docker" "inspect" "1d4007c3ffe9e0868f17af1921641734de9e778391ee069144b732b2c6274258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d4007c3ffe9e0868f17af1921641734de9e778391ee069144b732b2c6274258", kill_on_drop: false }` [INFO] [stdout] 1d4007c3ffe9e0868f17af1921641734de9e778391ee069144b732b2c6274258 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd5ab39e46cb2958046b43e0a47351e38d13dd5bdc3b1035992559c648a1ea4a [INFO] running `Command { std: "docker" "start" "-a" "cd5ab39e46cb2958046b43e0a47351e38d13dd5bdc3b1035992559c648a1ea4a", 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 8.41s [INFO] running `Command { std: "docker" "inspect" "cd5ab39e46cb2958046b43e0a47351e38d13dd5bdc3b1035992559c648a1ea4a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd5ab39e46cb2958046b43e0a47351e38d13dd5bdc3b1035992559c648a1ea4a", kill_on_drop: false }` [INFO] [stdout] cd5ab39e46cb2958046b43e0a47351e38d13dd5bdc3b1035992559c648a1ea4a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 21e934f31aaebdf10c6a92d7c242f44705bf54d909e4f7bc6a89301da4572c17 [INFO] running `Command { std: "docker" "start" "-a" "21e934f31aaebdf10c6a92d7c242f44705bf54d909e4f7bc6a89301da4572c17", 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"` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [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/mod.rs - ureq (line 18) - compile ... ok [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/api/spot/mod.rs - api::spot::create_order (line 328) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 7) - compile ... FAILED [INFO] [stdout] test src/api/spot/mod.rs - api::spot::get_account (line 272) - 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/client.rs - ureq::client::GateHttpClient (line 25) - compile ... FAILED [INFO] [stdout] test src/ureq/client.rs - ureq::client::GateHttpClient (line 36) - compile ... FAILED [INFO] [stdout] test src/ureq/mod.rs - ureq (line 53) ... FAILED [INFO] [stdout] test src/api/spot/get_ticker.rs - api::spot::get_ticker::GetTicker (line 13) - compile ... FAILED [INFO] [stdout] test src/ureq/client.rs - ureq::client::GateHttpClient (line 52) ... ok [INFO] [stdout] test src/ureq/mod.rs - ureq (line 39) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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 (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::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/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] ---- 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/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/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/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/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/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] [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.91s [INFO] [stdout] [INFO] [stdout] all doctests ran in 1.07s; merged doctests compilation took 0.16s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "21e934f31aaebdf10c6a92d7c242f44705bf54d909e4f7bc6a89301da4572c17", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21e934f31aaebdf10c6a92d7c242f44705bf54d909e4f7bc6a89301da4572c17", kill_on_drop: false }` [INFO] [stdout] 21e934f31aaebdf10c6a92d7c242f44705bf54d909e4f7bc6a89301da4572c17