feat: PR review suggestion

Signed-off-by: Darkheir <raphael.cohen@sekoia.io>
This commit is contained in:
Darkheir 2026-01-15 21:28:37 +01:00
commit 6ccfb5b083
No known key found for this signature in database
GPG key ID: 5AA83A72C565DD8D
2 changed files with 2 additions and 2 deletions

View file

@ -162,7 +162,7 @@ impl fmt::Debug for LogicalLiteral {
ref pattern,
ref field,
} => write!(formatter, "Regex({field:?}, {pattern:?})"),
LogicalLiteral::Exists { ref field } => write!(formatter, "exists:{field}"),
LogicalLiteral::Exists { ref field } => write!(formatter, "Exists({field})"),
}
}
}

View file

@ -2113,6 +2113,6 @@ mod test {
#[test]
pub fn test_exists() {
test_parse_query_to_logical_ast_helper("title:*", "exists:title", false);
test_parse_query_to_logical_ast_helper("title:*", "Exists(title)", false);
}
}