Skip to content

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

loewenheim and others added 4 commits April 22, 2025 14:48
Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com>
@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