Improve error handling, and fix clippy warnings
- The error handling in
onion-tunnel
was improved by moving away from panicking (helped by usage of the clippyunwrap_used
andexpect_used
lints), in favour of usingResult
s. - I've also gone through the codebase and fixed clippy warnings about the place, hopefully tidying things up a bit.
- There's still more to do, but this is a start!
- We actually need to do something about the errors, like communicating them to the JNI side, for one.