79627530

Date: 2025-05-18 14:30:40
Score: 1.5
Natty:
Report link

I think you're looking for the let-else construct?

let Ok(mut entries) = fs::read_dir(folder).await else {
    // log here and diverge
};
// continue here
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: cyqsimon