Prompt: relax lifetime constraints

This commit is contained in:
Louis Dureuil
2025-07-01 23:52:44 +02:00
parent c1a132fa06
commit e30c24b5bf
3 changed files with 20 additions and 19 deletions

View File

@ -107,8 +107,8 @@ impl Prompt {
}
pub fn render_document<
'a, // lifetime of the borrow of the document
'doc: 'a, // lifetime of the allocator, will live for an entire chunk of documents
'a, // lifetime of the borrow of the document
'doc, // lifetime of the allocator, will live for an entire chunk of documents
>(
&self,
external_docid: &str,