News for hackers. Stuff that matters.
Re:Where Everything Went Wrong: Error Handling and Error Mes... by papaf on Friday February 19, 2021 @06:17PM (#26199362)
I use match as an inside out 'if let' but in this particular case I prefer to:

  let value = value.ok_or(MyError)?;

There are no comments on this comment yet.