Skip to content

Path has no Default #78858

Closed
Closed
@Nicholas-Baron

Description

@Nicholas-Baron

Ran into this doing a pull request.

The Path struct has no impl Default documented, but a value of Path::new("") seems to be a good default in my mind. (Update: it is not, I have been corrected)

This may be the incorrect way to ask for such a thing, but I would like to know why there is no impl Default for Path and whether there could be one in the near future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions