style: rustfmt run

This commit is contained in:
alphafetus committed 2026-05-08 16:51:18 -04:00
1 parent e7659ba387
commit 0661494b0f
17 files changed
+259 -227

No files matched your search

+6 -4
View File
@@ -1,15 +1,17 @@
use vulkano::buffer::BufferContents;
use vulkano::pipeline::graphics::vertex_input::Vertex;
#[derive(Debug, BufferContents, Vertex)]
#[derive(Debug, Clone, BufferContents, Vertex)]
#[repr(C)]
pub struct Vertex3 {
#[format(R32G32B32_SFLOAT)]
pub(crate) position: [f32; 3],
}
impl From<&[f32; 3]> for Vertex3 {
fn from(v: &[f32; 3]) -> Self {
Self { position: v.clone() }
impl From<[f32; 3]> for Vertex3 {
fn from(v: [f32; 3]) -> Self {
Self {
position: v.clone(),
}
}
}