From 31fcab91e5e9672a76c589c6c0ada9407cc7be95 Mon Sep 17 00:00:00 2001 From: Daniel Redd Jones Date: Fri, 19 May 2023 18:47:21 -0500 Subject: [PATCH] removed regex library, as I thought I would need it but did not --- Cargo.toml | 1 - src/main.rs | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4043ea9..c2b726c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,5 +7,4 @@ edition = "2021" [dependencies] epub = "1.2.2" -regex = "1.8.1" soup = "0.5.1" diff --git a/src/main.rs b/src/main.rs index 2370020..d05264f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ Language: Rustc 1.69.0 ide: CLion Operating system: Fedora 38/WSL Purpose: ncurses based ereader and library manager for Linux terminal environments. -Last edited: 5/18/23 +Last edited: 5/19/23 */ @@ -31,10 +31,9 @@ fn epub_func(epub_file: &str){ let doc = EpubDoc::new(&epub_file); assert!(doc.is_ok()); let mut doc = doc.unwrap(); - doc.set_current_page(50); + doc.set_current_page(1).expect("end of book"); let mut content = doc.get_current_str(); let mut str_content = content.unwrap(); - let mut next = String::new();