This commit is contained in:
2024-01-07 21:44:22 +01:00
parent c0b348e6dc
commit fc8a7d4d89
3 changed files with 7 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ where
let annotation_text = annotation.get_text();
let chunked_text = split_text_to_chunks(annotation_text, 512);
let current_text = chunked_text.get(0).unwrap();
let current_text = chunked_text.first().unwrap();
let callback_data = match command {
AnnotationCommand::Book { id } => AnnotationCallbackData::Book { id, page: 1 },