refactor: Get io error from method
Before adoption: this commit came in with the history the project adopted, so no landing records it.
use `ignore::Error::io_error()` to inspect the `std::io::Error` insted of pattern matching on `ignore::Error::Io`. This avoids relying on the implementation of ignore and how it organizes the error. In particular, this would allow us to handle if the IO error was wrapped in a `WithDepth`, as would be the case if BurntSushi/ripgrep#3458 was merged. This also allows us to remove some duplicate code.
authored by Thayne McCombs · committed by Thayne McCombs · parent 95dc645 · Browse files · 1 file+10 added−20 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+10 added−20 removed
- other:+10 added−20 removed