fixed compile error

i forgot to track the caller, when inserting resources via tuple
This commit is contained in:
Matthias 2024-11-21 13:42:42 +01:00
parent ce2f1aec4f
commit cd8af5f659

View file

@ -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);)*
}
}
}