Skip to content

Tower trait configurable #300

Tower trait configurable

Tower trait configurable #300

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

clippy

12 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 12
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 54 in examples/examples/actix_web.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/actix_web.rs:54:17
   |
54 |     let cache = Cache::new().await.unwrap().start();
   |                 ^^^^^ use of undeclared type `Cache`
   |
help: consider importing this struct
   |
1  + use hitbox_tower::Cache;
   |

Check failure on line 38 in examples/examples/actix_web.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

cannot find type `Cache` in this scope

error[E0412]: cannot find type `Cache` in this scope
  --> examples/examples/actix_web.rs:38:27
   |
38 |     cache: web::Data<Addr<Cache>>,
   |                           ^^^^^ not found in this scope
   |
help: consider importing this struct
   |
1  + use hitbox_tower::Cache;
   |

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

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `actix_web`

error[E0432]: unresolved import `actix_web`
 --> examples/examples/actix_web.rs:3:5
  |
3 | use actix_web::{web, App, HttpResponse, HttpServer, Responder};
  |     ^^^^^^^^^ use of undeclared crate or module `actix_web`
  |
help: there is a crate or module with a similar name
  |
3 | use actix_rt::{web, App, HttpResponse, HttpServer, Responder};
  |     ~~~~~~~~

Check failure on line 2 in examples/examples/actix_web.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/actix_web.rs:2:5
  |
2 | use actix_derive::Message;
  |     ^^^^^^^^^^^^ use of undeclared crate or module `actix_derive`

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 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