rust: opp: use to_result for error handling
Simplifies error handling by replacing the manual check of the return value with the `to_result` helper. Signed-off-by:Onur Özkan <work@onurozkan.dev> Reviewed-by:
Elle Rhumsaa <elle@weathered-steel.dev> Signed-off-by:
Viresh Kumar <viresh.kumar@linaro.org>
Loading
Please sign in to comment