Skip to content

Returning errors instead of panicking #3

@robinkrahl

Description

@robinkrahl

MountInfo::new() panics if the mountinfo file contains unexpected data. I think it would be more appropriate to return an error instead and let the caller decide how to handle it. std::io::ErrorKind::InvalidData would be a potential error variant. What do you think? Would you accept a PR with this change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions