fix config generator macro matchers

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-11-10 02:29:45 +00:00
parent cc86feded3
commit 5e74391c6c
1 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,7 @@ fn get_default(field: &Field) -> Option<String> {
.segments
.iter()
.next()
.is_none_or(|s| s.ident == "serde")
.is_none_or(|s| s.ident != "serde")
{
continue;
}
@ -218,7 +218,7 @@ fn get_doc_default(field: &Field) -> Option<String> {
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;
}
@ -261,7 +261,7 @@ fn get_doc_comment(field: &Field) -> Option<String> {
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;
}