Currently when coins are sent in a message's sent_funds, they need to be cloned in order to be used independently of the containing struct (env / env.message). This makes some code constructs unnatural (or imply extra cloning of the whole structure).
See by example the discussion in #72 (comment) .
Rust errors E0382 / E0505 suggest as an alternative implementing the Copy trait, for the members that need to be accessed independently.
Currently when coins are sent in a message's
sent_funds, they need to be cloned in order to be used independently of the containing struct (env/env.message). This makes some code constructs unnatural (or imply extra cloning of the whole structure).See by example the discussion in #72 (comment) .
Rust errors E0382 / E0505 suggest as an alternative implementing the Copy trait, for the members that need to be accessed independently.