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

how to solve the problem of "cannot borrow articulation as mutable more than once at a time" when I use the feature of artilucation.creaet_link(...) #178

Open
YesanQin opened this issue Dec 15, 2022 · 1 comment

Comments

@YesanQin
Copy link

Excuse me, how should I to resolve this problem?
when I use the method 'articulation.create_link()' to create a link, because of the result of this method will as a parameter in next called of 'articulation.create_link()',that cause the lifetime of first value as same as the second called, so occur Multiple variable borrowings。
I try to clone reference and 'root_link_met()' ,but still can not resolve this problem.

@YesanQin
Copy link
Author

I'm not sure that the response type(which signature Option<&mut Self::ArticulationLink>) of the method which signature 'articulation.create_link(...)' should be 'Option<OwnerSelf::ArticulationLink>',and I tried is ok~

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

No branches or pull requests

1 participant