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 {
|
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("<")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user