Skip to content

refactor(ipc): derive Default for CompressionContext#9809

Merged
alamb merged 1 commit intoapache:mainfrom
mbutrovich:zstd-derive-default
Apr 24, 2026
Merged

refactor(ipc): derive Default for CompressionContext#9809
alamb merged 1 commit intoapache:mainfrom
mbutrovich:zstd-derive-default

Conversation

@mbutrovich
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Follow-up to #9808.

Rationale for this change

After #9808 changed the zstd Compressor field to Option, the manual impl Default for CompressionContext just sets it to None, which is identical to the derived Default. The #[allow(clippy::derivable_impls)] annotation confirms this was already a known issue.

What changes are included in this PR?

Replace the manual impl Default for CompressionContext with #[derive(Default)] and remove the clippy::derivable_impls allow.

Are these changes tested?

Existing tests cover this. The struct's default behavior is unchanged.

Are there any user-facing changes?

No.

@mbutrovich
Copy link
Copy Markdown
Contributor Author

CC @alamb

Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it -- thank you @mbutrovich

@alamb alamb merged commit 54b5a84 into apache:main Apr 24, 2026
26 checks passed
@mbutrovich mbutrovich deleted the zstd-derive-default branch April 24, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants