-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Labels
A-AppBevy apps and pluginsBevy apps and pluginsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-Code-QualityA section of code that is hard to understand or changeA section of code that is hard to understand or changeD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!X-ContentiousThere are nontrivial implications that should be thought throughThere are nontrivial implications that should be thought through
Description
What problem does this solve or what need does it fill?
Here now, it seems that we use type names to check if a plugin has been added:
But acturally, the type name is not a unique identifier in rust:
So I think it is possible for different plugins to have the same type name. Once it happeded, our method above may lead to errors
What solution would you like?
Maybe we can use the TypeId
instead
What alternative(s) have you considered?
...
Additional context
...
Metadata
Metadata
Assignees
Labels
A-AppBevy apps and pluginsBevy apps and pluginsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-Code-QualityA section of code that is hard to understand or changeA section of code that is hard to understand or changeD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!X-ContentiousThere are nontrivial implications that should be thought throughThere are nontrivial implications that should be thought through