Skip to content

Assist request: convert closure to fn #17920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ChayimFriedman2 opened this issue Aug 17, 2024 · 0 comments · Fixed by #17940
Closed

Assist request: convert closure to fn #17920

ChayimFriedman2 opened this issue Aug 17, 2024 · 0 comments · Fixed by #17940
Labels
A-assists C-feature Category: feature request

Comments

@ChayimFriedman2
Copy link
Contributor

ChayimFriedman2 commented Aug 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-assists C-feature Category: feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants