Right now, many functions seem to either unwrap, panic upon errors, or return things like Result<_, String> or Result<_, Box<dyn Error>>. For prototype code this is fine, but for the future one should think about switching to a proper error handling library. Personally I'm a great fan of anyhow as it has a small footprint while still offering key features needed by error handling.
Right now, many functions seem to either unwrap, panic upon errors, or return things like
Result<_, String>
orResult<_, Box<dyn Error>>
. For prototype code this is fine, but for the future one should think about switching to a proper error handling library. Personally I'm a great fan of anyhow as it has a small footprint while still offering key features needed by error handling.