Skip to content

Commit

Permalink
chore: Remove alignment assertion
Browse files Browse the repository at this point in the history
Because alignment of `i128` and `u128` is 8 on linux x86_64 and 16 on M1
  • Loading branch information
chubei committed Sep 20, 2023
1 parent 9f4dbed commit e5c6863
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dozer-recordstore/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ use dozer_types::{
// packing these fields while keeping everything aligned.
const MAX_ALIGN: usize = std::mem::align_of::<Field>();

// This asserts at compile time that `ALIGN` is not
// accidentally increased, as that would waste space.
const _ASSERT_ALIGN: usize = 8 - MAX_ALIGN;

#[repr(transparent)]
#[derive(Debug)]
/// `repr(transparent)` inner struct so we can implement drop logic on it
Expand Down

0 comments on commit e5c6863

Please sign in to comment.