fix config generator macro matchers
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
cc86feded3
commit
5e74391c6c
1 changed files with 3 additions and 3 deletions
|
@ -168,7 +168,7 @@ fn get_default(field: &Field) -> Option<String> {
|
||||||
.segments
|
.segments
|
||||||
.iter()
|
.iter()
|
||||||
.next()
|
.next()
|
||||||
.is_none_or(|s| s.ident == "serde")
|
.is_none_or(|s| s.ident != "serde")
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -218,7 +218,7 @@ fn get_doc_default(field: &Field) -> Option<String> {
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
|
||||||
if path.segments.iter().next().is_none_or(|s| s.ident == "doc") {
|
if path.segments.iter().next().is_none_or(|s| s.ident != "doc") {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ fn get_doc_comment(field: &Field) -> Option<String> {
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
|
||||||
if path.segments.iter().next().is_none_or(|s| s.ident == "doc") {
|
if path.segments.iter().next().is_none_or(|s| s.ident != "doc") {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue