Skip to content

Commit

Permalink
rust 1.65 does a better job with enum packing
Browse files Browse the repository at this point in the history
so adjust test expectations

refs: #2700
  • Loading branch information
wez committed Nov 4, 2022
1 parent a6fc932 commit 40e08fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion termwiz/src/escape/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl Action {
#[cfg(all(test, target_pointer_width = "64"))]
#[test]
fn action_size() {
assert_eq!(std::mem::size_of::<Action>(), 40);
assert_eq!(std::mem::size_of::<Action>(), 32);
assert_eq!(std::mem::size_of::<DeviceControlMode>(), 16);
assert_eq!(std::mem::size_of::<ControlCode>(), 1);
assert_eq!(std::mem::size_of::<CSI>(), 32);
Expand Down
2 changes: 1 addition & 1 deletion termwiz/src/surface/line/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ mod test {
#[test]
#[cfg(target_pointer_width = "64")]
fn memory_usage() {
assert_eq!(std::mem::size_of::<CellStorage>(), 72);
assert_eq!(std::mem::size_of::<CellStorage>(), 64);
assert_eq!(std::mem::size_of::<VecStorage>(), 24);
}
}

0 comments on commit 40e08fa

Please sign in to comment.