diff --git a/lang/rust/avro/src/reader.rs b/lang/rust/avro/src/reader.rs index 9a3be4c872c..adefed2030d 100644 --- a/lang/rust/avro/src/reader.rs +++ b/lang/rust/avro/src/reader.rs @@ -676,7 +676,7 @@ mod tests { record2.put("a", 42i64); record2.put("b", "bar"); - let expected = vec![record1.into(), record2.into()]; + let expected = [record1.into(), record2.into()]; for (i, value) in reader.enumerate() { assert_eq!(value?, expected[i]);