This is an automated email from the ASF dual-hosted git repository. mgrigorov pushed a commit to branch branch-1.11 in repository https://gitbox.apache.org/repos/asf/avro.git
commit b7c03c38375b32ad08792cae9ca3786692745656 Author: Martin Tzvetanov Grigorov <[email protected]> AuthorDate: Thu Aug 31 13:31:28 2023 +0300 AVRO-3649: default for union inside union Fix build after cherry-picking https://github.com/apache/avro/commit/c28dbe9f7d485f5e5d1df41df1bb2c12c838b5db to branch-1.11 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> --- lang/rust/avro/src/schema.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/rust/avro/src/schema.rs b/lang/rust/avro/src/schema.rs index a27cfe8c2..55e098807 100644 --- a/lang/rust/avro/src/schema.rs +++ b/lang/rust/avro/src/schema.rs @@ -5441,7 +5441,7 @@ mod tests { let schema = Schema::parse_str(&schema_str).unwrap(); match schema { - Schema::Record { name, fields, .. } => { + Schema::Record(RecordSchema { name, fields, .. }) => { assert_eq!(name, Name::new("union_schema_test").unwrap()); assert_eq!(fields.len(), 1); let field = &fields[0];
