summaryrefslogtreecommitdiffstats
path: root/src/traverse.rs
diff options
context:
space:
mode:
authorcinerea0 <cinerea0@disroot.org>2023-12-11 14:51:53 -0500
committercinerea0 <cinerea0@disroot.org>2023-12-11 14:51:53 -0500
commit9123ee7e648fab654520c33df672c053d5797966 (patch)
tree4b7af4573ca9c2c673e4a4dadb779b55ed32cdd2 /src/traverse.rs
parent491b5587ca0e9d157b9a4f8907c35137d57983d5 (diff)
fix: EntryData size test passes on 32-bit (#197)
EntryData doesn't need to be exactly 80 to test memory consumption, just less than it.
Diffstat (limited to 'src/traverse.rs')
-rw-r--r--src/traverse.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/traverse.rs b/src/traverse.rs
index 157ce2c..b2c8724 100644
--- a/src/traverse.rs
+++ b/src/traverse.rs
@@ -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>()
);
}
}