This is a big refactoring PR so would take some review effort.
Salient points:
New error structure that directly wraps the inner error type. This allows internal error progression without any mapping.
error.rs move to src/. This allows error enum to be documented at crate level (good practise).
Removes all dangling unwraps. After this PR there should not be any dangling unwraps across crate, in future too. Errors should always be propagated directly.
Simplifying error handling also implies code verbosity. This PR removes more lines than it adds.
Fixes #8
This is a big refactoring PR so would take some review effort.
Salient points:
error.rs
move tosrc/
. This allows error enum to be documented at crate level (good practise).Simplifying error handling also implies code verbosity. This PR removes more lines than it adds.