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 {