mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-06-15 04:21:36 +02:00
Make an unreachable case, unreachable
This commit is contained in:
parent
e9d547556d
commit
b037e416d3
@ -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…
x
Reference in New Issue
Block a user