Skip to content

Tower

Tower #297

GitHub Actions / clippy failed Aug 27, 2023 in 0s

clippy

14 errors

Details

Results

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

Versions

  • rustc 1.72.0 (5680fa18f 2023-08-23)
  • cargo 1.72.0 (103a7ff2e 2023-08-15)
  • clippy 0.1.72 (5680fa1 2023-08-23)

Annotations

Check failure on line 60 in examples/examples/metrics.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `into_cache` found for struct `Ping` in the current scope

error[E0599]: no method named `into_cache` found for struct `Ping` in the current scope
  --> examples/examples/metrics.rs:60:28
   |
16 | struct Ping {
   | ----------- method `into_cache` not found for this struct
...
60 |         .send(Ping::new(1).into_cache(&upstream))
   |                            ^^^^^^^^^^ method not found in `Ping`

Check failure on line 54 in examples/examples/metrics.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `into_cache` found for struct `Ping` in the current scope

error[E0599]: no method named `into_cache` found for struct `Ping` in the current scope
  --> examples/examples/metrics.rs:54:28
   |
16 | struct Ping {
   | ----------- method `into_cache` not found for this struct
...
54 |         .send(Ping::new(0).into_cache(&upstream))
   |                            ^^^^^^^^^^ method not found in `Ping`

Check failure on line 48 in examples/examples/metrics.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no method named `into_cache` found for struct `Ping` in the current scope

error[E0599]: no method named `into_cache` found for struct `Ping` in the current scope
  --> examples/examples/metrics.rs:48:28
   |
16 | struct Ping {
   | ----------- method `into_cache` not found for this struct
...
48 |         .send(Ping::new(0).into_cache(&upstream))
   |                            ^^^^^^^^^^ method not found in `Ping`

Check failure on line 52 in examples/examples/debug.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `Ping: actix::Message` is not satisfied

error[E0277]: the trait bound `Ping: actix::Message` is not satisfied
  --> examples/examples/debug.rs:52:66
   |
52 |     fn handle(&mut self, msg: Ping, _ctx: &mut Self::Context) -> Self::Result {
   |                                                                  ^^^^^^^^^^^^ the trait `actix::Message` is not implemented for `Ping`
   |
   = help: the following other types implement trait `actix::Message`:
             std::boxed::Box<M>
             std::sync::Arc<M>
note: required by a bound in `actix::Handler`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-0.13.0/src/handler.rs:19:8
   |
16 | pub trait Handler<M>
   |           ------- required by a bound in this trait
...
19 |     M: Message,
   |        ^^^^^^^ required by this bound in `Handler`

Check failure on line 50 in examples/examples/debug.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `Ping: actix::Message` is not satisfied

error[E0277]: the trait bound `Ping: actix::Message` is not satisfied
  --> examples/examples/debug.rs:50:34
   |
50 |     type Result = ResponseFuture<<Ping as Message>::Result>;
   |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `actix::Message` is not implemented for `Ping`
   |
   = help: the following other types implement trait `actix::Message`:
             std::boxed::Box<M>
             std::sync::Arc<M>

Check failure on line 49 in examples/examples/debug.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `Ping: actix::Message` is not satisfied

error[E0277]: the trait bound `Ping: actix::Message` is not satisfied
  --> examples/examples/debug.rs:49:6
   |
49 | impl Handler<Ping> for UpstreamActor {
   |      ^^^^^^^^^^^^^ the trait `actix::Message` is not implemented for `Ping`
   |
   = help: the following other types implement trait `actix::Message`:
             std::boxed::Box<M>
             std::sync::Arc<M>
note: required by a bound in `actix::Handler`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-0.13.0/src/handler.rs:19:8
   |
16 | pub trait Handler<M>
   |           ------- required by a bound in this trait
...
19 |     M: Message,
   |        ^^^^^^^ required by this bound in `Handler`

Check failure on line 3 in examples/examples/metrics.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `CachePolicy`

error: unused import: `CachePolicy`
 --> examples/examples/metrics.rs:3:33
  |
3 | use hitbox::{hitbox_serializer, CachePolicy, Cacheable, CacheableResponse};
  |                                 ^^^^^^^^^^^
  |
  = note: `-D unused-imports` implied by `-D warnings`

Check failure on line 5 in examples/examples/metrics.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `metrics_exporter_prometheus`

error[E0432]: unresolved import `metrics_exporter_prometheus`
 --> examples/examples/metrics.rs:5:5
  |
5 | use metrics_exporter_prometheus::PrometheusBuilder;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `metrics_exporter_prometheus`

Check failure on line 4 in examples/examples/metrics.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `hitbox_actix`

error[E0432]: unresolved import `hitbox_actix`
 --> examples/examples/metrics.rs:4:5
  |
4 | use hitbox_actix::{Cache, CacheError, IntoCache};
  |     ^^^^^^^^^^^^ use of undeclared crate or module `hitbox_actix`
  |
help: there is a crate or module with a similar name
  |
4 | use hitbox_redis::{Cache, CacheError, IntoCache};
  |     ~~~~~~~~~~~~

Check failure on line 2 in examples/examples/metrics.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `actix_derive`

error[E0432]: unresolved import `actix_derive`
 --> examples/examples/metrics.rs:2:5
  |
2 | use actix_derive::MessageResponse;
  |     ^^^^^^^^^^^^ use of undeclared crate or module `actix_derive`

Check failure on line 3 in examples/examples/metrics.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved imports `hitbox::hitbox_serializer`, `hitbox::Cacheable`

error[E0432]: unresolved imports `hitbox::hitbox_serializer`, `hitbox::Cacheable`
 --> examples/examples/metrics.rs:3:14
  |
3 | use hitbox::{hitbox_serializer, CachePolicy, Cacheable, CacheableResponse};
  |              ^^^^^^^^^^^^^^^^^               ^^^^^^^^^ no `Cacheable` in the root
  |              |
  |              no `hitbox_serializer` in the root
  |
  = help: consider importing one of these items instead:
          crate::CachePolicy::Cacheable
          hitbox::CachePolicy::Cacheable
          hitbox::predicate::PredicateResult::Cacheable

Check failure on line 91 in examples/examples/debug.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared type `Cache`

error[E0433]: failed to resolve: use of undeclared type `Cache`
  --> examples/examples/debug.rs:91:17
   |
91 |     let cache = Cache::new().await?.start();
   |                 ^^^^^ use of undeclared type `Cache`
   |
help: consider importing this struct
   |
1  + use hitbox_tower::Cache;
   |

Check failure on line 2 in examples/examples/debug.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `actix_derive`

error[E0432]: unresolved import `actix_derive`
 --> examples/examples/debug.rs:2:5
  |
2 | use actix_derive::{Message, MessageResponse};
  |     ^^^^^^^^^^^^ use of undeclared crate or module `actix_derive`

Check failure on line 3 in examples/examples/debug.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: use of undeclared crate or module `hitbox_actix`

error[E0433]: failed to resolve: use of undeclared crate or module `hitbox_actix`
 --> examples/examples/debug.rs:3:5
  |
3 | use hitbox_actix::prelude::*;
  |     ^^^^^^^^^^^^ use of undeclared crate or module `hitbox_actix`
  |
help: there is a crate or module with a similar name
  |
3 | use hitbox_redis::prelude::*;
  |     ~~~~~~~~~~~~