From b4968f70f1cb6f220d87063c477bbc6309341c69 Mon Sep 17 00:00:00 2001 From: Martin Grigorov Date: Thu, 16 Nov 2023 18:29:02 +0200 Subject: [PATCH] AVRO-3905: [Rust] Fix clippy error with Rust 1.74.0 (#2588) Signed-off-by: Martin Tzvetanov Grigorov --- lang/rust/avro_derive/tests/derive.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/rust/avro_derive/tests/derive.rs b/lang/rust/avro_derive/tests/derive.rs index 0bfc9a95cf1..89488b7e577 100644 --- a/lang/rust/avro_derive/tests/derive.rs +++ b/lang/rust/avro_derive/tests/derive.rs @@ -68,8 +68,8 @@ mod test_derive { { assert!(!encoded.is_empty()); let schema = T::get_schema(); - let reader = Reader::with_schema(&schema, &encoded[..]).unwrap(); - for res in reader { + let mut reader = Reader::with_schema(&schema, &encoded[..]).unwrap(); + if let Some(res) = reader.next() { match res { Ok(value) => { return from_value::(&value).unwrap();