Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clippy: Replaces .get(0) with .first() #34143

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

brooksprumo
Copy link
Contributor

Problem

There are nightly clippy warnings that will prevent upgrading our stable Rust version.

For this PR, it's this one: https://rust-lang.github.io/rust-clippy/master/index.html#/get(0)

Summary of Changes

Replaces .get(0) with .first().

@brooksprumo brooksprumo self-assigned this Nov 17, 2023
@brooksprumo brooksprumo marked this pull request as ready for review November 17, 2023 14:21
@brooksprumo brooksprumo requested a review from yihau November 17, 2023 14:21
Copy link
Member

@yihau yihau left a comment

Choose a reason for hiding this comment

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

🪖

@brooksprumo brooksprumo merged commit 851be08 into solana-labs:master Nov 17, 2023
30 of 32 checks passed
@brooksprumo brooksprumo deleted the clippy/first branch November 17, 2023 15:03
@brooksprumo
Copy link
Contributor Author

Oops. I hit merge too early, before coverage had actually finished. It has since completed successfully.

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.

2 participants