bevy/crates/bevy_ecs/src/relationship
krunchington 96d5f1e5de Fix relationship macro for multiple named members fields (#18530)
# Objective

Fixes #18466 

## Solution

Updated the macro generation pattern to place the comma in the correct
place in the pattern.

## Testing

- Tried named and unnamed fields in combination, and used rust expand
macro tooling to see the generated code and verify its correctness (see
screenshots in example below)

---

## Showcase

Screenshot showing expanded macro with multiple named fields

![image](https://github.com/user-attachments/assets/7ecd324c-10ba-4b23-9b53-b94da03567d3)

Screenshot showing expanded macro with single unnamed field

![image](https://github.com/user-attachments/assets/be72f061-5f07-4d19-b5f6-7ff6c35ec679)

## Migration Guide

n/a
2025-03-27 22:58:21 +01:00
..
mod.rs Fix relationship macro for multiple named members fields (#18530) 2025-03-27 22:58:21 +01:00
related_methods.rs Add methods to bulk replace relationships on a entity (#18058) 2025-03-19 21:36:18 +01:00
relationship_query.rs Move Item and fetch to QueryData from WorldQuery (#17679) 2025-02-05 18:46:18 +00:00
relationship_source_collection.rs Add more methods to RelationshipSourceCollection (#18421) 2025-03-24 00:09:29 +01:00