[INFO] fetching crate termii-rust 0.1.1... [INFO] testing termii-rust-0.1.1 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate termii-rust 0.1.1 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate termii-rust 0.1.1 [INFO] finished tweaking crates.io crate termii-rust 0.1.1 [INFO] tweaked toml for crates.io crate termii-rust 0.1.1 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate termii-rust 0.1.1 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 180 packages to latest compatible versions [INFO] [stderr] Adding env_logger v0.9.3 (available: v0.11.8) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.23) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.17) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72f4a57b62e5ed9104e4df814f99a765bda8a0c0a0bab86e7b832219df9fe13d [INFO] running `Command { std: "docker" "start" "-a" "72f4a57b62e5ed9104e4df814f99a765bda8a0c0a0bab86e7b832219df9fe13d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72f4a57b62e5ed9104e4df814f99a765bda8a0c0a0bab86e7b832219df9fe13d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72f4a57b62e5ed9104e4df814f99a765bda8a0c0a0bab86e7b832219df9fe13d", kill_on_drop: false }` [INFO] [stdout] 72f4a57b62e5ed9104e4df814f99a765bda8a0c0a0bab86e7b832219df9fe13d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d296e7154a5018d5e052bb8ee201d939e9284985fd649ae7812b2b75966f0420 [INFO] running `Command { std: "docker" "start" "-a" "d296e7154a5018d5e052bb8ee201d939e9284985fd649ae7812b2b75966f0420", kill_on_drop: false }` [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling termii-rust v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib/async_impl/rest/switch/switch.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(api_key: &str, client: Arc) -> Switch { [INFO] [stdout] | ^^^^ the lifetime is elided here ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(api_key: &str, client: Arc) -> Switch<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib/async_impl/rest/termii.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str) -> Termii { [INFO] [stdout] | ^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str) -> Termii<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib/async_impl/rest/token/token.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str, client: Arc) -> Token { [INFO] [stdout] | ^^^^ the lifetime is elided here ^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str, client: Arc) -> Token<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.68s [INFO] running `Command { std: "docker" "inspect" "d296e7154a5018d5e052bb8ee201d939e9284985fd649ae7812b2b75966f0420", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d296e7154a5018d5e052bb8ee201d939e9284985fd649ae7812b2b75966f0420", kill_on_drop: false }` [INFO] [stdout] d296e7154a5018d5e052bb8ee201d939e9284985fd649ae7812b2b75966f0420 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f6aba2055ae0518f67b0f0324555cbbcd4ed97f99f9e1d59efe89925d75195b [INFO] running `Command { std: "docker" "start" "-a" "1f6aba2055ae0518f67b0f0324555cbbcd4ed97f99f9e1d59efe89925d75195b", kill_on_drop: false }` [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib/async_impl/rest/switch/switch.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(api_key: &str, client: Arc) -> Switch { [INFO] [stdout] | ^^^^ the lifetime is elided here ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(api_key: &str, client: Arc) -> Switch<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib/async_impl/rest/termii.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str) -> Termii { [INFO] [stdout] | ^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str) -> Termii<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib/async_impl/rest/token/token.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str, client: Arc) -> Token { [INFO] [stdout] | ^^^^ the lifetime is elided here ^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str, client: Arc) -> Token<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling termii-rust v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib/async_impl/rest/switch/switch.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(api_key: &str, client: Arc) -> Switch { [INFO] [stdout] | ^^^^ the lifetime is elided here ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 21 | pub fn new(api_key: &str, client: Arc) -> Switch<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib/async_impl/rest/termii.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str) -> Termii { [INFO] [stdout] | ^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str) -> Termii<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/lib/async_impl/rest/token/token.rs:16:25 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str, client: Arc) -> Token { [INFO] [stdout] | ^^^^ the lifetime is elided here ^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(api_key: &str, client: Arc) -> Token<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.67s [INFO] running `Command { std: "docker" "inspect" "1f6aba2055ae0518f67b0f0324555cbbcd4ed97f99f9e1d59efe89925d75195b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f6aba2055ae0518f67b0f0324555cbbcd4ed97f99f9e1d59efe89925d75195b", kill_on_drop: false }` [INFO] [stdout] 1f6aba2055ae0518f67b0f0324555cbbcd4ed97f99f9e1d59efe89925d75195b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 188f510e7200936295bdf69de9e04c28f2efd87ab9647fde3abbcbc96a3e1225 [INFO] running `Command { std: "docker" "start" "-a" "188f510e7200936295bdf69de9e04c28f2efd87ab9647fde3abbcbc96a3e1225", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib/async_impl/rest/switch/switch.rs:21:25 [INFO] [stderr] | [INFO] [stderr] 21 | pub fn new(api_key: &str, client: Arc) -> Switch { [INFO] [stderr] | ^^^^ the lifetime is elided here ^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 21 | pub fn new(api_key: &str, client: Arc) -> Switch<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib/async_impl/rest/termii.rs:16:25 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn new(api_key: &str) -> Termii { [INFO] [stderr] | ^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 16 | pub fn new(api_key: &str) -> Termii<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/lib/async_impl/rest/token/token.rs:16:25 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn new(api_key: &str, client: Arc) -> Token { [INFO] [stderr] | ^^^^ the lifetime is elided here ^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 16 | pub fn new(api_key: &str, client: Arc) -> Token<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `termii-rust` (lib) generated 3 warnings (run `cargo fix --lib -p termii-rust` to apply 3 suggestions) [INFO] [stderr] warning: `termii-rust` (lib test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/lib/mod.rs (/opt/rustwide/target/debug/deps/termii_rust-cf70348e83104a7e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests termii_rust [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] [stdout] [INFO] [stdout] running 40 tests [INFO] [stdout] test src/lib/async_impl/rest/insights/status.rs - async_impl::rest::insights::status::Status<'a>::get (line 25) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/insights/search.rs - async_impl::rest::insights::search::Search<'a>::get (line 26) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 59) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::create (line 73) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History<'a>::get (line 44) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::get (line 49) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging<'a>::send_bulk (line 70) ... FAILED [INFO] [stdout] test src/lib/async_impl/mod.rs - async_impl (line 33) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History<'a>::get (line 58) ... FAILED [INFO] [stdout] test src/lib/async_impl/mod.rs - async_impl (line 8) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 22) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/insights/balance.rs - async_impl::rest::insights::balance::Balance<'a>::get (line 26) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::delete (line 172) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 6) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 43) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging<'a>::send (line 30) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::get (line 60) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::update (line 118) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 75) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 36) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 64) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 6) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 17) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/templates.rs - async_impl::rest::switch::templates::Templates<'a>::send (line 28) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::get (line 44) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 48) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/number.rs - async_impl::rest::switch::number::Number<'a>::send (line 28) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::request (line 68) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 30) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::get (line 55) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/token/request.rs - async_impl::rest::token::request::RequestToken<'a>::send (line 29) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 82) ... FAILED [INFO] [stdout] test src/lib/mod.rs - (line 16) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 24) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 61) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/token/verify.rs - async_impl::rest::token::verify::VerifyToken<'a>::send (line 29) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 6) ... FAILED [INFO] [stdout] test src/lib/async_impl/rest/token/in_app_token.rs - async_impl::rest::token::in_app_token::InAppToken<'a>::send (line 29) ... FAILED [INFO] [stdout] test src/lib/mod.rs - (line 41) ... FAILED [INFO] [stdout] test src/lib/mod.rs - (line 72) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib/async_impl/rest/insights/status.rs - async_impl::rest::insights::status::Status<'a>::get (line 25) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib/async_impl/rest/insights/status.rs:30:2 [INFO] [stdout] | [INFO] [stdout] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | [INFO] [stdout] 10 | let client = termii::Termii::new("Your API key"); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/insights/status.rs:34:75 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_status_rs_25_0() { [INFO] [stdout] | ------------------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let status:StatusItem = client.insights.status.get("234XXXXXXXXXX", "NG").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] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/insights/search.rs - async_impl::rest::insights::search::Search<'a>::get (line 26) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib/async_impl/rest/insights/search.rs:31:2 [INFO] [stdout] | [INFO] [stdout] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | [INFO] [stdout] 10 | let client = termii::Termii::new("Your API key"); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/insights/search.rs:35:69 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_search_rs_26_0() { [INFO] [stdout] | ------------------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let search:SearchItem = client.insights.search.get("234XXXXXXXXXX").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] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 59) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib/async_impl/rest/insights/mod.rs:64:2 [INFO] [stdout] | [INFO] [stdout] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | [INFO] [stdout] 10 | let client = termii::Termii::new("Your API key"); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/insights/mod.rs:68:75 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_mod_rs_59_0() { [INFO] [stdout] | --------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let status:StatusItem = client.insights.status.get("234XXXXXXXXXX", "NG").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] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::create (line 73) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/campaign.rs:93:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_campaign_rs_73_0() { [INFO] [stdout] | ------------------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 23 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `api_key` in initializer of `PhoneBookCreateUpdateRequest` [INFO] [stdout] --> src/lib/async_impl/rest/switch/campaign.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 14 | let phonebook_create_request = PhoneBookCreateUpdateRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `api_key` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History<'a>::get (line 44) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib/async_impl/rest/insights/history.rs:49:2 [INFO] [stdout] | [INFO] [stdout] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | [INFO] [stdout] 10 | let client = termii::Termii::new("Your API key"); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/insights/history.rs:53:57 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_history_rs_44_0() { [INFO] [stdout] | ------------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let history:HistoryItem = client.insights.history.get().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib/async_impl/rest/insights/history.rs:53:51 [INFO] [stdout] | [INFO] [stdout] 12 | let history:HistoryItem = client.insights.history.get().await.unwrap(); [INFO] [stdout] | ^^^-- argument #1 of type `Option<&str>` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib/async_impl/rest/insights/history.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | pub async fn get(&self, page: Option<&str>) -> Result, errors::HttpError> { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 12 | let history:HistoryItem = client.insights.history.get(/* Option<&str> */).await.unwrap(); [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::get (line 49) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/campaign.rs:55:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_campaign_rs_49_0() { [INFO] [stdout] | ------------------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | let phonebooks: Vec = client.switch.campaign.get(Some(1)).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib/async_impl/rest/switch/campaign.rs:55:70 [INFO] [stdout] | [INFO] [stdout] 9 | let phonebooks: Vec = client.switch.campaign.get(Some(1)).await.unwrap(); [INFO] [stdout] | ---- ^ expected `&str`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib/async_impl/rest/switch/campaign.rs:55:65 [INFO] [stdout] | [INFO] [stdout] 9 | let phonebooks: Vec = client.switch.campaign.get(Some(1)).await.unwrap(); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:602:5 [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging<'a>::send_bulk (line 70) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/messaging.rs:93:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_messaging_rs_70_0() { [INFO] [stdout] | ------------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 26 | .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/async_impl/mod.rs - async_impl (line 33) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `otp_payload` in this scope [INFO] [stdout] --> src/lib/async_impl/mod.rs:57:48 [INFO] [stdout] | [INFO] [stdout] 27 | let response = client.token.request_token.send(otp_payload).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/lib/async_impl/mod.rs:57:61 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_mod_rs_33_0() { [INFO] [stdout] | ------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 27 | let response = client.token.request_token.send(otp_payload).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/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History<'a>::get (line 58) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib/async_impl/rest/insights/history.rs:59:15 [INFO] [stdout] | [INFO] [stdout] 3 | let history = client.insights.history.all().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/lib/async_impl/rest/insights/history.rs:59:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_history_rs_58_0() { [INFO] [stdout] | ------------------------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let history = client.insights.history.all().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/async_impl/mod.rs - async_impl (line 8) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib/async_impl/mod.rs:13:2 [INFO] [stdout] | [INFO] [stdout] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | [INFO] [stdout] 10 | let client = termii::Termii::new("Your API key"); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/mod.rs:25:54 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_mod_rs_8_0() { [INFO] [stdout] | ------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 20 | let message = client.switch.messaging.send(_message).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] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 22) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib/async_impl/rest/insights/mod.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | [INFO] [stdout] 10 | let client = termii::Termii::new("Your API key"); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/insights/mod.rs:31:57 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_mod_rs_22_0() { [INFO] [stdout] | --------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let history:HistoryItem = client.insights.history.get().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib/async_impl/rest/insights/mod.rs:31:51 [INFO] [stdout] | [INFO] [stdout] 12 | let history:HistoryItem = client.insights.history.get().await.unwrap(); [INFO] [stdout] | ^^^-- argument #1 of type `Option<&str>` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib/async_impl/rest/insights/history.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | pub async fn get(&self, page: Option<&str>) -> Result, errors::HttpError> { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 12 | let history:HistoryItem = client.insights.history.get(/* Option<&str> */).await.unwrap(); [INFO] [stdout] | ++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/insights/balance.rs - async_impl::rest::insights::balance::Balance<'a>::get (line 26) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib/async_impl/rest/insights/balance.rs:31:2 [INFO] [stdout] | [INFO] [stdout] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | [INFO] [stdout] 10 | let client = termii::Termii::new("Your API key"); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/insights/balance.rs:35:45 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_balance_rs_26_0() { [INFO] [stdout] | ------------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let balance = client.insights.balance.get().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] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::delete (line 172) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/campaign.rs:184:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_campaign_rs_172_0() { [INFO] [stdout] | ------------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 15 | .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/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 6) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/mod.rs:12:74 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_6_0() { [INFO] [stdout] | ------------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | let phonebooks: Vec = client.switch.campaign.get(Some(1)).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib/async_impl/rest/switch/mod.rs:12:70 [INFO] [stdout] | [INFO] [stdout] 9 | let phonebooks: Vec = client.switch.campaign.get(Some(1)).await.unwrap(); [INFO] [stdout] | ---- ^ expected `&str`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `{integer}` due to the type of the argument passed [INFO] [stdout] --> src/lib/async_impl/rest/switch/mod.rs:12:65 [INFO] [stdout] | [INFO] [stdout] 9 | let phonebooks: Vec = client.switch.campaign.get(Some(1)).await.unwrap(); [INFO] [stdout] | ^^^^^-^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Some` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/caccb4d0368bd918ef6668af8e13834d07040417/library/core/src/option.rs:602:5 [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 43) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib/async_impl/rest/insights/mod.rs:48:2 [INFO] [stdout] | [INFO] [stdout] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | [INFO] [stdout] 10 | let client = termii::Termii::new("Your API key"); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/insights/mod.rs:52:69 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_mod_rs_43_0() { [INFO] [stdout] | --------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let search:SearchItem = client.insights.search.get("234XXXXXXXXXX").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] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging<'a>::send (line 30) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/messaging.rs:47:70 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_messaging_rs_30_0() { [INFO] [stdout] | ------------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 20 | let message_response = client.switch.messaging.send(message_payload).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/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::get (line 60) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `PhoneBookItem` in this scope [INFO] [stdout] --> src/lib/async_impl/rest/switch/campaign.rs:61:21 [INFO] [stdout] | [INFO] [stdout] 3 | let phonebooks: Vec = client.switch.campaign.all().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use termii_rust::common::switch::PhoneBookItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib/async_impl/rest/switch/campaign.rs:61:38 [INFO] [stdout] | [INFO] [stdout] 3 | let phonebooks: Vec = client.switch.campaign.all().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/lib/async_impl/rest/switch/campaign.rs:61:67 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_campaign_rs_60_0() { [INFO] [stdout] | ------------------------------------------------------------------ this is not `async` [INFO] [stdout] 3 | let phonebooks: Vec = client.switch.campaign.all().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::update (line 118) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/campaign.rs:141:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_campaign_rs_118_0() { [INFO] [stdout] | ------------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 26 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `api_key` in initializer of `PhoneBookCreateUpdateRequest` [INFO] [stdout] --> src/lib/async_impl/rest/switch/campaign.rs:129:32 [INFO] [stdout] | [INFO] [stdout] 14 | let phonebook_update_request = PhoneBookCreateUpdateRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `api_key` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 75) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib/async_impl/rest/switch/mod.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 3 | let sender_ids = client.switch.sender_id.all().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/lib/async_impl/rest/switch/mod.rs:76:48 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_75_0() { [INFO] [stdout] | ------------------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let sender_ids = client.switch.sender_id.all().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/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 36) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib/async_impl/rest/insights/mod.rs:37:15 [INFO] [stdout] | [INFO] [stdout] 3 | let history = client.insights.history.all().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/lib/async_impl/rest/insights/mod.rs:37:45 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_mod_rs_36_0() { [INFO] [stdout] | --------------------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let history = client.insights.history.all().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/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 64) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/mod.rs:70:56 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_64_0() { [INFO] [stdout] | ------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | let sender_id = client.switch.sender_id.get(Some("1")).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/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 6) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib/async_impl/rest/insights/mod.rs:11:2 [INFO] [stdout] | [INFO] [stdout] 8 | } [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 9 | [INFO] [stdout] 10 | let client = termii::Termii::new("Your API key"); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/insights/mod.rs:15:45 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_insights_mod_rs_6_0() { [INFO] [stdout] | -------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let balance = client.insights.balance.get().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] For more information about this error, try `rustc --explain E0728`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 17) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `PhoneBookItem` in this scope [INFO] [stdout] --> src/lib/async_impl/rest/switch/mod.rs:18:21 [INFO] [stdout] | [INFO] [stdout] 3 | let phonebooks: Vec = client.switch.campaign.all().await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use termii_rust::common::switch::PhoneBookItem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib/async_impl/rest/switch/mod.rs:18:38 [INFO] [stdout] | [INFO] [stdout] 3 | let phonebooks: Vec = client.switch.campaign.all().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/lib/async_impl/rest/switch/mod.rs:18:67 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_17_0() { [INFO] [stdout] | ------------------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let phonebooks: Vec = client.switch.campaign.all().await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/templates.rs - async_impl::rest::switch::templates::Templates<'a>::send (line 28) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/templates.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_templates_rs_28_0() { [INFO] [stdout] | ------------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 26 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib/async_impl/rest/switch/templates.rs:38:24 [INFO] [stdout] | [INFO] [stdout] 13 | TemplatesData::new("Termii", "325821".to_string(), "10 minutes".to_string()); [INFO] [stdout] | ------------------ ^^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib/common/switch/templates.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(product_name: String, otp: String, expiry_time: String) -> TemplatesData { [INFO] [stdout] | ^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 13 | TemplatesData::new("Termii".to_string(), "325821".to_string(), "10 minutes".to_string()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::get (line 44) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/sender_id.rs:50:56 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_sender_id_rs_44_0() { [INFO] [stdout] | ------------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 9 | let sender_id = client.switch.sender_id.get(Some("1")).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/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 48) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/mod.rs:57:67 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_48_0() { [INFO] [stdout] | ------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let message_response = client.switch.number.send(message_payload).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/async_impl/rest/switch/number.rs - async_impl::rest::switch::number::Number<'a>::send (line 28) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/number.rs:37:67 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_number_rs_28_0() { [INFO] [stdout] | ---------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let message_response = client.switch.number.send(message_payload).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/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::request (line 68) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/sender_id.rs:84:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_sender_id_rs_68_0() { [INFO] [stdout] | ------------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 19 | .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/async_impl/rest/token/mod.rs - async_impl::rest::token (line 30) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/token/mod.rs:54:55 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_mod_rs_30_0() { [INFO] [stdout] | ------------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 27 | let response = client.token.request.send(otp_request).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `request` on type `Token<'_>` [INFO] [stdout] --> src/lib/async_impl/rest/token/mod.rs:54:29 [INFO] [stdout] | [INFO] [stdout] 27 | let response = client.token.request.send(otp_request).await.unwrap(); [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `request_token`, `verify_token`, `in_app_token` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0609, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0609`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::get (line 55) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/lib/async_impl/rest/switch/sender_id.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 3 | let sender_ids = client.switch.sender_id.all().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/lib/async_impl/rest/switch/sender_id.rs:56:48 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_sender_id_rs_55_0() { [INFO] [stdout] | ------------------------------------------------------------------- this is not `async` [INFO] [stdout] 3 | let sender_ids = client.switch.sender_id.all().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/async_impl/rest/token/request.rs - async_impl::rest::token::request::RequestToken<'a>::send (line 29) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/token/request.rs:53:55 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_request_rs_29_0() { [INFO] [stdout] | ---------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 27 | let response = client.token.request.send(otp_request).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `request` on type `Token<'_>` [INFO] [stdout] --> src/lib/async_impl/rest/token/request.rs:53:29 [INFO] [stdout] | [INFO] [stdout] 27 | let response = client.token.request.send(otp_request).await.unwrap(); [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `request_token`, `verify_token`, `in_app_token` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0609, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0609`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 82) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/mod.rs:105:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_82_0() { [INFO] [stdout] | ------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 26 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib/async_impl/rest/switch/mod.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 13 | TemplatesData::new("Termii", "325821".to_string(), "10 minutes".to_string()); [INFO] [stdout] | ------------------ ^^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib/common/switch/templates.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn new(product_name: String, otp: String, expiry_time: String) -> TemplatesData { [INFO] [stdout] | ^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 13 | TemplatesData::new("Termii".to_string(), "325821".to_string(), "10 minutes".to_string()); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/mod.rs - (line 16) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/mod.rs:33:54 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_mod_rs_16_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 20 | let message = client.switch.messaging.send(_message).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/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 24) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/switch/mod.rs:41:70 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_switch_mod_rs_24_0() { [INFO] [stdout] | ------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 20 | let message_response = client.switch.messaging.send(message_payload).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/async_impl/rest/token/mod.rs - async_impl::rest::token (line 61) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/token/mod.rs:72:61 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_mod_rs_61_0() { [INFO] [stdout] | ------------------------------------------------------------ this is not `async` [INFO] [stdout] ... [INFO] [stdout] 14 | let response = client.token.verify.send(verify_otp_request).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `verify` on type `Token<'_>` [INFO] [stdout] --> src/lib/async_impl/rest/token/mod.rs:72:29 [INFO] [stdout] | [INFO] [stdout] 14 | let response = client.token.verify.send(verify_otp_request).await.unwrap(); [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `request_token`, `verify_token`, `in_app_token` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0609, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0609`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/token/verify.rs - async_impl::rest::token::verify::VerifyToken<'a>::send (line 29) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/token/verify.rs:40:61 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_verify_rs_29_0() { [INFO] [stdout] | --------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 14 | let response = client.token.verify.send(verify_otp_request).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `verify` on type `Token<'_>` [INFO] [stdout] --> src/lib/async_impl/rest/token/verify.rs:40:29 [INFO] [stdout] | [INFO] [stdout] 14 | let response = client.token.verify.send(verify_otp_request).await.unwrap(); [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `request_token`, `verify_token`, `in_app_token` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0609, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0609`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 6) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/token/mod.rs:22:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_mod_rs_6_0() { [INFO] [stdout] | ----------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 19 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib/async_impl/rest/token/mod.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 13 | InAppTokenRequest::new("+234XXXXXXXXXX", InAppTokenMessageType::NUMERIC, 3, 300, 6); [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib/common/token/in_app_token.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 13 | InAppTokenRequest::new("+234XXXXXXXXXX".to_string(), InAppTokenMessageType::NUMERIC, 3, 300, 6); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/async_impl/rest/token/in_app_token.rs - async_impl::rest::token::in_app_token::InAppToken<'a>::send (line 29) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/async_impl/rest/token/in_app_token.rs:45:6 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_async_impl_rest_token_in_app_token_rs_29_0() { [INFO] [stdout] | --------------------------------------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 19 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib/async_impl/rest/token/in_app_token.rs:39:28 [INFO] [stdout] | [INFO] [stdout] 13 | InAppTokenRequest::new("+234XXXXXXXXXX", InAppTokenMessageType::NUMERIC, 3, 300, 6); [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^ expected `String`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib/common/token/in_app_token.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 13 | InAppTokenRequest::new("+234XXXXXXXXXX".to_string(), InAppTokenMessageType::NUMERIC, 3, 300, 6); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib/mod.rs - (line 41) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `otp_payload` in this scope [INFO] [stdout] --> src/lib/mod.rs:65:48 [INFO] [stdout] | [INFO] [stdout] 27 | let response = client.token.request_token.send(otp_payload).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/lib/mod.rs:65:61 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_mod_rs_41_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 27 | let response = client.token.request_token.send(otp_payload).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/lib/mod.rs - (line 72) stdout ---- [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib/mod.rs:81:49 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_mod_rs_72_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | let all_history = client.insights.history.all().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] [INFO] [stdout] failures: [INFO] [stdout] src/lib/async_impl/mod.rs - async_impl (line 33) [INFO] [stdout] src/lib/async_impl/mod.rs - async_impl (line 8) [INFO] [stdout] src/lib/async_impl/rest/insights/balance.rs - async_impl::rest::insights::balance::Balance<'a>::get (line 26) [INFO] [stdout] src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History<'a>::get (line 44) [INFO] [stdout] src/lib/async_impl/rest/insights/history.rs - async_impl::rest::insights::history::History<'a>::get (line 58) [INFO] [stdout] src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 22) [INFO] [stdout] src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 36) [INFO] [stdout] src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 43) [INFO] [stdout] src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 59) [INFO] [stdout] src/lib/async_impl/rest/insights/mod.rs - async_impl::rest::insights (line 6) [INFO] [stdout] src/lib/async_impl/rest/insights/search.rs - async_impl::rest::insights::search::Search<'a>::get (line 26) [INFO] [stdout] src/lib/async_impl/rest/insights/status.rs - async_impl::rest::insights::status::Status<'a>::get (line 25) [INFO] [stdout] src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::create (line 73) [INFO] [stdout] src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::delete (line 172) [INFO] [stdout] src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::get (line 49) [INFO] [stdout] src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::get (line 60) [INFO] [stdout] src/lib/async_impl/rest/switch/campaign.rs - async_impl::rest::switch::campaign::Campaign<'a>::update (line 118) [INFO] [stdout] src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging<'a>::send (line 30) [INFO] [stdout] src/lib/async_impl/rest/switch/messaging.rs - async_impl::rest::switch::messaging::Messaging<'a>::send_bulk (line 70) [INFO] [stdout] src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 17) [INFO] [stdout] src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 24) [INFO] [stdout] src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 48) [INFO] [stdout] src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 6) [INFO] [stdout] src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 64) [INFO] [stdout] src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 75) [INFO] [stdout] src/lib/async_impl/rest/switch/mod.rs - async_impl::rest::switch (line 82) [INFO] [stdout] src/lib/async_impl/rest/switch/number.rs - async_impl::rest::switch::number::Number<'a>::send (line 28) [INFO] [stdout] src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::get (line 44) [INFO] [stdout] src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::get (line 55) [INFO] [stdout] src/lib/async_impl/rest/switch/sender_id.rs - async_impl::rest::switch::sender_id::SenderID<'a>::request (line 68) [INFO] [stdout] src/lib/async_impl/rest/switch/templates.rs - async_impl::rest::switch::templates::Templates<'a>::send (line 28) [INFO] [stdout] src/lib/async_impl/rest/token/in_app_token.rs - async_impl::rest::token::in_app_token::InAppToken<'a>::send (line 29) [INFO] [stdout] src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 30) [INFO] [stdout] src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 6) [INFO] [stdout] src/lib/async_impl/rest/token/mod.rs - async_impl::rest::token (line 61) [INFO] [stdout] src/lib/async_impl/rest/token/request.rs - async_impl::rest::token::request::RequestToken<'a>::send (line 29) [INFO] [stdout] src/lib/async_impl/rest/token/verify.rs - async_impl::rest::token::verify::VerifyToken<'a>::send (line 29) [INFO] [stdout] src/lib/mod.rs - (line 16) [INFO] [stdout] src/lib/mod.rs - (line 41) [INFO] [stdout] src/lib/mod.rs - (line 72) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 40 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.30s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "188f510e7200936295bdf69de9e04c28f2efd87ab9647fde3abbcbc96a3e1225", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "188f510e7200936295bdf69de9e04c28f2efd87ab9647fde3abbcbc96a3e1225", kill_on_drop: false }` [INFO] [stdout] 188f510e7200936295bdf69de9e04c28f2efd87ab9647fde3abbcbc96a3e1225