You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
MrGVSV
changed the title
borrowed_reborrowable lint doesn't work with closuresborrowed_reborrowable lint doesn't work with Fn traits or function pointers
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)
This is probably something we can try to handle in the lint as well.
The text was updated successfully, but these errors were encountered: