Skip to content

Conversation

@CosminPerRam
Copy link
Contributor

Every implementation that returns self is marked with Self, not the explicit way. This is the sole location that isn't like the others.
This is a trivial PR of maintaining the code style, feel free to close if not appropriate.

This change is a part of the clippy::use_self lint, there are other 35 instances where the explicit type could be replaced by Self (although not in the return position), some places maintain this and others do not, if this is a wanted change I could replace them and also add the lint to the CI!

Copy link
Owner

@keepsimple1 keepsimple1 left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM! For the clippy::use_self lint, Iet's hold it for now, until it becomes part of the default clippy.

@keepsimple1 keepsimple1 merged commit 9088f8b into keepsimple1:main Dec 4, 2025
3 checks 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.

2 participants