Skip to content

[rust] Fix clippy::for_kv_map warnings in RecordAccumulator#3696

Merged
fresh-borzoni merged 1 commit into
apache:mainfrom
LiebingYu:fix-rust-for_kv_map
Jul 19, 2026
Merged

[rust] Fix clippy::for_kv_map warnings in RecordAccumulator#3696
fresh-borzoni merged 1 commit into
apache:mainfrom
LiebingYu:fix-rust-for_kv_map

Conversation

@LiebingYu

Copy link
Copy Markdown
Contributor

Use .values_mut() and .values() instead of .iter_mut() and .iter() when only the map values are needed, satisfying the for_kv_map lint introduced in Rust 1.97.0 stable Clippy.

Purpose

Linked issue: close #3695

Brief change log

Tests

API and Format

Documentation

Use .values_mut() and .values() instead of .iter_mut() and .iter()
when only the map values are needed, satisfying the for_kv_map lint
introduced in Rust 1.97.0 stable Clippy.
@LiebingYu
LiebingYu requested a review from fresh-borzoni July 19, 2026 12:26
@LiebingYu

Copy link
Copy Markdown
Contributor Author

@fresh-borzoni PTAL! thx

@charlesdong1991 charlesdong1991 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.

👍

@fresh-borzoni fresh-borzoni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

@fresh-borzoni
fresh-borzoni merged commit 67e7341 into apache:main Jul 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[rust] clippy::for_kv_map lint failures after Rust 1.97 stable release

3 participants