Skip to content

std::os::errno returns a different type than IoError::from_errno takes #16786

Closed
@tomjakubowski

Description

@tomjakubowski

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions