Skip to content

feature(rpc): Migrate from deprecated jsonrpc_* crates to jsonrpsee #17503

feature(rpc): Migrate from deprecated jsonrpc_* crates to jsonrpsee

feature(rpc): Migrate from deprecated jsonrpc_* crates to jsonrpsee #17503

GitHub Actions / Clippy (stable) Results failed Dec 20, 2024 in 0s

Clippy (stable) Results

6 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 6
Warning 0
Note 0
Help 0

Versions

  • rustc 1.83.0 (90b35a623 2024-11-26)
  • cargo 1.83.0 (5ffbef321 2024-10-29)
  • clippy 0.1.83 (90b35a6 2024-11-26)

Annotations

Check failure on line 9 in zebra-rpc/src/server/http_request_compatibility.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

unused import: `TryFutureExt`

error: unused import: `TryFutureExt`
 --> zebra-rpc/src/server/http_request_compatibility.rs:9:34
  |
9 | use futures::{future, FutureExt, TryFutureExt};
  |                                  ^^^^^^^^^^^^
  |
  = note: `-D unused-imports` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(unused_imports)]`

Check failure on line 205 in zebra-rpc/src/server/http_request_compatibility.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

no method named `clone` found for type parameter `S` in the current scope

error[E0599]: no method named `clone` found for type parameter `S` in the current scope
   --> zebra-rpc/src/server/http_request_compatibility.rs:205:40
    |
176 | impl<S> Service<HttpRequest<HttpBody>> for HttpRequestMiddleware<S>
    |      - method `clone` not found for this type parameter
...
205 |         let mut service = self.service.clone();
    |                                        ^^^^^ method not found in `S`
    |
    = help: items from traits can only be used if the type parameter is bounded by the trait
help: the following trait defines an item `clone`, perhaps you need to restrict type parameter `S` with it:
    |
178 |     S: Service<HttpRequest, Response = HttpResponse> + std::clone::Clone,
    |                                                      +++++++++++++++++++

Check failure on line 9 in zebra-rpc/src/server/http_request_compatibility.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

unused import: `TryFutureExt`

error: unused import: `TryFutureExt`
 --> zebra-rpc/src/server/http_request_compatibility.rs:9:34
  |
9 | use futures::{future, FutureExt, TryFutureExt};
  |                                  ^^^^^^^^^^^^
  |
  = note: `-D unused-imports` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(unused_imports)]`

Check failure on line 205 in zebra-rpc/src/server/http_request_compatibility.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

no method named `clone` found for type parameter `S` in the current scope

error[E0599]: no method named `clone` found for type parameter `S` in the current scope
   --> zebra-rpc/src/server/http_request_compatibility.rs:205:40
    |
176 | impl<S> Service<HttpRequest<HttpBody>> for HttpRequestMiddleware<S>
    |      - method `clone` not found for this type parameter
...
205 |         let mut service = self.service.clone();
    |                                        ^^^^^ method not found in `S`
    |
    = help: items from traits can only be used if the type parameter is bounded by the trait
help: the following trait defines an item `clone`, perhaps you need to restrict type parameter `S` with it:
    |
178 |     S: Service<HttpRequest, Response = HttpResponse> + std::clone::Clone,
    |                                                      +++++++++++++++++++

Check failure on line 9 in zebra-rpc/src/server/http_request_compatibility.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

unused import: `TryFutureExt`

error: unused import: `TryFutureExt`
 --> zebra-rpc/src/server/http_request_compatibility.rs:9:34
  |
9 | use futures::{future, FutureExt, TryFutureExt};
  |                                  ^^^^^^^^^^^^
  |
  = note: `-D unused-imports` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(unused_imports)]`

Check failure on line 205 in zebra-rpc/src/server/http_request_compatibility.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

no method named `clone` found for type parameter `S` in the current scope

error[E0599]: no method named `clone` found for type parameter `S` in the current scope
   --> zebra-rpc/src/server/http_request_compatibility.rs:205:40
    |
176 | impl<S> Service<HttpRequest<HttpBody>> for HttpRequestMiddleware<S>
    |      - method `clone` not found for this type parameter
...
205 |         let mut service = self.service.clone();
    |                                        ^^^^^ method not found in `S`
    |
    = help: items from traits can only be used if the type parameter is bounded by the trait
help: the following trait defines an item `clone`, perhaps you need to restrict type parameter `S` with it:
    |
178 |     S: Service<HttpRequest, Response = HttpResponse> + std::clone::Clone,
    |                                                      +++++++++++++++++++