mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 02:18:28 +00:00
Prepare for follow-on change
This commit is contained in:
parent
4de577fdda
commit
5beb8e8a54
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user