From 06d208eeb2249a7a160e57071e2ef2001e4f8cc8 Mon Sep 17 00:00:00 2001 From: Pavel Mikhalkevich Date: Sun, 4 Feb 2024 21:31:05 +0500 Subject: [PATCH] Bring 'Tracker' into scope for docs --- src/proto/batch/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/proto/batch/mod.rs b/src/proto/batch/mod.rs index 1e6a829f..461c9521 100644 --- a/src/proto/batch/mod.rs +++ b/src/proto/batch/mod.rs @@ -1,3 +1,6 @@ +#[cfg(doc)] +use crate::Tracker; + use crate::{Error, Job, Producer}; use chrono::{DateTime, Utc}; use derive_builder::Builder; @@ -80,7 +83,7 @@ pub use cmd::{CommitBatch, GetBatchStatus, OpenBatch}; /// effectively building a pipeline this way, since the Faktory guarantees that callback jobs will not be queued unless /// the batch gets committed. /// -/// You can retieve the batch status using a [`Tracker`](struct.Tracker.html): +/// You can retieve the batch status using a [`Tracker`]: /// ```no_run /// # use faktory::Error; /// # use faktory::{Producer, Job, Batch, Tracker, CallbackState};