diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-07-01 15:28:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 15:28:06 +0200 |
commit | b8b82c3ea4ec154581f57b0d00f08f2fd1d871ce (patch) | |
tree | d94e3230479fe44dfe347d452423f98a5a1d8a47 /serde_v8/magic/rawbytes.rs | |
parent | 77c25beaa59d64035c20ef59d93ed5a99677bc93 (diff) |
chore: use Rust 1.62.0 (#15028)
Diffstat (limited to 'serde_v8/magic/rawbytes.rs')
-rw-r--r-- | serde_v8/magic/rawbytes.rs | 4 |
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 } |