Rewrite the FacetCondtion Debug impl in a defensive way

This commit is contained in:
Clément Renault 2020-11-22 15:40:11 +01:00
parent a0adfb5e8e
commit fc242f6e1f
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -210,11 +210,12 @@ impl<'a> Search<'a> {
impl fmt::Debug for Search<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let Search { query, facet_condition, offset, limit, rtxn: _, index: _ } = self;
f.debug_struct("Search")
.field("query", &self.query)
.field("facet_condition", &self.facet_condition)
.field("offset", &self.offset)
.field("limit", &self.limit)
.field("query", query)
.field("facet_condition", facet_condition)
.field("offset", offset)
.field("limit", limit)
.finish()
}
}