slightly better short name calculation

This commit is contained in:
Carter Anderson 2020-05-27 22:59:52 -07:00
parent 830565ae2b
commit 55d6ea64f3

View File

@ -93,8 +93,8 @@ impl PropertyTypeRegistration {
pub fn get_short_name(full_name: &str) -> String { pub fn get_short_name(full_name: &str) -> String {
full_name full_name
.split("<") .split("<")
.map(|p| p.split("::").last().unwrap().to_string()) .map(|p| p.split("::").last().unwrap())
.collect::<Vec<String>>() .collect::<Vec<&str>>()
.join("<") .join("<")
} }