Skip to content

Use the Self type wherever possible #208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 22, 2025
Merged

Conversation

adamnemecek
Copy link
Contributor

No description provided.

Copy link
Member

@lhecker lhecker left a comment

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
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
Copy link
Member

DHowett commented May 22, 2025

Thanks!

@adamnemecek
Copy link
Contributor Author

adamnemecek commented May 22, 2025

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
Copy link
Member

lhecker commented May 22, 2025

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