From 5beb8e8a54055847e3f13692817a57f4f2816c1a Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 6 Aug 2024 19:15:37 +0200 Subject: [PATCH] Prepare for follow-on change --- crates/fj-core/src/core.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/fj-core/src/core.rs b/crates/fj-core/src/core.rs index d4f273c18..5102c2307 100644 --- a/crates/fj-core/src/core.rs +++ b/crates/fj-core/src/core.rs @@ -7,7 +7,6 @@ use crate::{layers::Layers, validation::ValidationConfig}; /// An instance of the Fornjot core /// /// This is the main entry point to `fj-core`'s API. -#[derive(Default)] pub struct Core { /// The layers of data that make up the state of a core instance pub layers: Layers, @@ -16,7 +15,9 @@ pub struct Core { impl Core { /// Construct an instance of `Instance` pub fn new() -> Self { - Self::default() + Self { + layers: Layers::default(), + } } /// Construct an instance of `Instance`, using the provided configuration @@ -25,3 +26,9 @@ impl Core { Self { layers } } } + +impl Default for Core { + fn default() -> Self { + Self::new() + } +}