Implements From for Error for std::io::Error to allow the error type to be converted to a std::io::Error which makes it easier for those coming from the v0.10 version where it was using std::io::Error instead of a custom error type.
This makes it easier to deal with the error type for those in a console app who are already likely using std::io::Result as their return type (So they can use the try operator without having to map the error type).
Since the std::io::Error is flexible and can take any kind of error type as its cause. I've left a comment incase you decide to expand the error type to have more errors other than just std::io::Error
Description
Implements
From
forError
forstd::io::Error
to allow the error type to be converted to astd::io::Error
which makes it easier for those coming from the v0.10 version where it was using std::io::Error instead of a custom error type.This makes it easier to deal with the error type for those in a console app who are already likely using
std::io::Result
as their return type (So they can use the try operator without having to map the error type).Since the
std::io::Error
is flexible and can take any kind of error type as its cause. I've left a comment incase you decide to expand the error type to have more errors other than juststd::io::Error
Changes
Error
tostd::io::Error