From 109d404e05d36093457458588e1cb55bc383424f Mon Sep 17 00:00:00 2001 From: p11 Date: Mon, 21 Apr 2025 16:21:20 +0200 Subject: [PATCH] Inline errors --- src/vn.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vn.rs b/src/vn.rs index 385f18a..67e32a2 100644 --- a/src/vn.rs +++ b/src/vn.rs @@ -330,7 +330,7 @@ fn render_choice(block: &DialogBlock, index: usize, progress: &str) - } @match String::from_utf8(content) { Ok(text) => (maud::PreEscaped(text)), - Err(e) => (maud::PreEscaped(format!("Error: {}", e))), + Err(e) => (maud::PreEscaped(format!("Error: {e}"))), } } } @@ -474,7 +474,7 @@ fn render_dialog_block(block: &dialogi::DialogBlock) -> Markup { div .dialog-content { @match String::from_utf8(content) { Ok(text) => (maud::PreEscaped(text)), - Err(e) => (maud::PreEscaped(format!("Error: {}", e))), + Err(e) => (maud::PreEscaped(format!("Error: {e}"))), } } }