Skip to content

Commit ab7f4f3

Browse files
committed
chore: fix debug assertions
1 parent 89fb872 commit ab7f4f3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • libs/@local/hashql/eval/src/postgres/authorization

libs/@local/hashql/eval/src/postgres/authorization/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,15 @@ impl<A: Allocator + Clone, S: Allocator> PatchPreparedQueryLayer<A, S>
214214
// result, and not to one of its parts.
215215
*expression = Expression::subtract(base, keys_to_remove.clone()).grouped();
216216

217-
if cfg!(debug_assertions) {
217+
#[cfg(debug_assertions)]
218+
{
218219
grafted_columns += 1;
219220
}
220221
}
221222
}
222223

223-
if cfg!(debug_assertions) {
224+
#[cfg(debug_assertions)]
225+
{
224226
debug_assert_eq!(
225227
grafted_columns, 2,
226228
"entity_editions LATERAL must contain both `properties` and `property_metadata` \

0 commit comments

Comments
 (0)