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 {
full_name
.split("<")
.map(|p| p.split("::").last().unwrap().to_string())
.collect::<Vec<String>>()
.map(|p| p.split("::").last().unwrap())
.collect::<Vec<&str>>()
.join("<")
}