fix(ci): remove import path from type names on compact-codec (#12125)

This commit is contained in:
joshieDo
2024-10-28 19:13:43 +09:00
committed by GitHub
parent 0f86287b65
commit e4bd13534d
2 changed files with 4 additions and 2 deletions

View File

@ -267,5 +267,5 @@ where
}
pub fn type_name<T>() -> String {
std::any::type_name::<T>().replace("::", "__")
std::any::type_name::<T>().split("::").last().unwrap_or(std::any::type_name::<T>()).to_string()
}