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) => {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user