TheBevyFlock / bevy_cli

A Bevy CLI tool and linter.
https://thebevyflock.github.io/bevy_cli/
Apache License 2.0
44 stars 7 forks source link

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

Open MrGVSV opened 2 weeks ago

MrGVSV commented 2 weeks ago

This issue was originally meant for closures as per https://github.com/TheBevyFlock/bevy_cli/pull/164#discussion_r1826459378. 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:

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