impl Default on Processing
@@ -411,16 +411,21 @@ impl Scheduler {
}
}
-#[derive(Debug, Default, PartialEq)]
+#[derive(Debug, PartialEq)]
pub enum Processing {
DocumentAdditions(Vec<TaskId>),
IndexUpdate(TaskId),
Dump(TaskId),
/// Variant used when there is nothing to process.
- #[default]
Nothing,
}
+impl Default for Processing {
+ fn default() -> Self {
+ Self::Nothing
+ }
+}
+
enum ProcessingIter<'a> {
Many(slice::Iter<'a, TaskId>),
Single(Option<TaskId>),
