Skip to content

Commit

Permalink
fix clippy ?
Browse files Browse the repository at this point in the history
  • Loading branch information
pxp9 committed Dec 21, 2024
1 parent 97aa430 commit 7d1917c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions fang/src/asynk/async_runnable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ pub trait AsyncRunnable: Send + Sync {
///
/**
```rust
fn cron(&self) -> Option<Scheduled> {
let expression = "0/20 * * * Aug-Sep * 2022/1";
Some(Scheduled::CronPattern(expression.to_string()))
}
fn cron(&self) -> Option<Scheduled> {
let expression = "0/20 * * * Aug-Sep * 2022/1";
Some(Scheduled::CronPattern(expression.to_string()))
}
```
*/

/// In order to schedule a task once, use the `Scheduled::ScheduleOnce` enum variant.
fn cron(&self) -> Option<Scheduled> {
None
Expand Down

0 comments on commit 7d1917c

Please sign in to comment.