From 977a8de86bbc23a2d85af895d15c2a81abbd0d5f Mon Sep 17 00:00:00 2001 From: Dee <33315+dee@users.noreply.github.com> Date: Thu, 29 Jan 2026 09:58:11 +0100 Subject: [PATCH] Fixed some compilation errors --- lib/src/epub/reader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/epub/reader.rs b/lib/src/epub/reader.rs index 5fee397..fcd7d15 100644 --- a/lib/src/epub/reader.rs +++ b/lib/src/epub/reader.rs @@ -735,7 +735,7 @@ fn read_nav_xhtml(xhtml: &str, root_path: String, book: &mut EpubBook) -> IResul .attributes() .find(|a| a.as_ref().unwrap().key.as_ref() == b"class") { - if class.unwrap().value.as_ref() == b"toc-label" { + if &*class.unwrap().value == b"toc-label" { in_label = true } } @@ -792,7 +792,7 @@ fn read_nav_xhtml(xhtml: &str, root_path: String, book: &mut EpubBook) -> IResul fn has_epub_type(e: &BytesStart, value: &str) -> bool { e.attributes().any(|a| { let attr = a.as_ref().unwrap(); - attr.key.as_ref() == b"epub:type" && attr.value.as_ref() == value.as_bytes() + attr.key.as_ref() == b"epub:type" && &*attr.value == value.as_bytes() }) }