.clone()
call on a double reference RS-W1100Calling .clone()
clone on a &&T
copies the inner &T
and not the
underlying T
.
Consider revisiting this .clone()
call.
pub fn foo(t: &[u8]){
for x in t.iter() {
let v = x.clone(); // Cloning an &&u8
}
}