Missing mutability
Hi, I wanted to use your crate but I have problems with mutability, so I've extended the macro to allow to write e.g.:
shadow_clone!(a, (mut) b);
that generates:
let a = a.clone();
let mut b = b.clone();
Macro:
macro_rules! shadow_clone {
{ $($(($mut:tt))? $to_clone:ident),* } => {
$(
let $($mut)? $to_clone = $to_clone.clone();
)*
};
}