Skip to content

Commit

Permalink
Prepare for follow-on change
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Aug 6, 2024
1 parent 5a7f109 commit cc457a8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/fj-core/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ pub struct Core {
impl Core {
/// Construct an instance of `Core`
pub fn new() -> Self {
Self {
layers: Layers::default(),
}
Self::from_layers(Layers::default())
}

/// Construct an instance of `Core`, using the provided configuration
pub fn with_validation_config(config: ValidationConfig) -> Self {
let layers = Layers::with_validation_config(config);
Self::from_layers(layers)
}

fn from_layers(layers: Layers) -> Self {
Self { layers }
}
}
Expand Down

0 comments on commit cc457a8

Please sign in to comment.