Closed blackbeam closed 5 years ago
Hi.
This PR is a straightforward fix for the issue where the following snippet of code won't compile with error: cannot be implemented for enums with less than two variants:
error: cannot be implemented for enums with less than two variants
#[derive(Read, Write)] enum Stream { Some(SomeStream), #[cfg(features = "other")] Other(OtherStream), }
Looks good, thanks!
bors r+
Published in 0.9.1.
Hi.
This PR is a straightforward fix for the issue where the following snippet of code won't compile with
error: cannot be implemented for enums with less than two variants
: