chore: fix typo in RlpDecodableWrapper derive (#3763)

This commit is contained in:
Dan Cline
2023-07-13 14:46:56 -04:00
committed by GitHub
parent 99f00eb8c2
commit ac12cc4731

View File

@@ -72,12 +72,12 @@ pub(crate) fn impl_decodable(ast: &syn::DeriveInput) -> Result<TokenStream> {
}
pub(crate) fn impl_decodable_wrapper(ast: &syn::DeriveInput) -> Result<TokenStream> {
let body = parse_struct(ast, "RlpEncodableWrapper")?;
let body = parse_struct(ast, "RlpDecodableWrapper")?;
assert_eq!(
body.fields.iter().count(),
1,
"#[derive(RlpEncodableWrapper)] is only defined for structs with one field."
"#[derive(RlpDecodableWrapper)] is only defined for structs with one field."
);
let name = &ast.ident;