Skip to content

Commit b14eed6

Browse files
curryyzhengLuthaf
authored andcommitted
fix: typo in panic
1 parent f8c8a70 commit b14eed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soa-derive-internal/src/input.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Input {
5656
match meta.clone() {
5757
Meta::List(MetaList { nested, .. }) => {
5858
let [soa_type, attr]: [NestedMeta; 2] =
59-
nested.into_iter().collect::<Vec<_>>().try_into().unwrap_or_else(|_| panic!("expected #[soa_derive(\"Types, To, Add, Attribute\", \"Attributes\", got #[{}])]", quote!(#meta)));
59+
nested.into_iter().collect::<Vec<_>>().try_into().unwrap_or_else(|_| panic!("expected #[soa_attr(\"Types, To, Add, Attribute\", \"Attribute\")], got #[{}]", quote!(#meta)));
6060
let attr = match attr {
6161
NestedMeta::Meta(meta) => meta,
6262
NestedMeta::Lit(_) => {
@@ -81,7 +81,7 @@ impl Input {
8181
}
8282
}
8383
}
84-
_ => panic!("expected #[soa_attr(...), got #[{}]]", quote!(#meta)),
84+
_ => panic!("expected #[soa_attr(...)], got #[{}]", quote!(#meta)),
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)