Skip to content

chore: Fix current clippy lints #2469

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

Merged
merged 5 commits into from
Apr 22, 2025
Merged

chore: Fix current clippy lints #2469

merged 5 commits into from
Apr 22, 2025

Conversation

loewenheim
Copy link
Contributor

One of them appears to be a false positive, though.

@loewenheim loewenheim self-assigned this Apr 22, 2025
// FIXME: This seems to be a false positive; clippy
// thinks we're doing `contains_key` followed by `insert`,
// but there's no `insert`.
#[allow(clippy::map_entry)]
Copy link
Member

Choose a reason for hiding this comment

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

Let's use an expect:

Suggested change
#[allow(clippy::map_entry)]
#[expect(clippy::map_entry)]

Seems that there is already a PR which fixes this, so with the expect, we'll be alerted to remove the expect once the PR is released

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good find, I totally missed that, I guess because I was only looking at open issues.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately we can't use expect here because the lint doesn't trip on stable.

Copy link
Member

@szokeasaurusrex szokeasaurusrex Apr 22, 2025

Choose a reason for hiding this comment

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

@loewenheim that is kinda sus, where are we linting with nightly?

I didn't think we linted with nightly in Sentry CLI

@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) April 22, 2025 13:24
@loewenheim loewenheim changed the title chore: Fix nightly clippy lints chore: Fix current clippy lints Apr 22, 2025
@szokeasaurusrex szokeasaurusrex merged commit f15f80d into master Apr 22, 2025
21 checks passed
@szokeasaurusrex szokeasaurusrex deleted the chore/clippy branch April 22, 2025 13:28
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