Open mclang opened 2 months ago
Error handling is mix of everything found from the examples.
unwrap()
except
panic!
ok_or_else
map_err
anyhow
Problem
Error handling is mix of everything found from the examples.
Solution
unwrap()
is not used haphazardly - useexcept
instead.panic!
usage where necessary.ok_or_else
,map_err
and possibly withanyhow
crate.