Skip to content

Commit

Permalink
add debug_assert!
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Dec 20, 2024
1 parent b1675e5 commit 3ba95cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/tools/lint/ast_buffer/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ impl SerializeCtx {
append_u32(&mut self.buf, span.hi.0);

// No node has more than <10 properties
debug_assert!(prop_count < 10);
self.buf.push(prop_count as u8);

NodeRef(offset)
Expand Down

0 comments on commit 3ba95cd

Please sign in to comment.