Prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-08-06 19:26:17 +02:00
parent 5a7f10964e
commit cc457a85a2

View File

@ -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 }
}
}