pub fn into_io_error<E: Into<Error>>(err: E) -> Error
Generates an io::Error from the given anyhow::Error.
io::Error
anyhow::Error
This will flatten the existing error chain so that it fits in a single-line string.