Skip to content

Commit 624c5b5

Browse files
authored
Merge pull request #248 from ricosjp/add-doc-any-holder
add document to XXXAnyHolder
2 parents 38f8a26 + f2899ed commit 624c5b5

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ In addition to original Keep-a-Changelog, we use following rules:
2121
- Remove `field` attr from enumerations. https://github.com/ricosjp/ruststep/pull/233
2222
- Recursive `get_owned` for select type without boxed variant. https://github.com/ricosjp/ruststep/pull/234
2323
- Hide `XXHolderVisitor` in document https://github.com/ricosjp/ruststep/pull/247
24+
- Add document to `XXAnyHolder`. https://github.com/ricosjp/ruststep/pull/248
2425

2526
### Fixed
2627
- Plural class names are converted as is. https://github.com/ricosjp/ruststep/pull/245

ruststep-derive/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ mod snapshot_tests {
188188
let out = espr::codegen::rust::rustfmt(tt.to_string());
189189

190190
insta::assert_snapshot!(out, @r###"
191+
#[doc = r" Auto-generated by `#[derive(Holder)]`"]
191192
#[derive(Clone, Debug, PartialEq)]
192193
pub enum S1Holder {
193194
A(Box<AHolder>),
@@ -301,6 +302,7 @@ mod snapshot_tests {
301302
let out = espr::codegen::rust::rustfmt(tt.to_string());
302303

303304
insta::assert_snapshot!(out, @r###"
305+
#[doc = r" Auto-generated by `#[derive(Holder)]`"]
304306
#[derive(Clone, Debug, PartialEq)]
305307
pub enum BaseAnyHolder {
306308
Base(Box<BaseHolder>),

ruststep-derive/src/select.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ impl Input {
9696
..
9797
} = self;
9898
quote! {
99+
/// Auto-generated by `#[derive(Holder)]`
99100
#[derive(Clone, Debug, PartialEq)]
100101
pub enum #holder_ident {
101102
#(#variants(#holder_types)),*

0 commit comments

Comments
 (0)