build(deps): bump bb8-redis from 0.17.0 to 0.18.0 #332
Annotations
10 errors and 2 warnings
Run auguwu/[email protected]:
src/main.rs#L78
error[E0277]: the trait bound `bb8_redis::RedisConnectionManager: bb8::ManageConnection` is not satisfied in `bb8::internals::SharedPool<bb8_redis::RedisConnectionManager>`
--> src/main.rs:78:15
|
78 | let app = Router::new()
| ^^^^^^^^^^^^^ within `bb8::internals::SharedPool<bb8_redis::RedisConnectionManager>`, the trait `bb8::ManageConnection` is not implemented for `bb8_redis::RedisConnectionManager`, which is required by `std::sync::Arc<AppState>: std::marker::Send`
|
note: required because it appears within the type `bb8::Builder<bb8_redis::RedisConnectionManager>`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-0.8.6/src/api.rs:128:12
|
128 | pub struct Builder<M: ManageConnection> {
| ^^^^^^^
note: required because it appears within the type `bb8::internals::SharedPool<bb8_redis::RedisConnectionManager>`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-0.8.6/src/internals.rs:14:19
|
14 | pub(crate) struct SharedPool<M>
| ^^^^^^^^^^
= note: required for `std::sync::Arc<bb8::internals::SharedPool<bb8_redis::RedisConnectionManager>>` to implement `std::marker::Sync`
note: required because it appears within the type `bb8::inner::PoolInner<bb8_redis::RedisConnectionManager>`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-0.8.6/src/inner.rs:17:19
|
17 | pub(crate) struct PoolInner<M>
| ^^^^^^^^^
note: required because it appears within the type `bb8::Pool<bb8_redis::RedisConnectionManager>`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-0.8.6/src/api.rs:14:12
|
14 | pub struct Pool<M>
| ^^^^
note: required because it appears within the type `cache::Storage`
--> src/cache.rs:17:12
|
17 | pub struct Storage {
| ^^^^^^^
note: required because it appears within the type `AppState`
--> src/main.rs:39:8
|
39 | struct AppState {
| ^^^^^^^^
= note: required for `std::sync::Arc<AppState>` to implement `std::marker::Send`
note: required by a bound in `axum::Router::<S>::new`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.7.9/src/routing/mod.rs:133:16
|
133 | S: Clone + Send + Sync + 'static,
| ^^^^ required by this bound in `Router::<S>::new`
...
139 | pub fn new() -> Self {
| --- required by a bound in this associated function
|
Run auguwu/[email protected]:
src/main.rs#L81
error[E0599]: the method `route` exists for struct `Router<Arc<AppState>>`, but its trait bounds were not satisfied
--> src/main.rs:81:10
|
78 | let app = Router::new()
| _______________-
79 | | .merge(downloads::router())
80 | | .merge(tiers::router())
81 | | .route("/generate_invite", get(discord::generate_invite))
| | -^^^^^ method cannot be called on `Router<Arc<AppState>>` due to unsatisfied trait bounds
| |_________|
|
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-redis-0.18.0/src/lib.rs:46:1
|
46 | pub struct RedisConnectionManager {
| --------------------------------- doesn't satisfy `_: ManageConnection`
|
= note: the following trait bounds were not satisfied:
`bb8_redis::RedisConnectionManager: bb8::ManageConnection`
which is required by `std::sync::Arc<AppState>: std::marker::Send`
|
Run auguwu/[email protected]:
src/main.rs#L81
error[E0277]: the trait bound `fn(axum::extract::Query<discord::TurnstileData>, axum::extract::State<std::sync::Arc<AppState>>) -> impl std::future::Future<Output = std::result::Result<impl axum::response::IntoResponse, util::AppError>> {discord::generate_invite}: axum::handler::Handler<_, _>` is not satisfied
--> src/main.rs:81:40
|
81 | .route("/generate_invite", get(discord::generate_invite))
| --- ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `axum::handler::Handler<_, _>` is not implemented for fn item `fn(Query<TurnstileData>, State<Arc<AppState>>) -> impl Future<Output = Result<..., ...>> {generate_invite}`
| |
| required by a bound introduced by this call
|
= note: the full name for the type has been written to '/home/runner/work/api-rs/api-rs/target/debug/deps/api_rs-f442185eb3b3c39a.long-type-7807758732044355303.txt'
= note: consider using `--verbose` to print the full type name to the console
= note: Consider using `#[axum::debug_handler]` to improve the error message
= help: the following other types implement trait `axum::handler::Handler<T, S>`:
`axum::handler::Layered<L, H, T, S>` implements `axum::handler::Handler<T, S>`
`axum::routing::MethodRouter<S>` implements `axum::handler::Handler<(), S>`
note: required by a bound in `axum::routing::get`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.7.9/src/routing/method_routing.rs:439:1
|
439 | top_level_handler_fn!(get, GET);
| ^^^^^^^^^^^^^^^^^^^^^^---^^^^^^
| | |
| | required by a bound in this function
| required by this bound in `get`
= note: this error originates in the macro `top_level_handler_fn` (in Nightly builds, run with -Z macro-backtrace for more info)
|
Run auguwu/[email protected]:
src/main.rs#L18
error[E0277]: the trait bound `bb8_redis::RedisConnectionManager: bb8::ManageConnection` is not satisfied
--> src/cache.rs:18:11
|
18 | pool: Pool<RedisConnectionManager>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `bb8::ManageConnection` is not implemented for `bb8_redis::RedisConnectionManager`
|
note: required by a bound in `bb8::Pool`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-0.8.6/src/api.rs:16:8
|
14 | pub struct Pool<M>
| ---- required by a bound in this struct
15 | where
16 | M: ManageConnection,
| ^^^^^^^^^^^^^^^^ required by this bound in `Pool`
|
Run auguwu/[email protected]:
src/main.rs#L27
error[E0277]: the trait bound `bb8_redis::RedisConnectionManager: bb8::ManageConnection` is not satisfied
--> src/cache.rs:27:24
|
27 | let pool = Pool::builder().max_size(20).build(manager).await?;
| ^^^^^^^^^^^^^^^ the trait `bb8::ManageConnection` is not implemented for `bb8_redis::RedisConnectionManager`
|
note: required by a bound in `bb8::Pool::<M>::builder`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-0.8.6/src/api.rs:41:9
|
41 | impl<M: ManageConnection> Pool<M> {
| ^^^^^^^^^^^^^^^^ required by this bound in `Pool::<M>::builder`
42 | /// Returns a `Builder` instance to configure a new pool.
43 | pub fn builder() -> Builder<M> {
| ------- required by a bound in this associated function
|
Run auguwu/[email protected]:
src/main.rs#L27
error[E0277]: the trait bound `bb8_redis::RedisConnectionManager: bb8::ManageConnection` is not satisfied
--> src/cache.rs:27:24
|
27 | let pool = Pool::builder().max_size(20).build(manager).await?;
| ^^^^ the trait `bb8::ManageConnection` is not implemented for `bb8_redis::RedisConnectionManager`
|
note: required by a bound in `bb8::Pool`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-0.8.6/src/api.rs:16:8
|
14 | pub struct Pool<M>
| ---- required by a bound in this struct
15 | where
16 | M: ManageConnection,
| ^^^^^^^^^^^^^^^^ required by this bound in `Pool`
|
Run auguwu/[email protected]:
src/main.rs#L27
error[E0277]: the trait bound `bb8_redis::RedisConnectionManager: bb8::ManageConnection` is not satisfied
--> src/cache.rs:27:53
|
27 | let pool = Pool::builder().max_size(20).build(manager).await?;
| ^^^^^ the trait `bb8::ManageConnection` is not implemented for `bb8_redis::RedisConnectionManager`
|
note: required by a bound in `bb8::Builder::<M>::build`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-0.8.6/src/api.rs:187:9
|
187 | impl<M: ManageConnection> Builder<M> {
| ^^^^^^^^^^^^^^^^ required by this bound in `Builder::<M>::build`
...
367 | pub async fn build(self, manager: M) -> Result<Pool<M>, M::Error> {
| ----- required by a bound in this associated function
|
Run auguwu/[email protected]:
src/main.rs#L27
error[E0277]: the trait bound `bb8_redis::RedisConnectionManager: bb8::ManageConnection` is not satisfied
--> src/cache.rs:27:24
|
27 | let pool = Pool::builder().max_size(20).build(manager).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `bb8::ManageConnection` is not implemented for `bb8_redis::RedisConnectionManager`
|
note: required by a bound in `bb8::Builder<M>`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-0.8.6/src/api.rs:187:9
|
187 | impl<M: ManageConnection> Builder<M> {
| ^^^^^^^^^^^^^^^^ required by this bound in `Builder<M>`
|
Run auguwu/[email protected]:
src/main.rs#L27
error[E0277]: the trait bound `bb8_redis::RedisConnectionManager: bb8::ManageConnection` is not satisfied
--> src/cache.rs:27:68
|
27 | let pool = Pool::builder().max_size(20).build(manager).await?;
| ^^^^^ the trait `bb8::ManageConnection` is not implemented for `bb8_redis::RedisConnectionManager`
|
note: required by a bound in `bb8::Builder<M>`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-0.8.6/src/api.rs:187:9
|
187 | impl<M: ManageConnection> Builder<M> {
| ^^^^^^^^^^^^^^^^ required by this bound in `Builder<M>`
|
Run auguwu/[email protected]:
src/main.rs#L27
error[E0277]: the trait bound `bb8_redis::RedisConnectionManager: bb8::ManageConnection` is not satisfied
--> src/cache.rs:27:24
|
27 | let pool = Pool::builder().max_size(20).build(manager).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `bb8::ManageConnection` is not implemented for `bb8_redis::RedisConnectionManager`
|
note: required by a bound in `bb8::Pool`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bb8-0.8.6/src/api.rs:16:8
|
14 | pub struct Pool<M>
| ---- required by a bound in this struct
15 | where
16 | M: ManageConnection,
| ^^^^^^^^^^^^^^^^ required by this bound in `Pool`
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run auguwu/[email protected]:
src/main.rs#L7
warning: unused import: `AsyncCommands`
--> src/cache.rs:7:13
|
7 | use redis::{AsyncCommands, Client, ConnectionLike};
| ^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
Loading