diff --git a/crates/relax-macros/src/lib.rs b/crates/relax-macros/src/lib.rs index 079a3b1..c2e6b82 100644 --- a/crates/relax-macros/src/lib.rs +++ b/crates/relax-macros/src/lib.rs @@ -19,13 +19,13 @@ fn derive_impl(input: syn::DeriveInput) -> syn::Result { if relax_attrs.is_empty() { return Err(syn::Error::new_spanned( - input, + input.ident, "expected #[relax(StructName)] attrubute", )); } if relax_attrs.len() > 1 { return Err(syn::Error::new_spanned( - input, + input.ident, "expected only one #[relax(StructName)] attrubute on top of the struct", )); }