Skip to content

Commit

Permalink
Make SystemMeta::new public
Browse files Browse the repository at this point in the history
  • Loading branch information
stepancheg committed Dec 30, 2023
1 parent 786abbf commit 0a2081a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/bevy_ecs/src/system/function_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ pub struct SystemMeta {
}

impl SystemMeta {
pub(crate) fn new<T>() -> Self {
/// New empty system meta with `T` type name used as system name.
///
/// This function rarely needed to be called directly.
pub fn new<T>() -> Self {
let name = std::any::type_name::<T>();
Self {
name: name.into(),
Expand Down

0 comments on commit 0a2081a

Please sign in to comment.