[INFO] cloning repository https://github.com/nzengi/wasm-oauth2
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nzengi/wasm-oauth2" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnzengi%2Fwasm-oauth2", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnzengi%2Fwasm-oauth2'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 24bc17d339333072d2db38bdb5d7e1c0688e42b8
[INFO] checking nzengi/wasm-oauth2/24bc17d339333072d2db38bdb5d7e1c0688e42b8 against master#42f4793e5a514858221b07ac379029d90353913e for pr-148952
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnzengi%2Fwasm-oauth2" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/nzengi/wasm-oauth2
[INFO] finished tweaking git repo https://github.com/nzengi/wasm-oauth2
[INFO] tweaked toml for git repo https://github.com/nzengi/wasm-oauth2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/nzengi/wasm-oauth2 on toolchain 42f4793e5a514858221b07ac379029d90353913e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+42f4793e5a514858221b07ac379029d90353913e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/nzengi/wasm-oauth2 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+42f4793e5a514858221b07ac379029d90353913e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded rustls-pemfile v2.1.3
[INFO] [stderr]   Downloaded ipnet v2.10.0
[INFO] [stderr]   Downloaded rustls-pki-types v1.8.0
[INFO] [stderr]   Downloaded wasm-bindgen-futures v0.4.43
[INFO] [stderr]   Downloaded hyper-util v0.1.8
[INFO] [stderr]   Downloaded cc v1.1.18
[INFO] [stderr]   Downloaded reqwest v0.12.7
[INFO] [stderr]   Downloaded rustls v0.23.13
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+42f4793e5a514858221b07ac379029d90353913e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0e4de7f5d5521f54e4905e19af73a7a24ed804edb7c6fe818e076d49334a5c79
[INFO] running `Command { std: "docker" "start" "-a" "0e4de7f5d5521f54e4905e19af73a7a24ed804edb7c6fe818e076d49334a5c79", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0e4de7f5d5521f54e4905e19af73a7a24ed804edb7c6fe818e076d49334a5c79", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0e4de7f5d5521f54e4905e19af73a7a24ed804edb7c6fe818e076d49334a5c79", kill_on_drop: false }`
[INFO] [stdout] 0e4de7f5d5521f54e4905e19af73a7a24ed804edb7c6fe818e076d49334a5c79
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+42f4793e5a514858221b07ac379029d90353913e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ab510ad719edeac8fae4f814300ee6f915d88100fd00f29f86f8beb74c19b807
[INFO] running `Command { std: "docker" "start" "-a" "ab510ad719edeac8fae4f814300ee6f915d88100fd00f29f86f8beb74c19b807", kill_on_drop: false }`
[INFO] [stderr]    Compiling syn v2.0.77
[INFO] [stderr]     Checking bytes v1.7.1
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.93
[INFO] [stderr]    Compiling cc v1.1.18
[INFO] [stderr]     Checking mio v1.0.2
[INFO] [stderr]     Checking socket2 v0.5.7
[INFO] [stderr]     Checking indexmap v2.5.0
[INFO] [stderr]    Compiling wasm-bindgen v0.2.93
[INFO] [stderr]    Compiling serde v1.0.210
[INFO] [stderr]    Compiling serde_json v1.0.128
[INFO] [stderr]     Checking rustls-pki-types v1.8.0
[INFO] [stderr]     Checking sync_wrapper v1.0.1
[INFO] [stderr]     Checking ipnet v2.10.0
[INFO] [stderr]     Checking rustls-pemfile v2.1.3
[INFO] [stderr]    Compiling openssl-sys v0.9.103
[INFO] [stderr]     Checking tokio v1.40.0
[INFO] [stderr]     Checking http v1.1.0
[INFO] [stderr]    Compiling openssl v0.10.66
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]     Checking http-body v1.0.1
[INFO] [stderr]     Checking http-body-util v0.1.2
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.93
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling serde_derive v1.0.210
[INFO] [stderr]     Checking tokio-util v0.7.12
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.93
[INFO] [stderr]     Checking h2 v0.4.6
[INFO] [stderr]     Checking pin-project v1.1.5
[INFO] [stderr]     Checking tower v0.4.13
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.93
[INFO] [stderr]     Checking js-sys v0.3.70
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr]     Checking hyper v1.4.1
[INFO] [stderr]     Checking hyper-util v0.1.8
[INFO] [stderr]     Checking web-sys v0.3.70
[INFO] [stderr]     Checking wasm-bindgen-futures v0.4.43
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking hyper-tls v0.6.0
[INFO] [stderr]     Checking reqwest v0.12.7
[INFO] [stderr]     Checking wasm-oauth2 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `crate::wasm_oauth2`
[INFO] [stdout]  --> examples/github.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::wasm_oauth2::OAuth2Client;
[INFO] [stdout]   |            ^^^^^^^^^^^ could not find `wasm_oauth2` in the crate root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `web_sys::console`
[INFO] [stdout]  --> src/lib.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use web_sys::console;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^ no `console` in the root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `authorize` in module `oauth_client`
[INFO] [stdout]   --> src/lib.rs:19:19
[INFO] [stdout]    |
[INFO] [stdout] 19 |     oauth_client::authorize()
[INFO] [stdout]    |                   ^^^^^^^^^ not found in `oauth_client`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `js_sys`
[INFO] [stdout]   --> src/lib.rs:23:39
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub fn exchange_code(code: String) -> js_sys::Promise {
[INFO] [stdout]    |                                       ^^^^^^ use of unresolved module or unlinked crate `js_sys`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `js_sys`, use `cargo add js_sys` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these crates
[INFO] [stdout]    |
[INFO] [stdout]  1 + use wasm_bindgen_futures::js_sys;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use web_sys::js_sys;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `exchange_code` in module `oauth_client`
[INFO] [stdout]   --> src/lib.rs:24:37
[INFO] [stdout]    |
[INFO] [stdout] 24 |     future_to_promise(oauth_client::exchange_code(code))
[INFO] [stdout]    |                                     ^^^^^^^^^^^^^ not found in `oauth_client`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `wasm-oauth2` (example "github") due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stdout]   --> src/lib.rs:17:1
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[wasm_bindgen]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: expected names are: `docsrs`, `feature`, and `test` and 31 more
[INFO] [stdout]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stdout]   --> src/lib.rs:22:1
[INFO] [stdout]    |
[INFO] [stdout] 22 | #[wasm_bindgen]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*`
[INFO] [stdout]  --> src/oauth_client.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use wasm_bindgen::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen_futures::future_to_promise`
[INFO] [stdout]  --> src/oauth_client.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use wasm_bindgen_futures::future_to_promise;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `web_sys::console`
[INFO] [stdout]  --> src/lib.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use web_sys::console;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^ no `console` in the root
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `authorize` in module `oauth_client`
[INFO] [stdout]   --> src/lib.rs:19:19
[INFO] [stdout]    |
[INFO] [stdout] 19 |     oauth_client::authorize()
[INFO] [stdout]    |                   ^^^^^^^^^ not found in `oauth_client`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `js_sys`
[INFO] [stdout]   --> src/lib.rs:23:39
[INFO] [stdout]    |
[INFO] [stdout] 23 | pub fn exchange_code(code: String) -> js_sys::Promise {
[INFO] [stdout]    |                                       ^^^^^^ use of unresolved module or unlinked crate `js_sys`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `js_sys`, use `cargo add js_sys` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing one of these crates
[INFO] [stdout]    |
[INFO] [stdout]  1 + use wasm_bindgen_futures::js_sys;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use web_sys::js_sys;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `exchange_code` in module `oauth_client`
[INFO] [stdout]   --> src/lib.rs:24:37
[INFO] [stdout]    |
[INFO] [stdout] 24 |     future_to_promise(oauth_client::exchange_code(code))
[INFO] [stdout]    |                                     ^^^^^^^^^^^^^ not found in `oauth_client`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stdout]   --> src/lib.rs:17:1
[INFO] [stdout]    |
[INFO] [stdout] 17 | #[wasm_bindgen]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: expected names are: `docsrs`, `feature`, and `test` and 31 more
[INFO] [stdout]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stdout]   --> src/lib.rs:22:1
[INFO] [stdout]    |
[INFO] [stdout] 22 | #[wasm_bindgen]
[INFO] [stdout]    | ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stdout]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stdout]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen::prelude::*`
[INFO] [stdout]  --> src/oauth_client.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use wasm_bindgen::prelude::*;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `wasm_bindgen_futures::future_to_promise`
[INFO] [stdout]  --> src/oauth_client.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use wasm_bindgen_futures::future_to_promise;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `json` found for struct `RequestBuilder` in the current scope
[INFO] [stdout]   --> src/http/fetch_client.rs:14:10
[INFO] [stdout]    |
[INFO] [stdout] 13 |       let res = client.post("https://example.com/token")
[INFO] [stdout]    |  _______________-
[INFO] [stdout] 14 | |         .json(&params)
[INFO] [stdout]    | |         -^^^^ method not found in `RequestBuilder`
[INFO] [stdout]    | |_________|
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>`
[INFO] [stdout]   --> src/http/fetch_client.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let res = client.post("https://example.com/token")
[INFO] [stdout]    |         ^^^
[INFO] [stdout] ...
[INFO] [stdout] 20 |             if response.status().is_success() {
[INFO] [stdout]    |                -------- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving `res` an explicit type, where the placeholders `_` are specified
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let res: Result<_, E> = client.post("https://example.com/token")
[INFO] [stdout]    |            ++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/http/fetch_client.rs:21:42
[INFO] [stdout]    |
[INFO] [stdout] 21 |                 let token: AccessToken = response.json().await.unwrap();
[INFO] [stdout]    |                                          ^^^^^^^^^^^^^^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `Result<{type error}, _>`
[INFO] [stdout]   --> src/http/fetch_client.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let res = client.post("https://example.com/token")
[INFO] [stdout]    |         ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |         Err(err) => Err(OAuth2Error::RequestError(err.to_string()))
[INFO] [stdout]    |                                                   --- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving `res` an explicit type, where the placeholders `_` are specified
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let res: Result<_, E> = client.post("https://example.com/token")
[INFO] [stdout]    |            ++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `json` found for struct `RequestBuilder` in the current scope
[INFO] [stdout]   --> src/http/fetch_client.rs:14:10
[INFO] [stdout]    |
[INFO] [stdout] 13 |       let res = client.post("https://example.com/token")
[INFO] [stdout]    |  _______________-
[INFO] [stdout] 14 | |         .json(&params)
[INFO] [stdout]    | |         -^^^^ method not found in `RequestBuilder`
[INFO] [stdout]    | |_________|
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>`
[INFO] [stdout]   --> src/http/fetch_client.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let res = client.post("https://example.com/token")
[INFO] [stdout]    |         ^^^
[INFO] [stdout] ...
[INFO] [stdout] 20 |             if response.status().is_success() {
[INFO] [stdout]    |                -------- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving `res` an explicit type, where the placeholders `_` are specified
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let res: Result<_, E> = client.post("https://example.com/token")
[INFO] [stdout]    |            ++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed
[INFO] [stdout]   --> src/http/fetch_client.rs:21:42
[INFO] [stdout]    |
[INFO] [stdout] 21 |                 let token: AccessToken = response.json().await.unwrap();
[INFO] [stdout]    |                                          ^^^^^^^^^^^^^^^^^^^^^ cannot infer type
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `Result<{type error}, _>`
[INFO] [stdout]   --> src/http/fetch_client.rs:13:9
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let res = client.post("https://example.com/token")
[INFO] [stdout]    |         ^^^
[INFO] [stdout] ...
[INFO] [stdout] 27 |         Err(err) => Err(OAuth2Error::RequestError(err.to_string()))
[INFO] [stdout]    |                                                   --- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving `res` an explicit type, where the placeholders `_` are specified
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let res: Result<_, E> = client.post("https://example.com/token")
[INFO] [stdout]    |            ++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token`
[INFO] [stdout]  --> src/utils.rs:6:25
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn is_token_expired(token: &str) -> bool {
[INFO] [stdout]   |                         ^^^^^ help: if this is intentional, prefix it with an underscore: `_token`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `token`
[INFO] [stdout]  --> src/utils.rs:6:25
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub fn is_token_expired(token: &str) -> bool {
[INFO] [stdout]   |                         ^^^^^ help: if this is intentional, prefix it with an underscore: `_token`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0282, E0425, E0432, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `wasm-oauth2` (lib test) due to 8 previous errors; 5 warnings emitted
[INFO] [stderr] error: could not compile `wasm-oauth2` (lib) due to 8 previous errors; 5 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "ab510ad719edeac8fae4f814300ee6f915d88100fd00f29f86f8beb74c19b807", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ab510ad719edeac8fae4f814300ee6f915d88100fd00f29f86f8beb74c19b807", kill_on_drop: false }`
[INFO] [stdout] ab510ad719edeac8fae4f814300ee6f915d88100fd00f29f86f8beb74c19b807
