mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
clippy fix
This commit is contained in:
parent
df5661541c
commit
6e245b20c9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user