Replies: 1 comment 2 replies
-
Yes, the clones better to avoid, but in that specific places I do not see how they can be avoided. Feel free to propose a PR if you see a way forward! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, I found a lot of clone() methods in the rgb-std source code, are there any better choices to optimize the code?(remove the clone), such as the code in rgb-std/persistence/inventory.rs:
let builder =
TransitionBuilder::blank_transition(iface.clone(), schema.clone(), iimpl.clone())
.expect("internal inconsistency");
Beta Was this translation helpful? Give feedback.
All reactions