- 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:
parent
326ddfcddc
commit
e3fa7d856f
@ -42,11 +42,11 @@ fn epub_func(epub_file: &str){
|
||||
let is_reading = true;
|
||||
while is_reading == true {
|
||||
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 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);
|
||||
|
Loading…
Reference in New Issue
Block a user