Skip to content
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

Feature request: "convert function to closure" assist #13230

Closed
jplatte opened this issue Sep 13, 2022 · 2 comments · Fixed by #14455
Closed

Feature request: "convert function to closure" assist #13230

jplatte opened this issue Sep 13, 2022 · 2 comments · Fixed by #14455
Assignees
Labels
A-assists C-feature Category: feature request

Comments

@jplatte
Copy link
Contributor

jplatte commented Sep 13, 2022

It would be nice if I could easily turn a function that is declared inside another function / method into a closure (to enable further refactorings like removing a parameter because it can be captured instead).

@mdx97
Copy link
Contributor

mdx97 commented Sep 16, 2022

@rustbot claim

@mdx97
Copy link
Contributor

mdx97 commented Sep 17, 2022

Got something working @jplatte, need to write some tests and hoping to have a PR out tomorrow if I have the time :)

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
3 participants