Skip to content

Use the Self type wherever possible#208

Merged
DHowett merged 4 commits into
microsoft:mainfrom
adamnemecek:main
May 22, 2025
Merged

Use the Self type wherever possible#208
DHowett merged 4 commits into
microsoft:mainfrom
adamnemecek:main

Conversation

@adamnemecek

Copy link
Copy Markdown
Contributor

No description provided.

@lhecker lhecker left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is fantastic! Thanks for doing this!

Do you mind running cargo clippy --fix -- -Wclippy::use_self again? Since you opened the PR, 1 more spot snuck in which could use Self instead.

@lhecker lhecker changed the title Refactoring Use the Self type wherever possible May 22, 2025
@adamnemecek

Copy link
Copy Markdown
Contributor Author

Can you merge it and I'll do the other thing in a separate PR?

@DHowett DHowett merged commit 3fcb275 into microsoft:main May 22, 2025
1 check passed
@DHowett

DHowett commented May 22, 2025

Copy link
Copy Markdown
Member

Thanks!

@adamnemecek

adamnemecek commented May 22, 2025

Copy link
Copy Markdown
Contributor Author

Also consider adding a clippy.toml file. I was never quite able to figure out how to get it to work with use_self.

@lhecker

lhecker commented May 22, 2025

Copy link
Copy Markdown
Member

We should probably hold off on that because of this, I guess? rust-lang/rust-clippy#4863

diabloproject pushed a commit to diabloproject/edit that referenced this pull request May 29, 2025
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