From 66ee68c13bcf74220e97ba10c7b3dc4f37a098d5 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Thu, 25 Aug 2022 17:01:13 +0400 Subject: [PATCH] fix `compiler_error!` invocations --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 60796612..96d0c694 100644 --- a/src/error.rs +++ b/src/error.rs @@ -10,7 +10,7 @@ pub(crate) fn compile_error(data: T) -> Error where T: ToTokens, { - Error(TokenStream::from(quote! { compile_error!(#data) })) + Error(TokenStream::from(quote! { compile_error! { #data } })) } impl From for proc_macro::TokenStream {