Closed mati865 closed 2 months ago
Fixes https://github.com/lerouxrgd/rsgen-avro/issues/68
Reverting implementation commit makes testsuite fail:
... <impl From<Vec<u8>> for UnionStringLongDoubleBooleanBytes { < fn from(v: Vec<u8>) -> Self { < Self::Bytes(v) < } <} < <impl TryFrom<UnionStringLongDoubleBooleanBytes> for Vec<u8> { < type Error = UnionStringLongDoubleBooleanBytes; < < fn try_from(v: UnionStringLongDoubleBooleanBytes) -> Result<Self, Self::Error> { < if let UnionStringLongDoubleBooleanBytes::Bytes(v) = v { < Ok(v) < } else { < Err(v) < } < } <}
I think modified test should suffice because the problem in #68 was due to Bytes variant being ignored.
Bytes
Thanks for the fix !
Fixes https://github.com/lerouxrgd/rsgen-avro/issues/68
Reverting implementation commit makes testsuite fail:
I think modified test should suffice because the problem in #68 was due to
Bytes
variant being ignored.