1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-12-03 22:59:07 +02:00
Files
rustlings/exercises/error_handling/errors6.rs
Taylor Yu b7ddd09fab address review feedback
Adjust error text and naming to conform with best practices.
Use `map_err()` instead of `or()`. Wrap lower-level errors instead of
ignoring their details.

Also, don't "cheat" by bypassing the `new()` function in tests.

Fix a dangling reference in the try_from_into hints.
2021-06-09 23:27:53 -05:00

2.5 KiB