Skip to content

Commit

Permalink
Merge pull request #198 from cinerea0/fix-32bit-test
Browse files Browse the repository at this point in the history
fix: EntryData size test passes on 32-bit (#197)
  • Loading branch information
Byron committed Dec 11, 2023
2 parents 491b558 + 9123ee7 commit 1b838f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/traverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,10 @@ mod tests {

#[test]
fn size_of_entry_data() {
assert_eq!(
std::mem::size_of::<EntryData>(),
80,
"the size of this should not change unexpectedly as it affects overall memory consumption"
assert!(
std::mem::size_of::<EntryData>() <= 80,
"the size of this ({}) should not exceed 80 as it affects overall memory consumption",
std::mem::size_of::<EntryData>()
);
}
}

0 comments on commit 1b838f9

Please sign in to comment.