Remove unnecessary let statements from render macro.

This commit is contained in:
Tom Alexander 2023-12-19 17:31:50 -05:00
parent 4bb1f9983a
commit d4b290ebe6
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -5,11 +5,9 @@ macro_rules! render {
($rstruct:ident, $istruct:ident, $original:ident, $render_context:ident, $fnbody:tt) => {
impl $rstruct {
pub(crate) fn new(
render_context: RenderContext<'_>,
original: &$istruct,
$render_context: RenderContext<'_>,
$original: &$istruct,
) -> Result<$rstruct, CustomError> {
let $original = original;
let $render_context = render_context;
$fnbody
}
}