Skip to content

In libcore, convert functions to methods whereever it makes sense #6045

Closed
@bstrie

Description

@bstrie

By "makes sense" I mostly mean "whereever the first argument to a function is the same type as the name of the module." So a function like str::to_chars("asdf") becomes "asdf".to_chars(), but vec::from_fn(5, |x| x) can be left as a function.

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