Make TypeRegistration::get_short_name() pub (#1571)

This would allow for example `bevy_mod_debugdump` to use it, instead of custom typename shortening.
This commit is contained in:
Jonas Matser 2021-03-07 19:50:18 +00:00
parent 891f6a1f48
commit a7308155ee

View file

@ -150,7 +150,7 @@ impl TypeRegistration {
self.name 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(); let mut short_name = String::new();
{ {