fix compiler_error! invocations

This commit is contained in:
Maybe Waffle 2022-08-25 17:01:13 +04:00
parent f13e3b6e4a
commit 66ee68c13b

View file

@ -10,7 +10,7 @@ pub(crate) fn compile_error<T>(data: T) -> Error
where where
T: ToTokens, T: ToTokens,
{ {
Error(TokenStream::from(quote! { compile_error!(#data) })) Error(TokenStream::from(quote! { compile_error! { #data } }))
} }
impl From<Error> for proc_macro::TokenStream { impl From<Error> for proc_macro::TokenStream {