Remove closures from iselector macro.
This commit is contained in:
@@ -12,23 +12,19 @@ pub(crate) enum IDocumentElement {
|
||||
Section(ISection),
|
||||
}
|
||||
|
||||
iselector!(
|
||||
IDocumentElement,
|
||||
DocumentElement,
|
||||
|registry, original| async {
|
||||
iitem!(
|
||||
registry,
|
||||
original,
|
||||
(
|
||||
organic::types::DocumentElement::Heading,
|
||||
IDocumentElement::Heading,
|
||||
IHeading
|
||||
),
|
||||
(
|
||||
organic::types::DocumentElement::Section,
|
||||
IDocumentElement::Section,
|
||||
ISection
|
||||
),
|
||||
)
|
||||
}
|
||||
);
|
||||
iselector!(IDocumentElement, DocumentElement, original, registry, {
|
||||
iitem!(
|
||||
registry,
|
||||
original,
|
||||
(
|
||||
organic::types::DocumentElement::Heading,
|
||||
IDocumentElement::Heading,
|
||||
IHeading
|
||||
),
|
||||
(
|
||||
organic::types::DocumentElement::Section,
|
||||
IDocumentElement::Section,
|
||||
ISection
|
||||
),
|
||||
)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user