Kriskras99 commented on code in PR #230:
URL: https://github.com/apache/avro-rs/pull/230#discussion_r2219065021
##########
avro/src/bigdecimal.rs:
##########
@@ -50,27 +51,27 @@ pub(crate) fn deserialize_big_decimal(bytes: &Vec<u8>) ->
AvroResult<BigDecimal>
let mut bytes: &[u8] = bytes.as_slice();
let mut big_decimal_buffer = match decode_len(&mut bytes) {
Ok(size) => vec![0u8; size],
- Err(err) => return Err(Error::BigDecimalLen(Box::new(err))),
+ Err(err) => return Err(Details::BigDecimalLen(Box::new(err)).into()),
Review Comment:
No, that would make the Error struct infinitely large (Error -> Details ->
Error -> Details ...)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]