|
|
|
|
|
by wiktor-k
399 days ago
|
|
> I always felt unwrap is preferable for diagnosing issues, which makes it useful in tests. A failed unwrap will point you directly to the line of code which panics, which is much simpler than trying to trace an issue through many layers of Results. Take a closer look at testresult since it also points directly at the exact line of failure (due to panics being used under hood) but looks nicer. |
|