Merge pull request #34 from Svenskunganka/master

Use std::result::Result in derive macro to allow custom Result types
This commit is contained in:
Kogia-sima 2020-11-22 11:33:53 +09:00 committed by GitHub
commit 4e949848d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ fn derive_template_impl(tokens: TokenStream) -> Result<TokenStream, syn::Error>
let tokens = quote! {
impl #impl_generics sailfish::TemplateOnce for #name #ty_generics #where_clause {
fn render_once_to_string(self, buf: &mut String) -> Result<(), sailfish::runtime::RenderError> {
fn render_once_to_string(self, buf: &mut String) -> std::result::Result<(), sailfish::runtime::RenderError> {
#include_bytes_seq;
use sailfish::runtime as __sf_rt;