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_shared/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'askama_shared') diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index 994662c..f8d5729 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -307,7 +307,7 @@ impl CompileError { } } - pub fn to_compile_error(self) -> TokenStream { + pub fn into_compile_error(self) -> TokenStream { syn::Error::new(self.span, self.msg).to_compile_error() } } -- cgit