Skip to content

meta(cursor): Add rule to avoid explicit type annotations#2717

Merged
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/cursor-rule-inference
Aug 26, 2025
Merged

meta(cursor): Add rule to avoid explicit type annotations#2717
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/cursor-rule-inference

Conversation

@szokeasaurusrex
Copy link
Copy Markdown
Member

I have noticed that Cursor often adds type annotations, especially in let statements, even when they are not needed. This typically occurs with generics, which sadly cannot be linted by clippy::redundant_type_annotations, so I have instead decided to add a Cursor rule to hopefully prevent this behavior going forward

I have noticed that Cursor often adds type annotations, especially in `let` statements, even when they are not needed. This typically occurs with generics, which sadly cannot be linted by [clippy::redundant_type_annotations](https://rust-lang.github.io/rust-clippy/master/index.html#redundant_type_annotations), so I have instead decided to add a Cursor rule to hopefully prevent this behavior going forward
@szokeasaurusrex szokeasaurusrex merged commit e92bd06 into master Aug 26, 2025
54 of 56 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/cursor-rule-inference branch August 26, 2025 11:33
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