Add doc links to newly added load_callback return err (#3222)

This commit is contained in:
Dominik Maier 2025-05-14 09:41:26 +02:00 committed by GitHub
parent c44802cf02
commit b138c528ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,7 +58,7 @@ impl SyncFromDiskMetadata {
}
/// A stage that loads testcases from disk to sync with other fuzzers such as AFL++
/// When syncing, the stage will ignore `Error::InvalidInput` and will skip the file.
/// When syncing, the stage will ignore [`Error::InvalidInput`] and will skip the file.
#[derive(Debug)]
pub struct SyncFromDiskStage<CB, E, EM, I, S, Z> {
name: Cow<'static, str>,
@ -172,7 +172,7 @@ where
impl<CB, E, EM, I, S, Z> SyncFromDiskStage<CB, E, EM, I, S, Z> {
/// Creates a new [`SyncFromDiskStage`]
/// To skip a file, you can return `Error::invalid_input` in `load_callback`
/// To skip a file, you can return [`Error::invalid_input()`] from the provided `load_callback`
#[must_use]
pub fn new(sync_dirs: Vec<PathBuf>, load_callback: CB, interval: Duration, name: &str) -> Self {
Self {