Merge pull request #1861 from mitchmindtree/nightly-borrowcheck-err-workaround

Workaround rust nightly borrowcheck error (#1860)
This commit is contained in:
Eric Huss 2022-07-22 07:26:28 -07:00 committed by GitHub
commit 8f01d0234f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -149,8 +149,8 @@ fn render(
_h.template()
.ok_or_else(|| RenderError::new("Error with the handlebars template"))
.and_then(|t| {
let mut local_rc = rc.clone();
let local_ctx = Context::wraps(&context)?;
let mut local_rc = rc.clone();
t.render(r, &local_ctx, &mut local_rc, out)
})?;