Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Dec 17, 2024
1 parent 67bdf57 commit 2efa1ed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion quickwit/quickwit-doc-mapper/src/query_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub(crate) fn build_query(
with_subfields: false,
});
fast_field_names.extend(range_query_fast_fields);
fast_field_names.extend(exists_query_fields.fields.into_iter());
fast_field_names.extend(exists_query_fields.fields);

let query = query_ast.build_tantivy_query(
&schema,
Expand Down
2 changes: 1 addition & 1 deletion quickwit/quickwit-query/src/query_ast/field_presence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl FieldPresenceQuery {
// if `self.field` was not found, it might still be an `object` field
if fields.is_empty() || fields[0].1.name() == DYNAMIC_FIELD_NAME {
for (field, entry) in find_subfields(&self.field, schema) {
fields.push((field, entry, &""));
fields.push((field, entry, ""));
}
}
fields
Expand Down
1 change: 0 additions & 1 deletion quickwit/quickwit-query/src/query_ast/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ pub fn find_subfields<'a>(
let prefix = format!("{}.", path);
schema
.fields()
.into_iter()
.filter(|(_, field_entry)| field_entry.name().starts_with(&prefix))
.collect()
}
Expand Down

0 comments on commit 2efa1ed

Please sign in to comment.