Skip to content

std::io::TempDir::new and new_in should return IoResult #16875

Closed
@SimonSapin

Description

@SimonSapin

std::io::TempDir currently has associated functions

fn new_in(tmpdir: &Path, suffix: &str) -> Option<TempDir>;
fn new(suffix: &str) -> Option<TempDir>;

These should return IoResult rather than Option, so that the result can be used with try!().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions