clippy fix

This commit is contained in:
Anton-4 2021-01-01 15:49:19 +01:00
parent df5661541c
commit 6e245b20c9

View File

@ -14,9 +14,7 @@ pub struct QuadBufferBuilder {
impl QuadBufferBuilder {
pub fn new() -> Self {
Self {
vertex_data: Vec::new(),
index_data: Vec::new(),
current_quad: 0,
..Default::default()
}
}
@ -78,6 +76,16 @@ impl QuadBufferBuilder {
}
}
impl Default for QuadBufferBuilder {
fn default() -> Self {
Self {
vertex_data: Vec::new(),
index_data: Vec::new(),
current_quad: 0,
}
}
}
pub struct RectBuffers {
pub vertex_buffer: wgpu::Buffer,
pub index_buffer: wgpu::Buffer,