Avoid closures for the intermediate macro.

This commit is contained in:
Tom Alexander
2023-10-29 18:35:42 -04:00
parent 3d44d20384
commit 24b9782146
16 changed files with 40 additions and 51 deletions

View File

@@ -7,12 +7,8 @@ pub(crate) struct IInlineSourceBlock {
pub(crate) value: String,
}
intermediate!(
IInlineSourceBlock,
InlineSourceBlock,
|registry, original| async {
Ok(IInlineSourceBlock {
value: original.value.to_owned(),
})
}
);
intermediate!(IInlineSourceBlock, InlineSourceBlock, original, registry, {
Ok(IInlineSourceBlock {
value: original.value.to_owned(),
})
});