into_io_error

Function into_io_error 

Source
pub fn into_io_error<E>(err: E) -> Error
where E: Into<Error>,
Expand description

Generates an io::Error from the given anyhow::Error.

This will flatten the existing error chain so that it fits in a single-line string.