mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-30 09:04:59 +08:00
Rewrite the FacetCondtion Debug impl in a defensive way
This commit is contained in:
parent
a0adfb5e8e
commit
fc242f6e1f
@ -210,11 +210,12 @@ impl<'a> Search<'a> {
|
|||||||
|
|
||||||
impl fmt::Debug for Search<'_> {
|
impl fmt::Debug for Search<'_> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
|
let Search { query, facet_condition, offset, limit, rtxn: _, index: _ } = self;
|
||||||
f.debug_struct("Search")
|
f.debug_struct("Search")
|
||||||
.field("query", &self.query)
|
.field("query", query)
|
||||||
.field("facet_condition", &self.facet_condition)
|
.field("facet_condition", facet_condition)
|
||||||
.field("offset", &self.offset)
|
.field("offset", offset)
|
||||||
.field("limit", &self.limit)
|
.field("limit", limit)
|
||||||
.finish()
|
.finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user