Closed tsunrise closed 3 years ago
I used derivative instead. Does that work for the application (I assume LDT)?
I used derivative instead. Does that work for the application (I assume LDT)?
Yes it works! Wow derivative
is great. I'm going to learn how to use it
Derivative indeed is no magic. Just a macro that writes the code that we manually implemented Clone
with.
Derivative indeed is no magic. Just a macro that writes the code that we manually implemented
Clone
with.
haha quite handy. The change looks good to me. Feel free to merge
Description
The
derive
ofClone
trait forPath<P>
doesn't work well, because it implicitly adds a trait boundP: Copy
. In most cases, whenclone
ing a path, user might encounter the following compile error:This PR removes the
derive
and implementsClone
traitmanuallyusingDerivative
instead. Also addedClone
for constraint path.Before we can merge this PR, please make sure that all the following items have been checked off. If any of the checklist items are not applicable, please leave them but write a little note why.
Pending
section inCHANGELOG.md
Files changed
in the Github PR explorer