Skip to content
Snippets Groups Projects
Commit 5e74391c authored by Jason Volk's avatar Jason Volk
Browse files

fix config generator macro matchers


Signed-off-by: default avatarJason Volk <jason@zemos.net>
parent cc86fede
No related branches found
No related tags found
4 merge requests!610docs: add note about the nixos service defaulting to sqlite,!614fix incorrect user id for non-admin invites checking,!609Fix thread pagination,!608Final async database (overall heavy performance improvement), misc bug fixes, `/search` filters, remove legacy mentions (MSC4210) and dependency updates
...@@ -168,7 +168,7 @@ fn get_default(field: &Field) -> Option<String> { ...@@ -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> { ...@@ -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> { ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment