This is an automated email from the ASF dual-hosted git repository. mgrigorov pushed a commit to branch fix-rust-1.89-issues in repository https://gitbox.apache.org/repos/asf/avro-rs.git
commit 668b439907f3105204522cc3e539a810cd96a70a Author: Martin Tzvetanov Grigorov <[email protected]> AuthorDate: Fri Aug 8 09:22:59 2025 +0300 chore: Fix clippy issues with Rust 1.89.0 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> --- avro/src/encode.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/avro/src/encode.rs b/avro/src/encode.rs index f858a69..38203f9 100644 --- a/avro/src/encode.rs +++ b/avro/src/encode.rs @@ -324,18 +324,18 @@ pub(crate) fn encode_internal<W: Write, S: Borrow<Schema>>( } } } - return Err(Details::EncodeValueAsSchemaError { + Err(Details::EncodeValueAsSchemaError { value_kind: ValueKind::Record, supported_schema: vec![SchemaKind::Record, SchemaKind::Union], } - .into()); + .into()) } else { error!("invalid schema type for Record: {schema:?}"); - return Err(Details::EncodeValueAsSchemaError { + Err(Details::EncodeValueAsSchemaError { value_kind: ValueKind::Record, supported_schema: vec![SchemaKind::Record, SchemaKind::Union], } - .into()); + .into()) } } }
