Reclone
Minimal macro library to help with cloning objects into move closures
I've found that when building applications, you commonly have a set of Arcs representing
state of some sort, and need to move it into a move closure
This is annoying and leads to code like this:
let foo = ...;
let bar = ...;
let baz = ...;
Now with reclone, this becomes, in my opinion, a little neater and less repetitive
use cloned;
let foo = ...;
let bar = ...;
let baz = ...;
cloned!;
If you can't justify bringing this in as a dependency, you're welcome to directly inline
the code in your codebase