Skip to content

str::from_bytes should return a Result instead of fail on invalid input. #4765

Closed
@carllerche

Description

@carllerche

It seems to me that returning a Result would be more appropriate than failing.

https://github.com/mozilla/rust/blob/incoming/src/libcore/str.rs#L50

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions