Fix clippy

This commit is contained in:
ManyTheFish 2022-05-19 11:23:22 +02:00
parent 3517eae47f
commit 50763aac82
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ fn format_fields<'a, A: AsRef<[u8]>>(
compute_matches: bool,
displayable_ids: &BTreeSet<FieldId>,
) -> Result<(Option<MatchesInfo>, Document)> {
let mut matches = compute_matches.then(|| BTreeMap::new());
let mut matches = compute_matches.then(BTreeMap::new);
let mut document = document.clone();
// select the attributes to retrieve