processing::Nothing return BatchContent::Empty instead of panic

This commit is contained in:
ad hoc 2022-05-26 12:04:27 +02:00
parent 5a2972fc19
commit a9ef399a6b
No known key found for this signature in database
GPG Key ID: 4F00A782990CC643

View File

@ -158,7 +158,7 @@ impl TaskStore {
debug_assert!(matches!(task.content, TaskContent::Dump { .. })); debug_assert!(matches!(task.content, TaskContent::Dump { .. }));
BatchContent::Dump(task) BatchContent::Dump(task)
} }
Processing::Nothing => unreachable!(), Processing::Nothing => BatchContent::Empty,
}; };
Ok((processing, content)) Ok((processing, content))