feat: Prefer using ranges and not using unreachable!

This commit is contained in:
Clément Renault
2019-01-06 12:33:27 +01:00
parent 0d07af3caf
commit d899b86603
2 changed files with 23 additions and 33 deletions

View File

@ -116,7 +116,7 @@ where D: Deref<Target=DB>,
}
}
matches.into_iter().map(|(id, m)| Document::from_unsorted_matches(id, m)).collect()
matches.into_iter().map(|(i, m)| Document::from_unsorted_matches(i, m)).collect()
}
}