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 { -%>