Skip to content

Commit

Permalink
chore: Add missing symbol (#2909)
Browse files Browse the repository at this point in the history
Signed-off-by: tiaoxizhan <tiaoxizhan@outlook.com>
  • Loading branch information
tiaoxizhan committed Sep 12, 2024
1 parent 6b2d9f4 commit 680cdcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axum-macros/src/from_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 680cdcb

Please sign in to comment.