Skip to content

Commit

Permalink
Fix NextStep visibility in task! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
imbolc committed Jun 30, 2024
1 parent 94c4770 commit b9c1923
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ edition = "2021"
license = "MIT"
name = "pg_task"
repository = "https://github.com/imbolc/pg_task"
version = "0.1.0"
version = "0.1.1"

[dependencies]
async-trait = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ macro_rules! task {
match self {
$(Self::$variant(inner) => inner.step(db).await.map(|next|
match next {
NextStep::None => NextStep::None,
NextStep::Now(x) => NextStep::Now(x.into()),
NextStep::Delayed(x, d) => NextStep::Delayed(x.into(), d),
$crate::NextStep::None => $crate::NextStep::None,
$crate::NextStep::Now(x) => $crate::NextStep::Now(x.into()),
$crate::NextStep::Delayed(x, d) => $crate::NextStep::Delayed(x.into(), d),
}
),)*
}
Expand Down

0 comments on commit b9c1923

Please sign in to comment.