rename to iter_gen

This commit is contained in:
Pascal Seitz
2022-09-30 10:49:28 +08:00
parent 087beaf328
commit eeb1f19093
5 changed files with 25 additions and 29 deletions

View File

@@ -76,9 +76,7 @@ impl Document {
/// Adding a facet to the document.
pub fn add_facet<F>(&mut self, field: Field, path: F)
where
Facet: From<F>,
{
where Facet: From<F> {
let facet = Facet::from(path);
let value = Value::Facet(facet);
self.add_field_value(field, value);