Introduce a registry into the conversion to intermediate format.
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
use crate::error::CustomError;
|
||||
|
||||
use super::registry::Registry;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct ISection {}
|
||||
|
||||
impl ISection {
|
||||
pub(crate) fn new(section: &organic::types::Section<'_>) -> Result<ISection, CustomError> {
|
||||
pub(crate) fn new(
|
||||
registry: &mut Registry<'_>,
|
||||
section: &organic::types::Section<'_>,
|
||||
) -> Result<ISection, CustomError> {
|
||||
Ok(ISection {})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user