If a Snafu derive has accidentally been left in an enum definition, the error: Only struct-like and unit enum variants are supported error can be confusing, because it points only to the offending variant, not to the Snafu derive, and the message doesn't mention snafu at all.
Please consider making that error a little more specific; say:
error: Snafu supports only struct-like and unit enum variants
If a
Snafu
derive has accidentally been left in an enum definition, theerror: Only struct-like and unit enum variants are supported
error can be confusing, because it points only to the offending variant, not to theSnafu
derive, and the message doesn't mentionsnafu
at all.Please consider making that error a little more specific; say: