Repository navigation
fix clippy in variant - #10586
Merged
Merged
fix clippy in variant#10586
Conversation
Member
|
🙏 |
Jefffrey
approved these changes
Aug 8, 2026
Contributor
|
thanks all |
MassivePizza
pushed a commit
to massive-com/arrow-rs
that referenced
this pull request
Aug 19, 2026
# Which issue does this PR close? - Related to apache#10157 # Rationale for this change It seems apache#10157 has a logical conflict with newly added clippy lints After merging apache#10157 it is failing with For example: https://github.com/apache/arrow-rs/actions/runs/31189404230/job/92902082102 ``` warning: unnested or-patterns --> parquet-variant-compute/src/shred_variant.rs:3134:17 | 3134 | / (Variant::Int8(_), DataType::Int8) 3135 | | | (Variant::Int8(_), DataType::Int16) 3136 | | | (Variant::Int8(_), DataType::Int32) 3137 | | | (Variant::Int8(_), DataType::Int64) ... | 3228 | | | (Variant::String(_), DataType::LargeUtf8) 3229 | | | (Variant::Time(_), DataType::Time64(_)) | |_____________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.97.0/index.html#unnested_or_patterns = note: requested on the command line with `-W clippy::unnested-or-patterns` help: nest the patterns | 3134 ~ (Variant::Int8(_) | Variant::Int16(_) | Variant::Int32(_) | Variant::Int64(_) 3135 + | Variant::Decimal4(_) | Variant::Decimal8(_) | Variant::Decimal16(_), 3136 + DataType::Int8) | 3137 + (Variant::Int8(_) | Variant::Int16(_) | Variant::Int32(_) | Variant::Int64(_) 3138 + | Variant::Decimal4(_) | Variant::Decimal8(_) | Variant::Decimal16(_), 3139 + DataType::Int16) | ``` # What changes are included in this PR? Do what clippy says (just accept its suggestion) # Are these changes tested? By CI # Are there any user-facing changes? <!-- If there are user-facing changes then we may require documentation to be updated before approving the PR. If there are any breaking changes to public APIs, please call them out. -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Rationale for this change
It seems #10157 has a logical conflict with newly added clippy lints
After merging #10157 it is failing with
For example: https://github.com/apache/arrow-rs/actions/runs/31189404230/job/92902082102
What changes are included in this PR?
Do what clippy says (just accept its suggestion)
Are these changes tested?
By CI
Are there any user-facing changes?