From 7aa94e994f27a27fb193cff9a13b2a3beae09a83 Mon Sep 17 00:00:00 2001 From: Jamen Marz Date: Tue, 21 Sep 2021 11:25:54 -0600 Subject: Impl Default for a few structs --- src/geometry/interaction_graph.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/geometry/interaction_graph.rs') diff --git a/src/geometry/interaction_graph.rs b/src/geometry/interaction_graph.rs index e2cc218..b535fa5 100644 --- a/src/geometry/interaction_graph.rs +++ b/src/geometry/interaction_graph.rs @@ -14,6 +14,12 @@ pub struct InteractionGraph { pub(crate) graph: Graph, } +impl Default for InteractionGraph { + fn default() -> Self { + Self::new() + } +} + impl InteractionGraph { /// Creates a new empty collection of collision objects. pub fn new() -> Self { -- cgit