From 391582f7d3cffd301e39bba12d9821dc955e537c Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 17 Mar 2022 16:17:16 +0100 Subject: [PATCH] Fix Clippy warning This one only showed up after extracting the module into a separate crate. No idea why; none of the code changed. --- fj-debug/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fj-debug/src/lib.rs b/fj-debug/src/lib.rs index 643cf1d66..2f29919e6 100644 --- a/fj-debug/src/lib.rs +++ b/fj-debug/src/lib.rs @@ -3,6 +3,7 @@ use parry3d_f64::query::Ray; /// Debug info from the CAD kernel that can be visualized /// /// At this point, this is a placeholder that will be filled with life later. +#[derive(Default)] pub struct DebugInfo { /// Rays being used during face triangulation pub triangle_edge_checks: Vec, @@ -10,9 +11,7 @@ pub struct DebugInfo { impl DebugInfo { pub fn new() -> Self { - Self { - triangle_edge_checks: Vec::new(), - } + Self::default() } pub fn clear(&mut self) {