Skip to content

Commit

Permalink
Update stable_vec.rs to fix a non-building test after field rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-nitro committed Jan 10, 2025
1 parent 3a12f12 commit d947b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/stable-layout/src/stable_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ mod tests {

#[test]
fn test_memory_layout() {
assert_eq!(offset_of!(StableVec<i32>, ptr), 0);
assert_eq!(offset_of!(StableVec<i32>, addr), 0);
assert_eq!(offset_of!(StableVec<i32>, cap), 8);
assert_eq!(offset_of!(StableVec<i32>, len), 16);
assert_eq!(align_of::<StableVec<i32>>(), 8);
Expand Down

0 comments on commit d947b82

Please sign in to comment.