From 3163d9d1d62c2bf28ced8fee5c84f71bc8263714 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 4 Dec 2022 16:12:34 +0800 Subject: [PATCH] Fix msrv. --- src/types/custom_types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {