79360002

Date: 2025-01-15 23:39:54
Score: 0.5
Natty:
Report link

Since Rust 1.65 let-else statement can be used for this:

let Some(_x) = x else {
    panic!("the world is ending: {}", "foo");
};

let (Some(_x), Some(_y)) = (x, y) else {
    panic!("the world is ending: {}", "foo");
};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: cotneit