From 5e74391c6c94e2843f6cf18aaf0b10e2a613690c Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 10 Nov 2024 02:29:45 +0000 Subject: [PATCH] fix config generator macro matchers Signed-off-by: Jason Volk --- src/macros/config.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/macros/config.rs b/src/macros/config.rs index 6ccdb73c..d7f11535 100644 --- a/src/macros/config.rs +++ b/src/macros/config.rs @@ -168,7 +168,7 @@ fn get_default(field: &Field) -> Option { .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 { 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 { 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; }