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

borrowed_reborrowable lint doesn't work with Fn traits or function pointers #174

Open
MrGVSV opened this issue Nov 9, 2024 · 0 comments

Comments

@MrGVSV
Copy link
Contributor

MrGVSV commented Nov 9, 2024

This issue was originally meant for closures as per #164 (comment). However, I think I managed to actually get closures working.

What's not being caught by the lint are the Fn traits and function pointers:

  • impl FnOnce(&mut Commands)
  • Box<dyn FnMut(&mut EntityMut)>
  • fn(&mut PtrMut)
  • Etc.

This is probably something we can try to handle in the lint as well.

@MrGVSV MrGVSV changed the title borrowed_reborrowable lint doesn't work with closures borrowed_reborrowable lint doesn't work with Fn traits or function pointers Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant