Nit: merge two impl blocks

This commit is contained in:
Giacomo Stevanato 2025-07-15 23:01:29 +02:00
parent 18c4ca405e
commit 156f46e123
No known key found for this signature in database

View File

@ -328,9 +328,7 @@ impl Components {
required_by.insert(requiree);
}
}
}
impl Components {
/// Registers the given component `R` and [required components] inherited from it as required by `T`.
///
/// When `T` is added to an entity, `R` will also be added if it was not already provided.