mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-27 15:00:31 +01:00
chore: Add missing symbol (#2909)
Signed-off-by: tiaoxizhan <tiaoxizhan@outlook.com>
This commit is contained in:
parent
6b2d9f4522
commit
680cdcba7c
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue