chore: Add missing symbol (#2909)

Signed-off-by: tiaoxizhan <tiaoxizhan@outlook.com>
This commit is contained in:
tiaoxizhan 2024-09-13 01:44:44 +08:00 committed by Jonas Platte
parent de9290a8b7
commit f446b420ba
No known key found for this signature in database
GPG key ID: 7D261D771D915378

View file

@ -180,7 +180,7 @@ pub(crate) fn expand(item: syn::Item, tr: Trait) -> syn::Result<TokenStream> {
variants,
} = item;
let generics_error = format!("`#[derive({tr})] on enums don't support generics");
let generics_error = format!("`#[derive({tr})]` on enums don't support generics");
if !generics.params.is_empty() {
return Err(syn::Error::new_spanned(generics, generics_error));