Skip to content

Commit

Permalink
add conditional compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Dec 5, 2024
1 parent bad85da commit d142544
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,14 @@ impl<B: BackingStorage> TaskGuardImpl<'_, B> {
// This category is used for non-persisted data
}
TaskDataCategory::Data => {
#[cfg(debug_assertions)]
debug_assert!(
self.category == TaskDataCategory::Data
|| self.category == TaskDataCategory::All
);
}
TaskDataCategory::Meta => {
#[cfg(debug_assertions)]
debug_assert!(
self.category == TaskDataCategory::Meta
|| self.category == TaskDataCategory::All
Expand Down

0 comments on commit d142544

Please sign in to comment.