You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2025/08/08 06:23:32 UTC
(avro-rs) 01/01: chore: Fix clippy issues with Rust 1.89.0
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 <mg...@apache.org>
AuthorDate: Fri Aug 8 09:22:59 2025 +0300
chore: Fix clippy issues with Rust 1.89.0
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
---
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())
}
}
}