diff --git a/src/types/custom_types.rs b/src/types/custom_types.rs index cbed43a3..14157e39 100644 --- a/src/types/custom_types.rs +++ b/src/types/custom_types.rs @@ -41,7 +41,7 @@ impl CustomTypesCollection { } /// Register a custom type. #[inline(always)] - pub fn add_type(&mut self, name: impl Into) { + pub fn add_type(&mut self, name: &str) { self.add_raw( type_name::(), CustomTypeInfo {