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