Avoid closures for the intermediate macro.
This commit is contained in:
@@ -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(),
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user