From f3c5b4eb8c54144fdb0b71d5c91bfb04833ff9c8 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Tue, 2 Sep 2025 19:11:19 -0700 Subject: [PATCH] server: fix issues from latest renovatebot --- server/src/email_extract.rs | 2 +- server/src/error.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/email_extract.rs b/server/src/email_extract.rs index e96e271..393f919 100644 --- a/server/src/email_extract.rs +++ b/server/src/email_extract.rs @@ -798,7 +798,7 @@ pub fn extract_alternative( let body = sp.get_body()?; if let Some(ref summary) = ical_summary { // Prepend summary to plain text body (strip HTML tags) - let summary_text = html2text::from_read(summary.as_bytes(), 80); + let summary_text = html2text::from_read(summary.as_bytes(), 80)?; let combined = format!("{}\n\n{}", summary_text.trim(), body); return Ok(Body::text(combined)); } else { diff --git a/server/src/error.rs b/server/src/error.rs index f868da2..965b484 100644 --- a/server/src/error.rs +++ b/server/src/error.rs @@ -45,4 +45,6 @@ pub enum ServerError { XmlError(#[from] quick_xml::Error), #[error("xml encoding error: {0}")] XmlEncodingError(#[from] quick_xml::encoding::EncodingError), + #[error("html to text error: {0}")] + Html2TextError(#[from] html2text::Error), }