slightly better short name calculation
This commit is contained in:
parent
830565ae2b
commit
55d6ea64f3
@ -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("<")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user