witty-crayon-22786
08/29/2019, 4:45 PMearly-needle-54791
08/29/2019, 5:12 PMwitty-crayon-22786
08/29/2019, 5:14 PMearly-needle-54791
08/29/2019, 5:38 PMhundreds-breakfast-49010
08/29/2019, 6:27 PMhundreds-breakfast-49010
08/29/2019, 6:27 PMaverage-vr-56795
08/29/2019, 9:34 PMclone
takes a reference, so in just a new scope, you just need to borrow the variable long enough to be able to clone it.
When you go into a closure, you do the move when the closure is created, so you need to clone before it because otherwise the variable just gets moved (even though the only thing you use it for after the move is to clone it)