bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.46k stars 3.6k forks source link

Use the fully qualified name for `Component` in the `require` attribute #16378

Closed venhelhardt closed 2 weeks ago

venhelhardt commented 2 weeks ago

Objective

Solution

Testing

[derive(::bevy::ecs::component::Component)]

[require(A)]

pub struct B;


- If relevant, what platforms did you test these changes on, and are there any important ones you can't test?
Mac only
---

</details>
github-actions[bot] commented 2 weeks ago

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

alice-i-cecile commented 2 weeks ago

@NthTensor I definitely disagree with you on the difficulty here :) This is a standard bug fix / best practice for macros, and is a single line of changes.

NthTensor commented 2 weeks ago

Good to know. Wasn't sure since it was in a macro.