From addefec17c46ff53d5b3da9ea54caa7dba2f146b Mon Sep 17 00:00:00 2001 From: Tristan Guichaoua Date: Tue, 9 Aug 2022 09:49:55 +0200 Subject: [PATCH] TypeBuilder : split pub/private api impl block --- src/api/build_type.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/build_type.rs b/src/api/build_type.rs index ce192367..484aa95a 100644 --- a/src/api/build_type.rs +++ b/src/api/build_type.rs @@ -96,7 +96,6 @@ where _marker: PhantomData, } -#[allow(missing_docs)] // TODO: add docs impl<'a, T> TypeBuilder<'a, T> where T: Variant + Clone, @@ -108,7 +107,13 @@ where _marker: PhantomData::default(), } } +} +#[allow(missing_docs)] // TODO: add docs +impl<'a, T> TypeBuilder<'a, T> +where + T: Variant + Clone, +{ #[deprecated = "This API is NOT deprecated, but it is considered volatile and may change in the future."] pub fn with_name(&mut self, name: &'static str) -> &mut Self { self.name = Some(name);