bevy/crates/bevy_ecs/src/entity
Zeenobit 023e0e5bde
Fix Entity Debug Format (#14539)
# Objective

Fixes #12139

## Solution

See this comment on original issue for my proposal:
https://github.com/bevyengine/bevy/issues/12139#issuecomment-2241915791

This PR is an implementation of this proposal.

I modified the implementation of `fmt::Debug` to instead display
`0v0#12345` to ensure entity index, generation, and raw bits are all
present in the output for debug purposes while still keeping log message
concise.

`fmt::Display` remains as is (`0v0`) to offer an even shorter output.

To me, this is the most non-intrusive fix for this issue.

## Testing

Add `fn entity_debug` test

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Gino Valente <49806985+MrGVSV@users.noreply.github.com>
2024-07-31 01:36:41 +00:00
..
hash.rs Remove redundant imports (#12817) 2024-04-01 19:59:08 +00:00
map_entities.rs Fix intra-doc links and make CI test them (#14076) 2024-07-11 13:08:31 +00:00
mod.rs Fix Entity Debug Format (#14539) 2024-07-31 01:36:41 +00:00