Skip to content

Into implementations should be changed to From #37561

Closed
@clarfonthey

Description

@clarfonthey

Currently, libstd has:

impl Into<Vec<u8>> for String
impl Into<OsString> for PathBuf

And this seems inconsistent with the other collection implementations which all use From instead. It makes sense that these would be changed to From to allow use of from, and it doesn't seem like it'd be a breaking change at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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