Skip to content

ref(clippy): Enable impl_trait_in_params lint - #1319

Merged
szokeasaurusrex merged 1 commit into
masterfrom
szokeasaurusrex/lint-impl-trait
Sep 14, 2026
Merged

szokeasaurusrex merged 1 commit into
masterfrom
szokeasaurusrex/lint-impl-trait

Conversation

@szokeasaurusrex

Copy link
Copy Markdown
Member

Enable the impl_trait_in_params lint across the SDK.

This lint prevents using impl Trait as the type for a parameter in a function which is part of the public API, requiring a named generic instead. Named generics are often more flexible in the future, which is why they are often generally preferable.

This change ignores all existing violations, as fixing the violations themselves would be breaking changes.

Fixes #1317
Fixes RUST-279

Enable the [`impl_trait_in_params`](https://rust-lang.github.io/rust-clippy/master/index.html#impl_trait_in_params) lint across the SDK.

This lint prevents using `impl Trait` as the type for a parameter in a function which is part of the public API, requiring a named generic instead. Named generics are often more flexible in the future, which is why they are often generally preferable.

This change ignores all existing violations, as fixing the violations themselves would be breaking changes.

Fixes [#1317](#1317)
Fixes [RUST-279](https://linear.app/getsentry/issue/RUST-279)
@szokeasaurusrex
szokeasaurusrex requested a review from a team as a code owner September 14, 2026 12:48
@linear-code

linear-code Bot commented Sep 14, 2026

Copy link
Copy Markdown

RUST-279

@szokeasaurusrex
szokeasaurusrex enabled auto-merge (squash) September 14, 2026 12:49
@szokeasaurusrex
szokeasaurusrex merged commit 70a1205 into master Sep 14, 2026
32 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/lint-impl-trait branch September 14, 2026 12:56
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.

Enable lint to prevent impl Trait in public method arguments

2 participants