This is an automated email from the ASF dual-hosted git repository.
chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fury.git
The following commit(s) were added to refs/heads/main by this push:
new b5c11d00 chore: fix clippy warning (#2240)
b5c11d00 is described below
commit b5c11d0077bad2018abadf2cbcff3a316eb2ff12
Author: weipeng <[email protected]>
AuthorDate: Fri May 16 10:45:29 2025 +0800
chore: fix clippy warning (#2240)
fix the clippy warning that broken the CI
---
rust/fury-core/src/types.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/fury-core/src/types.rs b/rust/fury-core/src/types.rs
index c9805d39..5d3ed419 100644
--- a/rust/fury-core/src/types.rs
+++ b/rust/fury-core/src/types.rs
@@ -117,7 +117,7 @@ pub fn compute_struct_hash(props: Vec<(&str, FieldType)>)
-> u32 {
FieldType::ARRAY | FieldType::MAP => compute_field_hash(hash, *ty
as i16),
_ => hash,
};
- let is_basic_type = BASIC_TYPES.iter().any(|x| *x == *ty);
+ let is_basic_type = BASIC_TYPES.contains(ty);
if is_basic_type {
hash = compute_field_hash(hash, *ty as i16);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]