Refactor: Fix minor clippy warning

This commit is contained in:
Stephen Seo 2024-03-17 18:53:07 +09:00
parent bf1fc24011
commit 25b80b0d6d

View file

@ -1679,8 +1679,8 @@ impl VulkanApp {
);
}
{
let data_ptr_vertices: &mut [Vertex; 3] = unsafe { std::mem::transmute(data_ptr) };
unsafe {
let data_ptr_vertices: *mut [Vertex; 3] = std::mem::transmute(data_ptr);
*data_ptr_vertices = VERTICES;
}