jklamer commented on code in PR #1672:
URL: https://github.com/apache/avro/pull/1672#discussion_r864418072
##########
lang/rust/avro/src/types.rs:
##########
@@ -355,7 +356,11 @@ impl Value {
}
}
- pub(crate) fn validate_internal(&self, schema: &Schema, names: &NamesRef)
-> Option<String> {
+ pub(crate) fn validate_internal<S: std::borrow::Borrow<Schema>>(
Review Comment:
This allows me to use the same function with both `Names` and `NamesRef`.
Both `Schema` and and `&Schema` implement `Borrow<Schema>`
--
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]