mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 13:13:49 +00:00
fixed compile error
i forgot to track the caller, when inserting resources via tuple
This commit is contained in:
parent
ce2f1aec4f
commit
cd8af5f659
1 changed files with 6 additions and 2 deletions
|
@ -1010,9 +1010,13 @@ mod sealed {
|
|||
// We use `allow` instead of `expect` here because the lint is not generated for all cases.
|
||||
#[allow(non_snake_case, reason = "`all_tuples!()` generates non-snake-case variable names.")]
|
||||
#[allow(unused_variables, reason = "`world` is unused when implemented for the unit type `()`.")]
|
||||
fn insert_into_world(self, world: &mut World){
|
||||
fn insert_into_world(
|
||||
self,
|
||||
world: &mut World,
|
||||
#[cfg(feature = "track_change_detection")] caller: &'static Location,
|
||||
){
|
||||
let ($($r,)*) = self;
|
||||
$($r.insert_into_world(world);)*
|
||||
$($r.insert_into_world(world, caller);)*
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue