Add Default impl for TextureBuilder

This commit is contained in:
Jarrod Doyle 2024-04-26 21:21:54 +01:00
parent b848b78e86
commit ee5308ac23
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 2 additions and 4 deletions

View File

@ -44,16 +44,14 @@ impl Default for TextureAttributes {
} }
} }
#[derive(Debug)] #[derive(Debug, Default)]
pub struct TextureBuilder { pub struct TextureBuilder {
pub attributes: TextureAttributes, pub attributes: TextureAttributes,
} }
impl TextureBuilder { impl TextureBuilder {
pub fn new() -> Self { pub fn new() -> Self {
Self { Self::default()
attributes: Default::default(),
}
} }
#[inline] #[inline]