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

Remove pointless trait implementation exports in bevy_reflect #10771

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

stepancheg
Copy link
Contributor

@stepancheg stepancheg commented Nov 28, 2023

Trait implementations do not need to be reexported to be used.

warning: unused import: `self::std::*`
   --> crates/bevy_reflect/src/lib.rs:502:13
    |
502 |     pub use self::std::*;
    |             ^^^^^^^^^^^^
    |
    = note: `#[warn(unused_imports)]` on by default

warning: unused import: `self::uuid::*`
   --> crates/bevy_reflect/src/lib.rs:503:13
    |
503 |     pub use self::uuid::*;
    |             ^^^^^^^^^^^^^

warning: unused import: `impls::*`
   --> crates/bevy_reflect/src/lib.rs:525:9
    |
525 | pub use impls::*;
    |         ^^^^^^^^

@ItsDoot ItsDoot added C-Code-Quality A section of code that is hard to understand or change A-Reflection Runtime information about types labels Nov 28, 2023
@alice-i-cecile
Copy link
Member

Puzzled over what was going on here for a minute. I've edited your OP to say "trait implementations do not need to be re-exported", which made this immediately clear to me :)

@alice-i-cecile alice-i-cecile changed the title Remove unused reexprs Remove pointless trait implementation exports in bevy_math Nov 28, 2023
@ItsDoot
Copy link
Contributor

ItsDoot commented Nov 28, 2023

PR title is incorrect: it removes exports from bevy_reflect not bevy_math.

@stepancheg stepancheg changed the title Remove pointless trait implementation exports in bevy_math Remove pointless trait implementation exports in bevy_reflect Nov 28, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Nov 29, 2023
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Nov 29, 2023
Merged via the queue into bevyengine:main with commit 506bdc5 Nov 29, 2023
26 checks passed
@stepancheg stepancheg deleted the impls branch December 1, 2023 01:52
james7132 pushed a commit to james7132/bevy that referenced this pull request Dec 1, 2023
…engine#10771)

Trait implementations do not need to be reexported to be used.

```
warning: unused import: `self::std::*`
   --> crates/bevy_reflect/src/lib.rs:502:13
    |
502 |     pub use self::std::*;
    |             ^^^^^^^^^^^^
    |
    = note: `#[warn(unused_imports)]` on by default

warning: unused import: `self::uuid::*`
   --> crates/bevy_reflect/src/lib.rs:503:13
    |
503 |     pub use self::uuid::*;
    |             ^^^^^^^^^^^^^

warning: unused import: `impls::*`
   --> crates/bevy_reflect/src/lib.rs:525:9
    |
525 | pub use impls::*;
    |         ^^^^^^^^
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Reflection Runtime information about types C-Code-Quality A section of code that is hard to understand or change S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants