Remove unnecessary let statements from render macro.
This commit is contained in:
parent
4bb1f9983a
commit
d4b290ebe6
@ -5,11 +5,9 @@ macro_rules! render {
|
|||||||
($rstruct:ident, $istruct:ident, $original:ident, $render_context:ident, $fnbody:tt) => {
|
($rstruct:ident, $istruct:ident, $original:ident, $render_context:ident, $fnbody:tt) => {
|
||||||
impl $rstruct {
|
impl $rstruct {
|
||||||
pub(crate) fn new(
|
pub(crate) fn new(
|
||||||
render_context: RenderContext<'_>,
|
$render_context: RenderContext<'_>,
|
||||||
original: &$istruct,
|
$original: &$istruct,
|
||||||
) -> Result<$rstruct, CustomError> {
|
) -> Result<$rstruct, CustomError> {
|
||||||
let $original = original;
|
|
||||||
let $render_context = render_context;
|
|
||||||
$fnbody
|
$fnbody
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user