[INFO] fetching crate kalshi 0.9.0...
[INFO] testing kalshi-0.9.0 against 1.76.0 for beta-1.77-1
[INFO] extracting crate kalshi 0.9.0 into /workspace/builds/worker-1-tc1/source
[INFO] validating manifest of crates.io crate kalshi 0.9.0 on toolchain 1.76.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.76.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate kalshi 0.9.0
[INFO] finished tweaking crates.io crate kalshi 0.9.0
[INFO] tweaked toml for crates.io crate kalshi 0.9.0 written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.76.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.76.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.76.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] a560d9a2a79033406abbaa72ccee114ef1eafc53bb803b5dc999ae380fe2fcd7
[INFO] running `Command { std: "docker" "start" "-a" "a560d9a2a79033406abbaa72ccee114ef1eafc53bb803b5dc999ae380fe2fcd7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "a560d9a2a79033406abbaa72ccee114ef1eafc53bb803b5dc999ae380fe2fcd7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a560d9a2a79033406abbaa72ccee114ef1eafc53bb803b5dc999ae380fe2fcd7", kill_on_drop: false }`
[INFO] [stdout] a560d9a2a79033406abbaa72ccee114ef1eafc53bb803b5dc999ae380fe2fcd7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.76.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2d71fb425f1cf03c7db533e755cde41d4a998d0dd870f33a56b846154c8d9237
[INFO] running `Command { std: "docker" "start" "-a" "2d71fb425f1cf03c7db533e755cde41d4a998d0dd870f33a56b846154c8d9237", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling parking_lot_core v0.9.9
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling bytes v1.5.0
[INFO] [stderr]    Compiling smallvec v1.13.1
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling openssl v0.10.63
[INFO] [stderr]    Compiling http v0.2.11
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling bitflags v2.4.2
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling openssl-sys v0.9.99
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling openssl-probe v0.1.5
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]    Compiling serde_json v1.0.113
[INFO] [stderr]    Compiling httpdate v1.0.3
[INFO] [stderr]    Compiling tower-service v0.3.2
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling encoding_rs v0.8.33
[INFO] [stderr]    Compiling sync_wrapper v0.1.2
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling signal-hook-registry v1.4.1
[INFO] [stderr]    Compiling mio v0.8.10
[INFO] [stderr]    Compiling socket2 v0.5.5
[INFO] [stderr]    Compiling num_cpus v1.16.0
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling tokio v1.36.0
[INFO] [stderr]    Compiling getrandom v0.2.12
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling url v2.5.0
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling uuid v1.7.0
[INFO] [stderr]    Compiling tokio-util v0.7.10
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.3.24
[INFO] [stderr]    Compiling hyper v0.14.28
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.24
[INFO] [stderr]    Compiling kalshi v0.9.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `auth::*`
[INFO] [stdout]    --> src/lib.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 | pub use auth::*;
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 41.60s
[INFO] running `Command { std: "docker" "inspect" "2d71fb425f1cf03c7db533e755cde41d4a998d0dd870f33a56b846154c8d9237", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2d71fb425f1cf03c7db533e755cde41d4a998d0dd870f33a56b846154c8d9237", kill_on_drop: false }`
[INFO] [stdout] 2d71fb425f1cf03c7db533e755cde41d4a998d0dd870f33a56b846154c8d9237
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.76.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 62aee00ffbd89feef49b01aa127138d925fbea1d28e5e806e977139f53bd6fee
[INFO] running `Command { std: "docker" "start" "-a" "62aee00ffbd89feef49b01aa127138d925fbea1d28e5e806e977139f53bd6fee", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `auth::*`
[INFO] [stdout]    --> src/lib.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 | pub use auth::*;
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling kalshi v0.9.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `auth::*`
[INFO] [stdout]    --> src/lib.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 | pub use auth::*;
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 2.31s
[INFO] running `Command { std: "docker" "inspect" "62aee00ffbd89feef49b01aa127138d925fbea1d28e5e806e977139f53bd6fee", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "62aee00ffbd89feef49b01aa127138d925fbea1d28e5e806e977139f53bd6fee", kill_on_drop: false }`
[INFO] [stdout] 62aee00ffbd89feef49b01aa127138d925fbea1d28e5e806e977139f53bd6fee
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.76.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 767b163b192c6bae0d519e9672e1b6789bb8a0ac99437ce88d847111468f0e3f
[INFO] running `Command { std: "docker" "start" "-a" "767b163b192c6bae0d519e9672e1b6789bb8a0ac99437ce88d847111468f0e3f", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `auth::*`
[INFO] [stderr]    --> src/lib.rs:126:9
[INFO] [stderr]     |
[INFO] [stderr] 126 | pub use auth::*;
[INFO] [stderr]     |         ^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `kalshi` (lib) generated 1 warning (run `cargo fix --lib -p kalshi` to apply 1 suggestion)
[INFO] [stderr] warning: `kalshi` (lib test) generated 1 warning (1 duplicate)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.10s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/kalshi-14d17a9fe936ba2c)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test tests::it_works ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running tests/public_data_tests.rs (/opt/rustwide/target/debug/deps/public_data_tests-2394128ffb51eeca)
[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 kalshi
[INFO] [stdout] 
[INFO] [stdout] running 31 tests
[INFO] [stdout] test src/lib.rs - (line 100) ... FAILED
[INFO] [stdout] test src/exchange.rs - exchange::Kalshi<'a>::get_exchange_schedule (line 41) ... FAILED
[INFO] [stdout] test src/auth.rs - auth::Kalshi<'a>::logout (line 56) ... FAILED
[INFO] [stdout] test src/auth.rs - auth::Kalshi<'a>::login (line 20) ... FAILED
[INFO] [stdout] test src/exchange.rs - exchange::Kalshi<'a>::get_exchange_status (line 15) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 43) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 59) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 90) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_market_history (line 303) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_market_orderbook (line 250) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_multiple_events (line 171) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_series (line 223) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_multiple_markets (line 98) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_single_event (line 16) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_single_market (line 59) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_trades (line 365) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::cancel_order (line 190) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::create_order (line 537) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::decrease_order (line 241) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_balance (line 21) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_fills (line 323) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_orders (line 72) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_portfolio_settlements (line 393) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_single_order (line 141) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_user_positions (line 457) ... FAILED
[INFO] [stdout] test src/lib.rs - Kalshi<'a>::new (line 172) ... ok
[INFO] [stdout] test src/lib.rs - Kalshi<'a>::new (line 178) ... ok
[INFO] [stdout] test src/lib.rs - (line 21) ... ok
[INFO] [stdout] test src/lib.rs - Kalshi (line 141) ... ok
[INFO] [stdout] test src/lib.rs - Kalshi<'a>::get_user_token (line 201) ... ok
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] [stdout] test src/lib.rs - (line 109) ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 100) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:106:70
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_100_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 9 | kalshi_instance.get_multiple_events(Some(5), None, None, None, None).await.unwrap();
[INFO] [stdout]   |                                                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/exchange.rs - exchange::Kalshi<'a>::get_exchange_schedule (line 41) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/exchange.rs:43:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | kalshi_instance.get_exchange_schedule().await.unwrap();
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/exchange.rs:43:41
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_exchange_rs_41_0() {
[INFO] [stdout]   |                                         ---------------------------------- this is not `async`
[INFO] [stdout] 5 | kalshi_instance.get_exchange_schedule().await.unwrap();
[INFO] [stdout]   |                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/auth.rs - auth::Kalshi<'a>::logout (line 56) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/auth.rs:58:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | kalshi_instance.logout().await?;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/auth.rs:58:26
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_56_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 5 | kalshi_instance.logout().await?;
[INFO] [stdout]   |                          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/auth.rs - auth::Kalshi<'a>::login (line 20) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/auth.rs:22:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | kalshi_instance.login("johndoe@example.com", "example_password").await?;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/auth.rs:22:66
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_20_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 5 | kalshi_instance.login("johndoe@example.com", "example_password").await?;
[INFO] [stdout]   |                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/exchange.rs - exchange::Kalshi<'a>::get_exchange_status (line 15) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/exchange.rs:17:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | kalshi_instance.get_exchange_status().await.unwrap();
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/exchange.rs:17:39
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_exchange_rs_15_0() {
[INFO] [stdout]   |                                         ---------------------------------- this is not `async`
[INFO] [stdout] 5 | kalshi_instance.get_exchange_status().await.unwrap();
[INFO] [stdout]   |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 43) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:53:43
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_43_0() {
[INFO] [stdout]    |                                         ----------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 13 | kalshi_instance.login(username, password).await?;
[INFO] [stdout]    |                                           ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 59) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/lib.rs:63:20
[INFO] [stdout]   |
[INFO] [stdout] 7 | let bought_order = kalshi_instance
[INFO] [stdout]   |                    ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:75:14
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_59_0() {
[INFO] [stdout]    |                                         ----------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 19 |     Some(5)).await.unwrap();
[INFO] [stdout]    |              ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 90) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:96:39
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_90_0() {
[INFO] [stdout]   |                                         ----------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 9 | kalshi_instance.get_exchange_status().await.unwrap();
[INFO] [stdout]   |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_market_history (line 303) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:306:22
[INFO] [stdout]   |
[INFO] [stdout] 6 | let market_history = kalshi_instance.get_market_history(
[INFO] [stdout]   |                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/market.rs:312:3
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_303_0() {
[INFO] [stdout]    |                                         --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 | ).await.unwrap();
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_market_orderbook (line 250) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:254:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | let orderbook = kalshi_instance.get_market_orderbook(market_ticker, Some(10)).await.unwrap();
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/market.rs:254:79
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_250_0() {
[INFO] [stdout]   |                                         --------------------------------- this is not `async`
[INFO] [stdout] 6 | let market_ticker = "some_market_ticker";
[INFO] [stdout] 7 | let orderbook = kalshi_instance.get_market_orderbook(market_ticker, Some(10)).await.unwrap();
[INFO] [stdout]   |                                                                               ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_multiple_events (line 171) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:174:21
[INFO] [stdout]   |
[INFO] [stdout] 6 | let events_result = kalshi_instance.get_multiple_events(
[INFO] [stdout]   |                     ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/market.rs:180:3
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_171_0() {
[INFO] [stdout]    |                                         --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 | ).await.unwrap();
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_series (line 223) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:227:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | let series = kalshi_instance.get_series(series_ticker).await.unwrap();
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/market.rs:227:56
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_223_0() {
[INFO] [stdout]   |                                         --------------------------------- this is not `async`
[INFO] [stdout] 6 | let series_ticker = "some_series_ticker";
[INFO] [stdout] 7 | let series = kalshi_instance.get_series(series_ticker).await.unwrap();
[INFO] [stdout]   |                                                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_multiple_markets (line 98) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:101:22
[INFO] [stdout]   |
[INFO] [stdout] 6 | let markets_result = kalshi_instance.get_multiple_markets(
[INFO] [stdout]   |                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/market.rs:110:3
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_98_0() {
[INFO] [stdout]    |                                         -------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 15 | ).await.unwrap();
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_single_event (line 16) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:20:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | let event = kalshi_instance.get_single_event(event_ticker, None).await.unwrap();
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/market.rs:20:66
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_16_0() {
[INFO] [stdout]   |                                         -------------------------------- this is not `async`
[INFO] [stdout] 6 | let event_ticker = "some_event_ticker";
[INFO] [stdout] 7 | let event = kalshi_instance.get_single_event(event_ticker, None).await.unwrap();
[INFO] [stdout]   |                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_single_market (line 59) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:63:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | let market = kalshi_instance.get_single_event(market_ticker).await.unwrap();
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/market.rs:63:62
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_59_0() {
[INFO] [stdout]   |                                         -------------------------------- this is not `async`
[INFO] [stdout] 6 | let market_ticker = "some_event_ticker";
[INFO] [stdout] 7 | let market = kalshi_instance.get_single_event(market_ticker).await.unwrap();
[INFO] [stdout]   |                                                              ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_trades (line 365) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:368:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let trades = kalshi_instance.get_trades(
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/market.rs:374:3
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_365_0() {
[INFO] [stdout]    |                                         --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 | ).await.unwrap();
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::cancel_order (line 190) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:194:27
[INFO] [stdout]   |
[INFO] [stdout] 7 | let (order, reduced_by) = kalshi_instance.cancel_order(order_id).await.unwrap();
[INFO] [stdout]   |                           ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:194:66
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_190_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] 6 | let order_id = "some_order_id";
[INFO] [stdout] 7 | let (order, reduced_by) = kalshi_instance.cancel_order(order_id).await.unwrap();
[INFO] [stdout]   |                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::create_order (line 537) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Action`
[INFO] [stdout]  --> src/portfolio.rs:540:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let action = Action::Buy;
[INFO] [stdout]   |              ^^^^^^ use of undeclared type `Action`
[INFO] [stdout]   |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]   |
[INFO] [stdout] 6 | let action = Option::Buy;
[INFO] [stdout]   |              ~~~~~~
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 3 + use kalshi::Action;
[INFO] [stdout]   |
[INFO] [stdout] 3 + use reqwest::redirect::Action;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Side`
[INFO] [stdout]  --> src/portfolio.rs:541:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | let side = Side::Yes;
[INFO] [stdout]   |            ^^^^ use of undeclared type `Side`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 3 + use kalshi::Side;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:542:13
[INFO] [stdout]   |
[INFO] [stdout] 8 | let order = kalshi_instance.create_order(
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderType`
[INFO] [stdout]   --> src/portfolio.rs:548:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     OrderType::Limit,
[INFO] [stdout]    |     ^^^^^^^^^ use of undeclared type `OrderType`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 3  + use kalshi::OrderType;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/portfolio.rs:554:3
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_537_0() {
[INFO] [stdout]    |                                         ------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 20 | ).await.unwrap();
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::decrease_order (line 241) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:245:23
[INFO] [stdout]   |
[INFO] [stdout] 7 | let decrease_result = kalshi_instance.decrease_order(order_id, Some(5), None).await.unwrap();
[INFO] [stdout]   |                       ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:245:79
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_241_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] 6 | let order_id = "some_order_id";
[INFO] [stdout] 7 | let decrease_result = kalshi_instance.decrease_order(order_id, Some(5), None).await.unwrap();
[INFO] [stdout]   |                                                                               ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_balance (line 21) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:24:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | let balance = kalshi_instance.get_balance().await.unwrap();
[INFO] [stdout]   |               ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:24:45
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_21_0() {
[INFO] [stdout]   |                                         ----------------------------------- this is not `async`
[INFO] [stdout] 6 | let balance = kalshi_instance.get_balance().await.unwrap();
[INFO] [stdout]   |                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_fills (line 323) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:326:13
[INFO] [stdout]   |
[INFO] [stdout] 6 | let fills = kalshi_instance.get_multiple_fills(
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:328:3
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_323_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | ).await.unwrap();
[INFO] [stdout]   |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_orders (line 72) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:75:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let orders = kalshi_instance.get_multiple_orders(
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:77:3
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_72_0() {
[INFO] [stdout]   |                                         ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | ).await.unwrap();
[INFO] [stdout]   |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_portfolio_settlements (line 393) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:396:19
[INFO] [stdout]   |
[INFO] [stdout] 6 | let settlements = kalshi_instance.get_portfolio_settlements(None, None).await.unwrap();
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:396:73
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_393_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] 6 | let settlements = kalshi_instance.get_portfolio_settlements(None, None).await.unwrap();
[INFO] [stdout]   |                                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_single_order (line 141) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:145:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | let order = kalshi_instance.get_single_order(&order_id).await.unwrap();
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:145:57
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_141_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] 6 | let order_id = "some_order_id";
[INFO] [stdout] 7 | let order = kalshi_instance.get_single_order(&order_id).await.unwrap();
[INFO] [stdout]   |                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_user_positions (line 457) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:460:22
[INFO] [stdout]   |
[INFO] [stdout] 6 | let user_positions = kalshi_instance.get_user_positions(None, None, None, None, None).await.unwrap();
[INFO] [stdout]   |                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:460:87
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_457_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] 6 | let user_positions = kalshi_instance.get_user_positions(None, None, None, None, None).await.unwrap();
[INFO] [stdout]   |                                                                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/auth.rs - auth::Kalshi<'a>::login (line 20)
[INFO] [stdout]     src/auth.rs - auth::Kalshi<'a>::logout (line 56)
[INFO] [stdout]     src/exchange.rs - exchange::Kalshi<'a>::get_exchange_schedule (line 41)
[INFO] [stdout]     src/exchange.rs - exchange::Kalshi<'a>::get_exchange_status (line 15)
[INFO] [stdout]     src/lib.rs - (line 100)
[INFO] [stdout]     src/lib.rs - (line 43)
[INFO] [stdout]     src/lib.rs - (line 59)
[INFO] [stdout]     src/lib.rs - (line 90)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_market_history (line 303)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_market_orderbook (line 250)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_multiple_events (line 171)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_multiple_markets (line 98)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_series (line 223)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_single_event (line 16)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_single_market (line 59)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_trades (line 365)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::cancel_order (line 190)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::create_order (line 537)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::decrease_order (line 241)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_balance (line 21)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_fills (line 323)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_orders (line 72)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_portfolio_settlements (line 393)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_single_order (line 141)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_user_positions (line 457)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 6 passed; 25 failed; 0 ignored; 0 measured; 0 filtered out; finished in 8.23s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "767b163b192c6bae0d519e9672e1b6789bb8a0ac99437ce88d847111468f0e3f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "767b163b192c6bae0d519e9672e1b6789bb8a0ac99437ce88d847111468f0e3f", kill_on_drop: false }`
[INFO] [stdout] 767b163b192c6bae0d519e9672e1b6789bb8a0ac99437ce88d847111468f0e3f
[INFO] testing kalshi-0.9.0 against beta-2024-02-10 for beta-1.77-1
[INFO] extracting crate kalshi 0.9.0 into /workspace/builds/worker-1-tc2/source
[INFO] validating manifest of crates.io crate kalshi 0.9.0 on toolchain beta-2024-02-10
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-02-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate kalshi 0.9.0
[INFO] finished tweaking crates.io crate kalshi 0.9.0
[INFO] tweaked toml for crates.io crate kalshi 0.9.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-02-10" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-02-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-02-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 81b8a26b6ea1b18d3a6a604256ef100532f9f1a79af1e1d8e22ae3d9f4ecadad
[INFO] running `Command { std: "docker" "start" "-a" "81b8a26b6ea1b18d3a6a604256ef100532f9f1a79af1e1d8e22ae3d9f4ecadad", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "81b8a26b6ea1b18d3a6a604256ef100532f9f1a79af1e1d8e22ae3d9f4ecadad", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "81b8a26b6ea1b18d3a6a604256ef100532f9f1a79af1e1d8e22ae3d9f4ecadad", kill_on_drop: false }`
[INFO] [stdout] 81b8a26b6ea1b18d3a6a604256ef100532f9f1a79af1e1d8e22ae3d9f4ecadad
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-02-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6b56ca99dc77de73689039b04e5851d7cd2b45980b78e883c7ce66d535f754b9
[INFO] running `Command { std: "docker" "start" "-a" "6b56ca99dc77de73689039b04e5851d7cd2b45980b78e883c7ce66d535f754b9", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling lock_api v0.4.11
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling parking_lot_core v0.9.9
[INFO] [stderr]    Compiling bytes v1.5.0
[INFO] [stderr]    Compiling smallvec v1.13.1
[INFO] [stderr]    Compiling tokio-macros v2.2.0
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling openssl v0.10.63
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling bitflags v2.4.2
[INFO] [stderr]    Compiling http v0.2.11
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling openssl-sys v0.9.99
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling openssl-probe v0.1.5
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling serde_json v1.0.113
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]    Compiling ppv-lite86 v0.2.17
[INFO] [stderr]    Compiling httpdate v1.0.3
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling tower-service v0.3.2
[INFO] [stderr]    Compiling base64 v0.21.7
[INFO] [stderr]    Compiling socket2 v0.5.5
[INFO] [stderr]    Compiling num_cpus v1.16.0
[INFO] [stderr]    Compiling parking_lot v0.12.1
[INFO] [stderr]    Compiling mio v0.8.10
[INFO] [stderr]    Compiling signal-hook-registry v1.4.1
[INFO] [stderr]    Compiling getrandom v0.2.12
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling rustls-pemfile v1.0.4
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling tokio v1.36.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling encoding_rs v0.8.33
[INFO] [stderr]    Compiling url v2.5.0
[INFO] [stderr]    Compiling sync_wrapper v0.1.2
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling uuid v1.7.0
[INFO] [stderr]    Compiling tokio-util v0.7.10
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.3.24
[INFO] [stderr]    Compiling hyper v0.14.28
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.24
[INFO] [stderr]    Compiling kalshi v0.9.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `auth::*`
[INFO] [stdout]    --> src/lib.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 | pub use auth::*;
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 42.60s
[INFO] running `Command { std: "docker" "inspect" "6b56ca99dc77de73689039b04e5851d7cd2b45980b78e883c7ce66d535f754b9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6b56ca99dc77de73689039b04e5851d7cd2b45980b78e883c7ce66d535f754b9", kill_on_drop: false }`
[INFO] [stdout] 6b56ca99dc77de73689039b04e5851d7cd2b45980b78e883c7ce66d535f754b9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-02-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2abdeec2b2b35d7d7fa1a5211d613b62e2f415fbebfa3d4843c1d6f0f2795500
[INFO] running `Command { std: "docker" "start" "-a" "2abdeec2b2b35d7d7fa1a5211d613b62e2f415fbebfa3d4843c1d6f0f2795500", kill_on_drop: false }`
[INFO] [stderr]    Compiling kalshi v0.9.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `auth::*`
[INFO] [stdout]    --> src/lib.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 | pub use auth::*;
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `auth::*`
[INFO] [stdout]    --> src/lib.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 | pub use auth::*;
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 2.28s
[INFO] running `Command { std: "docker" "inspect" "2abdeec2b2b35d7d7fa1a5211d613b62e2f415fbebfa3d4843c1d6f0f2795500", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2abdeec2b2b35d7d7fa1a5211d613b62e2f415fbebfa3d4843c1d6f0f2795500", kill_on_drop: false }`
[INFO] [stdout] 2abdeec2b2b35d7d7fa1a5211d613b62e2f415fbebfa3d4843c1d6f0f2795500
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-02-10" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 4f5788a77d667fd9129eae966db65318144d4835d31f12f6ae0a950602900454
[INFO] running `Command { std: "docker" "start" "-a" "4f5788a77d667fd9129eae966db65318144d4835d31f12f6ae0a950602900454", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `auth::*`
[INFO] [stdout] 
[INFO] [stderr]    --> src/lib.rs:126:9
[INFO] [stdout] running 1 test
[INFO] [stderr]     |
[INFO] [stdout] test tests::it_works ... ok
[INFO] [stderr] 126 | pub use auth::*;
[INFO] [stdout] 
[INFO] [stderr]     |         ^^^^^^^
[INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stderr]     |
[INFO] [stdout] 
[INFO] [stderr]     = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stderr] 
[INFO] [stdout] running 0 tests
[INFO] [stderr] warning: `kalshi` (lib) generated 1 warning (run `cargo fix --lib -p kalshi` to apply 1 suggestion)
[INFO] [stdout] 
[INFO] [stderr] warning: `kalshi` (lib test) generated 1 warning (1 duplicate)
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.13s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/kalshi-f6d957702eae9144)
[INFO] [stderr]      Running tests/public_data_tests.rs (/opt/rustwide/target/debug/deps/public_data_tests-894414cce19eaffb)
[INFO] [stderr]    Doc-tests kalshi
[INFO] [stdout] 
[INFO] [stdout] running 31 tests
[INFO] [stdout] test src/auth.rs - auth::Kalshi<'a>::login (line 20) ... FAILED
[INFO] [stdout] test src/auth.rs - auth::Kalshi<'a>::logout (line 56) ... FAILED
[INFO] [stdout] test src/exchange.rs - exchange::Kalshi<'a>::get_exchange_status (line 15) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 43) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 100) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 90) ... FAILED
[INFO] [stdout] test src/exchange.rs - exchange::Kalshi<'a>::get_exchange_schedule (line 41) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 59) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_market_history (line 303) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_multiple_events (line 171) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_market_orderbook (line 250) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_multiple_markets (line 98) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_series (line 223) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_single_event (line 16) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_single_market (line 59) ... FAILED
[INFO] [stdout] test src/market.rs - market::Kalshi<'a>::get_trades (line 365) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::cancel_order (line 190) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::decrease_order (line 241) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::create_order (line 537) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_balance (line 21) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_fills (line 323) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_orders (line 72) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_portfolio_settlements (line 393) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_single_order (line 141) ... FAILED
[INFO] [stdout] test src/portfolio.rs - portfolio::Kalshi<'a>::get_user_positions (line 457) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 21) ... ok
[INFO] [stdout] test src/lib.rs - Kalshi<'a>::get_user_token (line 201) ... ok
[INFO] [stdout] test src/lib.rs - Kalshi (line 141) ... ok
[INFO] [stdout] test src/lib.rs - Kalshi<'a>::new (line 178) ... ok
[INFO] [stdout] test src/lib.rs - (line 109) ... ok
[INFO] [stdout] test src/lib.rs - Kalshi<'a>::new (line 172) ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/auth.rs - auth::Kalshi<'a>::login (line 20) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/auth.rs:22:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | kalshi_instance.login("johndoe@example.com", "example_password").await?;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/auth.rs:22:66
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_20_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 5 | kalshi_instance.login("johndoe@example.com", "example_password").await?;
[INFO] [stdout]   |                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/auth.rs - auth::Kalshi<'a>::logout (line 56) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/auth.rs:58:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | kalshi_instance.logout().await?;
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/auth.rs:58:26
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_auth_rs_56_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] 5 | kalshi_instance.logout().await?;
[INFO] [stdout]   |                          ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/exchange.rs - exchange::Kalshi<'a>::get_exchange_status (line 15) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/exchange.rs:17:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | kalshi_instance.get_exchange_status().await.unwrap();
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/exchange.rs:17:39
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_exchange_rs_15_0() {
[INFO] [stdout]   |                                         ---------------------------------- this is not `async`
[INFO] [stdout] 5 | kalshi_instance.get_exchange_status().await.unwrap();
[INFO] [stdout]   |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 43) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:53:43
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_43_0() {
[INFO] [stdout]    |                                         ----------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 13 | kalshi_instance.login(username, password).await?;
[INFO] [stdout]    |                                           ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 100) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:106:70
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_100_0() {
[INFO] [stdout]   |                                         ------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 9 | kalshi_instance.get_multiple_events(Some(5), None, None, None, None).await.unwrap();
[INFO] [stdout]   |                                                                      ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 90) stdout ----
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/lib.rs:96:39
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_90_0() {
[INFO] [stdout]   |                                         ----------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 9 | kalshi_instance.get_exchange_status().await.unwrap();
[INFO] [stdout]   |                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0728`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/exchange.rs - exchange::Kalshi<'a>::get_exchange_schedule (line 41) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/exchange.rs:43:1
[INFO] [stdout]   |
[INFO] [stdout] 5 | kalshi_instance.get_exchange_schedule().await.unwrap();
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/exchange.rs:43:41
[INFO] [stdout]   |
[INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_exchange_rs_41_0() {
[INFO] [stdout]   |                                         ---------------------------------- this is not `async`
[INFO] [stdout] 5 | kalshi_instance.get_exchange_schedule().await.unwrap();
[INFO] [stdout]   |                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 59) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/lib.rs:63:20
[INFO] [stdout]   |
[INFO] [stdout] 7 | let bought_order = kalshi_instance
[INFO] [stdout]   |                    ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/lib.rs:75:14
[INFO] [stdout]    |
[INFO] [stdout] 4  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_59_0() {
[INFO] [stdout]    |                                         ----------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 19 |     Some(5)).await.unwrap();
[INFO] [stdout]    |              ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_market_history (line 303) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:306:22
[INFO] [stdout]   |
[INFO] [stdout] 6 | let market_history = kalshi_instance.get_market_history(
[INFO] [stdout]   |                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/market.rs:312:3
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_303_0() {
[INFO] [stdout]    |                                         --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 | ).await.unwrap();
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_multiple_events (line 171) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:174:21
[INFO] [stdout]   |
[INFO] [stdout] 6 | let events_result = kalshi_instance.get_multiple_events(
[INFO] [stdout]   |                     ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/market.rs:180:3
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_171_0() {
[INFO] [stdout]    |                                         --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 | ).await.unwrap();
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_market_orderbook (line 250) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:254:17
[INFO] [stdout]   |
[INFO] [stdout] 7 | let orderbook = kalshi_instance.get_market_orderbook(market_ticker, Some(10)).await.unwrap();
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/market.rs:254:79
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_250_0() {
[INFO] [stdout]   |                                         --------------------------------- this is not `async`
[INFO] [stdout] 6 | let market_ticker = "some_market_ticker";
[INFO] [stdout] 7 | let orderbook = kalshi_instance.get_market_orderbook(market_ticker, Some(10)).await.unwrap();
[INFO] [stdout]   |                                                                               ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_multiple_markets (line 98) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:101:22
[INFO] [stdout]   |
[INFO] [stdout] 6 | let markets_result = kalshi_instance.get_multiple_markets(
[INFO] [stdout]   |                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/market.rs:110:3
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_98_0() {
[INFO] [stdout]    |                                         -------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 15 | ).await.unwrap();
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_series (line 223) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:227:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | let series = kalshi_instance.get_series(series_ticker).await.unwrap();
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/market.rs:227:56
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_223_0() {
[INFO] [stdout]   |                                         --------------------------------- this is not `async`
[INFO] [stdout] 6 | let series_ticker = "some_series_ticker";
[INFO] [stdout] 7 | let series = kalshi_instance.get_series(series_ticker).await.unwrap();
[INFO] [stdout]   |                                                        ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_single_event (line 16) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:20:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | let event = kalshi_instance.get_single_event(event_ticker, None).await.unwrap();
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/market.rs:20:66
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_16_0() {
[INFO] [stdout]   |                                         -------------------------------- this is not `async`
[INFO] [stdout] 6 | let event_ticker = "some_event_ticker";
[INFO] [stdout] 7 | let event = kalshi_instance.get_single_event(event_ticker, None).await.unwrap();
[INFO] [stdout]   |                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_single_market (line 59) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:63:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | let market = kalshi_instance.get_single_event(market_ticker).await.unwrap();
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/market.rs:63:62
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_59_0() {
[INFO] [stdout]   |                                         -------------------------------- this is not `async`
[INFO] [stdout] 6 | let market_ticker = "some_event_ticker";
[INFO] [stdout] 7 | let market = kalshi_instance.get_single_event(market_ticker).await.unwrap();
[INFO] [stdout]   |                                                              ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/market.rs - market::Kalshi<'a>::get_trades (line 365) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/market.rs:368:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let trades = kalshi_instance.get_trades(
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/market.rs:374:3
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_market_rs_365_0() {
[INFO] [stdout]    |                                         --------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 12 | ).await.unwrap();
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::cancel_order (line 190) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:194:27
[INFO] [stdout]   |
[INFO] [stdout] 7 | let (order, reduced_by) = kalshi_instance.cancel_order(order_id).await.unwrap();
[INFO] [stdout]   |                           ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:194:66
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_190_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] 6 | let order_id = "some_order_id";
[INFO] [stdout] 7 | let (order, reduced_by) = kalshi_instance.cancel_order(order_id).await.unwrap();
[INFO] [stdout]   |                                                                  ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::decrease_order (line 241) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:245:23
[INFO] [stdout]   |
[INFO] [stdout] 7 | let decrease_result = kalshi_instance.decrease_order(order_id, Some(5), None).await.unwrap();
[INFO] [stdout]   |                       ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:245:79
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_241_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] 6 | let order_id = "some_order_id";
[INFO] [stdout] 7 | let decrease_result = kalshi_instance.decrease_order(order_id, Some(5), None).await.unwrap();
[INFO] [stdout]   |                                                                               ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::create_order (line 537) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Action`
[INFO] [stdout]  --> src/portfolio.rs:540:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let action = Action::Buy;
[INFO] [stdout]   |              ^^^^^^ use of undeclared type `Action`
[INFO] [stdout]   |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]   |
[INFO] [stdout] 6 | let action = Option::Buy;
[INFO] [stdout]   |              ~~~~~~
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 3 + use kalshi::Action;
[INFO] [stdout]   |
[INFO] [stdout] 3 + use reqwest::redirect::Action;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Side`
[INFO] [stdout]  --> src/portfolio.rs:541:12
[INFO] [stdout]   |
[INFO] [stdout] 7 | let side = Side::Yes;
[INFO] [stdout]   |            ^^^^ use of undeclared type `Side`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]   |
[INFO] [stdout] 3 + use kalshi::Side;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:542:13
[INFO] [stdout]   |
[INFO] [stdout] 8 | let order = kalshi_instance.create_order(
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `OrderType`
[INFO] [stdout]   --> src/portfolio.rs:548:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     OrderType::Limit,
[INFO] [stdout]    |     ^^^^^^^^^ use of undeclared type `OrderType`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 3  + use kalshi::OrderType;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]   --> src/portfolio.rs:554:3
[INFO] [stdout]    |
[INFO] [stdout] 5  | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_537_0() {
[INFO] [stdout]    |                                         ------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 20 | ).await.unwrap();
[INFO] [stdout]    |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_balance (line 21) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:24:15
[INFO] [stdout]   |
[INFO] [stdout] 6 | let balance = kalshi_instance.get_balance().await.unwrap();
[INFO] [stdout]   |               ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:24:45
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_21_0() {
[INFO] [stdout]   |                                         ----------------------------------- this is not `async`
[INFO] [stdout] 6 | let balance = kalshi_instance.get_balance().await.unwrap();
[INFO] [stdout]   |                                             ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_fills (line 323) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:326:13
[INFO] [stdout]   |
[INFO] [stdout] 6 | let fills = kalshi_instance.get_multiple_fills(
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:328:3
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_323_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | ).await.unwrap();
[INFO] [stdout]   |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_orders (line 72) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:75:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | let orders = kalshi_instance.get_multiple_orders(
[INFO] [stdout]   |              ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:77:3
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_72_0() {
[INFO] [stdout]   |                                         ----------------------------------- this is not `async`
[INFO] [stdout] ...
[INFO] [stdout] 8 | ).await.unwrap();
[INFO] [stdout]   |   ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_portfolio_settlements (line 393) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:396:19
[INFO] [stdout]   |
[INFO] [stdout] 6 | let settlements = kalshi_instance.get_portfolio_settlements(None, None).await.unwrap();
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:396:73
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_393_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] 6 | let settlements = kalshi_instance.get_portfolio_settlements(None, None).await.unwrap();
[INFO] [stdout]   |                                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_single_order (line 141) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:145:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | let order = kalshi_instance.get_single_order(&order_id).await.unwrap();
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:145:57
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_141_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] 6 | let order_id = "some_order_id";
[INFO] [stdout] 7 | let order = kalshi_instance.get_single_order(&order_id).await.unwrap();
[INFO] [stdout]   |                                                         ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/portfolio.rs - portfolio::Kalshi<'a>::get_user_positions (line 457) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `kalshi_instance` in this scope
[INFO] [stdout]  --> src/portfolio.rs:460:22
[INFO] [stdout]   |
[INFO] [stdout] 6 | let user_positions = kalshi_instance.get_user_positions(None, None, None, None, None).await.unwrap();
[INFO] [stdout]   |                      ^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks
[INFO] [stdout]  --> src/portfolio.rs:460:87
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_portfolio_rs_457_0() {
[INFO] [stdout]   |                                         ------------------------------------ this is not `async`
[INFO] [stdout] 6 | let user_positions = kalshi_instance.get_user_positions(None, None, None, None, None).await.unwrap();
[INFO] [stdout]   |                                                                                       ^^^^^ only allowed inside `async` functions and blocks
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 2 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0728.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/auth.rs - auth::Kalshi<'a>::login (line 20)
[INFO] [stdout]     src/auth.rs - auth::Kalshi<'a>::logout (line 56)
[INFO] [stdout]     src/exchange.rs - exchange::Kalshi<'a>::get_exchange_schedule (line 41)
[INFO] [stdout]     src/exchange.rs - exchange::Kalshi<'a>::get_exchange_status (line 15)
[INFO] [stdout]     src/lib.rs - (line 100)
[INFO] [stdout]     src/lib.rs - (line 43)
[INFO] [stdout]     src/lib.rs - (line 59)
[INFO] [stdout]     src/lib.rs - (line 90)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_market_history (line 303)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_market_orderbook (line 250)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_multiple_events (line 171)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_multiple_markets (line 98)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_series (line 223)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_single_event (line 16)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_single_market (line 59)
[INFO] [stdout]     src/market.rs - market::Kalshi<'a>::get_trades (line 365)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::cancel_order (line 190)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::create_order (line 537)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::decrease_order (line 241)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_balance (line 21)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_fills (line 323)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_multiple_orders (line 72)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_portfolio_settlements (line 393)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_single_order (line 141)
[INFO] [stdout]     src/portfolio.rs - portfolio::Kalshi<'a>::get_user_positions (line 457)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 6 passed; 25 failed; 0 ignored; 0 measured; 0 filtered out; finished in 10.49s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "4f5788a77d667fd9129eae966db65318144d4835d31f12f6ae0a950602900454", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4f5788a77d667fd9129eae966db65318144d4835d31f12f6ae0a950602900454", kill_on_drop: false }`
[INFO] [stdout] 4f5788a77d667fd9129eae966db65318144d4835d31f12f6ae0a950602900454
