From ee5308ac237d3b980184f98c5ffd194b4ad294c8 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Fri, 26 Apr 2024 21:21:54 +0100 Subject: [PATCH] Add Default impl for TextureBuilder --- src/texture.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/texture.rs b/src/texture.rs index 01005c9..865f1c2 100644 --- a/src/texture.rs +++ b/src/texture.rs @@ -44,16 +44,14 @@ impl Default for TextureAttributes { } } -#[derive(Debug)] +#[derive(Debug, Default)] pub struct TextureBuilder { pub attributes: TextureAttributes, } impl TextureBuilder { pub fn new() -> Self { - Self { - attributes: Default::default(), - } + Self::default() } #[inline]