You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to derive just Encode on a struct, using transparent, you are required to add skip_deserializing to all but one struct field, even if you aren't deriving Decode.
error: proc-macro derive panicked
--> beacon_node/lighthouse_network/src/rpc/methods.rs:346:35
|
346 | #[derive(Debug, Clone, PartialEq, Encode)]
| ^^^^^^
|
= help: message: A "transparent" struct must have exactly one non-skipped field (2 fields found)
error: could not compile `lighthouse_network` (lib) due to previous error
If you try to derive just
Encode
on a struct, usingtransparent
, you are required to addskip_deserializing
to all but one struct field, even if you aren't derivingDecode
.Example:
The above results in:
Whereas the following compiles fine:
The text was updated successfully, but these errors were encountered: