Skip to content

ran cargo clippy --allow-dirty --fix -- -Wclippy::use_self - #150

Merged
Shengyu Fu (shengyfu) merged 1 commit into
microsoft:mainfrom
adamnemecek:main
Sep 9, 2026
Merged

Shengyu Fu (shengyfu) merged 1 commit into
microsoft:mainfrom
adamnemecek:main

Conversation

@adamnemecek

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI balanced review requested due to automatic review settings September 9, 2026 17:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are mechanical, type-correct refactors with no behavioral impact.

Pull request overview

Applies Clippy’s use_self refactor without changing behavior.

Changes:

  • Replaces explicit type references with Self in implementations.
  • Uses Self for recursive enum and same-type parameter declarations.
File summaries
File Description
tgrep-core/src/query.rs Simplifies QueryPlan references.
tgrep-core/src/error.rs Simplifies error variant construction and matching.
tgrep-core/src/encoding.rs Simplifies encoding variant references.
tgrep-core/src/builder.rs Simplifies FileBytes matching.
tgrep-cli/src/search.rs Simplifies search scope and file text matching.
tgrep-cli/src/output.rs Simplifies color matching and Stats parameter typing.
tgrep-cli/src/matching.rs Simplifies matcher variant references.
tgrep-cli/src/glob_filter.rs Uses Self::default().
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@shengyfu
Shengyu Fu (shengyfu) merged commit a0f0c04 into microsoft:main Sep 9, 2026
1 check passed
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.

3 participants