You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove redundant $arg: ident of the impl_typed_function macro (#21241)
# Objective
bevy_reflect: function reflection
The `$arg: ident` in macro `impl_typed_function` is redundant. It is not
used internally at all. So I removed it.
## Testing
- `cargo run --features="reflect_functions" --example
function_reflection`
- `cargo test -p bevy_reflect --features="functions"`
---
## Showcase
```rust
macro_rules! impl_typed_function {
// ($(($Arg:ident, $arg:ident)),*) => {
($($Arg:ident),*) => {
// ......
}
}
// all_tuples!(impl_typed_function, 0, 15, Arg, arg);
all_tuples!(impl_typed_function, 0, 15, Arg);
```
0 commit comments