From c984945cd5d5b81c89510996988f31cdfdb4bd2b Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Thu, 10 Mar 2022 09:08:32 +0100 Subject: Fix clippy warning --- askama_derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_derive/src/lib.rs') diff --git a/askama_derive/src/lib.rs b/askama_derive/src/lib.rs index 2409ba4..00936d0 100644 --- a/askama_derive/src/lib.rs +++ b/askama_derive/src/lib.rs @@ -18,7 +18,7 @@ pub fn derive_template(input: TokenStream) -> TokenStream { let ast: syn::DeriveInput = syn::parse(input).unwrap(); match build_template(&ast) { Ok(source) => source.parse().unwrap(), - Err(e) => e.to_compile_error().into(), + Err(e) => e.into_compile_error().into(), } } -- cgit