Skip to content

Commit

Permalink
AVRO-3905: [Rust] Fix clippy error with Rust 1.74.0 (#2588)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g authored Nov 16, 2023
1 parent 85ddfcd commit b4968f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/rust/avro_derive/tests/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<T>(&value).unwrap();
Expand Down

0 comments on commit b4968f7

Please sign in to comment.