- str_content is now a tuple as required by the epub library update

- changed html_module(str_content); to html_module::main(str_content.0); to fix bug that was created by the update.
This commit is contained in:
Daniel Jones 2023-06-28 13:15:01 -05:00
parent 326ddfcddc
commit e3fa7d856f

View File

@ -42,11 +42,11 @@ fn epub_func(epub_file: &str){
let is_reading = true; let is_reading = true;
while is_reading == true { while is_reading == true {
let mut next_or_last = String::new(); let mut next_or_last = String::new();
doc.set_current_page(page_num).expect("end of book"); doc.set_current_page(page_num);
let content = doc.get_current_str(); let content = doc.get_current_str();
let str_content = content.unwrap(); let str_content = content.unwrap();
html_module::main(str_content); html_module::main(str_content.0);
let input_size = std::io::stdin().read_line(&mut next_or_last); let input_size = std::io::stdin().read_line(&mut next_or_last);