diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d02016e..69c68592 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ In addition to original Keep-a-Changelog, we use following rules: ### Changed - Remove `field` attr from enumerations. https://github.com/ricosjp/ruststep/pull/233 - Recursive `get_owned` for select type without boxed variant. https://github.com/ricosjp/ruststep/pull/234 +- Hide `XXHolderVisitor` in document https://github.com/ricosjp/ruststep/pull/247 ### Fixed - Plural class names are converted as is. https://github.com/ricosjp/ruststep/pull/245 diff --git a/ruststep-derive/src/lib.rs b/ruststep-derive/src/lib.rs index cfc36474..57f5f9df 100644 --- a/ruststep-derive/src/lib.rs +++ b/ruststep-derive/src/lib.rs @@ -219,6 +219,7 @@ mod snapshot_tests { deserializer.deserialize_tuple_struct("S1", 0, S1HolderVisitor {}) } } + #[doc(hidden)] pub struct S1HolderVisitor; impl<'de> ::ruststep::serde::de::Visitor<'de> for S1HolderVisitor { type Value = S1Holder; @@ -331,6 +332,7 @@ mod snapshot_tests { deserializer.deserialize_tuple_struct("BASE_ANY", 0, BaseAnyHolderVisitor {}) } } + #[doc(hidden)] pub struct BaseAnyHolderVisitor; impl<'de> ::ruststep::serde::de::Visitor<'de> for BaseAnyHolderVisitor { type Value = BaseAnyHolder; diff --git a/ruststep-derive/src/select.rs b/ruststep-derive/src/select.rs index 62e4e424..ed8e9ac9 100644 --- a/ruststep-derive/src/select.rs +++ b/ruststep-derive/src/select.rs @@ -170,6 +170,7 @@ impl Input { let serde = serde_crate(); quote! { + #[doc(hidden)] pub struct #holder_visitor_ident; impl<'de> #serde::de::Visitor<'de> for #holder_visitor_ident {