...and wasm tests too
This commit is contained in:
parent
08b816ff18
commit
25a804ab06
1 changed files with 3 additions and 1 deletions
|
|
@ -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) }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue