Skip to content

Assist request: convert closure to fn #17920

@ChayimFriedman2

Description

@ChayimFriedman2

Many times I found myself refactoring a closure to a standalone fn, for many reasons (the most recent one being closures unable to be generic). It'd be nice if rust-analyzer can do that automatically, escalating captures to parameters.

Maybe I can work on this myself later.

@rustbot label +A-assists

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions