summaryrefslogtreecommitdiff
path: root/serde_v8/magic/rawbytes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'serde_v8/magic/rawbytes.rs')
-rw-r--r--serde_v8/magic/rawbytes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/serde_v8/magic/rawbytes.rs b/serde_v8/magic/rawbytes.rs
index 2189ebfc3..4e41d313a 100644
--- a/serde_v8/magic/rawbytes.rs
+++ b/serde_v8/magic/rawbytes.rs
@@ -87,11 +87,11 @@ mod tests {
#[test]
fn bytes_layout() {
- // SAFETY: ensuring layout is the same
let u1: [usize; 4] =
+ // SAFETY: ensuring layout is the same
unsafe { mem::transmute(from_static(HELLO.as_bytes())) };
- // SAFETY: ensuring layout is the same
let u2: [usize; 4] =
+ // SAFETY: ensuring layout is the same
unsafe { mem::transmute(bytes::Bytes::from_static(HELLO.as_bytes())) };
assert_eq!(u1[..3], u2[..3]); // Struct bytes are equal besides Vtables
}