Rust

Rust

Made by DeepSource

Found .clone() call on a double reference RS-W1100

Bug risk
Major

Calling .clone() clone on a &&T copies the inner &T and not the underlying T.

Consider revisiting this .clone() call.

Bad practice

pub fn foo(t: &[u8]){
    for x in t.iter() {
        let v = x.clone(); // Cloning an &&u8
    }
}