mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add a more complete description of the error (#303)
This commit is contained in:
@ -108,7 +108,8 @@ impl<'a> StructHandler<'a> {
|
|||||||
known_types.contains(&ftype.as_str()) ||
|
known_types.contains(&ftype.as_str()) ||
|
||||||
is_flag_type(ftype) ||
|
is_flag_type(ftype) ||
|
||||||
self.fields_iterator.peek().is_none(),
|
self.fields_iterator.peek().is_none(),
|
||||||
"{ftype} field should be placed as the last one since it's not known. "
|
"`{ftype}` field should be placed as the last one since it's not known.
|
||||||
|
If it's an alias type (which are not supported by proc_macro), be sure to add it to either `known_types` or `get_bit_size` lists in the derive crate."
|
||||||
);
|
);
|
||||||
|
|
||||||
if ftype == "bytes::Bytes" {
|
if ftype == "bytes::Bytes" {
|
||||||
|
|||||||
Reference in New Issue
Block a user