Skip to content

Commit d33d600

Browse files
authored
chore: Fix clippy issues with Rust 1.89.0 (#251)
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
1 parent 44e854a commit d33d600

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

avro/src/encode.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,18 +324,18 @@ pub(crate) fn encode_internal<W: Write, S: Borrow<Schema>>(
324324
}
325325
}
326326
}
327-
return Err(Details::EncodeValueAsSchemaError {
327+
Err(Details::EncodeValueAsSchemaError {
328328
value_kind: ValueKind::Record,
329329
supported_schema: vec![SchemaKind::Record, SchemaKind::Union],
330330
}
331-
.into());
331+
.into())
332332
} else {
333333
error!("invalid schema type for Record: {schema:?}");
334-
return Err(Details::EncodeValueAsSchemaError {
334+
Err(Details::EncodeValueAsSchemaError {
335335
value_kind: ValueKind::Record,
336336
supported_schema: vec![SchemaKind::Record, SchemaKind::Union],
337337
}
338-
.into());
338+
.into())
339339
}
340340
}
341341
}

0 commit comments

Comments
 (0)