Skip to content

Conversation

@danieleades
Copy link
Contributor

the current codegen implements From<&Self> for Self for a number of types. This is non-idiomatic since this doesn't match the intended semantics of the From trait and implicitly clones the object. It's also redundant with the Clone trait, which is the idiomatic and explicit way to turn a reference into an object.

This PR removes this implementation. This is a breaking change for downstream users that are passing references- the caller will now need to explicitly clone

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.

1 participant