How to convert a .ok() match call to a pure match call when returning to a PyResult? #3486
-
In this example, the May I know how I can drop the usage of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
.ok()
does not introduce a panic. It merely converts aErr(e)
which carries more information about the error intoNone
, which just carries the information "it didn't work".