From f13780ccf82cb8dea931eb33682214012f9f136f Mon Sep 17 00:00:00 2001 From: Benjamin Eckel Date: Mon, 9 Dec 2024 15:13:01 -0600 Subject: [PATCH] fix shadowed var issue --- template/src/lib.rs.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/src/lib.rs.ejs b/template/src/lib.rs.ejs index 95b1441..56f1692 100644 --- a/template/src/lib.rs.ejs +++ b/template/src/lib.rs.ejs @@ -7,7 +7,7 @@ use extism_pdk::*; <% if (hasComment(ex)) { -%> // <%- formatCommentBlock(ex.description, "// ") %> <% } -%> -pub(crate) fn <%= formatIdentifier(ex.name) %>(<%if (ex.input) { %>_input: <%- toRustType(ex.input) %> <% } %>) -> Result<<%if (ex.output) { %> <%- toRustType(ex.output) %> <% } else { %> () <% } %>, Error> { +pub(crate) fn <%= formatIdentifier(ex.name) %>(<%if (ex.input) { %>input: <%- toRustType(ex.input) %> <% } %>) -> Result<<%if (ex.output) { %> <%- toRustType(ex.output) %> <% } else { %> () <% } %>, Error> { <% if (featureFlags['stub-with-code-samples'] && codeSamples(ex, 'rust').length > 0) { -%> <%- codeSamples(ex, 'rust')[0].source %> <% } else { -%>