Linter

fn main() {
let maybe_n = Some(123);

match maybe_n {
    Some(n) => println!("{n}"),
    _ => (),
}
}
📎 Clippy
➡️
fn main() {
let maybe_n = Some(123);

if let Some(n) = maybe_n {
    println!("{n}")
}
}

warning: you seem to be trying to use match for destructuring a single pattern.
Consider using if let

fn main() {
let maybe_n = Some(123);

+#[allow(clippy::single_match)] // deliberately allow this once
 match maybe_n {
     Some(n) => println!("{n}"),
     _ => (),
 }
}

Clippy lints index