Commit 22763c35 authored by Onur Özkan's avatar Onur Özkan Committed by Viresh Kumar
Browse files

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: default avatarOnur Özkan <work@onurozkan.dev>
Reviewed-by: default avatarElle Rhumsaa <elle@weathered-steel.dev>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 8f5ae30d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment