Skip to content

[Bug]: apalis-redis-1.0.0-beta.1 compile failed #11

@holmofy

Description

@holmofy

What happened?

I'm upgrading to version 1.0.0, but the compilation failed.

https://github.com/spring-rs/spring-rs/actions/runs/19783650469/job/56687171632?pr=199#step:5:1761

Expected behavior

Compilation successful

Steps to reproduce

spring-rs/spring-rs#199

Minimal code example

Version

1.0.0-alpha.1

Environment

  • OS:
  • Rust version:
  • Cargo version:

Relevant log output

error[E0107]: struct takes 3 generic arguments but 2 generic arguments were supplied
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/apalis-redis-1.0.0-beta.1/src/lib.rs:283:33
    |
283 |             |res: Result<Option<Task<Args, RedisContext>>, RedisError>| async move {
    |                                 ^^^^ ----  ------------ supplied 2 generic arguments
    |                                 |
    |                                 expected 3 generic arguments
    |
note: struct defined here, with 3 generic parameters: `Args`, `Context`, `IdType`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/apalis-core-1.0.0-beta.2/src/task/mod.rs:138:12
    |
138 | pub struct Task<Args, Context, IdType> {
    |            ^^^^ ----  -------  ------
help: add missing generic argument
    |
283 |             |res: Result<Option<Task<Args, RedisContext, IdType>>, RedisError>| async move {
    |                                                        ++++++++

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions