From d947b82c95bfb414091cd37552137631de9962b7 Mon Sep 17 00:00:00 2001 From: Jason Davis Date: Thu, 9 Jan 2025 09:04:48 -0600 Subject: [PATCH] Update stable_vec.rs to fix a non-building test after field rename --- sdk/stable-layout/src/stable_vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/stable-layout/src/stable_vec.rs b/sdk/stable-layout/src/stable_vec.rs index 81d270a7e9f893..13d04781f5f2dc 100644 --- a/sdk/stable-layout/src/stable_vec.rs +++ b/sdk/stable-layout/src/stable_vec.rs @@ -174,7 +174,7 @@ mod tests { #[test] fn test_memory_layout() { - assert_eq!(offset_of!(StableVec, ptr), 0); + assert_eq!(offset_of!(StableVec, addr), 0); assert_eq!(offset_of!(StableVec, cap), 8); assert_eq!(offset_of!(StableVec, len), 16); assert_eq!(align_of::>(), 8);