From a7308155ee2e5e138964358ac5c84cd3075dcbec Mon Sep 17 00:00:00 2001 From: Jonas Matser Date: Sun, 7 Mar 2021 19:50:18 +0000 Subject: [PATCH] Make TypeRegistration::get_short_name() pub (#1571) This would allow for example `bevy_mod_debugdump` to use it, instead of custom typename shortening. --- crates/bevy_reflect/src/type_registry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_reflect/src/type_registry.rs b/crates/bevy_reflect/src/type_registry.rs index ac2779d7fe..b9fa42267b 100644 --- a/crates/bevy_reflect/src/type_registry.rs +++ b/crates/bevy_reflect/src/type_registry.rs @@ -150,7 +150,7 @@ impl TypeRegistration { self.name } - fn get_short_name(full_name: &str) -> String { + pub fn get_short_name(full_name: &str) -> String { let mut short_name = String::new(); {