Fix Clippy warning

This one only showed up after extracting the module into a separate
crate. No idea why; none of the code changed.
This commit is contained in:
Hanno Braun 2022-03-17 16:17:16 +01:00
parent 9d5fc6903e
commit 391582f7d3

View File

@ -3,6 +3,7 @@ use parry3d_f64::query::Ray;
/// Debug info from the CAD kernel that can be visualized /// Debug info from the CAD kernel that can be visualized
/// ///
/// At this point, this is a placeholder that will be filled with life later. /// At this point, this is a placeholder that will be filled with life later.
#[derive(Default)]
pub struct DebugInfo { pub struct DebugInfo {
/// Rays being used during face triangulation /// Rays being used during face triangulation
pub triangle_edge_checks: Vec<TriangleEdgeCheck>, pub triangle_edge_checks: Vec<TriangleEdgeCheck>,
@ -10,9 +11,7 @@ pub struct DebugInfo {
impl DebugInfo { impl DebugInfo {
pub fn new() -> Self { pub fn new() -> Self {
Self { Self::default()
triangle_edge_checks: Vec::new(),
}
} }
pub fn clear(&mut self) { pub fn clear(&mut self) {