mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Make an unreachable case, unreachable
This commit is contained in:
parent
e9d547556d
commit
b037e416d3
1 changed files with 1 additions and 2 deletions
|
@ -232,9 +232,8 @@ pub fn format_documents<'doc>(
|
|||
for (docid, external_docid) in internal_docids.into_iter().zip(external_ids) {
|
||||
let document = match DocumentFromDb::new(docid, rtxn, index, &fid_map)? {
|
||||
Some(doc) => doc,
|
||||
None => continue,
|
||||
None => unreachable!("Document with internal ID {docid} not found"),
|
||||
};
|
||||
|
||||
let text = prompt.render_document(&external_docid, document, &gfid_map, doc_alloc).unwrap();
|
||||
renders.push(text);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue