From c29d3c35a3281fcc2b4a6d8a7de9273a7fc4b3c1 Mon Sep 17 00:00:00 2001 From: Tristan Guichaoua Date: Tue, 9 Aug 2022 10:19:15 +0200 Subject: [PATCH] add missing inlines --- src/api/build_type.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/build_type.rs b/src/api/build_type.rs index 2ac83b3f..98cc8645 100644 --- a/src/api/build_type.rs +++ b/src/api/build_type.rs @@ -124,6 +124,7 @@ where { /// Sets a pretty-print name for the `type_of` function. #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] + #[inline] pub fn with_name(&mut self, name: &'static str) -> &mut Self { self.name = Some(name); self @@ -131,6 +132,7 @@ where /// Register a custom function. #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] + #[inline] pub fn with_fn(&mut self, name: N, method: F) -> &mut Self where N: AsRef + Into, @@ -142,6 +144,7 @@ where /// Register a custom fallible function. #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] + #[inline] pub fn with_result_fn(&mut self, name: N, method: F) -> &mut Self where N: AsRef + Into,