mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-12 13:06:07 +00:00
Prepare for follow-on change
This commit is contained in:
parent
5a7f10964e
commit
cc457a85a2
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user