This commit is contained in:
Alex Orlenko 2023-03-25 23:38:57 +00:00
parent 742307a267
commit 9c1669020b
No known key found for this signature in database
GPG Key ID: 4C150C250863B96D
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ impl<'lua, T: 'static> UserDataRegistrar<'lua, T> {
// Returns function name for the type `T`, without the module path
fn get_function_name<T: 'static>(name: &str) -> StdString {
let type_name = any::type_name::<T>().rsplitn(2, "::").next().unwrap();
let type_name = any::type_name::<T>().rsplit("::").next().unwrap();
format!("{type_name}.{name}",)
}