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
When using epee_flatten on a struct with only 1 field it gives an unreachable expression error.
for example:
/// A Support Flags Response#[derive(Debug,Clone,EpeeObject,PartialEq,Eq)]pubstructSupportFlagsResponse{/// Support Flags#[epee_flatten]pubsupport_flags:PeerSupportFlags,}
This is because the add field function expands to:
When using
epee_flatten
on a struct with only 1 field it gives an unreachable expression error.for example:
This is because the add field function expands to:
and the Ok(true) is unreachable
Edit: This will happen no matter how many fields you have as long as they are all flattened:
The text was updated successfully, but these errors were encountered: