This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro-rs.git
The following commit(s) were added to refs/heads/main by this push:
new d33d600 chore: Fix clippy issues with Rust 1.89.0 (#251)
d33d600 is described below
commit d33d60014563cbe8d7b9050b9362e8fe89e1259a
Author: Martin Grigorov <[email protected]>
AuthorDate: Fri Aug 8 09:32:15 2025 +0300
chore: Fix clippy issues with Rust 1.89.0 (#251)
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())
}
}
}