Skip to content
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

Remove most impls of From<&T> #372

Merged
merged 1 commit into from
Jul 17, 2023
Merged

Remove most impls of From<&T> #372

merged 1 commit into from
Jul 17, 2023

Conversation

cmyr
Copy link
Member

@cmyr cmyr commented Jul 13, 2023

These impls fell into one of two categories: they were either wrapping a call to clone, or they were doing acting as general constructors.

In the cases where they were wrapping a clone call, I just moved the 'clone' to the callsite. In the cases where they were acting as general constructors, I moved them into new methods.

These impls fell into one of two categories: they were either wrapping a
call to clone, or they were doing acting as general constructors.

In the cases where they were wrapping a clone call, I just moved the
'clone' to the callsite. In the cases where they were acting as general
constructors, I moved them into `new` methods.
Copy link
Member

@dfrg dfrg left a comment

Choose a reason for hiding this comment

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

I like that this makes the clones more explicit. LGTM

@cmyr cmyr merged commit 404fed9 into main Jul 17, 2023
6 checks passed
@cmyr cmyr deleted the cleanup-from-ref branch July 17, 2023 20:48
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