Skip to content

Commit

Permalink
Merge pull request #247 from ricosjp/hidden-holder-visitor-doc
Browse files Browse the repository at this point in the history
hide XXXHolderVisitor in the document
  • Loading branch information
ytanimura authored Sep 19, 2024
2 parents 1dd1e4e + b10690c commit 38f8a26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions ruststep-derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions ruststep-derive/src/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 38f8a26

Please sign in to comment.