jklamer commented on a change in pull request #1602:
URL: https://github.com/apache/avro/pull/1602#discussion_r829582431



##########
File path: lang/rust/avro/src/decode.rs
##########
@@ -68,10 +68,21 @@ fn decode_seq_len<R: Read>(reader: &mut R) -> 
AvroResult<usize> {
 
 /// Decode a `Value` from avro format given its `Schema`.
 pub fn decode<R: Read>(schema: &Schema, reader: &mut R) -> AvroResult<Value> {
-    fn decode0<R: Read>(
+    let rs = ResolvedSchema::try_from(schema)?;
+    decode_internal(schema, rs.get_names(), &None, reader)
+}
+
+fn decode_internal<R: Read>(

Review comment:
       you're right there probably is not? as far as I can tell. 




-- 
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]


Reply via email to