Rust

Rust

Made by DeepSource

Found redundant pattern RS-W1000

Anti-pattern
Minor
Autofix

Patterns of the form name @ _ are redundant. It is always more readable to use a direct binding.

Prefer a direct binding, name over name @ _.

Bad practice

match v {
    Some(x) => (),
    y @ _ => (),
}

Recommended

match v {
    Some(x) => (),
    y => (),
}