Skip to content

refactor: simplify iterator using cloned().map(Some) - #9449

Merged
scovich merged 1 commit into
apache:mainfrom
SYaoJun:220_cloned
Feb 23, 2026
Merged

scovich merged 1 commit into
apache:mainfrom
SYaoJun:220_cloned

Conversation

@SYaoJun

@SYaoJun SYaoJun commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • Closes #NNN.

Rationale for this change

Use .cloned().map(Some) instead of .map(|b| Some(b.clone()))
for better readability and idiomatic Rust style.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions Bot added the parquet Changes to the parquet crate label Feb 20, 2026

@scovich scovich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Just a cosmetic change? or does it impact performance in some way?

@SYaoJun

SYaoJun commented Feb 22, 2026

Copy link
Copy Markdown
Contributor Author

LGTM. Just a cosmetic change? or does it impact performance in some way?

This is an idiomatic Rust refactor and has no performance impact.

@SYaoJun
SYaoJun requested a review from scovich February 23, 2026 04:03

@scovich scovich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Umm... it had my approval stamp until you cleared it by requesting a new review?

@scovich

scovich commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

But since this is a pretty safe change and nobody else squawked, will go ahead and merge also.

@scovich
scovich merged commit 9af5c75 into apache:main Feb 23, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants