From 93b6e9401f694fb7d64b16409a8dfc63204a0f70 Mon Sep 17 00:00:00 2001 From: maratik123 Date: Sat, 23 Mar 2024 17:34:39 +0300 Subject: [PATCH] Simplify `VertexInputState::default()` (#2502) --- vulkano/src/pipeline/graphics/vertex_input/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vulkano/src/pipeline/graphics/vertex_input/mod.rs b/vulkano/src/pipeline/graphics/vertex_input/mod.rs index 29279234..dce36b99 100644 --- a/vulkano/src/pipeline/graphics/vertex_input/mod.rs +++ b/vulkano/src/pipeline/graphics/vertex_input/mod.rs @@ -448,11 +448,7 @@ impl VertexInputState { impl Default for VertexInputState { #[inline] fn default() -> Self { - Self { - bindings: HashMap::default(), - attributes: HashMap::default(), - _ne: crate::NonExhaustive(()), - } + Self::new() } }