...and wasm tests too

This commit is contained in:
Scott McMurray 2025-07-18 17:29:33 -07:00
parent 08b816ff18
commit 25a804ab06

View file

@ -10,6 +10,8 @@ pub struct Vector([i32; 4]);
impl Vector {
pub const fn to_array(self) -> [i32; 4] {
self.0
// This used to just be `.0`, but that was banned in
// <https://github.com/rust-lang/compiler-team/issues/838>
unsafe { std::mem::transmute(self) }
}
}