rust
rust copied to clipboard
Use inspect_err where appropriate
Summary
There's Result::inspect_err since Rust 1.76, it allows for more readable error inspection.
I've also added InternalStreamError::write_error function which reduces boiler-plate.
Related Issues Minor cleanup
Checklist
- [x] Tests pass locally
- [x] Documentation updated if needed