Skip to content

Commit 3bfce1a

Browse files
committed
fix: Fix up the doc tests.
1 parent 60ff92c commit 3bfce1a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/worker.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,12 +453,13 @@ impl WorkerRunnerBuilder {
453453
///
454454
/// # Examples
455455
/// ```rust,no_run
456+
/// # use serde::{Deserialize, Serialize};
456457
/// # use backfill::{WorkerRunner, WorkerConfig, TaskHandler, WorkerContext, IntoTaskHandlerResult};
457-
/// # #[derive(Clone)]
458+
/// # #[derive(Clone, Deserialize, Serialize)]
458459
/// # struct CleanupTask;
459460
/// # impl TaskHandler for CleanupTask {
460461
/// # const IDENTIFIER: &'static str = "cleanup";
461-
/// # async fn run(self, ctx: WorkerContext) -> impl IntoTaskHandlerResult { Ok(()) }
462+
/// # async fn run(self, ctx: WorkerContext) -> impl IntoTaskHandlerResult { Ok::<(), backfill::BackfillError>(()) }
462463
/// # }
463464
/// # async fn example() -> Result<(), backfill::BackfillError> {
464465
/// # let config = WorkerConfig::default();

0 commit comments

Comments
 (0)