Skip to content

feat(rpc): expose reqwest client #6

feat(rpc): expose reqwest client

feat(rpc): expose reqwest client #6

Triggered via pull request May 18, 2024 16:07
Status Failure
Total duration 1m 40s
Artifacts

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 2 warnings
clippy-tools-output: rpc/src/client/transport/http.rs#L111
[clippy] reported by reviewdog 🐶 error[E0425]: cannot find value `inner` in this scope --> /home/runner/work/tendermint-rs/tendermint-rs/rpc/src/client/transport/http.rs:111:13 | 111 | inner = match self.proxy_url { | ^^^^^ | help: you might have meant to introduce a new binding | 111 | let inner = match self.proxy_url { | +++ Raw Output: /home/runner/work/tendermint-rs/tendermint-rs/rpc/src/client/transport/http.rs:111:13:e:error[E0425]: cannot find value `inner` in this scope --> /home/runner/work/tendermint-rs/tendermint-rs/rpc/src/client/transport/http.rs:111:13 | 111 | inner = match self.proxy_url { | ^^^^^ | help: you might have meant to introduce a new binding | 111 | let inner = match self.proxy_url { | +++ __END__
clippy-tools-output: rpc/src/client/transport/http.rs#L99
[clippy] reported by reviewdog 🐶 error[E0308]: mismatched types --> /home/runner/work/tendermint-rs/tendermint-rs/rpc/src/client/transport/http.rs:99:23 | 99 | self.client = client; | ----------- ^^^^^^ expected `Option<Client>`, found `Client` | | | expected due to the type of this binding | = note: expected enum `core::option::Option<reqwest::Client>` found struct `reqwest::Client` help: try wrapping the expression in `core::prelude::v1::Some` | 99 | self.client = core::prelude::v1::Some(client); | ++++++++++++++++++++++++ + Raw Output: /home/runner/work/tendermint-rs/tendermint-rs/rpc/src/client/transport/http.rs:99:23:e:error[E0308]: mismatched types --> /home/runner/work/tendermint-rs/tendermint-rs/rpc/src/client/transport/http.rs:99:23 | 99 | self.client = client; | ----------- ^^^^^^ expected `Option<Client>`, found `Client` | | | expected due to the type of this binding | = note: expected enum `core::option::Option<reqwest::Client>` found struct `reqwest::Client` help: try wrapping the expression in `core::prelude::v1::Some` | 99 | self.client = core::prelude::v1::Some(client); | ++++++++++++++++++++++++ + __END__
clippy-tools-output: rpc/src/client/transport/http.rs#L111
[clippy] reported by reviewdog 🐶 error[E0308]: `if` and `else` have incompatible types --> /home/runner/work/tendermint-rs/tendermint-rs/rpc/src/client/transport/http.rs:111:13 | 105 | let inner = if let Some(inner) = self.client { | ______________________- 106 | | inner | | ----- expected because of this 107 | | } else { 108 | | let builder = reqwest::ClientBuilder::new() ... | 111 | |/ inner = match self.proxy_url { 112 | || None => builder.build().map_err(Error::http)?, 113 | || Some(proxy_url) => { 114 | || let proxy = if self.url.0.is_secure() { ... || 122 | || }, 123 | || }; | ||______________^ expected `Client`, found `()` 124 | | }; | |__________- `if` and `else` have incompatible types Raw Output: /home/runner/work/tendermint-rs/tendermint-rs/rpc/src/client/transport/http.rs:111:13:e:error[E0308]: `if` and `else` have incompatible types --> /home/runner/work/tendermint-rs/tendermint-rs/rpc/src/client/transport/http.rs:111:13 | 105 | let inner = if let Some(inner) = self.client { | ______________________- 106 | | inner | | ----- expected because of this 107 | | } else { 108 | | let builder = reqwest::ClientBuilder::new() ... | 111 | |/ inner = match self.proxy_url { 112 | || None => builder.build().map_err(Error::http)?, 113 | || Some(proxy_url) => { 114 | || let proxy = if self.url.0.is_secure() { ... || 122 | || }, 123 | || }; | ||______________^ expected `Client`, found `()` 124 | | }; | |__________- `if` and `else` have incompatible types __END__
clippy-tools-output
reviewdog exited with status code: 1
docs
Process completed with exit code 101.
clippy-tools-output
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: giraffate/clippy-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
clippy-json-output
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: giraffate/clippy-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.