Fix msrv.

This commit is contained in:
Stephen Chung 2022-12-04 16:12:34 +08:00
parent de0707f64f
commit 3163d9d1d6

View File

@ -41,7 +41,7 @@ impl CustomTypesCollection {
}
/// Register a custom type.
#[inline(always)]
pub fn add_type<T>(&mut self, name: impl Into<Identifier>) {
pub fn add_type<T>(&mut self, name: &str) {
self.add_raw(
type_name::<T>(),
CustomTypeInfo {