From 88c262fe64cfd0e4385fc4e06f1c4f33054afa63 Mon Sep 17 00:00:00 2001 From: gyoder <70408179+gyoder@users.noreply.github.com> Date: Tue, 8 Jul 2025 11:44:13 -0600 Subject: [PATCH] bug: ignores error if theme folder does not exist --- Cargo.lock | 2 +- htmlua-parser/src/render.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 118ff7a..8096bb3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -363,7 +363,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f29e4755b7b995046f510a7520c42b2fed58b77bd94d5a87a8eb43d2fd126da8" dependencies = [ "cssparser", - "html5ever", + "html5ever 0.26.0", "indexmap 1.9.3", "matches", "selectors", diff --git a/htmlua-parser/src/render.rs b/htmlua-parser/src/render.rs index 35c37f4..2e4ed87 100644 --- a/htmlua-parser/src/render.rs +++ b/htmlua-parser/src/render.rs @@ -146,7 +146,7 @@ pub fn process_syntax_highlighting(document: NodeRef) -> Result { if !syntax_elements.is_empty() { // TODO: read from config let themes = PathBuf::from("/var/www/htmlua/themes"); - ts.add_from_folder(themes)?; + let _ = ts.add_from_folder(themes); } for node in syntax_elements { let attrs = match node.as_node().as_element() {