Improve the DocumentsIdsIter internal

This commit is contained in:
Clément Renault 2019-10-10 13:09:29 +02:00
parent da0168bd82
commit 7b26bd88c0
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 4 additions and 5 deletions

View file

@ -66,7 +66,7 @@ pub struct Index {
}
impl Index {
pub fn document<T: de::DeserializeOwned, R: rkv::Readable>(
pub fn document<R: rkv::Readable, T: de::DeserializeOwned>(
&self,
reader: &R,
attributes: Option<&HashSet<&str>>,