Closed
Description
std::os::errno
returns an int
whereas IoError::from_errno
takes a uint
. It's a bit irritating to have to write out errno() as uint
every time one constructs an IoError
from errno
.
AIUI errno
in C is always of (C) type int
, so my inclination would be to change from_errno
unless there's a good reason for it to be using uint
.