dirmgr: remove a needless .borrow()
This fixes a warning from nightly clippy.
This commit is contained in:
parent
78fb64387d
commit
c1fea9a67f
|
@ -1,7 +1,7 @@
|
||||||
//! Declare a general purpose "document ID type" for tracking which
|
//! Declare a general purpose "document ID type" for tracking which
|
||||||
//! documents we want and which we have.
|
//! documents we want and which we have.
|
||||||
|
|
||||||
use std::{borrow::Borrow, collections::HashMap};
|
use std::collections::HashMap;
|
||||||
use tracing::trace;
|
use tracing::trace;
|
||||||
|
|
||||||
use crate::storage::Store;
|
use crate::storage::Store;
|
||||||
|
@ -271,11 +271,10 @@ where
|
||||||
{
|
{
|
||||||
let mut result = HashMap::new();
|
let mut result = HashMap::new();
|
||||||
for item in collection.into_iter() {
|
for item in collection.into_iter() {
|
||||||
let b = item.borrow();
|
let tp = item.doctype();
|
||||||
let tp = b.doctype();
|
|
||||||
result
|
result
|
||||||
.entry(tp)
|
.entry(tp)
|
||||||
.or_insert_with(|| DocQuery::empty_from_docid(b))
|
.or_insert_with(|| DocQuery::empty_from_docid(&item))
|
||||||
.push(item);
|
.push(item);
|
||||||
}
|
}
|
||||||
result
|
result
|
||||||
|
|
Loading…
Reference in New Issue