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

View file

@ -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;
} }