marcosschroh opened a new pull request, #2774:
URL: https://github.com/apache/avro/pull/2774

   ## What is the purpose of the change
   
   - Continuation of  
[AVRO-3950](https://issues.apache.org/jira/browse/AVRO-3950)
   - Some code blocks have been removed because they are never reach (mainly 
Errors)
   - Record and Enums can be in the same pattern matching
   - For `Duration` type we need to always return `Ok(())` as we know that the 
`writer` and `reader` schemas are the same types before the match clause. The 
match can also be removed if we add a new method `is_duration` and we use it 
[here](https://github.com/apache/avro/blob/main/lang/rust/avro/src/schema_compatibility.rs#L347)
   
   ## Verifying this change
   
   - This change is a trivial rework / code cleanup without any test coverage.


-- 
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: dev-unsubscr...@avro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to