From d4b290ebe618272437124a472ed19f3b37c5027e Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 19 Dec 2023 17:31:50 -0500 Subject: [PATCH] Remove unnecessary let statements from render macro. --- src/context/macros.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/context/macros.rs b/src/context/macros.rs index 1b01231..1ed3338 100644 --- a/src/context/macros.rs +++ b/src/context/macros.rs @@ -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 } }